Skip to content

Commit bdb2bd5

Browse files
authored
Update Android and iOS native deps (#146)
* bump Android to 20.34.+ and iOS to 23.18.0 * Update to RN 0.69.9 and apply iOS example app fix for XCode 15
1 parent a4ea79c commit bdb2bd5

File tree

9 files changed

+704
-466
lines changed

9 files changed

+704
-466
lines changed

android/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,8 @@ dependencies {
130130
// noinspection GradleDynamicVersion
131131
api 'com.facebook.react:react-native:+'
132132
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
133-
implementation "com.stripe:identity:$stripe_version"
133+
implementation("com.stripe:identity:$stripe_version") {
134+
exclude group: 'androidx.emoji2', module: 'emoji2'
135+
}
136+
implementation('androidx.emoji2:emoji2:1.3.0').force // Avoid using 1.4.0 since that requires targetSdkVersion 34
134137
}

android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# When StripeIdentityReactNative_kotlinVersion and StripeIdentityReactNative_stripeVersion is updated, also need to update StripeSdk_kotlinVersion and StripeSdk_stripeVersion in https://github.com/stripe/stripe-react-native/blob/master/android/gradle.properties
22
StripeIdentityReactNative_kotlinVersion=1.8.0
3-
StripeIdentityReactNative_stripeVersion=20.29.+
3+
StripeIdentityReactNative_stripeVersion=20.34.+
44
StripeIdentityReactNative_compileSdkVersion=31
55
StripeIdentityReactNative_targetSdkVersion=31

example/ios/Podfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ target 'StripeIdentityReactNativeExample' do
2525
installer.pods_project.targets.each do |target|
2626
target.build_configurations.each do |config|
2727
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
28+
# workardound for xcode15: https://github.com/facebook/react-native/issues/37748#issuecomment-1580589448
29+
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION']
2830
end
2931
end
3032
end

0 commit comments

Comments
 (0)