Skip to content

Commit 5f9f7a3

Browse files
Update Kotlin and Compose, package suggested modules
1 parent f776a5e commit 5f9f7a3

5 files changed

Lines changed: 20 additions & 13 deletions

File tree

.idea/compiler.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/kotlinc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# <img src="screenshots/KVMapperIcon.png" height="25"> KVMapper
22

3-
![](https://img.shields.io/badge/Platform-macOS-blue) ![](https://img.shields.io/badge/Kotlin-1.5.31-orange) ![](https://img.shields.io/badge/UI-Compose_Desktop-orange) ![](https://img.shields.io/badge/Kotlin_Weekly-Issue_298-brightgreen)
3+
![](https://img.shields.io/badge/Platform-macOS-blue) ![](https://img.shields.io/badge/Kotlin-1.7.20-orange) ![](https://img.shields.io/badge/UI-Compose_Desktop-orange) ![](https://img.shields.io/badge/Kotlin_Weekly-Issue_298-brightgreen)
44
<br /><br />
55
KVMapper is an application to convert key-value pairs from one format to another.
66
<br /><br />
@@ -28,10 +28,17 @@ A list of key-value pairs can be pasted into the input field and then converted
2828
- macOS 10.10+ (Intel): [KVMapper.app](https://github.com/snappdevelopment/KVMapper/releases/download/1.0/KVMapper.app.zip)
2929
- Source: [Release 1.0](https://github.com/snappdevelopment/KVMapper/archive/1.0.zip)
3030

31-
> Since this is a hobby project, the macOS app is not signed with a developer ID from Apple. When opening the app, there might pop up a window saying the app is damaged and can't be opened. If you encounter this issue, then you can manually grant executable rights with the following terminal command and try again:
31+
> Since this is a hobby project, the macOS app is not signed with a developer ID from Apple. When opening the app, there might pop up a window saying the app is damaged and can't be opened. If you encounter this issue, then you can try to take the app out of quarantine mode or manually grant executable rights with the following terminal commands. Then try again:
32+
33+
Disable quarantine mode for this app:
34+
```
35+
sudo xattr -cr /path/to/app/KVMapper.app
36+
```
37+
Grant executable rights, if the first command didn't work:
3238
```
3339
sudo chmod +x /path/to/app/KVMapper.app/Contents/MacOS/KVMapper
3440
```
41+
Alternatively you can clone this project and build the app yourself. See section [Building](#Building).
3542

3643
## Usage
3744

@@ -62,9 +69,8 @@ button_convert: Convert
6269

6370
## Building
6471

65-
- Open the project folder in IntelliJ IDEA
66-
- Open the Gradle tab on the right and run the task `Tasks -> compose desktop -> run` to build and launch the app
67-
- Open the Gradle tab on the right and run the task `Tasks -> compose desktop -> createDistributable` to build and package the app into an executable app. (e.g. macOS app)
72+
- Run the app: `./gradlew run` or `./gradlew runRelease`
73+
- Build a distributable: `./gradlew createDistributable` or `./gradlew createReleaseDistributable`
6874

6975
> Distributable is built to: `build/compose/binaries/main/app`
7076
> Building requires JDK 16: `Preferences -> Gradle -> Gradle JDK`

build.gradle.kts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
import org.jetbrains.compose.compose
21
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
32
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
43

54
plugins {
6-
kotlin("jvm") version "1.5.31"
7-
id("org.jetbrains.compose") version "1.0.0"
5+
kotlin("jvm") version "1.7.20"
6+
id("org.jetbrains.compose") version "1.2.0"
87
}
98

109
group = "com.snad.kvmapper"
11-
version = "1.0"
10+
version = "1.1"
1211

1312
repositories {
1413
google()
@@ -38,13 +37,15 @@ compose.desktop {
3837
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
3938
appResourcesRootDir.set(project.layout.projectDirectory.dir("resources"))
4039
packageName = "KVMapper"
41-
packageVersion = "1.0.0"
40+
packageVersion = "1.1.0"
4241
description = "Key Value Mapper"
4342
copyright = "2022 SNAD. All rights reserved."
4443

4544
macOS {
4645
iconFile.set(project.file("icon.icns"))
4746
}
47+
48+
modules("java.instrument", "jdk.unsupported")
4849
}
4950
}
5051
}

0 commit comments

Comments
 (0)