gradle-play-publisher: Plugin doesn't generate upload tasks for flavors
I have product flavors, but plugin doesn’t generate tasks for them.
Version 1.2.0 did it well.
Tasks generated with v1.2.0
publishApkDemoRelease - Uploads the APK for the DemoRelease build
publishApkDevelRelease - Uploads the APK for the DevelRelease build
publishApkProdRelease - Uploads the APK for the ProdRelease build
publishApkTstRelease - Uploads the APK for the TstRelease build
publishDemoRelease - Updates APK and play store listing for the DemoRelease build
publishDevelRelease - Updates APK and play store listing for the DevelRelease build
publishListingDemoRelease - Updates the play store listing for the DemoRelease build
publishListingDevelRelease - Updates the play store listing for the DevelRelease build
publishListingProdRelease - Updates the play store listing for the ProdRelease build
publishListingTstRelease - Updates the play store listing for the TstRelease build
publishProdRelease - Updates APK and play store listing for the ProdRelease build
publishTstRelease - Updates APK and play store listing for the TstRelease build
Tasks generated after upgrade to v2.0.0
publish - Uploads APK or App Bundle and all Play Store metadata for every variant.
publishApk - Uploads APK for every variant.
publishBundle - Uploads App Bundle for every variant.
publishListing - Uploads all Play Store metadata for every variant.
publishProducts - Uploads all Play Store in-app products for every variant.
After upgrade I move
playAccountConfigs {
defaultAccountConfig {
serviceAccountEmail = 'my_service_email'
pk12File = file('upload-key.p12')
}
}
playAccountConfig = playAccountConfigs.defaultAccountConfig
from android section to play section:
play {
serviceAccountEmail = 'my_service_email'
serviceAccountCredentials = file('upload-key.p12')
track = 'alpha'
}
because it didn’t work.
Should I do any other actions to upgrade correctly?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (1 by maintainers)
If there’s anyone wondering the above method still doesn’t works.
Don’t enable the test coverage in
releasebuildType as well. E.g:It will keep the
GPP cannot configure variant 'release' because it is debuggablethrown. Just enable the test coverage for thedebugbuildType insteadThanks for help. It solved the problem.