Fix gradle free builds
This commit is contained in:
parent
a2d3e83440
commit
93bc61b197
|
@ -109,9 +109,23 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
configurations {
|
||||
freeDebugCompile
|
||||
freeReleaseCompile
|
||||
playDebugCompile
|
||||
playReleaseCompile
|
||||
}
|
||||
|
||||
dependencies {
|
||||
freeCompile project(path: ":core", configuration: "freeRelease")
|
||||
playCompile project(path: ":core", configuration: "playRelease")
|
||||
freeDebugCompile project(path: ":core", configuration: "freeDebug")
|
||||
freeReleaseCompile project(path: ":core", configuration: "freeRelease")
|
||||
// free build hack: skip some dependencies
|
||||
if (!doFreeBuild()) {
|
||||
playDebugCompile project(path: ":core", configuration: "playDebug")
|
||||
playReleaseCompile project(path: ":core", configuration: "playRelease")
|
||||
} else {
|
||||
System.out.println("app: free build hack, skipping some dependencies")
|
||||
}
|
||||
compile "com.android.support:support-v4:$supportVersion"
|
||||
compile "com.android.support:appcompat-v7:$supportVersion"
|
||||
compile "com.android.support:design:$supportVersion"
|
||||
|
|
|
@ -70,3 +70,8 @@ project.ext {
|
|||
task wrapper(type: Wrapper) {
|
||||
gradleVersion = "2.11"
|
||||
}
|
||||
|
||||
// free build hack: common functions
|
||||
def doFreeBuild() {
|
||||
return System.properties["freeBuildHackDoFreeBuild"] == "true"
|
||||
}
|
||||
|
|
|
@ -67,9 +67,14 @@ dependencies {
|
|||
compile "com.github.AntennaPod:AntennaPod-AudioPlayer:$audioPlayerVersion"
|
||||
|
||||
// Add casting features
|
||||
playCompile "com.google.android.libraries.cast.companionlibrary:ccl:$castCompanionLibVer"
|
||||
compile "com.android.support:mediarouter-v7:$supportVersion"
|
||||
playCompile "com.google.android.gms:play-services-cast:$playServicesVersion"
|
||||
// free build hack: skip some dependencies
|
||||
if (!doFreeBuild()) {
|
||||
playCompile "com.google.android.libraries.cast.companionlibrary:ccl:$castCompanionLibVer"
|
||||
compile "com.android.support:mediarouter-v7:$supportVersion"
|
||||
playCompile "com.google.android.gms:play-services-cast:$playServicesVersion"
|
||||
} else {
|
||||
System.out.println("core: free build hack, skipping some dependencies")
|
||||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
|
|
Loading…
Reference in New Issue