ilink-world/android/build.gradle

62 lines
1.7 KiB
Groovy
Raw Normal View History

2020-03-15 21:17:44 +00:00
buildscript {
ext {
2023-10-10 13:30:27 +00:00
androidXCore = "1.6.0"
2023-03-12 23:38:33 +00:00
buildToolsVersion = "30.0.2"
minSdkVersion = 21
compileSdkVersion = 30
targetSdkVersion = 30
kotlinVersion = "1.5.31"
ndkVersion = "20.1.5948944"
2023-10-10 13:30:27 +00:00
supportLibVersion = "28"
// kotlin_version = '1.6.10'
2020-03-15 21:17:44 +00:00
}
repositories {
google()
//jcenter()
2023-03-12 23:38:33 +00:00
mavenCentral()
maven { url 'https://www.jitpack.io' }
2020-03-15 21:17:44 +00:00
}
2023-10-10 13:30:27 +00:00
2020-03-15 21:17:44 +00:00
dependencies {
2023-03-12 23:38:33 +00:00
classpath('com.android.tools.build:gradle:4.2.1')
2023-10-10 13:30:27 +00:00
//classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
2020-03-15 21:17:44 +00:00
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
2020-03-22 11:07:44 +00:00
subprojects {
afterEvaluate {project ->
if (project.hasProperty("android")) {
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
}
}
}
}
2020-03-15 21:17:44 +00:00
allprojects {
repositories {
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")
}
2023-03-12 23:38:33 +00:00
mavenCentral {
// We don't want to fetch react-native from Maven Central as there are
// older versions over there.
content {
excludeGroup "com.facebook.react"
}
}
2020-03-15 21:17:44 +00:00
google()
// jcenter()
2023-03-12 23:38:33 +00:00
maven { url 'https://www.jitpack.io' }
2020-03-15 21:17:44 +00:00
}
2023-03-12 23:38:33 +00:00
}