From d350afe26b15810e1956c1a85404f19180aafd4a Mon Sep 17 00:00:00 2001 From: BlackMesa123 Date: Mon, 20 Feb 2023 16:27:54 +0100 Subject: [PATCH] app: gradle: define SEP Lite flavour Let's keep using "com.samsung.device" library to prevent the app from being installed on non Samsung OSs, attempts to use other system shared libraries failed. Signed-off-by: BlackMesa123 --- app/build.gradle.kts | 20 ++++++++ app/config/AndroidManifest_SEPBasic.xml | 66 +++++++++++++++++++++++++ app/config/AndroidManifest_SEPLite.xml | 66 +++++++++++++++++++++++++ app/src/main/AndroidManifest.xml | 4 -- 4 files changed, 152 insertions(+), 4 deletions(-) create mode 100644 app/config/AndroidManifest_SEPBasic.xml create mode 100644 app/config/AndroidManifest_SEPLite.xml diff --git a/app/build.gradle.kts b/app/build.gradle.kts index e232f31..d9ad3e3 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -70,6 +70,26 @@ android { proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") } } + + flavorDimensions += "sepCategory" + + productFlavors { + create("sepBasic") { + dimension = "sepCategory" + } + create("sepLite") { + dimension = "sepCategory" + } + } + + sourceSets { + named("sepBasic") { + manifest.srcFile("config/AndroidManifest_SEPBasic.xml") + } + named("sepLite") { + manifest.srcFile("config/AndroidManifest_SEPLite.xml") + } + } } configurations.all { diff --git a/app/config/AndroidManifest_SEPBasic.xml b/app/config/AndroidManifest_SEPBasic.xml new file mode 100644 index 0000000..7a8af10 --- /dev/null +++ b/app/config/AndroidManifest_SEPBasic.xml @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/config/AndroidManifest_SEPLite.xml b/app/config/AndroidManifest_SEPLite.xml new file mode 100644 index 0000000..d9c34d7 --- /dev/null +++ b/app/config/AndroidManifest_SEPLite.xml @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 7a8af10..3f3a22c 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -8,10 +8,6 @@ android:supportsRtl="true" android:theme="@style/Theme.KnoxPatch"> - -