|
|
@@ -19,8 +19,8 @@ android {
|
|
|
versionName "1.0.0-7"
|
|
|
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.
|
|
|
+ // 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:!*~'
|
|
|
}
|
|
|
}
|
|
|
@@ -30,10 +30,22 @@ android {
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ flavorDimensions "version"
|
|
|
+ productFlavors {
|
|
|
+ prod {
|
|
|
+ dimension "version"
|
|
|
+ }
|
|
|
+ id {
|
|
|
+ dimension "version"
|
|
|
+ applicationIdSuffix ".id"
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
repositories {
|
|
|
- flatDir{
|
|
|
+ flatDir {
|
|
|
dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs'
|
|
|
}
|
|
|
}
|
|
|
@@ -57,6 +69,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")
|
|
|
}
|