build.gradle

2.3 KB · raw

1apply plugin: 'com.android.application'23android {4    namespace = "com.peachpasswords.app"5    compileSdk = rootProject.ext.compileSdkVersion6    defaultConfig {7        applicationId "com.peachpasswords.app"8        minSdkVersion rootProject.ext.minSdkVersion9        targetSdkVersion rootProject.ext.targetSdkVersion10        versionCode 111        versionName "1.0"12        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"13        aaptOptions {14             // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.15             // Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#6116            ignoreAssetsPattern = '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'17        }18    }19    buildTypes {20        release {21            minifyEnabled false22            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'23        }24    }25}2627repositories {28    flatDir{29        dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs'30    }31}3233dependencies {34    implementation fileTree(include: ['*.jar'], dir: 'libs')35    implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"36    implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"37    implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion"38    implementation "androidx.biometric:biometric:$androidxBiometricVersion"39    implementation "androidx.window:window:$androidxWindowVersion"40    implementation "androidx.security:security-crypto:1.1.0-alpha06"41    implementation project(':capacitor-android')42    testImplementation "junit:junit:$junitVersion"43    androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"44    androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"45    implementation project(':capacitor-cordova-android-plugins')46}4748apply from: 'capacitor.build.gradle'4950try {51    def servicesJSON = file('google-services.json')52    if (servicesJSON.text) {53        apply plugin: 'com.google.gms.google-services'54    }55} catch(Exception e) {56    logger.info("google-services.json not found, google-services plugin not applied. Push Notifications won't work")57}