Files
o2o-weather/watch/app/build.gradle.kts
T
HyeongBaeYangandClaude Opus 5.5 b72206f7ee chore: 워치 릴리스 빌드 준비 — 업로드 키 서명, 운영 API 주소 속성화, R8, 라이선스 동봉
- 서명·API 주소는 ~/.gradle/gradle.properties 의 NALSSIGAK_* 에서 읽음 (저장소에 키 없음)
- 앱 R8·리소스 줄이기, 스킨은 dex 없게 R8 만 켜고 리소스 줄이기는 끔
- MIT·OFL 전문을 앱 assets 로 같이 실음, *.jks·*.keystore 무시

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 15:19:13 +09:00

42 lines
1.4 KiB
Kotlin

plugins {
id("com.android.application")
id("org.jetbrains.kotlin.plugin.compose")
}
android {
namespace = "kr.o2o.nalssigak"
compileSdk = 37
defaultConfig {
applicationId = "kr.o2o.nalssigak"
minSdk = 30
targetSdk = 34
versionCode = 1
versionName = "0.1"
}
buildTypes {
// 에뮬레이터에서 본 맥의 로컬 백엔드 (compose 포트 9810)
debug { buildConfigField("String", "API_BASE", "\"http://10.0.2.2:9810\"") }
// 운영 서버 https 주소는 -PNALSSIGAK_API_BASE=… 또는 ~/.gradle/gradle.properties 로
release {
buildConfigField("String", "API_BASE", "\"${providers.gradleProperty("NALSSIGAK_API_BASE").getOrElse("")}\"")
isMinifyEnabled = true
isShrinkResources = true
}
}
// 오픈소스 라이선스 전문을 앱에 같이 싣는다 (MIT·OFL 고지 조건)
sourceSets["main"].assets.directories.add("../licenses")
buildFeatures {
compose = true
buildConfig = true
}
}
dependencies {
implementation("androidx.activity:activity-compose:1.13.0")
implementation("androidx.wear.compose:compose-material3:1.7.0")
implementation("androidx.wear.tiles:tiles:1.6.2")
implementation("androidx.concurrent:concurrent-futures:1.3.0")
implementation("androidx.wear.watchface:watchface-complications-data-source-ktx:1.3.0")
}