Skip to content

Commit 3aa0bb1

Browse files
committed
Rename the package
Rename source folder Rename target Raise watchOS version Add as a local package Update package file Update package Update podspec
1 parent 1a96b9a commit 3aa0bb1

73 files changed

Lines changed: 34 additions & 33 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
Pod::Spec.new do |s|
2-
s.name = 'OpenAIAssistants'
3-
s.version = '0.1.1'
2+
s.name = 'ExyteOpenAI'
3+
s.version = '1.0.1'
44
s.summary = 'OpenAI Assistants API client.'
55
s.description = 'Swift library for the OpenAI Assistants API'
6-
s.homepage = 'https://github.com/exyte/openai-assistants-api'
6+
s.homepage = 'https://github.com/exyte/OpenAI'
77
s.license = { :type => 'MIT', :file => 'LICENSE' }
88
s.author = { 'Exyte' => 'info@exyte.com' }
9-
s.source = { :git => 'https://github.com/exyte/openai-assistants-api.git', :tag => s.version.to_s }
9+
s.source = { :git => 'https://github.com/exyte/OpenAI.git', :tag => s.version.to_s }
1010
s.social_media_url = 'http://exyte.com'
1111

1212
s.ios.deployment_target = '16.0'
1313
s.osx.deployment_target = '13.0'
1414
s.tvos.deployment_target = '16.0'
15-
s.watchos.deployment_target = '8.0'
15+
s.watchos.deployment_target = '9.0'
1616

1717
s.swift_version = "5.7"
18-
s.source_files = 'OpenAIAssistants/Source/**/*'
18+
s.source_files = 'Sources/ExyteOpenAI/**/*'
1919

20-
s.dependency 'EventSourceHttpBody', '~> 0.1.0'
20+
s.dependency 'EventSourceHttpBody', '~> 0.1.4'
2121
end

OpenAIAssistantsExample/OpenAIAssistantsExample.xcodeproj/project.pbxproj

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,26 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
5B79B8E22C3BD3AB00411EDE /* ExyteOpenAI in Frameworks */ = {isa = PBXBuildFile; productRef = 5B79B8E12C3BD3AB00411EDE /* ExyteOpenAI */; };
1011
5BF4366B2C2AA23F0023B126 /* OpenAIAssistantsExampleApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5BF4366A2C2AA23F0023B126 /* OpenAIAssistantsExampleApp.swift */; };
1112
5BF4366D2C2AA23F0023B126 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5BF4366C2C2AA23F0023B126 /* ContentView.swift */; };
1213
5BF4366F2C2AA2400023B126 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5BF4366E2C2AA2400023B126 /* Assets.xcassets */; };
1314
5BF436722C2AA2400023B126 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5BF436712C2AA2400023B126 /* Preview Assets.xcassets */; };
1415
5BF4367D2C2AA9680023B126 /* ExyteChat in Frameworks */ = {isa = PBXBuildFile; productRef = 5BF4367C2C2AA9680023B126 /* ExyteChat */; };
1516
5BF436842C2AAB880023B126 /* BotChatView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5BF436822C2AAB880023B126 /* BotChatView.swift */; };
1617
5BF436852C2AAB880023B126 /* BotChatViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5BF436832C2AAB880023B126 /* BotChatViewModel.swift */; };
17-
5BF436892C2AADD00023B126 /* OpenAIAssistants in Frameworks */ = {isa = PBXBuildFile; productRef = 5BF436882C2AADD00023B126 /* OpenAIAssistants */; };
1818
5BF4368B2C2AB7FC0023B126 /* AIManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5BF4368A2C2AB7FC0023B126 /* AIManager.swift */; };
1919
/* End PBXBuildFile section */
2020

2121
/* Begin PBXFileReference section */
22+
5B79B8DF2C3BD10400411EDE /* OpenAI */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = OpenAI; path = ..; sourceTree = "<group>"; };
2223
5BF436672C2AA23F0023B126 /* OpenAIAssistantsExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = OpenAIAssistantsExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
2324
5BF4366A2C2AA23F0023B126 /* OpenAIAssistantsExampleApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OpenAIAssistantsExampleApp.swift; sourceTree = "<group>"; };
2425
5BF4366C2C2AA23F0023B126 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
2526
5BF4366E2C2AA2400023B126 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
2627
5BF436712C2AA2400023B126 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
2728
5BF436822C2AAB880023B126 /* BotChatView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BotChatView.swift; sourceTree = "<group>"; };
2829
5BF436832C2AAB880023B126 /* BotChatViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BotChatViewModel.swift; sourceTree = "<group>"; };
29-
5BF436862C2AAC610023B126 /* openai-assistants-api */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = "openai-assistants-api"; path = ..; sourceTree = "<group>"; };
3030
5BF4368A2C2AB7FC0023B126 /* AIManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AIManager.swift; sourceTree = "<group>"; };
3131
/* End PBXFileReference section */
3232

@@ -35,8 +35,8 @@
3535
isa = PBXFrameworksBuildPhase;
3636
buildActionMask = 2147483647;
3737
files = (
38+
5B79B8E22C3BD3AB00411EDE /* ExyteOpenAI in Frameworks */,
3839
5BF4367D2C2AA9680023B126 /* ExyteChat in Frameworks */,
39-
5BF436892C2AADD00023B126 /* OpenAIAssistants in Frameworks */,
4040
);
4141
runOnlyForDeploymentPostprocessing = 0;
4242
};
@@ -46,7 +46,7 @@
4646
5BF4365E2C2AA23F0023B126 = {
4747
isa = PBXGroup;
4848
children = (
49-
5BF436862C2AAC610023B126 /* openai-assistants-api */,
49+
5B79B8DF2C3BD10400411EDE /* OpenAI */,
5050
5BF436692C2AA23F0023B126 /* OpenAIAssistantsExample */,
5151
5BF436682C2AA23F0023B126 /* Products */,
5252
5BF436872C2AADD00023B126 /* Frameworks */,
@@ -108,7 +108,7 @@
108108
name = OpenAIAssistantsExample;
109109
packageProductDependencies = (
110110
5BF4367C2C2AA9680023B126 /* ExyteChat */,
111-
5BF436882C2AADD00023B126 /* OpenAIAssistants */,
111+
5B79B8E12C3BD3AB00411EDE /* ExyteOpenAI */,
112112
);
113113
productName = OpenAIAssistantsExample;
114114
productReference = 5BF436672C2AA23F0023B126 /* OpenAIAssistantsExample.app */;
@@ -390,15 +390,15 @@
390390
/* End XCRemoteSwiftPackageReference section */
391391

392392
/* Begin XCSwiftPackageProductDependency section */
393+
5B79B8E12C3BD3AB00411EDE /* ExyteOpenAI */ = {
394+
isa = XCSwiftPackageProductDependency;
395+
productName = ExyteOpenAI;
396+
};
393397
5BF4367C2C2AA9680023B126 /* ExyteChat */ = {
394398
isa = XCSwiftPackageProductDependency;
395399
package = 5BF4367B2C2AA9680023B126 /* XCRemoteSwiftPackageReference "Chat" */;
396400
productName = ExyteChat;
397401
};
398-
5BF436882C2AADD00023B126 /* OpenAIAssistants */ = {
399-
isa = XCSwiftPackageProductDependency;
400-
productName = OpenAIAssistants;
401-
};
402402
/* End XCSwiftPackageProductDependency section */
403403
};
404404
rootObject = 5BF4365F2C2AA23F0023B126 /* Project object */;

OpenAIAssistantsExample/OpenAIAssistantsExample/AIManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import Foundation
99
import Combine
10-
import OpenAIAssistants
10+
import ExyteOpenAI
1111

1212
final class AIManager {
1313

Package.swift

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,30 @@
44
import PackageDescription
55

66
let package = Package(
7-
name: "OpenAIAssistants",
7+
name: "ExyteOpenAI",
88
platforms: [
99
.iOS(.v16),
10-
.tvOS(.v16),
1110
.macOS(.v13),
12-
.watchOS(.v8)
11+
.tvOS(.v16),
12+
.watchOS(.v9)
1313
],
1414
products: [
1515
// Products define the executables and libraries a package produces, making them visible to other packages.
1616
.library(
17-
name: "OpenAIAssistants",
18-
targets: ["OpenAIAssistants"]),
17+
name: "ExyteOpenAI",
18+
targets: ["ExyteOpenAI"]),
1919
],
2020
dependencies: [
21-
.package(url: "https://github.com/exyte/EventSourceHttpBody.git", .upToNextMajor(from: "0.1.3"))
21+
.package(url: "https://github.com/exyte/EventSourceHttpBody.git", .upToNextMajor(from: "0.1.4"))
2222
],
2323
targets: [
2424
// Targets are the basic building blocks of a package, defining a module or a test suite.
2525
// Targets can depend on other targets in this package and products from dependencies.
2626
.target(
27-
name: "OpenAIAssistants",
27+
name: "ExyteOpenAI",
2828
dependencies: [
29-
.product(name: "EventSourceHttpBody", package: "EventSourceHttpBody")],
30-
path: "OpenAIAssistants/Source")
29+
.product(name: "EventSourceHttpBody", package: "EventSourceHttpBody")
30+
]
31+
)
3132
]
3233
)

README.md

Lines changed: 6 additions & 6 deletions

OpenAIAssistants/Source/Endpoint Configurations/Assistants.swift renamed to Sources/ExyteOpenAI/Endpoint Configurations/Assistants.swift

File renamed without changes.

OpenAIAssistants/Source/Endpoint Configurations/Files.swift renamed to Sources/ExyteOpenAI/Endpoint Configurations/Files.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ extension Files: EndpointConfiguration {
7373
return .uploadMultipart(data)
7474
case .listFiles, .retrieveFile, .deleteFile:
7575
return .plain
76-
case .retrieveFileContent(let id, let destination):
76+
case .retrieveFileContent(_, let destination):
7777
return .download(destination)
7878
}
7979
}

OpenAIAssistants/Source/Endpoint Configurations/Messages.swift renamed to Sources/ExyteOpenAI/Endpoint Configurations/Messages.swift

File renamed without changes.

OpenAIAssistants/Source/Endpoint Configurations/Models.swift renamed to Sources/ExyteOpenAI/Endpoint Configurations/Models.swift

File renamed without changes.

OpenAIAssistants/Source/Endpoint Configurations/Runs.swift renamed to Sources/ExyteOpenAI/Endpoint Configurations/Runs.swift

File renamed without changes.

0 commit comments

Comments
 (0)