~captainepoch/husky

bcf653da285511f1b9e7ca250b21d466af61ce8d — Adolfo Santiago 3 months ago 3bbe52e
Remove unused beta stuff, added beta ribbon

Beta builds will contain a ribbon instead of the name change.
9 files changed, 34 insertions(+), 16 deletions(-)

M husky/app/build.gradle.kts
D husky/app/src/beta/res/mipmap-anydpi-v26/ic_launcher.xml
D husky/app/src/beta/res/mipmap-hdpi/ic_launcher.png
D husky/app/src/beta/res/mipmap-mdpi/ic_launcher.png
D husky/app/src/beta/res/mipmap-xhdpi/ic_launcher.png
D husky/app/src/beta/res/mipmap-xxhdpi/ic_launcher.png
D husky/app/src/beta/res/mipmap-xxxhdpi/ic_launcher.png
D husky/app/src/beta/res/values/strings.xml
M husky/buildSrc/src/main/kotlin/AppLibs.kt
M husky/app/build.gradle.kts => husky/app/build.gradle.kts +29 -6
@@ 1,3 1,6 @@
import com.project.starter.easylauncher.filter.ColorRibbonFilter
import com.android.build.gradle.internal.api.BaseVariantOutputImpl

plugins {
    id(AppPlugins.androidApplication)



@@ 5,6 8,8 @@ plugins {
    kotlin(AppPlugins.kapt)
    id(AppPlugins.kotlinExtensions)
    // id(AppPlugins.kotlinParcelize)

    id(AppPlugins.easylauncher) version (AppPlugins.Versions.easylauncher)
}

android {


@@ 84,12 89,6 @@ android {
            dimension = Flavors.Dimensions.release

            versionNameSuffix = "-${BetaConfig.betaSuffix}${BetaConfig.betaSuffixVersion}"

            buildConfigField(
                "String",
                "APPLICATION_NAME",
                "\"${CustomHuskyBuild.applicationName} Beta\""
            )
        }

        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 {
        // isAbortOnError = true
        disable("MissingTranslation")


@@ 237,3 245,18 @@ dependencies {
    androidTestImplementation(TestLibs.junit)
    androidTestImplementation(TestLibs.roomTesting)
}

easylauncher {
    productFlavors {
        register(Flavors.beta) {
            filters(
                customRibbon(
                    label = "Beta",
                    gravity = ColorRibbonFilter.Gravity.TOPRIGHT,
                    ribbonColor = "#DCDCDC",
                    labelColor = "#000000"
                )
            )
        }
    }
}

D husky/app/src/beta/res/mipmap-anydpi-v26/ic_launcher.xml => husky/app/src/beta/res/mipmap-anydpi-v26/ic_launcher.xml +0 -5
@@ 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>

D husky/app/src/beta/res/mipmap-hdpi/ic_launcher.png => husky/app/src/beta/res/mipmap-hdpi/ic_launcher.png +0 -0
D husky/app/src/beta/res/mipmap-mdpi/ic_launcher.png => husky/app/src/beta/res/mipmap-mdpi/ic_launcher.png +0 -0
D husky/app/src/beta/res/mipmap-xhdpi/ic_launcher.png => husky/app/src/beta/res/mipmap-xhdpi/ic_launcher.png +0 -0
D husky/app/src/beta/res/mipmap-xxhdpi/ic_launcher.png => husky/app/src/beta/res/mipmap-xxhdpi/ic_launcher.png +0 -0
D husky/app/src/beta/res/mipmap-xxxhdpi/ic_launcher.png => husky/app/src/beta/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
D husky/app/src/beta/res/values/strings.xml => husky/app/src/beta/res/values/strings.xml +0 -4
@@ 1,4 0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="app_name">Husky Beta</string>
</resources>

M husky/buildSrc/src/main/kotlin/AppLibs.kt => husky/buildSrc/src/main/kotlin/AppLibs.kt +5 -1
@@ 1,6 1,11 @@
object AppPlugins {
    object Versions {
        const val easylauncher = "5.0.0"
    }

    const val androidApplication = "com.android.application"
    const val androidBase = "android"
    const val easylauncher = "com.starter.easylauncher"
    const val kapt = "kapt"
    const val kotlinExtensions = "kotlin-android-extensions"
    const val kotlinParcelize = "kotlin-parcelize"


@@ 167,7 172,6 @@ object GradlePlugins {
    object Versions {
        const val gradle = "7.0.4"
        const val gradleVersions = "0.39.0"
        const val spotless = "6.0.0"
    }

    const val android = "com.android.tools.build:gradle:${Versions.gradle}"