mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Disable pre-dexing
This commit is contained in:
12
build.gradle
12
build.gradle
@@ -13,3 +13,15 @@ allprojects {
|
|||||||
jcenter()
|
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
|
parallel: true
|
||||||
- circle-android wait-for-boot
|
- circle-android wait-for-boot
|
||||||
- adb shell input keyevent 82
|
- adb shell input keyevent 82
|
||||||
- ./gradlew connectedAndroidTest
|
- ./gradlew -PdisablePreDex connectedAndroidTest
|
||||||
- cp -r app/build/outputs $CIRCLE_ARTIFACTS || echo ok
|
- cp -r app/build/outputs $CIRCLE_ARTIFACTS || echo ok
|
||||||
- cp -r app/build/reports/androidTests/connected/* $CIRCLE_TEST_REPORTS || echo ok
|
- cp -r app/build/reports/androidTests/connected/* $CIRCLE_TEST_REPORTS || echo ok
|
||||||
- adb logcat -d > $CIRCLE_TEST_REPORTS/logcat.txt
|
- adb logcat -d > $CIRCLE_TEST_REPORTS/logcat.txt
|
||||||
Reference in New Issue
Block a user