diff options
| author | Adam Soltys <[email protected]> | 2025-02-28 12:55:54 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-02-28 12:55:54 -0800 |
| commit | 6aaeadef489783b672258359f5c27da81c6cc132 (patch) | |
| tree | a310bc997de6f1f286814ad0177a70478517a484 /android/app | |
| parent | 5fe4b524bd43a78a8310342f0e5bd5850f1ad716 (diff) | |
| download | coinos-ui-6aaeadef489783b672258359f5c27da81c6cc132.tar.gz coinos-ui-6aaeadef489783b672258359f5c27da81c6cc132.zip | |
zapstore
Diffstat (limited to 'android/app')
| -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") } |
