Skip to content

Commit 4987d55

Browse files
authored
Sample / 0.75.5 → 0.76.9 (#284)
* Upgrade React Native from 0.75.5 to 0.76.9 * Upgrade react-native-gesture-handler * Update Gemfile.lock * Pin react-native-config version, enable new architecture
1 parent ecc4f95 commit 4987d55

File tree

14 files changed

+1465
-1291
lines changed

14 files changed

+1465
-1291
lines changed

package.json

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,23 @@
1818
"clean": "watchman watch-del .",
1919
"sample": "yarn workspace sample",
2020
"module": "yarn workspace @shopify/checkout-sheet-kit",
21-
"pod-install": "(cd sample/ios && bundle install && bundle exec pod repo update && bundle exec pod cache clean --all && NO_FLIPPER=1 bundle exec pod install --repo-update)",
21+
"pod-install": "(cd sample/ios && bundle install && bundle exec pod repo update && bundle exec pod cache clean --all && bundle exec pod install --repo-update)",
2222
"snapshot": "./scripts/create_snapshot",
2323
"compare-snapshot": "./scripts/compare_snapshot",
2424
"turbo": "turbo",
2525
"test": "jest"
2626
},
2727
"devDependencies": {
28-
"@babel/core": "^7.20.0",
29-
"@babel/preset-env": "^7.20.0",
30-
"@babel/runtime": "^7.27.6",
31-
"@react-native/babel-preset": "0.75.5",
32-
"@react-native/eslint-config": "0.75.5",
33-
"@react-native/metro-config": "0.75.5",
34-
"@react-native/typescript-config": "0.75.5",
28+
"@babel/core": "^7.25.2",
29+
"@babel/preset-env": "^7.25.3",
30+
"@babel/runtime": "^7.25.0",
31+
"@react-native-community/cli": "15.0.1",
32+
"@react-native-community/cli-platform-android": "15.0.1",
33+
"@react-native-community/cli-platform-ios": "15.0.1",
34+
"@react-native/babel-preset": "0.76.9",
35+
"@react-native/eslint-config": "0.76.9",
36+
"@react-native/metro-config": "0.76.9",
37+
"@react-native/typescript-config": "0.76.9",
3538
"@testing-library/react-native": "^13.3.1",
3639
"@tsconfig/react-native": "^3.0.6",
3740
"@types/jest": "^30.0.0",
@@ -44,9 +47,9 @@
4447
"jest": "^30.0.5",
4548
"prettier": "^3.2.5",
4649
"react": "18.3.1",
47-
"react-native": "0.75.5",
50+
"react-native": "0.76.9",
4851
"react-native-dotenv": "^3.4.9",
49-
"react-native-gesture-handler": "2.15.0",
52+
"react-native-gesture-handler": "2.25.0",
5053
"react-native-gradle-plugin": "^0.71.19",
5154
"react-test-renderer": "18.3.1",
5255
"ts-jest": "^29.1.1",

sample/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ ruby ">= 2.6.10"
77
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
88
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
99
gem 'xcodeproj', '< 1.26.0'
10-
gem 'concurrent-ruby', '<= 1.3.4'
10+
gem 'concurrent-ruby', '< 1.3.4'
1111
gem 'cocoapods-check', '1.1.0'

sample/Gemfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ GEM
6767
netrc (~> 0.11)
6868
cocoapods-try (1.2.0)
6969
colored2 (3.1.2)
70-
concurrent-ruby (1.3.4)
70+
concurrent-ruby (1.3.3)
7171
connection_pool (2.5.3)
7272
drb (2.2.3)
7373
escape (0.0.4)
74-
ethon (0.17.0)
74+
ethon (0.15.0)
7575
ffi (>= 1.15.0)
7676
ffi (1.17.2)
7777
fourflusher (2.3.1)
@@ -94,8 +94,8 @@ GEM
9494
rexml (3.4.2)
9595
ruby-macho (2.5.1)
9696
securerandom (0.4.1)
97-
typhoeus (1.4.1)
98-
ethon (>= 0.9.0)
97+
typhoeus (1.5.0)
98+
ethon (>= 0.9.0, < 0.16.0)
9999
tzinfo (2.0.6)
100100
concurrent-ruby (~> 1.0)
101101
xcodeproj (1.25.1)
@@ -113,7 +113,7 @@ DEPENDENCIES
113113
activesupport (>= 6.1.7.5, != 7.1.0)
114114
cocoapods (>= 1.13, != 1.15.1, != 1.15.0)
115115
cocoapods-check (= 1.1.0)
116-
concurrent-ruby (<= 1.3.4)
116+
concurrent-ruby (< 1.3.4)
117117
xcodeproj (< 1.26.0)
118118

119119
RUBY VERSION

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import com.facebook.react.ReactPackage
99
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
1010
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
1111
import com.facebook.react.defaults.DefaultReactNativeHost
12+
import com.facebook.react.soloader.OpenSourceMergedSoMapping
1213
import com.facebook.soloader.SoLoader
1314

1415
class MainApplication : Application(), ReactApplication {
@@ -34,7 +35,7 @@ class MainApplication : Application(), ReactApplication {
3435

3536
override fun onCreate() {
3637
super.onCreate()
37-
SoLoader.init(this, false)
38+
SoLoader.init(this, OpenSourceMergedSoMapping)
3839
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
3940
// If you opted-in for the New Architecture, we load the native entry point for this app.
4041
load()

sample/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
buildscript {
33
ext {
44
buildToolsVersion = "35.0.0"
5-
minSdkVersion = 23
5+
minSdkVersion = 24
66
compileSdkVersion = 35
77
targetSdkVersion = 34
88
ndkVersion = "26.1.10909125"

sample/android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
3434
# your application. You should enable this flag either if you want
3535
# to write custom TurboModules/Fabric components OR use libraries that
3636
# are providing them.
37-
newArchEnabled=false
37+
newArchEnabled=true
3838

3939
# Use this property to enable or disable the Hermes JS engine.
4040
# If set to false, you will be using JSC instead.

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

sample/android/gradlew

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717
#
18+
# SPDX-License-Identifier: Apache-2.0
19+
#
1820

1921
##############################################################################
2022
#
@@ -84,7 +86,7 @@ done
8486
# shellcheck disable=SC2034
8587
APP_BASE_NAME=${0##*/}
8688
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87-
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s' "$PWD" ) || exit
8890

8991
# Use the maximum available, or set MAX_FD != -1 to use that value.
9092
MAX_FD=maximum

sample/android/gradlew.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
@rem See the License for the specific language governing permissions and
1414
@rem limitations under the License.
1515
@rem
16+
@rem SPDX-License-Identifier: Apache-2.0
17+
@rem
1618

1719
@if "%DEBUG%"=="" @echo off
1820
@rem ##########################################################################

sample/ios/Podfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ target 'ReactNative' do
2424
use_react_native!(
2525
:path => config[:reactNativePath],
2626
# An absolute path to your application root.
27-
:app_path => "#{Pod::Config.instance.installation_root}/.."
27+
:app_path => "#{Pod::Config.instance.installation_root}/..",
28+
:new_arch_enabled => true
2829
)
2930

3031
target 'ReactNativeTests' do

0 commit comments

Comments
 (0)