build.gradle 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion rootProject.ext.android['compileSdkVersion']
  4. defaultConfig {
  5. minSdkVersion rootProject.ext.android.minSdkVersion
  6. targetSdkVersion rootProject.ext.android.targetSdkVersion
  7. versionCode rootProject.ext.android.versionCode
  8. versionName rootProject.ext.android.versionName
  9. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  10. consumerProguardFiles "consumer-rules.pro"
  11. }
  12. buildTypes {
  13. release {
  14. minifyEnabled false
  15. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  16. }
  17. debug{
  18. minifyEnabled false
  19. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  20. }
  21. preRelease{
  22. minifyEnabled false
  23. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  24. }
  25. }
  26. compileOptions {
  27. sourceCompatibility JavaVersion.VERSION_1_8
  28. targetCompatibility JavaVersion.VERSION_1_8
  29. }
  30. sourceSets {
  31. main {
  32. jniLibs.srcDirs = ['libs']
  33. }
  34. }
  35. }
  36. dependencies {
  37. implementation 'androidx.appcompat:appcompat:1.2.0'
  38. implementation 'com.google.android.material:material:1.2.1'
  39. testImplementation 'junit:junit:4.+'
  40. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  41. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  42. }