Skip to content

Commit 192791b

Browse files
committed
SwiftKit: prepare Unsigned Java types for interop with UInt etc
1 parent 4495da6 commit 192791b

File tree

13 files changed

+1142
-3
lines changed

13 files changed

+1142
-3
lines changed

.github/workflows/pull_request.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@ jobs:
5656
- uses: actions/checkout@v4
5757
- name: Prepare CI Environment
5858
uses: ./.github/actions/prepare_env
59+
5960
- name: Gradle :SwiftKitCore:build
6061
run: ./gradlew :SwiftKitCore:build -x test
6162
- name: Gradle :SwiftKitCore:check
6263
run: ./gradlew :SwiftKitCore:check --info
64+
6365
- name: Gradle :SwiftKitFFM:build
6466
run: ./gradlew :SwiftKitFFM:build -x test
6567
- name: Gradle :SwiftKitFFM:check

SwiftKitCore/build.gradle

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
plugins {
1616
id("build-logic.java-application-conventions")
17+
id("me.champeau.jmh") version "0.7.2"
1718
id("maven-publish")
1819
}
1920

@@ -45,12 +46,21 @@ java {
4546
languageVersion.set(JavaLanguageVersion.of(17))
4647
}
4748
// Support Android 6+ (Java 7)
48-
sourceCompatibility = JavaVersion.VERSION_1_7
49-
targetCompatibility = JavaVersion.VERSION_1_7
49+
sourceCompatibility = JavaVersion.VERSION_17
50+
targetCompatibility = JavaVersion.VERSION_17
5051
}
5152

5253
dependencies {
53-
testImplementation 'junit:junit:4.13.2'
54+
testImplementation(platform("org.junit:junit-bom:5.10.0"))
55+
testImplementation("org.junit.jupiter:junit-jupiter")
56+
}
57+
58+
testing {
59+
suites {
60+
test {
61+
useJUnitJupiter('5.10.3')
62+
}
63+
}
5464
}
5565

5666
tasks.test {
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package org.swift.swiftkit.core;
2+
3+
public class NotImplementedException extends RuntimeException {
4+
5+
private static final long serialVersionUID = 1L;
6+
7+
public NotImplementedException(String message) {
8+
super(message);
9+
}
10+
}

0 commit comments

Comments
 (0)