Skip to content

Commit 0264564

Browse files
committed
SwiftKit: prepare Unsigned Java types for interop with UInt etc
1 parent 9c0d7eb commit 0264564

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
@@ -31,10 +31,12 @@ jobs:
3131
- uses: actions/checkout@v4
3232
- name: Prepare CI Environment
3333
uses: ./.github/actions/prepare_env
34+
3435
- name: Gradle :SwiftKitCore:build
3536
run: ./gradlew :SwiftKitCore:build -x test
3637
- name: Gradle :SwiftKitCore:check
3738
run: ./gradlew :SwiftKitCore:check --info
39+
3840
- name: Gradle :SwiftKitFFM:build
3941
run: ./gradlew :SwiftKitFFM:build -x test
4042
- 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
}
1819

1920
group = "org.swift.swiftkit"
@@ -28,12 +29,21 @@ java {
2829
languageVersion.set(JavaLanguageVersion.of(17))
2930
}
3031
// Support Android 6+ (Java 7)
31-
sourceCompatibility = JavaVersion.VERSION_1_7
32-
targetCompatibility = JavaVersion.VERSION_1_7
32+
sourceCompatibility = JavaVersion.VERSION_17
33+
targetCompatibility = JavaVersion.VERSION_17
3334
}
3435

3536
dependencies {
36-
testImplementation 'junit:junit:4.13.2'
37+
testImplementation(platform("org.junit:junit-bom:5.10.0"))
38+
testImplementation("org.junit.jupiter:junit-jupiter")
39+
}
40+
41+
testing {
42+
suites {
43+
test {
44+
useJUnitJupiter('5.10.3')
45+
}
46+
}
3747
}
3848

3949
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)