diff options
author | drabux <drabux@fouragan.net> | 2016-06-08 20:11:26 +0200 |
---|---|---|
committer | drabux <drabux@fouragan.net> | 2016-06-08 20:11:26 +0200 |
commit | 93bc61b197608d6b61370e1540c9e1b65d65443a (patch) | |
tree | 795875a07d081bd35a29503d5e208f14cd981eec /core | |
parent | a2d3e834407399139acc6c821c16b075082c4ae9 (diff) | |
download | AntennaPod-93bc61b197608d6b61370e1540c9e1b65d65443a.zip |
Fix gradle free builds
Diffstat (limited to 'core')
-rw-r--r-- | core/build.gradle | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/core/build.gradle b/core/build.gradle index fa95800c2..d440a163f 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -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 { |