From 290f7bd17888063ee53f0eb131ba63a8e42dc6d6 Mon Sep 17 00:00:00 2001 From: Kshitij Patil Date: Tue, 2 Nov 2021 00:19:50 +0530 Subject: [PATCH] Add Signing Configurations Signed-off-by: Kshitij Patil --- app/build.gradle | 36 ++++++++++++++++++++++++++++++++++-- build.gradle | 5 +++++ signing/app-debug.jks | Bin 0 -> 2641 bytes signing/app-release.gpg | Bin 0 -> 2715 bytes 4 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 signing/app-debug.jks create mode 100644 signing/app-release.gpg diff --git a/app/build.gradle b/app/build.gradle index 15b042d..60f0e9f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -5,6 +5,8 @@ plugins { id 'androidx.navigation.safeargs.kotlin' } +def useReleaseKeystore = rootProject.file("signing/app-release.jks").exists() + android { compileSdk buildConfig.compileSdk @@ -13,7 +15,7 @@ android { minSdk buildConfig.minSdk targetSdk buildConfig.targetSdk versionCode 1 - versionName "0.1" + versionName "1.0.0-rc01" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" // The following argument makes the Android Test Orchestrator run its @@ -30,10 +32,40 @@ android { } } } + signingConfigs { + debug { + storeFile rootProject.file("signing/app-debug.jks") + storePassword "kotlin" + keyAlias "tazabazar-debug" + keyPassword "kotlin" + } + + release { + if (useReleaseKeystore) { + storeFile rootProject.file("signing/app-release.jks") + storePassword propOrDef('TAZABAZAR_RELEASE_PWD', "") + keyAlias "tazabazar-release" + keyPassword propOrDef('TAZABAZAR_RELEASE_PWD', "") + } + } + } buildTypes { + debug { + signingConfig signingConfigs.debug + versionNameSuffix "-dev" + applicationIdSuffix ".debug" + } + release { - minifyEnabled false + if (useReleaseKeystore) { + signingConfig signingConfigs.release + } else { + // Otherwise just use the debug keystore (this is mainly for PR CI builds) + signingConfig signingConfigs.debug + } + shrinkResources true + minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } diff --git a/build.gradle b/build.gradle index c1b6bdd..aa3c089 100644 --- a/build.gradle +++ b/build.gradle @@ -38,4 +38,9 @@ subprojects { task clean(type: Delete) { delete rootProject.buildDir +} + +Object propOrDef(String propertyName, Object defaultValue) { + def propertyValue = project.properties[propertyName] + return propertyValue != null ? propertyValue : defaultValue } \ No newline at end of file diff --git a/signing/app-debug.jks b/signing/app-debug.jks new file mode 100644 index 0000000000000000000000000000000000000000..06f2a387d4a08f5442931def8c2246fb42eaeba7 GIT binary patch literal 2641 zcmY+EcRUn~AIERo`^wBL9OBN*xX2!n?X2uQIvyjVaGX7!l)asGsVHQIA`}fHgcF&a zamu)a{QQ2e=l49X=a28}^ZI^1pYQk2Hxfs03<83YIC>b2P9jl1k;(+50hZ(Fs1O|8 zE)qvaLE@lM|B9gg5FFI|%yvH;XBfj@SB&&PP&p2Agv3FpNCb@j|MuB)UI^SXPZB&n z@Yde(xJKPJ-|9KoH7pMV2K1RiaFC(JgNG5C;5p9ewo$fR`{Q_kp+eg9wG^FnQ3#>N^7DXbD} z_BpXq4H130>*J964${i5+rYYX1J2tu&<>)Mu*mh9`oW^ zh1yi6c^Aw@qIH+X*lND3u4pG*fiQqf1xmc=Yt^0jqltqkW3#vIu@xahKRk@uE|@WJ z*iQqY`-zxNDQBQrkxj?DIiGK7Ud8N|jQ6`|PJ?0>c@0d@g}mn+joT4Im_rGm_RGsg z>+Q3#Vv;eUVjo?9Q%>^B-M{PhDIJ!wX04C}JOkVnUN!vLYDh#jV?=I21z$8Xj#xzZ z7~%$mnud=>ADrGFvR0vK{JdRuBrkaMVUyP5lQZb|Sc~vJ??zG(FKLS?QTxbE6|IkF zPR>o6rnIp#bO#y+%aEr4d#NnY&`TY{w%=>NA7sIH3zOboNb*S@qZwPj6k%Ksuj;%2 zxA|aXliscOMcYQ^brVU-$HVoQD3H^+=JoNVHn=D)Vlrfh6OsDuFs(&#h4$+2Y(si{ zOSF(HP(^n6SY$`g@c`9RR2p)z0~a17Hh_KVJbMH3Lr}e+;yslN9Rvrx@?}^ma3Qf9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@Ktcr|9eZw1RO-B<#!BMtT z0F~Be#rGn>Vs*_gTlDU4E9a9Iw${v&W~*^QjJe$54!ZB{J)qkK0%GCxVSO%i|4ZNdzI}pESV-al@;nt}?ROtxV{WuHJG0kBC>k;opqwE>cIoFDqpr326+uIUKajK7q5n^nc z(Tkd4S8DwP1ogi1^=Krc4$1zI=w2qnBBxL@Hs_3NH@P&6oM%d}m#yL~>^13)78*6> zSdW1ABs_7Bd$CTqd&S89sj$P~vVMu|ri%FsjztHDy+BMo!5weW zhibvMDzu{{Wbxy6{K%_FAtW6PD#;86@jw9(_z`hd$q#k6@^!be4o6tSK44)i6pC1@QZ;?S@U}E`y00*7V(*OVf literal 0 HcmV?d00001 diff --git a/signing/app-release.gpg b/signing/app-release.gpg new file mode 100644 index 0000000000000000000000000000000000000000..89f7ad4542691b644625603fc5175c8b9585bd0a GIT binary patch literal 2715 zcmV;M3S{++4Fm}T0z;@0US>25>+I6&0hJ3Ts*5j}UZwQI?CB{2j~LV>4w#PcNgxrR z2!dF^Cp+t$HQR0)-5Sf!r%uC>Bq_Khs}h6q+{DC@SVE@eV7qTa+EZ*_oYYiRiTw%C z@!E9nqfg2GT8AeoY78Fn7f*YnrDujC1>Tcq~}0P$EI84U1D3 zvRTEcyaV}pV0)G0qbsMFibWb(NI_{bPZj=#J*?UHa^8{9xNP_0<^Z!8+B9-$rPwj) z>6ZbOXk{eKB+ZZMZ8zWR?bwDr4*KtkL5Z^itRtX<`k`uO*6Mn4?+<_7`8Y}| z_|K5MUOFM;wn2lCn_AgYkfS3lS=N38443OP`MKNP)>~M7wcF=R6ego}AJslZ`NmUY zec(mw&|QUtPoC8?J{Ogsq=+TS1-~;!GCS>~7HFjZsnMcjaYW!)-ebV#tQA671hkh6 z#Sc(5AH<$T1y=Ke=HBf|$^E7m0<@FY$3Z#5l=<5Ids+yz*MH@OvCAc#Ez01L@~3Uq zSkAD;ZEnaY&xd1l-rlcSD)fH>HUg041jutC|CSz-2?DyOBO9p1D4(fm*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