Skip to content

Commit 9949d8f

Browse files
committed
feature: add macos support
1 parent 5f74aa9 commit 9949d8f

File tree

27 files changed

+648
-198
lines changed

27 files changed

+648
-198
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(.v10.0)
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:
11.2 MB
Binary file not shown.

YChat.xcframework/Info.plist

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
<key>AvailableLibraries</key>
66
<array>
77
<dict>
8-
<key>DebugSymbolsPath</key>
9-
<string>dSYMs</string>
108
<key>LibraryIdentifier</key>
119
<string>ios-x86_64-simulator</string>
1210
<key>LibraryPath</key>
@@ -21,8 +19,18 @@
2119
<string>simulator</string>
2220
</dict>
2321
<dict>
24-
<key>DebugSymbolsPath</key>
25-
<string>dSYMs</string>
22+
<key>LibraryIdentifier</key>
23+
<string>macos-x86_64</string>
24+
<key>LibraryPath</key>
25+
<string>YChat.framework</string>
26+
<key>SupportedArchitectures</key>
27+
<array>
28+
<string>x86_64</string>
29+
</array>
30+
<key>SupportedPlatform</key>
31+
<string>macos</string>
32+
</dict>
33+
<dict>
2634
<key>LibraryIdentifier</key>
2735
<string>ios-arm64</string>
2836
<key>LibraryPath</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-arm64/dSYMs/YChat.framework.dSYM/Contents/Info.plist

Lines changed: 0 additions & 20 deletions
This file was deleted.
Binary file not shown.

YChat.xcframework/ios-x86_64-simulator/YChat.framework/Headers/YChat.h

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

0 commit comments

Comments
 (0)