Skip to content

Commit

Permalink
Added publisher plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
konifar committed Jun 16, 2020
1 parent adaa4b9 commit 1cb336e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
/build
/captures
.externalNativeBuild
publisher-key.json

# not ignore
!.idea/codeStyleSettings.xml
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ buildscript {
classpath 'com.android.tools.build:gradle:4.0.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin"
classpath "com.github.dcendents:android-maven-gradle-plugin:2.0"
classpath 'com.github.triplet.gradle:play-publisher:2.8.0'
}
}

Expand Down
8 changes: 8 additions & 0 deletions example/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'com.github.triplet.play'

def versionMajor = 0
def versionMinor = 1
Expand Down Expand Up @@ -52,6 +53,13 @@ android {
}
}

play {
serviceAccountCredentials = file('publisher-key.json')
defaultToAppBundles = true
track = 'production' // internal/alpha/beta/production
releaseStatus = "inProgress" // completed/draft/inProgress/halted
}

dependencies {
implementation project(':library')

Expand Down

0 comments on commit 1cb336e

Please sign in to comment.