build.gradle 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. plugins {
  2. id 'com.android.application'
  3. id 'org.jetbrains.kotlin.android'
  4. id 'androidx.navigation.safeargs'
  5. }
  6. apply from: 'aabresguard.gradle'
  7. apply from: 'xmlclassguard.gradle'
  8. android {
  9. namespace 'com.ljx.example'
  10. compileSdk 31
  11. defaultConfig {
  12. applicationId "com.ljx.example"
  13. minSdk 21
  14. targetSdk 31
  15. versionCode 1
  16. versionName "1.0"
  17. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  18. }
  19. buildTypes {
  20. release {
  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. kotlinOptions {
  30. jvmTarget = '1.8'
  31. }
  32. sourceSets {
  33. main.java.srcDirs += 'src/main/kotlin'
  34. }
  35. buildFeatures {
  36. dataBinding = true
  37. aidl = true
  38. }
  39. }
  40. dependencies {
  41. implementation project(":base")
  42. implementation project(":kts_test")
  43. implementation 'androidx.core:core-ktx:1.7.0'
  44. implementation 'androidx.appcompat:appcompat:1.4.2'
  45. implementation 'com.google.android.material:material:1.4.0'
  46. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  47. implementation 'androidx.navigation:navigation-fragment-ktx:2.5.3'
  48. implementation 'androidx.navigation:navigation-ui-ktx:2.5.3'
  49. testImplementation 'junit:junit:4.13.2'
  50. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  51. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  52. }