build.gradle 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 3
  18. versionName "1.0"
  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. }
  33. repositories {
  34. flatDir{
  35. dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs'
  36. }
  37. }
  38. dependencies {
  39. implementation fileTree(include: ['*.jar'], dir: 'libs')
  40. implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
  41. implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
  42. implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion"
  43. implementation project(':capacitor-android')
  44. testImplementation "junit:junit:$junitVersion"
  45. androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
  46. androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
  47. implementation project(':capacitor-cordova-android-plugins')
  48. }
  49. apply from: 'capacitor.build.gradle'
  50. try {
  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. }