Skip to content

Commit

Permalink
chore: update android build dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
HayesGordon committed Jul 26, 2023
1 parent 281c986 commit f15aa19
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 35 deletions.
10 changes: 2 additions & 8 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ buildscript {
}

dependencies {
classpath "com.android.tools.build:gradle:4.1.2"
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
// noinspection DifferentKotlinGradleVersion
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
Expand Down Expand Up @@ -37,13 +38,6 @@ android {

}

packagingOptions {
pickFirst "lib/x86/libc++_shared.so"
pickFirst "lib/x86_64/libc++_shared.so"
pickFirst "lib/armeabi-v7a/libc++_shared.so"
pickFirst "lib/arm64-v8a/libc++_shared.so"
}

buildTypes {
release {
minifyEnabled false
Expand Down
6 changes: 3 additions & 3 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def enableProguardInReleaseBuilds = false
def jscFlavor = 'org.webkit:android-jsc:+'

android {
ndkVersion "22.1.7171670"
ndkVersion "25.1.8937393"
compileSdkVersion rootProject.ext.compileSdkVersion

compileOptions {
Expand Down Expand Up @@ -185,14 +185,14 @@ android {

dependencies {
// The version of react-native is set by the React Native Gradle Plugin
implementation "com.facebook.react:react-native:+" // From node_modules
implementation "com.facebook.react:react-android"
implementation "androidx.startup:startup-runtime:1.1.1"
implementation ("androidx.appcompat:appcompat:1.3.1") {
version {
strictly '1.3.1'
}
}

debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
exclude group:'com.facebook.fbjni'
}
Expand Down
24 changes: 0 additions & 24 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,3 @@ buildscript {
// in the individual module build.gradle files
}
}

allprojects {
repositories {
mavenCentral()
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}

google()
maven { url 'https://www.jitpack.io' }
}

configurations.all {
resolutionStrategy {
force 'com.facebook.react:react-native:0.66.4'
}
}
}

0 comments on commit f15aa19

Please sign in to comment.