Skip to content

Commit

Permalink
add playstore release
Browse files Browse the repository at this point in the history
  • Loading branch information
sangcomz committed Sep 14, 2018
1 parent 4aca179 commit afceb98
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 6 deletions.
7 changes: 6 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.application'
apply plugin: 'com.github.triplet.play'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

android {
signingConfigs {
if (project.rootProject.file('release/sign.properties').exists()) {
Expand Down Expand Up @@ -59,3 +59,8 @@ dependencies {
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation project(':chameleon')
}

play {
jsonFile = file('play_key.json')
track = 'beta' // Or any of 'rollout', 'beta', 'alpha' or 'internal'
}
1 change: 1 addition & 0 deletions app/src/main/play/en-US/whatsnew
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
What's New
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ buildscript {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath 'co.riiid:gradle-github-plugin:0.4.2'
classpath 'com.github.triplet.gradle:play-publisher:1.2.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
1 change: 1 addition & 0 deletions chameleon/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ android {
}
}

apply from: '../gradle/release.gradle'

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
Expand Down
8 changes: 3 additions & 5 deletions gradle/release.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
version = gradle.versionName

Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())

github {
owner = 'sangcomz'
repo = 'Chameleon'
token = properties.getProperty("github_access_tokens", ' ')
tagName = 'v' + version
tagName = 'v' + gradle.versionName
targetCommitish = 'master'
body = """## Release Note
* Add Release gradle to github"""
name = 'r' + version
* Test Release"""
name = 'r' + gradle.versionName
assets = [
'app/build/outputs/apk/debug/chameleon-debug-' + gradle.versionName + '.apk',
'app/build/outputs/apk/release/chameleon-release-' + gradle.versionName + '.apk',
Expand Down
Empty file modified gradlew
100644 → 100755
Empty file.
12 changes: 12 additions & 0 deletions play_key.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"type": "service_account",
"project_id": "api-7858738176702086869-278518",
"private_key_id": "fc378913f19bc4a9d1f4e358d83d339626fcda7c",
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC8X3zjK0mh3xo4\nZzqHX4ohnVWIh+2rJqHYwaKhSWMaXa9omCys/hp5Q8mrjqvdbIPpSbu/yKvaOiKK\nIkTJIDrWd5kATMS9yaqpLCGP/P+ZnigziL3+u1nMo0PV+vjNpFBVjSEeTa3UMDtJ\nhR9XhOFYYU1EarKBctvUTKyXOzib0mcEsVZQDmhzXUYaOZ5439SSi0rO40mLbBYA\nRjmeoFmQtWRaaoaKNChzNZxtfsZIwLb/6tWcYgUSUhY5JvzyfsjzvMaIkKd+brKh\nMWqbWNxuyIdnpdb450ClCkDh4zWG7wsxdkoj2HRddddgaAkB0ziJTImk0/ZUYG6F\nKXlngO/jAgMBAAECggEADEhoVaJmSWPJdea6mPEl303psd61z0nUQSn/IhKC9R5+\nvYyOp95keNvECVJi6oE/k1/3b2ifrA8hCW4f8MK6k27LpIqyRB3OPvxdroyKA3Od\n83OgepJaJ08jW+SNgfs2MciODEfMZIrwkrlXcywloCRYFsn48cU83aRSQgTeir/E\ny5qymI7R7LBm57D9bn2be3SXFKixwMghBGx2zFVfVVOMbfig2rRM7xooLGIOCcQD\nB8TPxYJSgnriK5fH9oY+BnFUxwYYOxkv/cn0cUCDUd29W/DeUO/1i2crCJVwpNe1\nzwUN32hDbf+1wuGzN3E5AJY68bbi99Owc6ns+6GGQQKBgQDfDsfx8obaAnktCHGL\nRE9S88vU2Og8arBNRaKwax2R0mGm07HSl+msi51HvDi4PkR9PPGXoH1stkX4SGps\n074pBZuFAIciavCywgyXbTvzTXb2LpKQxQYqjmVrU1+pJoGlkK73EXilyle6EzV9\nXfWmrWGC0215ZfreDZiBeG3EmwKBgQDYMV6EXCqsLxge+YF6WvZPE0gOIM6n6t1i\nN1CsDxPagyBvZatvIk5/2rWwPK6gTZ4Lhuq7fRXghMe0b8fujeLwKepEyPaiUaFH\na9jjwwXfUp42yI60uLwx7Fji/ZeGAnkPR3dlVeaL0r/0ur0VRsja/wd9hA0li4MF\nheGai+EiWQKBgQCdHFsnBu2HBzD00DqxnmbFBeVvQWyqiXcupjrGSlxkhquzhu58\nZ/X2S8x3Z5MH6wvwrol4hFlzxhsYm2Ei0C3j1QhKsSl9y5dIQbf+vLj6UXjWQ82G\nXNBQD0ZOR0Zc7TtqM7OZYNv64r/R14/YguLxCLRjIqq8VGFUIH1nzDx8uwKBgA4H\nnieex5Im+DzCWlmzX3qgOLPaAy84eadvCYgw7kvm6IryIR70Lf30FohaV8bFYrVC\nyybhpjLMyxz1iBb+FDUbsz1FgWPlQj8dS5T0SgRFG0lY2JH3zxa6TMZmSJgEvxBz\nxdbIrU5znctm9vBTiKNVm4nUsPm3xQftuUdLPo/5AoGBAMW51etj1+ozpBPHHKhZ\nz+R09yUCGJhmB4W1E6fKCdAjPhmPXk3rPZsZ+grW5yV2LC5zn+tgCy3lx313y2AF\n3tppl+9yJAIaARy7lgGCqWJRs+8VOA7meSyuHlSdMGnc9DGGEOIEILj+jtLyuwxb\nf6QvDJ92M0Oofu5CPxJUjBD+\n-----END PRIVATE KEY-----\n",
"client_email": "[email protected]",
"client_id": "107054002586393492871",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/sangcomz%40api-7858738176702086869-278518.iam.gserviceaccount.com"
}

0 comments on commit afceb98

Please sign in to comment.