Skip to content

Commit 25fc8c5

Browse files
committed
add release and debug build sysmte
1 parent baa1278 commit 25fc8c5

File tree

1 file changed

+12
-3
lines changed
  • app/src/main/java/com/puutaro/commandclick/proccess/ubuntu

1 file changed

+12
-3
lines changed

app/src/main/java/com/puutaro/commandclick/proccess/ubuntu/UbuntuInfo.kt

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,22 @@ import com.puutaro.commandclick.BuildConfig
55

66
object UbuntuInfo {
77
val user = "cmdclick"
8+
9+
private const val buildConfigDebug = BuildConfig.DEBUG
10+
811
// for development
12+
private const val devFalseInRelease = false
913
val onForDev = if(
10-
BuildConfig.DEBUG
14+
buildConfigDebug
1115
) true
12-
else false
16+
else devFalseInRelease
17+
18+
private val createImageSwitchOffInRelease = CreateImageSwitch.off.name
19+
val createImageSwitch = if(
20+
buildConfigDebug
21+
) CreateImageSwitch.off.name
22+
else createImageSwitchOffInRelease
1323

14-
val createImageSwitch = CreateImageSwitch.off.name
1524
val arm64UbuntuRootfsUrl =
1625
decideArm64UbuntuRootfsUrl(createImageSwitch)
1726

0 commit comments

Comments
 (0)