diff options
| author | fox <fox@fakecake.org> | 2026-03-11 21:42:17 +0300 |
|---|---|---|
| committer | fox <fox@fakecake.org> | 2026-03-11 21:42:17 +0300 |
| commit | e73c27ccde64af75c5e0a449a506bb50bfc9a736 (patch) | |
| tree | fa6a046f56b350a81248c693c67124ceb782458c | |
| parent | 397ca683717ba9e10a440a81f194279f0d8d0d83 (diff) | |
| parent | 1af4a0b1db22b0c07aaea23d91f02d0c76a65c1d (diff) | |
| download | the-epube-android-26.03-e73c27cc-signed.tar.gz the-epube-android-26.03-e73c27cc-signed.tar.xz | |
Merge branch 'dev' into 'master' 26.03-e73c27cc-signed
add separate debug package id & icon See merge request git/the-epube-android!4
| -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 |
