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" + } + } }