From 1cb336e8af0215510b78a53c0c5dccf590f0aeea Mon Sep 17 00:00:00 2001 From: konifar Date: Tue, 16 Jun 2020 15:36:13 +0900 Subject: [PATCH] Added publisher plugin --- .gitignore | 1 + build.gradle | 1 + example/build.gradle | 8 ++++++++ 3 files changed, 10 insertions(+) diff --git a/.gitignore b/.gitignore index 8187feb..c550795 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ /build /captures .externalNativeBuild +publisher-key.json # not ignore !.idea/codeStyleSettings.xml diff --git a/build.gradle b/build.gradle index d628285..f2f7072 100644 --- a/build.gradle +++ b/build.gradle @@ -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' } } diff --git a/example/build.gradle b/example/build.gradle index 4db930c..e968e3b 100644 --- a/example/build.gradle +++ b/example/build.gradle @@ -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 @@ -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')