build.gradle 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. id 'kotlin-parcelize'
  5. id 'maven-publish'
  6. }
  7. ext {
  8. GROUP_ID = 'com.gami.android'
  9. ARTIFACT_ID = 'frame-aab'
  10. VERSION = '1.0.0'
  11. }
  12. apply from: "../../publish.gradle"
  13. android {
  14. namespace 'com.adealink.frame.aab'
  15. compileSdk libs.versions.compileSdk.get().toInteger()
  16. defaultConfig {
  17. minSdk libs.versions.minSdk.get().toInteger()
  18. targetSdk libs.versions.targetSdk.get().toInteger()
  19. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  20. consumerProguardFiles "consumer-rules.pro"
  21. }
  22. viewBinding {
  23. enabled = true
  24. }
  25. buildTypes {
  26. release {
  27. minifyEnabled false
  28. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  29. }
  30. }
  31. compileOptions {
  32. sourceCompatibility JavaVersion.VERSION_17
  33. targetCompatibility JavaVersion.VERSION_17
  34. }
  35. kotlinOptions {
  36. jvmTarget = JavaVersion.VERSION_17.majorVersion
  37. }
  38. }
  39. dependencies {
  40. //kotlin
  41. implementation libs.kotlin.stdlib
  42. //androidx
  43. implementation libs.androidx.activity
  44. implementation libs.androidx.core.ktx
  45. implementation libs.androidx.appcompat
  46. implementation libs.androidx.constraint.layout
  47. //google
  48. api libs.play.feature.delivery
  49. implementation libs.play.feature.delivery.ktx
  50. implementation libs.gms.play.services.base
  51. //frame
  52. compileOnly project(":frame:zero")
  53. compileOnly project(":frame:mvvm")
  54. compileOnly project(":frame:data")
  55. compileOnly project(":frame:spi")
  56. compileOnly project(":frame:util")
  57. compileOnly project(":frame:base")
  58. compileOnly project(":frame:zero")
  59. compileOnly project(":frame:coroutine")
  60. compileOnly project(":frame:log")
  61. //test
  62. testImplementation libs.junit
  63. androidTestImplementation libs.androidx.junit
  64. androidTestImplementation libs.androidx.espresso.core
  65. }