build.gradle 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. apply plugin: "com.android.application"
  2. apply plugin: "kotlin-android"
  3. apply plugin: "kotlin-kapt"
  4. apply plugin: 'kotlinx-serialization'
  5. android {
  6. compileSdkVersion 33
  7. signingConfigs {
  8. signed {
  9. storeFile file("../signed")
  10. storePassword "s73dfyUxkjuq"
  11. keyAlias "key0"
  12. keyPassword "s73dfyUxkjuq"
  13. }
  14. }
  15. defaultConfig {
  16. applicationId "com.drake.net.sample"
  17. minSdkVersion 19
  18. targetSdkVersion 33
  19. versionCode 1
  20. multiDexEnabled true
  21. versionName "1.0"
  22. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  23. signingConfig signingConfigs.signed
  24. }
  25. buildTypes {
  26. release {
  27. minifyEnabled true
  28. proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
  29. }
  30. }
  31. dataBinding {
  32. enabled = true
  33. }
  34. kotlinOptions {
  35. jvmTarget = JavaVersion.VERSION_1_8
  36. }
  37. compileOptions {
  38. sourceCompatibility JavaVersion.VERSION_1_8
  39. targetCompatibility JavaVersion.VERSION_1_8
  40. }
  41. applicationVariants.all {
  42. it.outputs.each { output ->
  43. output.outputFileName = "net-sample.apk"
  44. }
  45. }
  46. }
  47. dependencies {
  48. implementation fileTree(dir: "libs", include: ["*.jar"])
  49. testImplementation "junit:junit:4.13.2"
  50. androidTestImplementation "androidx.test:runner:1.3.0"
  51. androidTestImplementation "androidx.test.espresso:espresso-core:3.3.0"
  52. implementation "androidx.appcompat:appcompat:1.6.1"
  53. implementation "androidx.core:core-ktx:1.9.0"
  54. implementation "androidx.constraintlayout:constraintlayout:2.0.4"
  55. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  56. implementation "androidx.recyclerview:recyclerview:1.2.0"
  57. implementation "com.google.android.material:material:1.3.0"
  58. implementation project(path: ":net")
  59. implementation "com.squareup.okhttp3:okhttp:$okhttp_version"
  60. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutine_version"
  61. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutine_version"
  62. implementation "com.github.chuckerteam.chucker:library:3.5.2"
  63. implementation 'com.github.liangjingkanji:Engine:0.0.74'
  64. debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.12'
  65. }