Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

build.gradle 1.5 KiB

4 anos atrás
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion rootProject.ext.compileSdkVersion
  4. defaultConfig {
  5. applicationId "com.app.pbks"
  6. minSdkVersion rootProject.ext.minSdkVersion
  7. targetSdkVersion rootProject.ext.targetSdkVersion
  8. versionCode 6
  9. versionName "2.4"
  10. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  11. }
  12. buildTypes {
  13. release {
  14. minifyEnabled false
  15. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  16. }
  17. }
  18. }
  19. repositories {
  20. flatDir{
  21. dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs'
  22. }
  23. }
  24. dependencies {
  25. implementation fileTree(include: ['*.jar'], dir: 'libs')
  26. implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
  27. implementation project(':capacitor-android')
  28. testImplementation "junit:junit:$junitVersion"
  29. androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
  30. androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
  31. implementation project(':capacitor-cordova-android-plugins')
  32. }
  33. apply from: 'capacitor.build.gradle'
  34. try {
  35. def servicesJSON = file('google-services.json')
  36. if (servicesJSON.text) {
  37. apply plugin: 'com.google.gms.google-services'
  38. }
  39. } catch(Exception e) {
  40. logger.warn("google-services.json not found, google-services plugin not applied. Push Notifications won't work")
  41. }