aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-02-28 12:55:54 -0800
committerAdam Soltys <[email protected]>2025-02-28 12:55:54 -0800
commit6aaeadef489783b672258359f5c27da81c6cc132 (patch)
treea310bc997de6f1f286814ad0177a70478517a484
parent5fe4b524bd43a78a8310342f0e5bd5850f1ad716 (diff)
downloadcoinos-ui-6aaeadef489783b672258359f5c27da81c6cc132.tar.gz
coinos-ui-6aaeadef489783b672258359f5c27da81c6cc132.zip
zapstore
-rw-r--r--android/app/build.gradle33
-rw-r--r--gradle.env4
-rw-r--r--zapstore.yaml5
3 files changed, 32 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")
}
diff --git a/gradle.env b/gradle.env
new file mode 100644
index 00000000..c780bec8
--- /dev/null
+++ b/gradle.env
@@ -0,0 +1,4 @@
+export KEY_ALIAS=coinos
+export KEY_PASSWORD=MPJzfq97
+export STORE_FILE=coinos.keystore
+export STORE_PASSWORD=MPJzfq97
diff --git a/zapstore.yaml b/zapstore.yaml
new file mode 100644
index 00000000..ccc48272
--- /dev/null
+++ b/zapstore.yaml
@@ -0,0 +1,5 @@
+coinos:
+ android:
+ repository: https://github.com/coinos/coinos-ui
+ artifacts:
+ - coinos-v%v.apk