oliviergauthier / gradle-appcenter-plugin

This gradle plugin allow you to upload each build variant of your android application to separate AppCenter Apps.
MIT License
84 stars 44 forks source link

Publish without flavors #15

Closed morand1 closed 4 years ago

morand1 commented 5 years ago

Hi, I don't have any flavors in my application. I'm using only build types:

 buildTypes {
        release {
           ...
        }
        debug {
        ...
       }
}

Is it possible to use this plugin without flavors?

Ok, I managed to do it, but right now I have error:

* What went wrong:
Execution failed for task ':app:appCenterUploadDebug'.
> okhttp3.HttpUrl.get(Ljava/lang/String;)Lokhttp3/HttpUrl;
sonique6784 commented 5 years ago

@morand1 , have you found a way to make it works?

oliviergauthier commented 5 years ago

It's not possible for now, i'll try to add this in next version

oliviergauthier commented 4 years ago

Actually it already works, i have tried with this sample configuration and it succeed

appcenter {
    apiToken = project.properties.get("apiToken", "")
    ownerName = project.properties.get("ownerName", "")
    distributionGroups = ["Collaborators"]
    releaseNotes = "A Sample Upload"
    notifyTesters = false
    apps {
        release {
            appName = "GradleSample"
        }
    }
}

and call task :


./gradlew appCenterUploadRelease -PownerName=YOUR_OWNER_NAME  -PapiToken=YOUR_FULL_ACCESS_API_TOKEN