Skip to content

WIP: Prepare Unsigned integer types for SwiftKit #312

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
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: 2 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ jobs:
- uses: actions/checkout@v4
- name: Prepare CI Environment
uses: ./.github/actions/prepare_env

- name: Gradle :SwiftKitCore:build
run: ./gradlew :SwiftKitCore:build -x test
- name: Gradle :SwiftKitCore:check
run: ./gradlew :SwiftKitCore:check --info

- name: Gradle :SwiftKitFFM:build
run: ./gradlew :SwiftKitFFM:build -x test
- name: Gradle :SwiftKitFFM:check
Expand Down
36 changes: 36 additions & 0 deletions NOTICE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

The Swift.org Project
=====================

Please visit the Swift.org website for more information:

* https://github.com/swiftlang/swift-java

Copyright 2024-2025 The Swift.org Project

The Swift.org Project licenses this file to you under the Apache License,
version 2.0 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at:

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.

Also, please refer to each LICENSE.<component>.txt file, which is located in
the 'license' directory of the distribution file, for the license terms of the
components that this product depends on.

-------------------------------------------------------------------------------

This product contains a unsigned numerics support which is derived from Google Guava's 'UnsignedLong' and related types.

* LICENSE (Apache License 2.0):
* https://www.apache.org/licenses/LICENSE-2.0
* HOMEPAGE:
* https://github.com/google/guava/
* https://github.com/google/guava/blob/master/guava/src/com/google/common/primitives/UnsignedLong.java
* https://github.com/google/guava/blob/master/guava/src/com/google/common/primitives/UnsignedInts.java
16 changes: 13 additions & 3 deletions SwiftKitCore/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

plugins {
id("build-logic.java-application-conventions")
id("me.champeau.jmh") version "0.7.2"
}

group = "org.swift.swiftkit"
Expand All @@ -28,12 +29,21 @@ java {
languageVersion.set(JavaLanguageVersion.of(17))
}
// Support Android 6+ (Java 7)
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

dependencies {
testImplementation 'junit:junit:4.13.2'
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
}

testing {
suites {
test {
useJUnitJupiter('5.10.3')
}
}
}

tasks.test {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package org.swift.swiftkit.core;

public class NotImplementedException extends RuntimeException {

private static final long serialVersionUID = 1L;

public NotImplementedException(String message) {
super(message);
}
}
Loading
Loading