FEAT => 本次更新项目为:提交
This commit is contained in:
@@ -9,7 +9,6 @@ android {
|
||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
aaptOptions {
|
||||
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
|
||||
// Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61
|
||||
@@ -22,12 +21,21 @@ android {
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
// 完全禁用测试
|
||||
testOptions {
|
||||
unitTests.all {
|
||||
enabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
flatDir{
|
||||
dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs'
|
||||
}
|
||||
// 移除 flatDir,使用标准的 maven 仓库
|
||||
google()
|
||||
mavenCentral()
|
||||
maven { url 'https://maven.aliyun.com/repository/public' }
|
||||
maven { url 'https://maven.aliyun.com/repository/google' }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -36,9 +44,6 @@ dependencies {
|
||||
implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
|
||||
implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion"
|
||||
implementation project(':capacitor-android')
|
||||
testImplementation "junit:junit:$junitVersion"
|
||||
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
||||
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
||||
implementation project(':capacitor-cordova-android-plugins')
|
||||
}
|
||||
|
||||
|
||||
8
nkebao/android/app/gradle.properties
Normal file
8
nkebao/android/app/gradle.properties
Normal file
@@ -0,0 +1,8 @@
|
||||
# 禁用所有测试
|
||||
android.enableUnitTestBinaryResources=false
|
||||
android.enableAndroidTestBinaryResources=false
|
||||
android.testInstrumentationRunner=androidx.test.runner.AndroidJUnitRunner
|
||||
|
||||
# 跳过测试任务
|
||||
android.testOptions.unitTests.all.enabled=false
|
||||
android.testOptions.androidTest.enabled=false
|
||||
Reference in New Issue
Block a user