Skip to content

Commit

Permalink
Merge pull request #1047 from breez/savage-android-example-fix
Browse files Browse the repository at this point in the history
Fix Kotlin incompatibility error in RN Android example
  • Loading branch information
dangeross authored Aug 8, 2024
2 parents 74a8208 + 341b124 commit 0eb0f6a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 628 deletions.
1 change: 1 addition & 0 deletions libs/sdk-react-native/example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ buck-out/

# Ruby / CocoaPods
/ios/Pods/
/ios/Podfile.lock
/vendor/bundle/

.watchman-cookie-.*
3 changes: 3 additions & 0 deletions libs/sdk-react-native/example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,9 @@ dependencies {

implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"

implementation "androidx.core:core-ktx:1.3.2"
implementation "org.jetbrains.kotlin:kotlin-stdlib:${rootProject.ext.kotlinVersion}"

debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
exclude group:'com.facebook.fbjni'
}
Expand Down
10 changes: 6 additions & 4 deletions libs/sdk-react-native/example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

buildscript {
ext {
buildToolsVersion = "31.0.0"
minSdkVersion = 21
compileSdkVersion = 31
targetSdkVersion = 31
buildToolsVersion = "33.0.0"
minSdkVersion = 24
compileSdkVersion = 33
targetSdkVersion = 33
kotlinVersion = "1.8.0"

if (System.properties['os.arch'] == "aarch64") {
// For M1 Users we need to use the NDK 24 which added support for aarch64
Expand All @@ -23,6 +24,7 @@ buildscript {
classpath("com.android.tools.build:gradle:7.2.1")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("de.undercouch:gradle-download-task:5.0.1")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
Loading

0 comments on commit 0eb0f6a

Please sign in to comment.