build.gradle 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. ext {
  2. junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
  3. androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.1'
  4. androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.3.0'
  5. androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.7.0'
  6. }
  7. buildscript {
  8. repositories {
  9. google()
  10. mavenCentral()
  11. }
  12. dependencies {
  13. classpath 'com.android.tools.build:gradle:8.13.0'
  14. }
  15. }
  16. apply plugin: 'com.android.library'
  17. android {
  18. namespace = "io.ionic.plugins.upilaucher"
  19. compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
  20. defaultConfig {
  21. minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
  22. targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
  23. versionCode 1
  24. versionName "1.0"
  25. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  26. }
  27. buildTypes {
  28. release {
  29. minifyEnabled false
  30. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  31. }
  32. }
  33. lintOptions {
  34. abortOnError = false
  35. }
  36. compileOptions {
  37. sourceCompatibility JavaVersion.VERSION_21
  38. targetCompatibility JavaVersion.VERSION_21
  39. }
  40. }
  41. repositories {
  42. google()
  43. mavenCentral()
  44. }
  45. dependencies {
  46. implementation fileTree(dir: 'libs', include: ['*.jar'])
  47. implementation project(':capacitor-android')
  48. implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
  49. testImplementation "junit:junit:$junitVersion"
  50. androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
  51. androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
  52. }