Skip to content

Commit b79a9ab

Browse files
authored
Sample / 0.79.6 → 0.80.2 (#317)
* Sample / 0.79.6 -> 0.80.2 * Regenerate jar to fix Android build
1 parent f044a82 commit b79a9ab

File tree

10 files changed

+1308
-763
lines changed

10 files changed

+1308
-763
lines changed

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,29 +28,29 @@
2828
"@babel/core": "^7.25.2",
2929
"@babel/preset-env": "^7.25.3",
3030
"@babel/runtime": "^7.25.0",
31-
"@react-native-community/cli": "18.0.0",
32-
"@react-native-community/cli-platform-android": "18.0.0",
33-
"@react-native-community/cli-platform-ios": "18.0.0",
34-
"@react-native/babel-preset": "0.79.6",
35-
"@react-native/eslint-config": "0.79.6",
36-
"@react-native/metro-config": "0.79.6",
37-
"@react-native/typescript-config": "0.79.6",
31+
"@react-native-community/cli": "19.1.1",
32+
"@react-native-community/cli-platform-android": "19.1.1",
33+
"@react-native-community/cli-platform-ios": "19.1.1",
34+
"@react-native/babel-preset": "0.80.2",
35+
"@react-native/eslint-config": "0.80.2",
36+
"@react-native/metro-config": "0.80.2",
37+
"@react-native/typescript-config": "0.80.2",
3838
"@testing-library/react-native": "^13.3.1",
3939
"@tsconfig/react-native": "^3.0.6",
4040
"@types/jest": "^29.5.13",
41-
"@types/react": "^19.0.0",
41+
"@types/react": "^19.1.0",
4242
"@types/react-native-dotenv": "^0.2.1",
43-
"@types/react-test-renderer": "19.0.0",
43+
"@types/react-test-renderer": "19.1.0",
4444
"eslint": "^8.57.1",
4545
"eslint-plugin-prettier": "^5.5.4",
4646
"jest": "^30.0.5",
4747
"prettier": "^3.2.5",
48-
"react": "19.0.0",
49-
"react-native": "0.79.6",
48+
"react": "19.1.0",
49+
"react-native": "0.80.2",
5050
"react-native-dotenv": "^3.4.9",
5151
"react-native-gesture-handler": "2.25.0",
5252
"react-native-gradle-plugin": "^0.71.19",
53-
"react-test-renderer": "19.0.0",
53+
"react-test-renderer": "19.1.0",
5454
"ts-jest": "^29.4.1",
5555
"turbo": "^1.13.4",
5656
"typescript": "^5.9.2"

sample/android/app/src/main/java/com/shopify/checkoutkitreactnative/MainApplication.kt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ import com.facebook.react.ReactApplication
66
import com.facebook.react.ReactHost
77
import com.facebook.react.ReactNativeHost
88
import com.facebook.react.ReactPackage
9-
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
9+
import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
1010
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
1111
import com.facebook.react.defaults.DefaultReactNativeHost
12-
import com.facebook.react.soloader.OpenSourceMergedSoMapping
13-
import com.facebook.soloader.SoLoader
1412

1513
class MainApplication : Application(), ReactApplication {
1614

@@ -35,10 +33,6 @@ class MainApplication : Application(), ReactApplication {
3533

3634
override fun onCreate() {
3735
super.onCreate()
38-
SoLoader.init(this, OpenSourceMergedSoMapping)
39-
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
40-
// If you opted-in for the New Architecture, we load the native entry point for this app.
41-
load()
42-
}
36+
loadReactNative(this)
4337
}
4438
}

sample/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
compileSdkVersion = 35
77
targetSdkVersion = 35
88
ndkVersion = "27.1.12297006"
9-
kotlinVersion = "2.0.21"
9+
kotlinVersion = "2.1.20"
1010
}
1111
repositories {
1212
google()
-17.4 KB
Binary file not shown.

sample/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.13-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

sample/android/gradlew

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
# Darwin, MinGW, and NonStop.
5858
#
5959
# (3) This script is generated from the Groovy template
60-
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
60+
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
6161
# within the Gradle project.
6262
#
6363
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -114,7 +114,7 @@ case "$( uname )" in #(
114114
NONSTOP* ) nonstop=true ;;
115115
esac
116116

117-
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
117+
CLASSPATH="\\\"\\\""
118118

119119

120120
# Determine the Java command to use to start the JVM.
@@ -161,9 +161,6 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
161161
esac
162162
fi
163163

164-
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
165-
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
166-
167164
# Collect all arguments for the java command, stacking in reverse order:
168165
# * args from the command line
169166
# * the main class name
@@ -203,6 +200,10 @@ if "$cygwin" || "$msys" ; then
203200
done
204201
fi
205202

203+
204+
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
205+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
206+
206207
# Collect all arguments for the java command:
207208
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
208209
# and any embedded shellness will be escaped.
@@ -212,7 +213,7 @@ fi
212213
set -- \
213214
"-Dorg.gradle.appname=$APP_BASE_NAME" \
214215
-classpath "$CLASSPATH" \
215-
org.gradle.wrapper.GradleWrapperMain \
216+
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
216217
"$@"
217218

218219
# Stop when "xargs" is not available.

sample/android/gradlew.bat

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
@REM Copyright (c) Meta Platforms, Inc. and affiliates.
2+
@REM
3+
@REM This source code is licensed under the MIT license found in the
4+
@REM LICENSE file in the root directory of this source tree.
5+
16
@rem
27
@rem Copyright 2015 the original author or authors.
38
@rem
@@ -70,11 +75,11 @@ goto fail
7075
:execute
7176
@rem Setup the command line
7277

73-
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
78+
set CLASSPATH=
7479

7580

7681
@rem Execute Gradle
77-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
82+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
7883

7984
:end
8085
@rem End local scope for the variables with windows NT shell

0 commit comments

Comments
 (0)