Remove unused beta stuff, added beta ribbon
Beta builds will contain a ribbon instead of the name change.
This commit is contained in:
parent
3bbe52eadb
commit
bcf653da28
9 changed files with 34 additions and 16 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
import com.project.starter.easylauncher.filter.ColorRibbonFilter
|
||||||
|
import com.android.build.gradle.internal.api.BaseVariantOutputImpl
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id(AppPlugins.androidApplication)
|
id(AppPlugins.androidApplication)
|
||||||
|
|
||||||
|
@ -5,6 +8,8 @@ plugins {
|
||||||
kotlin(AppPlugins.kapt)
|
kotlin(AppPlugins.kapt)
|
||||||
id(AppPlugins.kotlinExtensions)
|
id(AppPlugins.kotlinExtensions)
|
||||||
// id(AppPlugins.kotlinParcelize)
|
// id(AppPlugins.kotlinParcelize)
|
||||||
|
|
||||||
|
id(AppPlugins.easylauncher) version (AppPlugins.Versions.easylauncher)
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
|
@ -84,12 +89,6 @@ android {
|
||||||
dimension = Flavors.Dimensions.release
|
dimension = Flavors.Dimensions.release
|
||||||
|
|
||||||
versionNameSuffix = "-${BetaConfig.betaSuffix}${BetaConfig.betaSuffixVersion}"
|
versionNameSuffix = "-${BetaConfig.betaSuffix}${BetaConfig.betaSuffixVersion}"
|
||||||
|
|
||||||
buildConfigField(
|
|
||||||
"String",
|
|
||||||
"APPLICATION_NAME",
|
|
||||||
"\"${CustomHuskyBuild.applicationName} Beta\""
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
create(Flavors.stable) {
|
create(Flavors.stable) {
|
||||||
|
@ -97,6 +96,15 @@ android {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
applicationVariants.all {
|
||||||
|
outputs.forEach { output ->
|
||||||
|
if(output is BaseVariantOutputImpl) {
|
||||||
|
output.outputFileName =
|
||||||
|
"husky_${versionName}.${output.outputFile.extension}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
lint {
|
lint {
|
||||||
// isAbortOnError = true
|
// isAbortOnError = true
|
||||||
disable("MissingTranslation")
|
disable("MissingTranslation")
|
||||||
|
@ -237,3 +245,18 @@ dependencies {
|
||||||
androidTestImplementation(TestLibs.junit)
|
androidTestImplementation(TestLibs.junit)
|
||||||
androidTestImplementation(TestLibs.roomTesting)
|
androidTestImplementation(TestLibs.roomTesting)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
easylauncher {
|
||||||
|
productFlavors {
|
||||||
|
register(Flavors.beta) {
|
||||||
|
filters(
|
||||||
|
customRibbon(
|
||||||
|
label = "Beta",
|
||||||
|
gravity = ColorRibbonFilter.Gravity.TOPRIGHT,
|
||||||
|
ribbonColor = "#DCDCDC",
|
||||||
|
labelColor = "#000000"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<background android:drawable="@color/green_ver" />
|
|
||||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
|
||||||
</adaptive-icon>
|
|
Binary file not shown.
Before Width: | Height: | Size: 5.3 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.8 KiB |
Binary file not shown.
Before Width: | Height: | Size: 6.4 KiB |
Binary file not shown.
Before Width: | Height: | Size: 12 KiB |
Binary file not shown.
Before Width: | Height: | Size: 15 KiB |
|
@ -1,4 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<resources>
|
|
||||||
<string name="app_name">Husky Beta</string>
|
|
||||||
</resources>
|
|
|
@ -1,6 +1,11 @@
|
||||||
object AppPlugins {
|
object AppPlugins {
|
||||||
|
object Versions {
|
||||||
|
const val easylauncher = "5.0.0"
|
||||||
|
}
|
||||||
|
|
||||||
const val androidApplication = "com.android.application"
|
const val androidApplication = "com.android.application"
|
||||||
const val androidBase = "android"
|
const val androidBase = "android"
|
||||||
|
const val easylauncher = "com.starter.easylauncher"
|
||||||
const val kapt = "kapt"
|
const val kapt = "kapt"
|
||||||
const val kotlinExtensions = "kotlin-android-extensions"
|
const val kotlinExtensions = "kotlin-android-extensions"
|
||||||
const val kotlinParcelize = "kotlin-parcelize"
|
const val kotlinParcelize = "kotlin-parcelize"
|
||||||
|
@ -167,7 +172,6 @@ object GradlePlugins {
|
||||||
object Versions {
|
object Versions {
|
||||||
const val gradle = "7.0.4"
|
const val gradle = "7.0.4"
|
||||||
const val gradleVersions = "0.39.0"
|
const val gradleVersions = "0.39.0"
|
||||||
const val spotless = "6.0.0"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const val android = "com.android.tools.build:gradle:${Versions.gradle}"
|
const val android = "com.android.tools.build:gradle:${Versions.gradle}"
|
||||||
|
|
Loading…
Reference in a new issue