diff options
| -rw-r--r-- | org.fox.epube/build.gradle | 16 | ||||
| -rw-r--r-- | org.fox.epube/src/main/AndroidManifest.xml | 3 | ||||
| -rw-r--r-- | org.fox.epube/src/main/res/mipmap-hdpi/ic_launcher_variant.xml | 9 |
3 files changed, 25 insertions, 3 deletions
diff --git a/org.fox.epube/build.gradle b/org.fox.epube/build.gradle index 4e63932..76a5b85 100644 --- a/org.fox.epube/build.gradle +++ b/org.fox.epube/build.gradle @@ -8,13 +8,16 @@ android { defaultConfig { applicationId "org.fox.epube" - minSdkVersion 24 + minSdkVersion 26 //noinspection ExpiredTargetSdkVersion targetSdkVersion 33 compileSdk 35 versionCode getGitVersionCode() versionName getVersion() buildConfigField "String", "EPUBE_BASE_URL", "\"https://epube-dev.fakecake.org\"" + manifestPlaceholders = [ + appIcon: "@mipmap/ic_launcher" + ] } signingConfigs { @@ -36,8 +39,19 @@ android { } buildTypes { + debug { + minifyEnabled false + versionNameSuffix "-debug" + applicationIdSuffix ".debug" + resValue "string", "app_name", "The Epube (debug)" + manifestPlaceholders = [ + appIcon: "@mipmap/ic_launcher_variant" + ] + } + release { minifyEnabled false + versionNameSuffix "-unsigned" proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.txt' buildConfigField "String", "EPUBE_BASE_URL", "\"https://books.fakecake.org\"" } diff --git a/org.fox.epube/src/main/AndroidManifest.xml b/org.fox.epube/src/main/AndroidManifest.xml index ffdb2b6..addc450 100644 --- a/org.fox.epube/src/main/AndroidManifest.xml +++ b/org.fox.epube/src/main/AndroidManifest.xml @@ -9,9 +9,8 @@ <application android:name=".Application" android:allowBackup="true" - android:icon="@mipmap/ic_launcher" + android:icon="${appIcon}" android:label="@string/app_name" - android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme" tools:ignore="GoogleAppIndexingWarning"> diff --git a/org.fox.epube/src/main/res/mipmap-hdpi/ic_launcher_variant.xml b/org.fox.epube/src/main/res/mipmap-hdpi/ic_launcher_variant.xml new file mode 100644 index 0000000..0c31e57 --- /dev/null +++ b/org.fox.epube/src/main/res/mipmap-hdpi/ic_launcher_variant.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background> + <shape> + <solid android:color="#404040" /> + </shape> + </background> + <foreground android:drawable="@mipmap/ic_launcher_foreground"/> +</adaptive-icon> \ No newline at end of file |
