Add beta build type

This commit is contained in:
Shinokuni 2024-08-18 13:11:27 +02:00
parent 7d97588c86
commit 14af99c8df
5 changed files with 31 additions and 0 deletions

View File

@ -6,6 +6,14 @@ plugins {
android {
namespace = "com.readrops.api"
buildTypes {
create("beta") {
initWith(getByName("release"))
signingConfig = signingConfigs.getByName("debug")
}
}
sourceSets {
getByName("androidTest") {
assets.srcDirs("$projectDir/androidTest/assets")

View File

@ -19,6 +19,8 @@ android {
buildTypes {
release {
isMinifyEnabled = true
isShrinkResources = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
@ -32,6 +34,13 @@ android {
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")
}
create("beta") {
initWith(getByName("release"))
applicationIdSuffix = ".beta"
signingConfig = signingConfigs.getByName("debug")
}
}
buildFeatures {

View File

@ -20,6 +20,9 @@
# hide the original source file name.
#-renamesourcefileattribute SourceFile
# help debug release versions
-dontobfuscate
-dontwarn org.xmlpull.v1.XmlPullParser
-dontwarn org.xmlpull.v1.XmlSerializer
-keep class org.xmlpull.v1.* {*;}

View File

@ -0,0 +1,3 @@
<resources>
<string name="app_name" translatable="false">ReadropsBeta</string>
</resources>

View File

@ -7,6 +7,14 @@ plugins {
android {
namespace = "com.readrops.db"
buildTypes {
create("beta") {
initWith(getByName("release"))
signingConfig = signingConfigs.getByName("debug")
}
}
defaultConfig {
consumerProguardFiles("consumer-rules.pro")
}