Skip to content

Commit 7d172cb

Browse files
committed
release and debug path
1 parent d4c32a9 commit 7d172cb

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

example/android/kotlinlib/2-compose/build.mill

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,14 @@ object app extends AndroidAppKotlinModule {
2929
def androidCompileSdk = 35
3030
def androidMinSdk = 26
3131
def androidEnableCompose = true
32-
def androidIsDebug = true
32+
33+
// Configuration for ReleaseKey
34+
def androidReleaseKeyName: T[Option[String]] = Task { Some("releaseKey.jks") }
35+
def androidReleaseKeyAlias: T[Option[String]] = Task { Some("releaseKey") }
36+
def androidReleaseKeyPass: T[Option[String]] = Task { Some("MillBuildTool") }
37+
def androidReleaseKeyStorePass: T[Option[String]] = Task { Some("MillBuildTool") }
38+
override def androidVirtualDeviceIdentifier: String = "kotlin-test"
39+
override def androidEmulatorPort: String = "5556"
3340

3441
def ivyDeps: T[Seq[Dep]] = Seq(
3542
ivy"androidx.core:core-ktx:1.15.0",
@@ -60,8 +67,8 @@ object app extends AndroidAppKotlinModule {
6067

6168
/** Usage
6269

63-
//> ./mill show app.androidReleaseApk
64-
//".../out/app/androidReleaseApk.dest/app.apk"
70+
> ./mill show app.androidReleaseApk
71+
".../out/app/androidReleaseApk.dest/app.apk"
6572

6673
> ./mill show app.androidDebugApk
6774
".../out/app/androidDebugApk.dest/app.apk"

0 commit comments

Comments
 (0)