build.gradle 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. apply plugin: 'com.android.application'
  2. android {
  3. namespace "ir.sanatisharif.android.konkur96"
  4. compileSdkVersion rootProject.ext.compileSdkVersion
  5. defaultConfig {
  6. applicationId "ir.sanatisharif.android.konkur96"
  7. minSdkVersion rootProject.ext.minSdkVersion
  8. targetSdkVersion rootProject.ext.targetSdkVersion
  9. versionCode 95
  10. versionName "6.0.0"
  11. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  12. aaptOptions {
  13. // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
  14. // Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61
  15. ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
  16. }
  17. }
  18. buildFeatures
  19. {
  20. dataBinding = true
  21. }
  22. buildTypes {
  23. release {
  24. minifyEnabled false
  25. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  26. }
  27. }
  28. }
  29. repositories {
  30. flatDir {
  31. dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs'
  32. }
  33. }
  34. dependencies {
  35. implementation fileTree(include: ['*.jar'], dir: 'libs')
  36. implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
  37. implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
  38. implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion"
  39. implementation project(':capacitor-android')
  40. testImplementation "junit:junit:$junitVersion"
  41. androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
  42. androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
  43. implementation project(':capacitor-cordova-android-plugins')
  44. //lottie
  45. implementation 'com.airbnb.android:lottie:3.6.1'
  46. }
  47. apply from: 'capacitor.build.gradle'
  48. try {
  49. def servicesJSON = file('google-services.json')
  50. if (servicesJSON.text) {
  51. apply plugin: 'com.google.gms.google-services'
  52. }
  53. } catch (Exception e) {
  54. logger.info("google-services.json not found, google-services plugin not applied. Push Notifications won't work")
  55. }