From 8c610f6b7cf314bf66f2920e3c70a0e4862712ad Mon Sep 17 00:00:00 2001 From: Daniel Bowman Date: Sun, 18 Nov 2018 22:03:43 +0000 Subject: [PATCH] Migrate to gradle 3.2.1 --- AndroidManifest.xml | 3 --- build.gradle | 41 ++++++++++++++++++++++++++++++++++++----- 2 files changed, 36 insertions(+), 8 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 6eb0cfd..0a01ed9 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -2,8 +2,5 @@ - - diff --git a/build.gradle b/build.gradle index 09c607b..e7c67b0 100644 --- a/build.gradle +++ b/build.gradle @@ -1,26 +1,32 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.2.1' } } -apply plugin: 'android-library' +apply plugin: 'com.android.library' repositories { jcenter() + google() } dependencies { - compile 'com.android.support:support-v4:18.0.+' + implementation 'com.android.support:support-v4:18.0.+' } android { - compileSdkVersion 22 - buildToolsVersion '25.0.0' + compileSdkVersion 27 + + defaultConfig { + targetSdkVersion 26 + minSdkVersion = 8 + } sourceSets { main { @@ -33,4 +39,29 @@ android { assets.srcDirs = ['assets'] } } + + buildTypes { + release { + minifyEnabled true + proguardFiles 'proguard.cfg' + zipAlignEnabled true + } + fix { + minifyEnabled true + proguardFiles 'proguard.cfg' + zipAlignEnabled true + } + } + flavorDimensions "version" + productFlavors { + floss { + // FLOSS build (no proprietary libraries) + dimension "version" + } + google { + // FLOSS build + Google libraries + // Adds ChromeCast support + dimension "version" + } + } }