Skip to content

Commit

Permalink
Changed build configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
NickP0is0n committed Jun 6, 2021
1 parent 7d01b78 commit af74a56
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
}

group = "me.nickp0is0n"
version = "0.1"
version = "0.0.6"

repositories {
jcenter()
Expand All @@ -31,7 +31,13 @@ compose.desktop {
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "EasyLocalize"
packageVersion = "1.0.0"
packageVersion = "1.0.6"
copyright = "Copyright (c) 2021, Mykola Chaikovskyi"
macOS {
bundleID = "me.nickp0is0n.easylocalize"
dockName = "EasyLocalize"
iconFile.set(project.file("easylocalize_logo.icns"))
}
}
}
}
Expand Down
Binary file added easylocalize_logo.icns
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main/kotlin/me/nickp0is0n/easylocalize/main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import androidx.compose.ui.unit.IntSize
import me.nickp0is0n.easylocalize.ui.MainWindowView

fun main() = Window (
title = "EasyLocalize 0.0.5 alpha",
title = "EasyLocalize 0.0.6 alpha",
resizable = false,
size = IntSize(780, 455)
) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
package me.nickp0is0n.easylocalize.ui

import androidx.compose.desktop.AppWindow
import androidx.compose.desktop.LocalAppWindow
import androidx.compose.material.AlertDialog
import androidx.compose.material.Button
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.window.Notifier
import me.nickp0is0n.easylocalize.models.LocalizedString
import me.nickp0is0n.easylocalize.utils.LocalizeExporter
import me.nickp0is0n.easylocalize.utils.LocalizeParser
import java.awt.FileDialog

class MainWindowController {
Expand Down
21 changes: 3 additions & 18 deletions src/main/kotlin/me/nickp0is0n/easylocalize/ui/MainWindowView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.RectangleShape
import androidx.compose.ui.unit.dp
import androidx.compose.ui.window.Notifier
import me.nickp0is0n.easylocalize.models.LocalizedString
import me.nickp0is0n.easylocalize.utils.LocalizeParser
import java.awt.FileDialog
Expand Down Expand Up @@ -41,6 +42,8 @@ class MainWindowView {
Button (
onClick = {
controller.onExportButtonClick(stringList, window)
val notifier = Notifier()
notifier.notify("Success", "Localization file has been successfully exported.")
},
colors = ButtonDefaults.buttonColors(backgroundColor = Color(30, 144, 255)),
modifier = Modifier.padding(top = 10.dp)
Expand Down Expand Up @@ -145,22 +148,4 @@ class MainWindowView {
val stringFile = openDialog.files[0]
return parser.fromFile(stringFile)
}

@Composable
private fun showExportSuccessAlert() {
AlertDialog(
title = {
Text("Success")
},
text = {
Text("Translation file successfully exported!")
},
onDismissRequest = {},
confirmButton = {
Button(onClick = {}) {
Text("OK")
}
}
)
}
}

0 comments on commit af74a56

Please sign in to comment.