Skip to content

Commit b15c85d

Browse files
authored
Merge pull request #1 from amirisback/release/1.0.0
release/1.0.0
2 parents 81bc6d5 + edeb307 commit b15c85d

20 files changed

+382
-47
lines changed

README.md

Lines changed: 39 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,68 @@
1-
## Compile and Run Kotlin / Java Using Github Action
1+
## Compile and Run Kotlin / Java Using Github Action
2+
23
[![Main CI](https://github.com/amirisback/compile-run-kotlin-java-using-github-action/actions/workflows/ci.yml/badge.svg)](https://github.com/amirisback/compile-run-kotlin-java-using-github-action/actions/workflows/ci.yml)
34

5+
## Version Release
6+
7+
This Is Latest Release
8+
9+
$version_release = 1.0.0
10+
11+
What's New??
12+
13+
* New Release Shutdown Timer *
14+
415
### Tools
16+
517
- Intellij IDEA
6-
- Kotlin v 1.8.0
18+
19+
### Libs
20+
21+
```
22+
kotlin.version=2.0.21
23+
compose.version=1.7.0
24+
```
725

826
## Screen Shot
27+
928
![ss](docs/image/ss-1.png?raw=true)
1029

1130
## How To Use
12-
### Step 1 : Create task on build.gradle.kts
13-
- Create Task and Register to build.gradle.kts like below
14-
- Sample Task Name : runMainKotlin
15-
- Detail [Click Here](https://github.com/amirisback/compile-run-kotlin-java-using-github-action/blob/master/build.gradle.kts)
16-
```kts
17-
tasks.register ("runMainKotlin", JavaExec::class.java) {
18-
description = "Compile and Run Main Kotlin"
19-
classpath = sourceSets["main"].runtimeClasspath
20-
// note the addition of "Kt" on the end of the class name.
21-
22-
// package name
23-
mainClass.set("io.github.amirisback.MainKt")
24-
}
25-
```
2631

27-
### Step 2 : Add to CI.yml
28-
- Call the function that has been created in the build.gradle.kts file
29-
- Sample Function : runMainKotlin
30-
- Detail [Click Here](https://github.com/amirisback/compile-run-kotlin-java-using-github-action/blob/master/.github/workflows/ci.yml)
31-
```yml
32-
# Run main using gradle
33-
- name: Run Main
34-
run: ./gradlew runMainKotlin
35-
```
32+
### Install apps on Release Page
33+
34+
1. Go to [Release Page]()
3635

37-
### Step 3 : Run On Github Action
38-
- Open Github Action On Github
36+
2. Download the latest release
3937

40-
![ss](docs/image/ss-2.png?raw=true)
38+
## Installation
39+
40+
1. Download the latest release from [Release Page]()
41+
2. install the app on your device
42+
3. Open the app
43+
44+
- ![installation-1](docs/image/installation-1.png?raw=true)
45+
- ![installation-2](docs/image/installation-2.png?raw=true)
46+
- ![installation-3](docs/image/installation-3.png?raw=true)
47+
- ![installation-4](docs/image/installation-4.png?raw=true)
48+
49+
## Contribute
4150

42-
## Colaborator
4351
Very open to anyone, I'll write your name under this, please contribute by sending an email to me
4452

4553
- Mail To faisalamircs@gmail.com
4654
- Subject : Github _ [Github-Username-Account] _ [Language] _ [Repository-Name]
4755
- Example : Github_amirisback_kotlin_admob-helper-implementation
4856

4957
Name Of Contribute
58+
5059
- Muhammad Faisal Amir
5160
- Waiting List
5261
- Waiting List
5362

5463
Waiting for your contribute
5564

5665
## Attention !!!
66+
5767
- Please enjoy and don't forget fork and give a star
5868
- Don't Forget Follow My Github Account

build.gradle.kts

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1+
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
2+
13
plugins {
2-
kotlin("jvm") version "2.0.21"
4+
kotlin("jvm")
5+
id("org.jetbrains.compose")
6+
id("org.jetbrains.kotlin.plugin.compose")
37
}
48

59
group = "io.github.amirisback"
6-
version = "1.0-SNAPSHOT"
10+
version = "1.0"
711

812
repositories {
913
mavenCentral()
10-
}
11-
12-
dependencies {
13-
testImplementation(kotlin("test"))
14+
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
15+
google()
1416
}
1517

1618
tasks.test {
@@ -26,5 +28,29 @@ tasks.register ("runMainKotlin", JavaExec::class.java) {
2628
classpath = sourceSets["main"].runtimeClasspath
2729
// note the addition of "Kt" on the end of the class name.
2830

29-
mainClass.set("io.github.amirisback.MainKt")
31+
mainClass.set("ui.screen.main.MainKt")
32+
}
33+
34+
compose.desktop {
35+
application {
36+
mainClass = "ui.screen.main.MainKt"
37+
38+
nativeDistributions {
39+
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb, TargetFormat.Exe)
40+
packageName = "shutdown-timer"
41+
packageVersion = "1.0.0"
42+
}
43+
}
44+
}
45+
46+
47+
dependencies {
48+
testImplementation(kotlin("test"))
49+
implementation(compose.desktop.currentOs)
50+
implementation(compose.ui)
51+
implementation(compose.runtime)
52+
implementation(compose.preview)
53+
implementation(compose.uiTooling)
54+
implementation(compose.material)
55+
implementation(compose.materialIconsExtended)
3056
}

docs/image/installation-1.png

35.6 KB
Loading

docs/image/installation-2.png

17.8 KB
Loading

docs/image/installation-3.png

17.5 KB
Loading

docs/image/installation-4.png

31 KB
Loading

docs/image/ss-1.png

-79 KB
Loading

docs/image/ss-2.png

-135 KB
Binary file not shown.

gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
12
kotlin.code.style=official
3+
kotlin.version=2.0.21
4+
compose.version=1.7.0

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)