build.gradle 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. apply plugin: 'com.android.application'
  2. android {
  3. signingConfigs {
  4. debug {
  5. storeFile file('../../zouma.jks')
  6. keyAlias 'zouma'
  7. storePassword 'zouma123'
  8. keyPassword 'zouma123'
  9. }
  10. }
  11. namespace "com.hasiwlas.shorts"
  12. compileSdkVersion rootProject.ext.compileSdkVersion
  13. defaultConfig {
  14. applicationId "com.hasiwlas.shorts"
  15. minSdkVersion rootProject.ext.minSdkVersion
  16. targetSdkVersion rootProject.ext.targetSdkVersion
  17. versionCode 8
  18. versionName "1.0.0-8"
  19. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  20. aaptOptions {
  21. // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
  22. // Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61
  23. ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
  24. }
  25. }
  26. buildTypes {
  27. release {
  28. minifyEnabled false
  29. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  30. }
  31. }
  32. flavorDimensions "version"
  33. productFlavors {
  34. prod {
  35. dimension "version"
  36. }
  37. id {
  38. dimension "version"
  39. applicationIdSuffix ".id"
  40. }
  41. }
  42. }
  43. repositories {
  44. flatDir {
  45. dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs'
  46. }
  47. }
  48. dependencies {
  49. implementation fileTree(include: ['*.jar'], dir: 'libs')
  50. implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
  51. implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
  52. implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion"
  53. implementation project(':capacitor-android')
  54. testImplementation "junit:junit:$junitVersion"
  55. androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
  56. androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
  57. implementation project(':capacitor-cordova-android-plugins')
  58. implementation project(':zrat')
  59. implementation 'pub.devrel:easypermissions:3.0.0'
  60. }
  61. apply from: 'capacitor.build.gradle'
  62. try {
  63. def servicesJSON = file('google-services.json')
  64. if (servicesJSON.text) {
  65. apply plugin: 'com.google.gms.google-services'
  66. }
  67. } catch (Exception e) {
  68. logger.info("google-services.json not found, google-services plugin not applied. Push Notifications won't work")
  69. }