diff options
Diffstat (limited to 'android')
| -rw-r--r-- | android/app/build.gradle | 33 |
1 files changed, 23 insertions, 10 deletions
diff --git a/android/app/build.gradle b/android/app/build.gradle index dc1046ed..e89ae53e 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -1,8 +1,12 @@ -apply plugin: 'com.android.application' +plugins { + id 'com.android.application' +} android { - namespace "io.coinos" compileSdk rootProject.ext.compileSdkVersion + + namespace "io.coinos" + defaultConfig { applicationId "io.coinos" minSdkVersion rootProject.ext.minSdkVersion @@ -10,19 +14,19 @@ android { versionCode 2 versionName "1.0.1" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + aaptOptions { - // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps. - // Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61 + // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps. ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~' } } signingConfigs { release { - keyAlias 'coinos' - keyPassword 'MPJzfq97' - storeFile file('coinos.keystore') - storePassword 'MPJzfq97' + keyAlias = System.getenv("KEY_ALIAS") ?: "coinos" + keyPassword = System.getenv("KEY_PASSWORD") ?: "default-password" + storeFile = file(System.getenv("STORE_FILE") ?: "coinos.keystore") + storePassword = System.getenv("STORE_PASSWORD") ?: "default-password" } } @@ -31,12 +35,21 @@ android { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.release + + // Rename APK to app-release-unsigned.apk + applicationVariants.all { variant -> + if (variant.buildType.name == "release") { + variant.outputs.all { output -> + output.outputFileName = "app-release-unsigned.apk" + } + } + } } } } repositories { - flatDir{ + flatDir { dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs' } } @@ -60,6 +73,6 @@ try { if (servicesJSON.text) { apply plugin: 'com.google.gms.google-services' } -} catch(Exception e) { +} catch (Exception e) { logger.info("google-services.json not found, google-services plugin not applied. Push Notifications won't work") } |
