Skip to content

Commit

Permalink
Merge pull request #3 from korlibs/feature/multiplatform.coroutine.lib
Browse files Browse the repository at this point in the history
Supports coroutines in common code
  • Loading branch information
soywiz authored May 15, 2023
2 parents bd22c9f + 4334ac9 commit e05688f
Show file tree
Hide file tree
Showing 44 changed files with 4,213 additions and 329 deletions.
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.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit e05688f

Please sign in to comment.