This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task uploadTf(dependsOn: assembleRelease) << { | |
def teamToken = '<TestFlight team token here>' | |
def apiToken = '<TestFlight api token here>' | |
def lists = '<TestFlight distribution lists here>' | |
def apk = file("build/apk/$project.name-release.apk") | |
def notes = new File(file('changelog.mdown')).getText("UTF-8") | |
def http = new HTTPBuilder('http://testflightapp.com') | |
println('Uploading build to TestFlight...') | |
http.request(POST, JSON) { req -> | |
uri.path = '/api/builds.json' |