Skip to content

Commit 7724264

Browse files
committed
first commit
0 parents  commit 7724264

File tree

66 files changed

+3804
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+3804
-0
lines changed

.github/workflows/publish.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Publish
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
type:
6+
description: "Publish type"
7+
required: true
8+
type: choice
9+
options:
10+
- snapshot
11+
- production
12+
version:
13+
description: "Version (e.g. 1.2.3)"
14+
required: true
15+
16+
jobs:
17+
publish:
18+
name: Release build and publish
19+
runs-on: ubuntu-latest
20+
environment: ${{ inputs.type }}
21+
22+
steps:
23+
- name: Check out code
24+
uses: actions/checkout@v4
25+
- name: Set up JDK 17
26+
uses: actions/setup-java@v4
27+
with:
28+
distribution: temurin
29+
java-version: 17
30+
cache: gradle
31+
- name: Validate inputs
32+
run: |
33+
if ! [[ "${{ inputs.version }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
34+
echo "version must be like 1.2.3"; exit 1;
35+
fi
36+
- name: Format version
37+
id: v
38+
run: |
39+
VERSION="${{ inputs.version }}"
40+
if [ "${{ inputs.type }}" = "snapshot" ]; then
41+
VERSION="${VERSION}-SNAPSHOT"
42+
fi
43+
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
44+
45+
- name: Publish to MavenCentral
46+
run: ./gradlew --no-configuration-cache -Pversion='${{ steps.v.outputs.version }}' :mobilenlp-kit:publishToMavenCentral
47+
env:
48+
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
49+
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
50+
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }}
51+
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
52+
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY_CONTENTS }}

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
*.iml
2+
.gradle
3+
.idea
4+
.DS_Store
5+
build
6+
captures
7+
.externalNativeBuild
8+
.cxx
9+
.kotlin
10+
local.properties
11+
xcuserdata
12+
secrets.properties
13+
*.generated.swift

LICENSE

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
This software is licensed by The 3-Clause BSD License.
2+
3+
--------------------------------
4+
Copyright 2025 LY Corporation
5+
6+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
7+
8+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
9+
10+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
11+
12+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
13+
14+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
15+
16+
--------------------------------
17+
18+
19+
■ Scope of this license
20+
21+
This license applies to all files within the following directories.
22+
23+
- mobilenlp-kit/
24+
- iosApp/MobileNLPKit/
25+
26+
The license information is also provided at the beginning of the files.
27+
28+
29+
■ Copyright
30+
31+
The copyright for all files within this repository is held by LY Corporation.
32+
33+
34+
2025

Package.swift

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// swift-tools-version: 5.9
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "MobileNLPKit",
7+
platforms: [
8+
.iOS(.v16),
9+
],
10+
products: [
11+
.library(
12+
name: "MobileNLPKit",
13+
targets: ["MobileNLPKit"]
14+
),
15+
],
16+
targets: [
17+
.target(
18+
name: "MobileNLPKit",
19+
dependencies: ["MobileNLPKitCore"],
20+
path: "iosApp/MobileNLPKit/Sources/"
21+
),
22+
.binaryTarget(
23+
name: "MobileNLPKitCore",
24+
path: "mobilenlp-kit/build/XCFrameworks/release/MobileNLPKitCore.xcframework"
25+
),
26+
]
27+
)

0 commit comments

Comments
 (0)