Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supports coroutines in common code #3

Merged
merged 17 commits into from
May 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ jobs:
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with:
arguments: jvmTest
build-root-directory: ./example
build-root-directory: ./

7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,11 @@ gradle-app.setting
/luak/gradle
/luak/.idea
/luak/.gradle
.idea
/build
/deps
/modules
/korge.keystore
/local.properties
/src/main

49 changes: 49 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import korlibs.korge.gradle.*
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent

plugins {
//alias(libs.plugins.korge)
//id("com.soywiz.korge") version "999.0.0.999"
id("com.soywiz.korge") version "4.0.0-rc4"
}

korge {
id = "org.korge.samples.mymodule"

// To enable all targets at once

//targetAll()

// To enable targets based on properties/environment variables
//targetDefault()

// To selectively enable targets

targetJvm()
targetJs()
targetDesktop()
targetDesktopCross()
targetIos()
targetAndroidDirect()
serializationJson()
}

dependencies {
add("commonMainApi", project(":deps"))
}

// @TODO: Remove after KorGE 4.0.1 is used
project.tasks.withType(org.gradle.api.tasks.testing.AbstractTestTask::class.java).all {
testLogging {
events = mutableSetOf(
//TestLogEvent.STARTED, TestLogEvent.PASSED,
TestLogEvent.SKIPPED,
TestLogEvent.FAILED,
TestLogEvent.STANDARD_OUT, TestLogEvent.STANDARD_ERROR
)
exceptionFormat = TestExceptionFormat.FULL
showStackTraces = true
showStandardStreams = true
}
}
2 changes: 1 addition & 1 deletion example/deps.kproject.yml → deps.kproject.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#name: deps
dependencies:
- ../luak
- ./luak

8 changes: 0 additions & 8 deletions example/.gitignore

This file was deleted.

33 changes: 0 additions & 33 deletions example/build.gradle.kts

This file was deleted.

10 changes: 0 additions & 10 deletions example/settings.gradle.kts

This file was deleted.

8 changes: 0 additions & 8 deletions example/src/commonTest/kotlin/MyTest.kt

This file was deleted.

File renamed without changes.
File renamed without changes.
Loading