aboutsummaryrefslogtreecommitdiffstats
path: root/android/app/build.gradle
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-02-28 12:21:23 -0800
committerAdam Soltys <[email protected]>2025-02-28 12:21:23 -0800
commit50dff116c6b6cdb8ee01720e8efacce9628e571f (patch)
tree5e8474a64eebfa8251139c0f38a5da477e26bc6d /android/app/build.gradle
parent43185349b3d15de20bc798a3a4c18be94be13a84 (diff)
downloadcoinos-ui-50dff116c6b6cdb8ee01720e8efacce9628e571f.tar.gz
coinos-ui-50dff116c6b6cdb8ee01720e8efacce9628e571f.zip
capacitor android
Diffstat (limited to 'android/app/build.gradle')
-rw-r--r--android/app/build.gradle65
1 files changed, 65 insertions, 0 deletions
diff --git a/android/app/build.gradle b/android/app/build.gradle
new file mode 100644
index 00000000..dc1046ed
--- /dev/null
+++ b/android/app/build.gradle
@@ -0,0 +1,65 @@
+apply plugin: 'com.android.application'
+
+android {
+ namespace "io.coinos"
+ compileSdk rootProject.ext.compileSdkVersion
+ defaultConfig {
+ applicationId "io.coinos"
+ minSdkVersion rootProject.ext.minSdkVersion
+ targetSdkVersion rootProject.ext.targetSdkVersion
+ 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
+ ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
+ }
+ }
+
+ signingConfigs {
+ release {
+ keyAlias 'coinos'
+ keyPassword 'MPJzfq97'
+ storeFile file('coinos.keystore')
+ storePassword 'MPJzfq97'
+ }
+ }
+
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ signingConfig signingConfigs.release
+ }
+ }
+}
+
+repositories {
+ flatDir{
+ dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs'
+ }
+}
+
+dependencies {
+ implementation fileTree(include: ['*.jar'], dir: 'libs')
+ implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
+ implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
+ implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion"
+ implementation project(':capacitor-android')
+ testImplementation "junit:junit:$junitVersion"
+ androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
+ androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
+ implementation project(':capacitor-cordova-android-plugins')
+}
+
+apply from: 'capacitor.build.gradle'
+
+try {
+ def servicesJSON = file('google-services.json')
+ if (servicesJSON.text) {
+ apply plugin: 'com.google.gms.google-services'
+ }
+} catch(Exception e) {
+ logger.info("google-services.json not found, google-services plugin not applied. Push Notifications won't work")
+}