36 lines
1.1 KiB
Groovy
36 lines
1.1 KiB
Groovy
buildscript {
|
|
ext {
|
|
buildToolsVersion = "34.0.0"
|
|
minSdkVersion = 23
|
|
compileSdkVersion = 34
|
|
targetSdkVersion = 34
|
|
ndkVersion = "26.1.10909125"
|
|
kotlinVersion = "1.9.22"
|
|
}
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
maven { url 'https://maven.aliyun.com/repository/google' }
|
|
maven { url 'https://maven.aliyun.com/repository/public' }
|
|
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
|
|
}
|
|
dependencies {
|
|
classpath("com.android.tools.build:gradle")
|
|
classpath("com.facebook.react:react-native-gradle-plugin")
|
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
|
|
}
|
|
}
|
|
allprojects {
|
|
repositories {
|
|
// 添加阿里云 maven 镜像
|
|
maven { url 'https://maven.aliyun.com/repository/google' }
|
|
maven { url 'https://maven.aliyun.com/repository/public' }
|
|
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
|
|
// 原有的仓库配置
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
apply plugin: "com.facebook.react.rootproject"
|