Triple-T / gradle-play-publisher

GPP is Android's unofficial release automation Gradle Plugin. It can do anything from building, uploading, and then promoting your App Bundle or APK to publishing app listings and other metadata.
MIT License
4.12k stars 339 forks source link

publishFreeRelease and publishPaidRelease are invalid tasks #1

Closed nagkumar closed 10 years ago

nagkumar commented 10 years ago

when I run publishFreeRelease or publishPaidRelease

gradle tasks gives only.

Other tasks

publishRelease

bhurling commented 10 years ago

Did you define free and paid product flavors? As the README says, we create one publish task for every product flavor or a single publishRelease task if there are no product flavors.

You should have at least something like this in your build.gradle if you really want a free and a paid flavor of your app:

android {
    productFlavors {
        free {
            // customizations for free version
        }
        paid {
            // customizations for paid version
        }
}
nagkumar commented 10 years ago

I really love your plugin as it rocks.

Thank You for giving clarity. How to upload this to a specific area on google play i.e production, beta or alpha. Currently when I say publishRelease it is going to alpha.

Also, though my application versioncode is changed (AndroidManifest.xml) google play still does not change the version info. Do I need to set any special parameters during publish to make sure google play shows new upload as new version

bhurling commented 10 years ago

Yes, we chose the alpha track to be the default so we don't accidentally mess with any live app. I recently pushed some changes so the developer may define which track to push to. See #2 .