From 643e1ba8ae3b748460545c25d74d0e6ed7d24dc2 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 24 Jul 2016 10:03:43 +0200 Subject: [PATCH] Product flavor for KitKat and Lollipop and later --- app/app.iml | 132 +++++++++++----------- app/build.gradle | 27 +++-- app/src/kitkat/AndroidManifest.xml | 172 +++++++++++++++++++++++++++++ app/src/main/AndroidManifest.xml | 1 - 4 files changed, 251 insertions(+), 81 deletions(-) create mode 100644 app/src/kitkat/AndroidManifest.xml diff --git a/app/app.iml b/app/app.iml index 2766f3dd..8d132042 100644 --- a/app/app.iml +++ b/app/app.iml @@ -8,12 +8,12 @@ - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -104,14 +104,6 @@ - - - - - - - - @@ -120,6 +112,14 @@ + + + + + + + + diff --git a/app/build.gradle b/app/build.gradle index 212819d9..55fea9a8 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -7,19 +7,6 @@ model { defaultConfig { applicationId = "eu.faircode.netguard" - minSdkVersion.apiLevel = 14 - targetSdkVersion.apiLevel = 24 - versionCode = 2016072401 - versionName = "2.43" - archivesBaseName = "NetGuard-v$versionName-$versionCode-sdk-$targetSdkVersion.apiLevel" - - buildConfigFields { - create() { - type "int" - name "VALUE" - value "1" - } - } } compileOptions.with { @@ -67,7 +54,19 @@ model { } productFlavors { - create("all") { + create("kitkat") { + versionName = "2.43" + minSdkVersion.apiLevel = 14 + targetSdkVersion.apiLevel = 19 + versionCode = 2016072410 + archivesBaseName = "NetGuard-v$versionName" + } + create("lollipop") { + versionName = "2.43" + minSdkVersion.apiLevel = 20 + targetSdkVersion.apiLevel = 24 + versionCode = 2016072420 + archivesBaseName = "NetGuard-v$versionName" } } } diff --git a/app/src/kitkat/AndroidManifest.xml b/app/src/kitkat/AndroidManifest.xml new file mode 100644 index 00000000..e18b339f --- /dev/null +++ b/app/src/kitkat/AndroidManifest.xml @@ -0,0 +1,172 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index e18b339f..337b322f 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -9,7 +9,6 @@ -