File tree Expand file tree Collapse file tree 2 files changed +29
-9
lines changed
Expand file tree Collapse file tree 2 files changed +29
-9
lines changed Original file line number Diff line number Diff line change 11apply plugin : ' com.android.application'
2+ apply plugin : ' com.github.triplet.play'
23
34repositories {
45 maven {
@@ -18,17 +19,37 @@ android {
1819 versionName " b1.2"
1920 archivesBaseName = " Showcase"
2021 }
21- buildTypes {
22- release {
23- minifyEnabled false
24- proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
25- }
26- }
22+
2723 packagingOptions {
2824 exclude ' META-INF/DEPENDENCIES'
2925 exclude ' META-INF/NOTICE'
3026 exclude ' META-INF/LICENSE'
3127 }
28+
29+ play {
30+ serviceAccountEmail = System . getenv(" CART_EMAIL" )
31+ pk12File = file(System . getenv(" CERT_LOCATION" ) == null ? ' cert.cert' : System . getenv(" CERT_LOCATION" ))
32+ track = System . getenv(" TRACK" ) == null ? ' alpha' : System . getenv(" TRACK" )
33+ }
34+
35+ signingConfigs {
36+ release {
37+ storeFile file(System . getenv(" KEY_LOCATION" ) == null ? ' key.key' : System . getenv(" KEY_LOCATION" ))
38+ storePassword System . getenv(" KEY_PASSWORD" )
39+ keyAlias System . getenv(" KEY_ALIAS" )
40+ keyPassword System . getenv(" KEY_ALIAS_PASSWORD" )
41+ }
42+ }
43+
44+ buildTypes {
45+ release {
46+ minifyEnabled true
47+ proguardFiles " proguard-rules.pro"
48+ proguardFiles getDefaultProguardFile(' proguard-android.txt' )
49+ signingConfig signingConfigs. release
50+ }
51+ }
52+
3253}
3354
3455dependencies {
Original file line number Diff line number Diff line change 22
33buildscript {
44 repositories {
5+ mavenCentral()
56 jcenter()
67 }
78 dependencies {
89 classpath ' com.android.tools.build:gradle:1.2.3'
9-
10- // NOTE: Do not place your application dependencies here; they belong
11- // in the individual module build.gradle files
10+ classpath ' com.github.triplet.gradle:play-publisher:1.1.2'
1211 }
1312}
1413
You can’t perform that action at this time.
0 commit comments