Skip to content

Commit

Permalink
Merge pull request #63 from yml-org/releases/1.3.0
Browse files Browse the repository at this point in the history
chore: increment version and update swift package
  • Loading branch information
osugikoji authored Apr 7, 2023
2 parents f1ebfa9 + 993f383 commit 0252796
Show file tree
Hide file tree
Showing 13 changed files with 174 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ repositories {
Then, simply import the dependency to your `build.gradle` dependencies:

```kotlin
implementation("co.yml:ychat:1.2.0")
implementation("co.yml:ychat:1.3.0")
```

Take a look at the Kotlin code snippet below for an example of how to initialize and use one of the supported features:
Expand Down
Binary file removed YChat-1.2.0.zip
Binary file not shown.
Binary file added YChat-1.3.0.zip
Binary file not shown.
4 changes: 4 additions & 0 deletions YChat.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<key>AvailableLibraries</key>
<array>
<dict>
<key>DebugSymbolsPath</key>
<string>dSYMs</string>
<key>LibraryIdentifier</key>
<string>ios-x86_64-simulator</string>
<key>LibraryPath</key>
Expand All @@ -19,6 +21,8 @@
<string>simulator</string>
</dict>
<dict>
<key>DebugSymbolsPath</key>
<string>dSYMs</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
Expand Down
66 changes: 64 additions & 2 deletions YChat.xcframework/ios-arm64/YChat.framework/Headers/YChat.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
#import <Foundation/NSString.h>
#import <Foundation/NSValue.h>

@class YChatKotlinThrowable, YChatYChatCompanion, YChatAIModelPermission, YChatAIModel, YChatChatMessage, YChatKotlinArray<T>, YChatKotlinException, YChatKotlinRuntimeException, YChatKotlinIllegalStateException;
@class YChatKotlinThrowable, YChatYChatCompanion, YChatAIModelPermission, YChatAIModel, YChatChatMessage, YChatKotlinArray<T>, YChatKotlinException, NSData, YChatKotlinByteArray, YChatKotlinRuntimeException, YChatKotlinIllegalStateException, YChatKotlinByteIterator;

@protocol YChatChatCompletions, YChatCompletion, YChatEdits, YChatImageGenerations, YChatListModels, YChatRetrieveModel, YChatYChat, YChatYChatCallback, YChatKotlinIterator;
@protocol YChatAudioTranscriptions, YChatAudioTranslations, YChatChatCompletions, YChatCompletion, YChatEdits, YChatImageGenerations, YChatListModels, YChatRetrieveModel, YChatYChat, YChatYChatCallback, YChatKotlinIterator;

NS_ASSUME_NONNULL_BEGIN
#pragma clang diagnostic push
Expand Down Expand Up @@ -147,6 +147,8 @@ __attribute__((swift_name("KotlinBoolean")))
__attribute__((swift_name("YChat")))
@protocol YChatYChat
@required
- (id<YChatAudioTranscriptions>)audioTranscriptions __attribute__((swift_name("audioTranscriptions()")));
- (id<YChatAudioTranslations>)audioTranslations __attribute__((swift_name("audioTranslations()")));
- (id<YChatChatCompletions>)chatCompletions __attribute__((swift_name("chatCompletions()")));
- (id<YChatCompletion>)completion __attribute__((swift_name("completion()")));
- (id<YChatEdits>)edits __attribute__((swift_name("edits()")));
Expand Down Expand Up @@ -272,6 +274,39 @@ __attribute__((swift_name("ChatGptException")))
@property YChatInt * _Nullable statusCode __attribute__((swift_name("statusCode")));
@end

__attribute__((swift_name("AudioTranscriptions")))
@protocol YChatAudioTranscriptions
@required

/**
* @note This method converts instances of CancellationException, ChatGptException to errors.
* Other uncaught Kotlin exceptions are fatal.
*/
- (void)executeFilename:(NSString *)filename audioFile:(NSData *)audioFile completionHandler:(void (^)(NSString * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("execute(filename:audioFile:completionHandler:)")));
- (void)executeFilename:(NSString *)filename audioFile:(NSData *)audioFile callback:(id<YChatYChatCallback>)callback __attribute__((swift_name("execute(filename:audioFile:callback:)")));
- (id<YChatAudioTranscriptions>)setLanguageLanguage:(NSString *)language __attribute__((swift_name("setLanguage(language:)")));
- (id<YChatAudioTranscriptions>)setModelModel:(NSString *)model __attribute__((swift_name("setModel(model:)")));
- (id<YChatAudioTranscriptions>)setPromptPrompt:(NSString *)prompt __attribute__((swift_name("setPrompt(prompt:)")));
- (id<YChatAudioTranscriptions>)setResponseFormatFormat:(NSString *)format __attribute__((swift_name("setResponseFormat(format:)")));
- (id<YChatAudioTranscriptions>)setTemperatureTemperature:(double)temperature __attribute__((swift_name("setTemperature(temperature:)")));
@end

__attribute__((swift_name("AudioTranslations")))
@protocol YChatAudioTranslations
@required

/**
* @note This method converts instances of CancellationException, ChatGptException to errors.
* Other uncaught Kotlin exceptions are fatal.
*/
- (void)executeFilename:(NSString *)filename audioFile:(NSData *)audioFile completionHandler:(void (^)(NSString * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("execute(filename:audioFile:completionHandler:)")));
- (void)executeFilename:(NSString *)filename audioFile:(NSData *)audioFile callback:(id<YChatYChatCallback>)callback __attribute__((swift_name("execute(filename:audioFile:callback:)")));
- (id<YChatAudioTranslations>)setModelModel:(NSString *)model __attribute__((swift_name("setModel(model:)")));
- (id<YChatAudioTranslations>)setPromptPrompt:(NSString *)prompt __attribute__((swift_name("setPrompt(prompt:)")));
- (id<YChatAudioTranslations>)setResponseFormatFormat:(NSString *)format __attribute__((swift_name("setResponseFormat(format:)")));
- (id<YChatAudioTranslations>)setTemperatureTemperature:(double)temperature __attribute__((swift_name("setTemperature(temperature:)")));
@end

__attribute__((swift_name("ChatCompletions")))
@protocol YChatChatCompletions
@required
Expand Down Expand Up @@ -364,6 +399,12 @@ __attribute__((swift_name("RetrieveModel")))
- (void)executeId:(NSString *)id callback:(id<YChatYChatCallback>)callback __attribute__((swift_name("execute(id:callback:)")));
@end

__attribute__((objc_subclassing_restricted))
__attribute__((swift_name("FileBytesKt")))
@interface YChatFileBytesKt : YChatBase
+ (YChatKotlinByteArray *)toByteArray:(NSData *)receiver __attribute__((swift_name("toByteArray(_:)")));
@end

__attribute__((objc_subclassing_restricted))
__attribute__((swift_name("KotlinArray")))
@interface YChatKotlinArray<T> : YChatBase
Expand Down Expand Up @@ -408,13 +449,34 @@ __attribute__((swift_name("KotlinCancellationException")))
- (instancetype)initWithCause:(YChatKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(cause:)"))) __attribute__((objc_designated_initializer));
@end

__attribute__((objc_subclassing_restricted))
__attribute__((swift_name("KotlinByteArray")))
@interface YChatKotlinByteArray : YChatBase
+ (instancetype)arrayWithSize:(int32_t)size __attribute__((swift_name("init(size:)")));
+ (instancetype)arrayWithSize:(int32_t)size init:(YChatByte *(^)(YChatInt *))init __attribute__((swift_name("init(size:init:)")));
+ (instancetype)alloc __attribute__((unavailable));
+ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable));
- (int8_t)getIndex:(int32_t)index __attribute__((swift_name("get(index:)")));
- (YChatKotlinByteIterator *)iterator __attribute__((swift_name("iterator()")));
- (void)setIndex:(int32_t)index value:(int8_t)value __attribute__((swift_name("set(index:value:)")));
@property (readonly) int32_t size __attribute__((swift_name("size")));
@end

__attribute__((swift_name("KotlinIterator")))
@protocol YChatKotlinIterator
@required
- (BOOL)hasNext __attribute__((swift_name("hasNext()")));
- (id _Nullable)next __attribute__((swift_name("next()")));
@end

__attribute__((swift_name("KotlinByteIterator")))
@interface YChatKotlinByteIterator : YChatBase <YChatKotlinIterator>
- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer));
+ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead")));
- (YChatByte *)next __attribute__((swift_name("next()")));
- (int8_t)nextByte __attribute__((swift_name("nextByte()")));
@end

#pragma pop_macro("_Nullable_result")
#pragma clang diagnostic pop
NS_ASSUME_NONNULL_END
Binary file modified YChat.xcframework/ios-arm64/YChat.framework/YChat
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.co.yml.ychat.YChat</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
#import <Foundation/NSString.h>
#import <Foundation/NSValue.h>

@class YChatKotlinThrowable, YChatYChatCompanion, YChatAIModelPermission, YChatAIModel, YChatChatMessage, YChatKotlinArray<T>, YChatKotlinException, YChatKotlinRuntimeException, YChatKotlinIllegalStateException;
@class YChatKotlinThrowable, YChatYChatCompanion, YChatAIModelPermission, YChatAIModel, YChatChatMessage, YChatKotlinArray<T>, YChatKotlinException, NSData, YChatKotlinByteArray, YChatKotlinRuntimeException, YChatKotlinIllegalStateException, YChatKotlinByteIterator;

@protocol YChatChatCompletions, YChatCompletion, YChatEdits, YChatImageGenerations, YChatListModels, YChatRetrieveModel, YChatYChat, YChatYChatCallback, YChatKotlinIterator;
@protocol YChatAudioTranscriptions, YChatAudioTranslations, YChatChatCompletions, YChatCompletion, YChatEdits, YChatImageGenerations, YChatListModels, YChatRetrieveModel, YChatYChat, YChatYChatCallback, YChatKotlinIterator;

NS_ASSUME_NONNULL_BEGIN
#pragma clang diagnostic push
Expand Down Expand Up @@ -147,6 +147,8 @@ __attribute__((swift_name("KotlinBoolean")))
__attribute__((swift_name("YChat")))
@protocol YChatYChat
@required
- (id<YChatAudioTranscriptions>)audioTranscriptions __attribute__((swift_name("audioTranscriptions()")));
- (id<YChatAudioTranslations>)audioTranslations __attribute__((swift_name("audioTranslations()")));
- (id<YChatChatCompletions>)chatCompletions __attribute__((swift_name("chatCompletions()")));
- (id<YChatCompletion>)completion __attribute__((swift_name("completion()")));
- (id<YChatEdits>)edits __attribute__((swift_name("edits()")));
Expand Down Expand Up @@ -272,6 +274,39 @@ __attribute__((swift_name("ChatGptException")))
@property YChatInt * _Nullable statusCode __attribute__((swift_name("statusCode")));
@end

__attribute__((swift_name("AudioTranscriptions")))
@protocol YChatAudioTranscriptions
@required

/**
* @note This method converts instances of CancellationException, ChatGptException to errors.
* Other uncaught Kotlin exceptions are fatal.
*/
- (void)executeFilename:(NSString *)filename audioFile:(NSData *)audioFile completionHandler:(void (^)(NSString * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("execute(filename:audioFile:completionHandler:)")));
- (void)executeFilename:(NSString *)filename audioFile:(NSData *)audioFile callback:(id<YChatYChatCallback>)callback __attribute__((swift_name("execute(filename:audioFile:callback:)")));
- (id<YChatAudioTranscriptions>)setLanguageLanguage:(NSString *)language __attribute__((swift_name("setLanguage(language:)")));
- (id<YChatAudioTranscriptions>)setModelModel:(NSString *)model __attribute__((swift_name("setModel(model:)")));
- (id<YChatAudioTranscriptions>)setPromptPrompt:(NSString *)prompt __attribute__((swift_name("setPrompt(prompt:)")));
- (id<YChatAudioTranscriptions>)setResponseFormatFormat:(NSString *)format __attribute__((swift_name("setResponseFormat(format:)")));
- (id<YChatAudioTranscriptions>)setTemperatureTemperature:(double)temperature __attribute__((swift_name("setTemperature(temperature:)")));
@end

__attribute__((swift_name("AudioTranslations")))
@protocol YChatAudioTranslations
@required

/**
* @note This method converts instances of CancellationException, ChatGptException to errors.
* Other uncaught Kotlin exceptions are fatal.
*/
- (void)executeFilename:(NSString *)filename audioFile:(NSData *)audioFile completionHandler:(void (^)(NSString * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("execute(filename:audioFile:completionHandler:)")));
- (void)executeFilename:(NSString *)filename audioFile:(NSData *)audioFile callback:(id<YChatYChatCallback>)callback __attribute__((swift_name("execute(filename:audioFile:callback:)")));
- (id<YChatAudioTranslations>)setModelModel:(NSString *)model __attribute__((swift_name("setModel(model:)")));
- (id<YChatAudioTranslations>)setPromptPrompt:(NSString *)prompt __attribute__((swift_name("setPrompt(prompt:)")));
- (id<YChatAudioTranslations>)setResponseFormatFormat:(NSString *)format __attribute__((swift_name("setResponseFormat(format:)")));
- (id<YChatAudioTranslations>)setTemperatureTemperature:(double)temperature __attribute__((swift_name("setTemperature(temperature:)")));
@end

__attribute__((swift_name("ChatCompletions")))
@protocol YChatChatCompletions
@required
Expand Down Expand Up @@ -364,6 +399,12 @@ __attribute__((swift_name("RetrieveModel")))
- (void)executeId:(NSString *)id callback:(id<YChatYChatCallback>)callback __attribute__((swift_name("execute(id:callback:)")));
@end

__attribute__((objc_subclassing_restricted))
__attribute__((swift_name("FileBytesKt")))
@interface YChatFileBytesKt : YChatBase
+ (YChatKotlinByteArray *)toByteArray:(NSData *)receiver __attribute__((swift_name("toByteArray(_:)")));
@end

__attribute__((objc_subclassing_restricted))
__attribute__((swift_name("KotlinArray")))
@interface YChatKotlinArray<T> : YChatBase
Expand Down Expand Up @@ -408,13 +449,34 @@ __attribute__((swift_name("KotlinCancellationException")))
- (instancetype)initWithCause:(YChatKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(cause:)"))) __attribute__((objc_designated_initializer));
@end

__attribute__((objc_subclassing_restricted))
__attribute__((swift_name("KotlinByteArray")))
@interface YChatKotlinByteArray : YChatBase
+ (instancetype)arrayWithSize:(int32_t)size __attribute__((swift_name("init(size:)")));
+ (instancetype)arrayWithSize:(int32_t)size init:(YChatByte *(^)(YChatInt *))init __attribute__((swift_name("init(size:init:)")));
+ (instancetype)alloc __attribute__((unavailable));
+ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable));
- (int8_t)getIndex:(int32_t)index __attribute__((swift_name("get(index:)")));
- (YChatKotlinByteIterator *)iterator __attribute__((swift_name("iterator()")));
- (void)setIndex:(int32_t)index value:(int8_t)value __attribute__((swift_name("set(index:value:)")));
@property (readonly) int32_t size __attribute__((swift_name("size")));
@end

__attribute__((swift_name("KotlinIterator")))
@protocol YChatKotlinIterator
@required
- (BOOL)hasNext __attribute__((swift_name("hasNext()")));
- (id _Nullable)next __attribute__((swift_name("next()")));
@end

__attribute__((swift_name("KotlinByteIterator")))
@interface YChatKotlinByteIterator : YChatBase <YChatKotlinIterator>
- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer));
+ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead")));
- (YChatByte *)next __attribute__((swift_name("next()")));
- (int8_t)nextByte __attribute__((swift_name("nextByte()")));
@end

#pragma pop_macro("_Nullable_result")
#pragma clang diagnostic pop
NS_ASSUME_NONNULL_END
Binary file modified YChat.xcframework/ios-x86_64-simulator/YChat.framework/YChat
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.co.yml.ychat.YChat</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ kotlin.mpp.enableCInteropCommonization=true
# Lib
GROUP=co.yml
POM_ARTIFACT_ID=ychat
VERSION_NAME=1.2.0
VERSION_NAME=1.3.0
IOS_NAME=YChat

# OSS
Expand Down

0 comments on commit 0252796

Please sign in to comment.