Skip to content

Commit ae09ecb

Browse files
committed
✨ add version info and release 2022.8.29
1 parent fc787d1 commit ae09ecb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"main": "index.js",
88
"preferGlobal": true,
99
"repository": "https://github.com/theapache64/create-compose-app",
10-
"version": "2022.8.28.1",
10+
"version": "2022.8.29",
1111
"jdeploy": {},
1212
"dependencies": {
1313
"shelljs": "0.8.4"

src/main/kotlin/com/theapache64/createcomposeapp/Main.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import kotlin.io.path.Path
1010
import kotlin.io.path.div
1111

1212
private const val IS_DEBUG = false
13+
private const val VERSION = "2022.8.29"
1314

1415
enum class Platform(val title: String) {
1516
Android("🤖 Android"),
@@ -22,7 +23,7 @@ enum class Platform(val title: String) {
2223

2324

2425
fun main(args: Array<String>) {
25-
26+
println(Color.GREEN, "Initializing create-compose-app (v$VERSION)")
2627
val platform = if (IS_DEBUG) {
2728
Platform.DesktopGame
2829
} else {
@@ -64,7 +65,7 @@ fun createAndroidApp() {
6465
"rootProject.name = \"compose-android-template\"" to "rootProject.name = \"${corvette.projectDirName}\"", // settings.build.gradle
6566
"com.theapache64.composeandroidtemplate" to corvette.packageName,
6667
"<string name=\"app_name\">compose-android-template</string>" to "<string name=\"app_name\">${corvette.projectName}</string>",
67-
"ComposeAndroidTemplate" to corvette.projectName.replace("[^\\w]+".toRegex(),"_"),
68+
"ComposeAndroidTemplate" to corvette.projectName.replace("[^\\w]+".toRegex(), "_"),
6869
"versionCode 20211003" to "versionCode ${genVersionCode()}"
6970
)
7071

0 commit comments

Comments
 (0)