mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 01:08:50 -06:00
Disable pre-dexing
This commit is contained in:
12
build.gradle
12
build.gradle
@@ -13,3 +13,15 @@ allprojects {
|
||||
jcenter()
|
||||
}
|
||||
}
|
||||
|
||||
project.ext.preDexLibs = !project.hasProperty('disablePreDex')
|
||||
|
||||
subprojects {
|
||||
project.plugins.whenPluginAdded { plugin ->
|
||||
if ("com.android.build.gradle.AppPlugin".equals(plugin.class.name)) {
|
||||
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
|
||||
} else if ("com.android.build.gradle.LibraryPlugin".equals(plugin.class.name)) {
|
||||
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,7 @@ test:
|
||||
parallel: true
|
||||
- circle-android wait-for-boot
|
||||
- adb shell input keyevent 82
|
||||
- ./gradlew connectedAndroidTest
|
||||
- ./gradlew -PdisablePreDex connectedAndroidTest
|
||||
- cp -r app/build/outputs $CIRCLE_ARTIFACTS || echo ok
|
||||
- cp -r app/build/reports/androidTests/connected/* $CIRCLE_TEST_REPORTS || echo ok
|
||||
- adb logcat -d > $CIRCLE_TEST_REPORTS/logcat.txt
|
||||
Reference in New Issue
Block a user