~singpolyma/cheogram-android

96d34215fbe20cb0d469fdaa6e86d7db99950622 — Daniel Gultsch 5 years ago 79eee49
introduced new build flavors quick and full
1 files changed, 43 insertions(+), 2 deletions(-)

M build.gradle
M build.gradle => build.gradle +43 -2
@@ 93,9 93,21 @@ android {
        targetCompatibility JavaVersion.VERSION_1_8
    }

    flavorDimensions("distribution", "emoji")
    flavorDimensions("mode", "distribution", "emoji")

    productFlavors {

        quick {
            dimension "mode"
            applicationId = "im.conversations.quick"
            resValue "string", "app_name", "Quick Conversations"
            resValue "string", "applicationId", applicationId
        }

        full {
            dimension "mode"
        }

        playstore {
            dimension "distribution"
            versionNameSuffix "+p"


@@ 114,6 126,35 @@ android {
        }
    }

    sourceSets {
        quickFreeCompat {
            java {
                srcDirs 'src/freeCompat/java'
            }
        }
        quickPlaystoreCompat {
            java {
                srcDirs 'src/playstoreCompat/java'
            }
            res {
                srcDir 'src/playstoreCompat/res'
            }
        }
        fullFreeCompat {
            java {
                srcDirs 'src/freeCompat/java'
            }
        }
        fullPlaystoreCompat {
            java {
                srcDirs 'src/playstoreCompat/java'
            }
            res {
                srcDir 'src/playstoreCompat/res'
            }
        }
    }

    buildTypes {
        release {
            shrinkResources true


@@ 131,7 172,7 @@ android {



    if(new File("signing.properties").exists()) {
    if (new File("signing.properties").exists()) {
        Properties props = new Properties()
        props.load(new FileInputStream(file("signing.properties")))