Skip to content

Commit e30386c

Browse files
authored
Merge pull request #73 from yml-org/feature/add-macos-support
feature: add macos support
2 parents 5f74aa9 + 50f63d4 commit e30386c

File tree

33 files changed

+1640
-169
lines changed

33 files changed

+1640
-169
lines changed

Package.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import PackageDescription
44
let package = Package(
55
name: "YChat",
66
platforms: [
7-
.iOS(.v13)
7+
.iOS(.v13),
8+
.macOS(.v11)
89
],
910
products: [
1011
.library(

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Y—Chat is a Kotlin Multiplatform (KMP) project that provides a simple API for
99

1010
The repository contains the source code for the Y—Chat library, along with examples and documentation for getting started with the library. The Y—Chat library provides a consistent interface for interacting with ChatGPT, regardless of the platform, and makes it easy to generate human-like text based on a given prompt or context.
1111

12-
The library uses Kotlin Multiplatform to generate artifacts for both iOS, Android and JVM, allowing developers to write code once and use it on multiple platforms. The project is open source and actively maintained, with contributions from the community encouraged. Overall, Y—Chat provides a convenient and powerful way for mobile developers to incorporate the advanced natural language processing capabilities of ChatGPT into their applications.
12+
The library uses Kotlin Multiplatform to generate artifacts for both iOS, macOS, Android and JVM, allowing developers to write code once and use it on multiple platforms. The project is open source and actively maintained, with contributions from the community encouraged. Overall, Y—Chat provides a convenient and powerful way for mobile developers to incorporate the advanced natural language processing capabilities of ChatGPT into their applications.
1313

1414
## ⚡️ Getting Started
1515

@@ -59,7 +59,7 @@ repositories {
5959
Then, simply import the dependency to your `build.gradle` dependencies:
6060

6161
```kotlin
62-
implementation("co.yml:ychat:1.3.0")
62+
implementation("co.yml:ychat:1.4.0")
6363
```
6464

6565
Take a look at the Kotlin code snippet below for an example of how to initialize and use one of the supported features:

YChat-1.4.0.zip

26.2 MB
Binary file not shown.

YChat.xcframework/Info.plist

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,45 @@
88
<key>DebugSymbolsPath</key>
99
<string>dSYMs</string>
1010
<key>LibraryIdentifier</key>
11-
<string>ios-x86_64-simulator</string>
11+
<string>ios-arm64</string>
1212
<key>LibraryPath</key>
1313
<string>YChat.framework</string>
1414
<key>SupportedArchitectures</key>
1515
<array>
16-
<string>x86_64</string>
16+
<string>arm64</string>
1717
</array>
1818
<key>SupportedPlatform</key>
1919
<string>ios</string>
20-
<key>SupportedPlatformVariant</key>
21-
<string>simulator</string>
20+
</dict>
21+
<dict>
22+
<key>LibraryIdentifier</key>
23+
<string>macos-arm64_x86_64</string>
24+
<key>LibraryPath</key>
25+
<string>YChat.framework</string>
26+
<key>SupportedArchitectures</key>
27+
<array>
28+
<string>arm64</string>
29+
<string>x86_64</string>
30+
</array>
31+
<key>SupportedPlatform</key>
32+
<string>macos</string>
2233
</dict>
2334
<dict>
2435
<key>DebugSymbolsPath</key>
2536
<string>dSYMs</string>
2637
<key>LibraryIdentifier</key>
27-
<string>ios-arm64</string>
38+
<string>ios-arm64_x86_64-simulator</string>
2839
<key>LibraryPath</key>
2940
<string>YChat.framework</string>
3041
<key>SupportedArchitectures</key>
3142
<array>
3243
<string>arm64</string>
44+
<string>x86_64</string>
3345
</array>
3446
<key>SupportedPlatform</key>
3547
<string>ios</string>
48+
<key>SupportedPlatformVariant</key>
49+
<string>simulator</string>
3650
</dict>
3751
</array>
3852
<key>CFBundlePackageType</key>

YChat.xcframework/ios-arm64/YChat.framework/Headers/YChat.h

Lines changed: 48 additions & 75 deletions
Large diffs are not rendered by default.
-33.6 KB
Binary file not shown.

YChat.xcframework/ios-x86_64-simulator/YChat.framework/Headers/YChat.h renamed to YChat.xcframework/ios-arm64_x86_64-simulator/YChat.framework/Headers/YChat.h

Lines changed: 48 additions & 75 deletions
Large diffs are not rendered by default.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleExecutable</key>
6+
<string>YChat</string>
7+
<key>CFBundleIdentifier</key>
8+
<string>co.yml.ychat.YChat</string>
9+
<key>CFBundleInfoDictionaryVersion</key>
10+
<string>6.0</string>
11+
<key>CFBundleName</key>
12+
<string>YChat</string>
13+
<key>CFBundlePackageType</key>
14+
<string>FMWK</string>
15+
<key>CFBundleShortVersionString</key>
16+
<string>1.0</string>
17+
<key>CFBundleSupportedPlatforms</key>
18+
<array>
19+
<string>iPhoneOS</string>
20+
</array>
21+
<key>CFBundleVersion</key>
22+
<string>1</string>
23+
<key>MinimumOSVersion</key>
24+
<string>9.0</string>
25+
<key>UIDeviceFamily</key>
26+
<array>
27+
<integer>1</integer>
28+
<integer>2</integer>
29+
</array>
30+
</dict>
31+
</plist>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
framework module YChat {
2+
umbrella header "YChat.h"
3+
4+
export *
5+
module * { export * }
6+
}
Binary file not shown.
Binary file not shown.

YChat.xcframework/macos-arm64_x86_64/YChat.framework/Headers/YChat.h

Lines changed: 455 additions & 0 deletions
Large diffs are not rendered by default.

YChat.xcframework/ios-x86_64-simulator/YChat.framework/Info.plist renamed to YChat.xcframework/macos-arm64_x86_64/YChat.framework/Resources/Info.plist

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,9 @@
1616
<string>1.0</string>
1717
<key>CFBundleSupportedPlatforms</key>
1818
<array>
19-
<string>iPhoneSimulator</string>
19+
<string>MacOSX</string>
2020
</array>
2121
<key>CFBundleVersion</key>
2222
<string>1</string>
23-
<key>MinimumOSVersion</key>
24-
<string>9.0</string>
25-
<key>UIDeviceFamily</key>
26-
<array>
27-
<integer>1</integer>
28-
<integer>2</integer>
29-
</array>
3023
</dict>
3124
</plist>

0 commit comments

Comments
 (0)