Skip to content

Commit 7a5ef48

Browse files
authored
React Native - 0.73.6 → 0.74.1 (#87)
* Upgrade from 0.73.6 to 0.74.1 * Update cocoapods
1 parent a82659c commit 7a5ef48

File tree

19 files changed

+1283
-888
lines changed

19 files changed

+1283
-888
lines changed

.gitignore

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ yarn-error.log
6060
*.jsbundle
6161

6262
# Ruby / CocoaPods
63-
/ios/Pods/
64-
sample/ios/Pods/
63+
/**/Pods/
6564
/vendor/bundle/
6665

6766
# Temporary files created by Metro to check the health of the file watcher
@@ -95,3 +94,11 @@ modules/@shopify/checkout-sheet-kit/android/gradlew.bat
9594

9695
# Local gems
9796
sample/vendor
97+
98+
# Yarn
99+
.yarn/*
100+
!.yarn/patches
101+
!.yarn/plugins
102+
!.yarn/releases
103+
!.yarn/sdks
104+
!.yarn/versions

metro.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const sample = path.resolve(root, 'sample');
1010
const modules = Object.keys({...pkg.peerDependencies});
1111
/**
1212
* Metro configuration
13-
* https://facebook.github.io/metro/docs/configuration
13+
* https://reactnative.dev/docs/metro
1414
*
1515
* @type {import('metro-config').MetroConfig}
1616
*/

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
"@babel/core": "^7.20.0",
2929
"@babel/preset-env": "^7.20.0",
3030
"@babel/runtime": "^7.20.0",
31-
"@react-native/babel-preset": "^0.73.21",
32-
"@react-native/eslint-config": "^0.73.2",
33-
"@react-native/metro-config": "^0.73.5",
34-
"@react-native/typescript-config": "^0.74.0",
31+
"@react-native/babel-preset": "0.74.83",
32+
"@react-native/eslint-config": "0.74.83",
33+
"@react-native/metro-config": "0.74.83",
34+
"@react-native/typescript-config": "0.74.83",
3535
"@tsconfig/react-native": "^3.0.0",
3636
"@types/jest": "^29.5.10",
3737
"@types/react": "^18",
@@ -43,7 +43,7 @@
4343
"jest": "^29.2.1",
4444
"prettier": "^3.2.5",
4545
"react": "^18.2.0",
46-
"react-native": "0.73.6",
46+
"react-native": "0.74.1",
4747
"react-native-dotenv": "^3.4.9",
4848
"react-native-gesture-handler": "^2.15.0",
4949
"react-native-gradle-plugin": "^0.71.19",

sample/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ source 'https://rubygems.org'
33
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
44
ruby ">= 2.6.10"
55

6-
gem 'cocoapods', '>= 1.13', '< 1.15'
6+
gem 'cocoapods', '>= 1.15'
77
gem 'activesupport', '>= 6.1.7.5', '< 7.1.0'

sample/Gemfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ GEM
1818
atomos (0.1.3)
1919
base64 (0.2.0)
2020
claide (1.1.0)
21-
cocoapods (1.14.3)
21+
cocoapods (1.15.2)
2222
addressable (~> 2.8)
2323
claide (>= 1.0.2, < 2.0)
24-
cocoapods-core (= 1.14.3)
24+
cocoapods-core (= 1.15.2)
2525
cocoapods-deintegrate (>= 1.0.3, < 2.0)
2626
cocoapods-downloader (>= 2.1, < 3.0)
2727
cocoapods-plugins (>= 1.0.0, < 2.0)
@@ -36,7 +36,7 @@ GEM
3636
nap (~> 1.0)
3737
ruby-macho (>= 2.3.0, < 3.0)
3838
xcodeproj (>= 1.23.0, < 2.0)
39-
cocoapods-core (1.14.3)
39+
cocoapods-core (1.15.2)
4040
activesupport (>= 5.0, < 8)
4141
addressable (~> 2.8)
4242
algoliasearch (~> 1.0)
@@ -67,7 +67,7 @@ GEM
6767
httpclient (2.8.3)
6868
i18n (1.14.1)
6969
concurrent-ruby (~> 1.0)
70-
json (2.7.1)
70+
json (2.7.2)
7171
minitest (5.20.0)
7272
molinillo (0.8.0)
7373
nanaimo (0.3.0)
@@ -96,7 +96,7 @@ PLATFORMS
9696

9797
DEPENDENCIES
9898
activesupport (>= 6.1.7.5, < 7.1.0)
99-
cocoapods (>= 1.13, < 1.15)
99+
cocoapods (>= 1.15)
100100

101101
RUBY VERSION
102102
ruby 3.1.2p20

sample/android/app/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ android {
124124
dependencies {
125125
// The version of react-native is set by the React Native Gradle Plugin
126126
implementation("com.facebook.react:react-android")
127-
implementation("com.facebook.react:flipper-integration")
128127

129128
implementation project(":react-native-config")
130129

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ 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.flipper.ReactNativeFlipper
1312
import com.facebook.soloader.SoLoader
1413

1514
class MainApplication : Application(), ReactApplication {
@@ -31,7 +30,7 @@ class MainApplication : Application(), ReactApplication {
3130
}
3231

3332
override val reactHost: ReactHost
34-
get() = getDefaultReactHost(this.applicationContext, reactNativeHost)
33+
get() = getDefaultReactHost(applicationContext, reactNativeHost)
3534

3635
override fun onCreate() {
3736
super.onCreate()
@@ -40,6 +39,5 @@ class MainApplication : Application(), ReactApplication {
4039
// If you opted-in for the New Architecture, we load the native entry point for this app.
4140
load()
4241
}
43-
ReactNativeFlipper.initializeFlipper(this, reactNativeHost.reactInstanceManager)
4442
}
4543
}

sample/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ buildscript {
55
minSdkVersion = 23
66
compileSdkVersion = 34
77
targetSdkVersion = 34
8-
ndkVersion = "25.1.8937393"
9-
kotlinVersion = "1.8.0"
8+
ndkVersion = "26.1.10909125"
9+
kotlinVersion = "1.9.22"
1010

1111
}
1212
repositories {

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

sample/android/gradlew

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,15 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
145145
case $MAX_FD in #(
146146
max*)
147147
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
148-
# shellcheck disable=SC3045
148+
# shellcheck disable=SC2039,SC3045
149149
MAX_FD=$( ulimit -H -n ) ||
150150
warn "Could not query maximum file descriptor limit"
151151
esac
152152
case $MAX_FD in #(
153153
'' | soft) :;; #(
154154
*)
155155
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
156-
# shellcheck disable=SC3045
156+
# shellcheck disable=SC2039,SC3045
157157
ulimit -n "$MAX_FD" ||
158158
warn "Could not set maximum file descriptor limit to $MAX_FD"
159159
esac
@@ -201,11 +201,11 @@ if "$cygwin" || "$msys" ; then
201201
done
202202
fi
203203

204-
# Collect all arguments for the java command;
205-
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
206-
# shell script including quotes and variable substitutions, so put them in
207-
# double quotes to make sure that they get re-expanded; and
208-
# * put everything else in single quotes, so that it's not re-expanded.
204+
# Collect all arguments for the java command:
205+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
206+
# and any embedded shellness will be escaped.
207+
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
208+
# treated as '${Hostname}' itself on the command line.
209209

210210
set -- \
211211
"-Dorg.gradle.appname=$APP_BASE_NAME" \

0 commit comments

Comments
 (0)