1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

Compare commits

..

1 Commits

Author SHA1 Message Date
aa51d442e7 set gradle mirrors 2024-03-21 11:44:19 +08:00
4 changed files with 41 additions and 9 deletions

View File

@ -1,6 +1,3 @@
# Minimum React Native Project
minimum-reproducible-code-for-react-native
```bash
# build apk

View File

@ -81,10 +81,6 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
ndk {
// universalApk ABIs
abiFilters "arm64-v8a"
}
}
signingConfigs {
debug {

View File

@ -8,8 +8,37 @@ buildscript {
kotlinVersion = "1.8.0"
}
repositories {
/**
* google
*/
maven { url "https://maven.aliyun.com/repository/google" }
/**
* gradle-plugin
* : https://plugins.gradle.org/m2/
*/
maven { url "https://maven.aliyun.com/repository/gradle-plugin" }
/**
* central仓和jcenter仓的聚合仓
* (): https://maven.aliyun.com/nexus/content/groups/public/
*/
maven { url "https://maven.aliyun.com/repository/public" }
/**
* central
* : https://repo1.maven.org/maven2/
*/
maven { url "https://maven.aliyun.com/repository/central" }
/**
* jcenter
*/
maven { url "https://maven.aliyun.com/repository/jcenter" }
//
google()
mavenCentral()
// mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle")
@ -19,3 +48,13 @@ buildscript {
}
apply plugin: "com.facebook.react.rootproject"
allprojects {
repositories {
maven { url "https://maven.aliyun.com/repository/google" }
maven { url "https://maven.aliyun.com/repository/gradle-plugin" }
maven { url "https://maven.aliyun.com/repository/public" }
maven { url "https://maven.aliyun.com/repository/central" }
maven { url "https://maven.aliyun.com/repository/jcenter" }
}
}

View File

@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
distributionUrl=https\://mirrors.cloud.tencent.com/gradle/gradle-8.3-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME