robosats/mobile/android/build.gradle

63 lines
2.0 KiB
Groovy
Raw Normal View History

import org.apache.tools.ant.taskdefs.condition.Os
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
2023-05-26 17:29:35 +00:00
buildToolsVersion = "33.0.0"
minSdkVersion = 26
2023-05-26 17:29:35 +00:00
compileSdkVersion = 33
targetSdkVersion = 33
2023-05-22 21:30:24 +00:00
kotlin_version = "1.8.21"
if (System.properties['os.arch'] == "aarch64") {
// For M1 Users we need to use the NDK 24 which added support for aarch64
ndkVersion = "25.1.8937393"
} else {
// Otherwise we default to the side-by-side NDK version from AGP.
ndkVersion = "21.4.7075529"
}
}
repositories {
2023-05-23 11:31:57 +00:00
maven {
// Replace AAR from original RN with AAR from react-native-v8
url("$rootDir/../node_modules/react-native-v8/dist")
}
maven {
// prebuilt libv8android.so
url("$rootDir/../node_modules/v8-android/dist")
}
google()
mavenCentral()
}
dependencies {
2023-05-22 21:30:24 +00:00
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath('com.android.tools.build:gradle:7.3.1')
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("de.undercouch:gradle-download-task:5.0.1")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
2023-05-22 21:30:24 +00:00
mavenCentral()
google()
maven { url 'https://www.jitpack.io' }
}
2023-05-22 21:30:24 +00:00
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'org.jetbrains.kotlin' &&
details.requested.name.startsWith("kotlin-stdlib")) {
details.useVersion "1.8.21"
}
}
}
}