Move more of the build into support lib
This CL brings flatfoot's build closer to the support lib.
Now we are also using a global libs map instead of version
numbers. We are also relying on support lib to do the
basic initialization & release tasks.
I've also introduced USE_SUPPORT_LIB_SOURCE environment
flag to build w/ ToT support lib which can be handy while
developing. I'll update support.lib build to include
necessary flatfoot components. That will be the main place
to do the integrated development.
Test: build works
Bug: N/A
Change-Id: I3c6f3777ba66c4cb8f74fc8ce12c5284d399cc1d
diff --git a/lifecycle/extensions/build.gradle b/lifecycle/extensions/build.gradle
index 966c49d..2066969 100644
--- a/lifecycle/extensions/build.gradle
+++ b/lifecycle/extensions/build.gradle
@@ -2,12 +2,12 @@
apply plugin: 'maven'
android {
- compileSdkVersion compile_sdk_version
- buildToolsVersion build_tools_version
+ compileSdkVersion tools.current_sdk
+ buildToolsVersion tools.build_tools_version
defaultConfig {
- minSdkVersion min_sdk_version
- targetSdkVersion target_sdk_version
+ minSdkVersion flatfoot.min_sdk
+ targetSdkVersion tools.current_sdk
versionCode 1
versionName "1.0"
@@ -28,19 +28,20 @@
dependencies {
compile project(":lifecycle:common")
compile project(":lifecycle:runtime")
- compile project(":apptoolkit-core")
- compile "com.android.support:support-fragment:$support_lib_version"
- testCompile project(":apptoolkit-core-testing")
- testCompile "junit:junit:$junit_version"
- testCompile "org.mockito:mockito-all:$mockito_version"
- testCompile("com.android.support.test:runner:$atsl_version") {
+ compile project(":apptoolkit:core")
+ compile libs.support.fragments
+ testCompile project(":apptoolkit:core-testing")
+ testCompile libs.junit
+ testCompile libs.mockito.all
+ // TODO remove ?
+ testCompile(libs.test_runner) {
exclude module: 'support-annotations'
}
- androidTestCompile("com.android.support.test:runner:$atsl_version") {
+ androidTestCompile(libs.test_runner) {
exclude module: 'support-annotations'
}
- androidTestCompile "com.android.support:appcompat-v7:$support_lib_version"
- androidTestCompile("com.android.support.test.espresso:espresso-core:$espresso_version", {
+ androidTestCompile libs.support.app_compat
+ androidTestCompile(libs.espresso_core, {
exclude group: 'com.android.support', module: 'support-annotations'
})
}