build.gradle 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 32
  4. defaultConfig {
  5. minSdkVersion 21
  6. targetSdkVersion 32
  7. versionCode 1
  8. versionName "1.0"
  9. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  10. }
  11. buildTypes {
  12. release {
  13. minifyEnabled false
  14. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  15. }
  16. debug{
  17. minifyEnabled false
  18. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  19. }
  20. preRelease{
  21. minifyEnabled false
  22. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  23. }
  24. }
  25. compileOptions {
  26. sourceCompatibility JavaVersion.VERSION_1_8
  27. targetCompatibility JavaVersion.VERSION_1_8
  28. }
  29. sourceSets {
  30. main {
  31. jniLibs.srcDirs = ['libs']
  32. }
  33. }
  34. buildFeatures {
  35. viewBinding = true
  36. }
  37. }
  38. dependencies {
  39. implementation fileTree(dir: 'libs', include: ['*.jar'])
  40. implementation 'androidx.appcompat:appcompat:1.3.0'
  41. implementation 'com.google.android.material:material:1.4.0'
  42. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  43. testImplementation 'junit:junit:4.13.2'
  44. implementation project(':BaseLibrary')
  45. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  46. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  47. }