build.gradle.kts 537 B

123456789101112131415161718192021
  1. plugins {
  2. id("com.android.library")
  3. }
  4. // 使用自定义插件
  5. apply<DefaultGradlePlugin>()
  6. android {
  7. namespace = "com.android.cs_service"
  8. defaultConfig {
  9. val isRelease = ProjectConfig.isReleaseServer
  10. buildConfigField("boolean", "IS_RELEASE_SERVER", "$isRelease")
  11. buildConfigField("int", "FEATURE_VERSION", "1")
  12. buildConfigField("String", "BASE_URL", "\"${if (isRelease) ProjectConfig.baseUrl_rel else ProjectConfig.baseUrl_dev}\"")
  13. }
  14. }
  15. dependencies {
  16. api(project(":cs-baselib"))
  17. }