Create Free/Paid versions of Application from same code

后端 未结 7 1378
Happy的楠姐
Happy的楠姐 2020-11-30 18:36

So I\'m coming down to release-time for my application. We plan on releasing two versions, a free ad-based play-to-unlock version, and a paid fully unlocked version. I have

7条回答
  •  执笔经年
    2020-11-30 19:04

    If you want another application name, depending of the flavor, you can also add this:

    productFlavors {
        lite {
            applicationId = 'com.project.test.app'
            resValue "string", "app_name", "test lite"
            versionCode 1
            versionName '1.0.0'
        }
        pro {
            applicationId = 'com.project.testpro.app'
            resValue "string", "app_name", "test pro"
            versionCode 1
            versionName '1.0.0'
        }
    }
    

提交回复
热议问题