Skip to content

Commit

Permalink
✨ add version info and release 2022.8.29
Browse files Browse the repository at this point in the history
  • Loading branch information
theapache64 committed Aug 28, 2022
1 parent fc787d1 commit ae09ecb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"main": "index.js",
"preferGlobal": true,
"repository": "https://github.com/theapache64/create-compose-app",
"version": "2022.8.28.1",
"version": "2022.8.29",
"jdeploy": {},
"dependencies": {
"shelljs": "0.8.4"
Expand Down
5 changes: 3 additions & 2 deletions src/main/kotlin/com/theapache64/createcomposeapp/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import kotlin.io.path.Path
import kotlin.io.path.div

private const val IS_DEBUG = false
private const val VERSION = "2022.8.29"

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


fun main(args: Array<String>) {

println(Color.GREEN, "Initializing create-compose-app (v$VERSION)")
val platform = if (IS_DEBUG) {
Platform.DesktopGame
} else {
Expand Down Expand Up @@ -64,7 +65,7 @@ fun createAndroidApp() {
"rootProject.name = \"compose-android-template\"" to "rootProject.name = \"${corvette.projectDirName}\"", // settings.build.gradle
"com.theapache64.composeandroidtemplate" to corvette.packageName,
"<string name=\"app_name\">compose-android-template</string>" to "<string name=\"app_name\">${corvette.projectName}</string>",
"ComposeAndroidTemplate" to corvette.projectName.replace("[^\\w]+".toRegex(),"_"),
"ComposeAndroidTemplate" to corvette.projectName.replace("[^\\w]+".toRegex(), "_"),
"versionCode 20211003" to "versionCode ${genVersionCode()}"
)

Expand Down

0 comments on commit ae09ecb

Please sign in to comment.