Skip to content

Commit a3bee14

Browse files
authored
Merge branch 'main' into fix/sprite-frame-timing
2 parents 13c8d60 + 1a6b18b commit a3bee14

11 files changed

Lines changed: 10090 additions & 12 deletions

File tree

.github/workflows/checks.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ on:
1414
- '**'
1515
- '!**.gitignore'
1616
- '!**.md'
17-
- '!**.github/workflows/*'
1817

1918
concurrency:
2019
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -209,7 +208,7 @@ jobs:
209208
publishToMavenLocal \
210209
:korge-gradle-plugin:publishToMavenLocal
211210
- name: Run e2e SwiftUI integration
212-
run: "./gradlew -p e2e/e2e-test-integration/swiftui/korge-hello-world build"
211+
run: "./gradlew -p e2e/e2e-test-integration/swiftui/korge-hello-world check"
213212
- name: Build Korge iOS simulator framework
214213
run: "./gradlew -p e2e/e2e-test-integration/swiftui/korge-hello-world linkDebugFrameworkIosSimulatorArm64"
215214
- name: Build SwiftUI Xcode integration project
@@ -222,6 +221,9 @@ jobs:
222221
-destination 'generic/platform=iOS Simulator' \
223222
-derivedDataPath build/xcode-derived-data/SwiftUIKorgeIntegration \
224223
-resultBundlePath build/xcode-results/SwiftUIKorgeIntegration.xcresult \
224+
ARCHS=arm64 \
225+
EXCLUDED_ARCHS=x86_64 \
226+
ONLY_ACTIVE_ARCH=YES \
225227
CODE_SIGNING_ALLOWED=NO \
226228
clean build
227229
- name: Archive E2E SwiftUI Test Results

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,5 @@ err.txt
2020
*.hprof
2121
*.xcuserstate
2222
xcuserdata
23-
kotlin-js-store/
24-
.kotlin
2523
/stagedRepositoryId
2624
/**/build

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ plugins {
1313
allprojects {
1414
repositories {
1515
mavenLocal()
16-
mavenCentral()
17-
google()
1816
maven {
1917
name = "Central Portal Snapshots"
2018
url = uri("https://central.sonatype.com/repository/maven-snapshots/")
@@ -23,5 +21,7 @@ allprojects {
2321
includeGroup("org.korge.korlibs")
2422
}
2523
}
24+
mavenCentral()
25+
google()
2626
}
2727
}

e2e/e2e-test-integration/swiftui/korge-hello-world/build.gradle.kts

Lines changed: 64 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ kotlin {
1010
val iosTargets = listOf(
1111
iosX64(),
1212
iosArm64(),
13-
iosSimulatorArm64(),
13+
iosSimulatorArm64()
1414
)
15-
1615
// Optionally add more targets
1716

1817
val xcf = XCFramework("ios")
@@ -21,6 +20,8 @@ kotlin {
2120
baseName = "GameMain"
2221
xcf.add(this)
2322
export(libs.korlibs.image)
23+
isStatic = true
24+
linkerOpts("-lc++")
2425
}
2526
}
2627

@@ -30,6 +31,64 @@ kotlin {
3031
implementation(libs.kotlinx.serialization.json)
3132
implementation(libs.korlibs.image)
3233
}
34+
35+
iosMain.dependencies {
36+
implementation(libs.korge.engine)
37+
api(libs.korlibs.image)
38+
}
39+
40+
iosX64Main.dependencies {
41+
implementation(libs.korlibs.image)
42+
}
43+
44+
iosArm64Main.dependencies {
45+
implementation(libs.korlibs.image)
46+
}
47+
48+
iosSimulatorArm64Main.dependencies {
49+
implementation(libs.korlibs.image)
50+
}
51+
52+
commonTest.dependencies {
53+
implementation(kotlin("test"))
54+
implementation(libs.korge.engine)
55+
}
56+
57+
/*
58+
val commonMain by getting {
59+
dependencies {
60+
implementation(libs.korge.engine)
61+
implementation(libs.kotlinx.serialization.json)
62+
implementation(libs.korlibs.image)
63+
}
64+
}
65+
66+
val iosMain by creating {
67+
dependsOn(commonMain)
68+
dependencies {
69+
api(libs.korlibs.image)
70+
}
71+
}
72+
73+
val iosX64Main by getting {
74+
dependsOn(iosMain)
75+
}
76+
77+
val iosArm64Main by getting {
78+
dependsOn(iosMain)
79+
}
80+
81+
val iosSimulatorArm64Main by getting {
82+
dependsOn(iosMain)
83+
}
84+
85+
val commonTest by getting {
86+
dependencies {
87+
implementation(kotlin("test"))
88+
implementation(libs.korge.engine)
89+
}
90+
}
91+
*/
3392
}
3493
}
3594

@@ -45,7 +104,7 @@ korge {
45104

46105
// To selectively enable targets
47106

48-
targetJvm()
49-
targetJs()
50-
targetAndroid()
107+
// targetJvm()
108+
// targetJs()
109+
// targetAndroid()
51110
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
org.gradle.jvmargs=-Xmx4g
22
kotlin.mpp.stability.nowarn=true
33
kotlin.mpp.androidSourceSetLayoutVersion=2
4+
kotlin.mpp.applyDefaultHierarchyTemplate=true

0 commit comments

Comments
 (0)