Skip to content

Commit 21c4943

Browse files
authored
Support react-native 0.82 (#3699)
## Description > [!IMPORTANT] > No specific changes were necessary to make **Gesture Handler** compatible with **React Native 0.82**. This PR bumps basic-example app to React Native 0.82. ## Status - ### 0.82.0 ✅ - 🏅 0.82.0-rc.5 🏅 ✅ - 0.82.0-rc.4 ✅ - 0.82.0-rc.3 ✅ - 0.82.0-rc.2 🤯 - 0.82.0-rc.1 ✅ - 0.82.0-rc.0 ✅ ## Test plan Tested that `basic-example` builds and works correctly.
1 parent 3a28871 commit 21c4943

File tree

13 files changed

+1091
-829
lines changed

13 files changed

+1091
-829
lines changed

apps/basic-example/android/app/src/debug/AndroidManifest.xml

Lines changed: 0 additions & 9 deletions
This file was deleted.

apps/basic-example/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
android:roundIcon="@mipmap/ic_launcher_round"
1010
android:allowBackup="false"
1111
android:theme="@style/AppTheme"
12+
android:usesCleartextTraffic="${usesCleartextTraffic}"
1213
android:supportsRtl="true">
1314
<activity
1415
android:name=".MainActivity"

apps/basic-example/android/app/src/main/java/com/basicexample/MainApplication.kt

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,16 @@ import com.facebook.react.defaults.DefaultReactNativeHost
1212

1313
class MainApplication : Application(), ReactApplication {
1414

15-
override val reactNativeHost: ReactNativeHost =
16-
object : DefaultReactNativeHost(this) {
17-
override fun getPackages(): List<ReactPackage> =
18-
PackageList(this).packages.apply {
19-
// Packages that cannot be autolinked yet can be added manually here, for example:
20-
// add(MyReactNativePackage())
21-
}
22-
23-
override fun getJSMainModuleName(): String = "index"
24-
25-
override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
26-
27-
override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
28-
override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
29-
}
30-
31-
override val reactHost: ReactHost
32-
get() = getDefaultReactHost(applicationContext, reactNativeHost)
15+
override val reactHost: ReactHost by lazy {
16+
getDefaultReactHost(
17+
context = applicationContext,
18+
packageList =
19+
PackageList(this).packages.apply {
20+
// Packages that cannot be autolinked yet can be added manually here, for example:
21+
// add(MyReactNativePackage())
22+
},
23+
)
24+
}
3325

3426
override fun onCreate() {
3527
super.onCreate()
1.65 KB
Binary file not shown.

apps/basic-example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

apps/basic-example/android/gradlew

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
#
4-
# Copyright © 2015-2021 the original authors.
4+
# Copyright © 2015 the original authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

apps/basic-example/ios/BasicExample/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>CADisableMinimumFrameDurationOnPhone</key>
6+
<true/>
57
<key>CFBundleDevelopmentRegion</key>
68
<string>en</string>
79
<key>CFBundleDisplayName</key>

apps/basic-example/ios/Podfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ target 'BasicExample' do
2828
)
2929

3030
post_install do |installer|
31-
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
3231
react_native_post_install(
3332
installer,
3433
config[:reactNativePath],

0 commit comments

Comments
 (0)