From 28336265e822ab4b2ff1697fd5066fc0cfd88861 Mon Sep 17 00:00:00 2001 From: Carey Metcalfe Date: Fri, 13 Oct 2017 22:34:23 -0400 Subject: Use product flavours to enable builds without proprietary libraries This commit uses build flavours to provide two different builds: A 'floss' build and a 'google' build. - The 'floss' build builds a basic version of the app with no dependencies on proprietary libraries. - The 'google' build adds Chromecast support and a few other extras provided by Google Play Services --- app/build.gradle | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'app/build.gradle') diff --git a/app/build.gradle b/app/build.gradle index 26afb5ea..47604723 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -28,6 +28,16 @@ android { } } + productFlavors { + floss { + // FLOSS build (no proprietary libraries) + } + google { + // FLOSS build + Google libraries + // Adds ChromeCast support + } + } + packagingOptions { exclude 'META-INF/beans.xml' } @@ -51,7 +61,7 @@ dependencies { compile 'com.android.support:mediarouter-v7:24.2.+' compile 'com.android.support:recyclerview-v7:24.2.+' compile 'com.android.support:design:24.2.+' - compile 'com.google.android.gms:play-services-cast:8.1.0' + googleCompile 'com.google.android.gms:play-services-cast:8.1.0' compile 'com.sothree.slidinguppanel:library:3.0.0' compile 'de.hdodenhof:circleimageview:1.2.1' compile 'com.shehabic.droppy:Droppy:0.5.1@aar' -- cgit v1.2.3