build.gradle 2.5 KB

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