Skip to content

Commit

Permalink
Update Android and iOS native deps (#146)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
ccen-stripe authored Nov 3, 2023
1 parent a4ea79c commit bdb2bd5
Show file tree
Hide file tree
Showing 9 changed files with 704 additions and 466 deletions.
5 changes: 4 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,8 @@ dependencies {
// noinspection GradleDynamicVersion
api 'com.facebook.react:react-native:+'
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "com.stripe:identity:$stripe_version"
implementation("com.stripe:identity:$stripe_version") {
exclude group: 'androidx.emoji2', module: 'emoji2'
}
implementation('androidx.emoji2:emoji2:1.3.0').force // Avoid using 1.4.0 since that requires targetSdkVersion 34
}
2 changes: 1 addition & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 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
StripeIdentityReactNative_kotlinVersion=1.8.0
StripeIdentityReactNative_stripeVersion=20.29.+
StripeIdentityReactNative_stripeVersion=20.34.+
StripeIdentityReactNative_compileSdkVersion=31
StripeIdentityReactNative_targetSdkVersion=31
2 changes: 2 additions & 0 deletions example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ target 'StripeIdentityReactNativeExample' do
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
# workardound for xcode15: https://github.com/facebook/react-native/issues/37748#issuecomment-1580589448
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION']
end
end
end
Expand Down
Loading

0 comments on commit bdb2bd5

Please sign in to comment.