build.gradle 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. plugins {
  2. id 'com.android.application'
  3. id 'org.jetbrains.kotlin.android'
  4. }
  5. apply plugin: 'kotlin-android-extensions'
  6. android {
  7. compileSdk 31
  8. defaultConfig {
  9. applicationId "com.example.cooleshow"
  10. minSdk 21
  11. targetSdk 31
  12. versionCode 1
  13. versionName "1.0"
  14. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  15. }
  16. buildTypes {
  17. release {
  18. minifyEnabled false
  19. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  20. }
  21. }
  22. // sourceSets {
  23. // main {
  24. // if (isUserModule.toBoolean()) {
  25. // manifest.srcFile 'src/main/release/AndroidManifest.xml'
  26. // } else {
  27. // manifest.srcFile 'src/main/debug/AndroidManifest.xml'
  28. // }
  29. // }
  30. // }
  31. compileOptions {
  32. sourceCompatibility JavaVersion.VERSION_1_8
  33. targetCompatibility JavaVersion.VERSION_1_8
  34. }
  35. packagingOptions {
  36. resources.excludes.add("META-INF/*")
  37. }
  38. kotlinOptions {
  39. jvmTarget = '1.8'
  40. }
  41. }
  42. dependencies {
  43. implementation 'androidx.core:core-ktx:1.7.0'
  44. implementation 'androidx.appcompat:appcompat:1.3.0'
  45. implementation 'com.google.android.material:material:1.4.0'
  46. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  47. testImplementation 'junit:junit:4.13.2'
  48. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  49. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  50. implementation project(':Provider')
  51. implementation project(path: ':BaseLibrary')
  52. if (isUserModule.toBoolean()){
  53. implementation project(':usercenter')
  54. }
  55. }