0

我有几个构建变体的应用程序。一种变体是global,其他的local.

我不想再支持“本地”变体了。是否有可能(在谷歌游戏商店或应用程序中)设置一个global变体应该用于升级?

摇篮文件:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 29
    defaultConfig {
        applicationId 'cz.gb.ps.general'
        minSdkVersion 23
        targetSdkVersion 29
        versionCode 246
        versionName "1.1.3"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }

    flavorDimensions("version")
    productFlavors {
        cr {
            applicationId "cz.gb.ps.general"
            dimension "version"
            versionNameSuffix "-CR"
        }
        brn {
            applicationId "cz.gb.ps.brn"
            dimension "version"
            versionNameSuffix "-BRN"
        }
        // ...
    }
    sourceSets {
        cr.java.srcDir 'src/cr/java'
        brn.java.srcDir 'src/brn/java'
        // ...
    }
}

task prepareKotlinBuildScriptModel {

}

dependencies {
    def support_version = "28.0.0"
    // ...
}
4

0 回答 0