Skip to content

Commit

Permalink
build: add OpenAIKit package
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Mar 28, 2023
1 parent 1085470 commit dcccd1e
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
# xcode
xcuserdata/
.xcodesamplecode.plist
.gitsecret/keys/random_seed
!*.secret
OpenAI.xcconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{
"pins" : [
{
"identity" : "openaikit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/marcodotio/OpenAIKit.git",
"state" : {
"revision" : "9e718bc33f10bc0c0524ae140be6a89651c4ea3d",
"version" : "1.2.0"
}
},
{
"identity" : "plantuml4ipad",
"kind" : "remoteSourceControl",
Expand Down
47 changes: 35 additions & 12 deletions PlantUMLApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
objects = {

/* Begin PBXBuildFile section */
A01A6FBC29D3464500C3A1F6 /* PlantUMLFramework in Frameworks */ = {isa = PBXBuildFile; productRef = A01A6FBB29D3464500C3A1F6 /* PlantUMLFramework */; };
A0277C0B293D11D7005435AE /* AsyncImage+Cache.swift in Sources */ = {isa = PBXBuildFile; fileRef = A09A6DDA293D0E5E000856ED /* AsyncImage+Cache.swift */; };
A02F69B228D1E19600090D97 /* PlantUMLFramework in Frameworks */ = {isa = PBXBuildFile; productRef = A02F69B128D1E19600090D97 /* PlantUMLFramework */; };
A043CE7C28E08C4C005A3AF7 /* PlantUMLKeyboard in Frameworks */ = {isa = PBXBuildFile; productRef = A043CE7B28E08C4C005A3AF7 /* PlantUMLKeyboard */; };
A047206F29549ACC007E061F /* SwiftUI+Share.swift in Sources */ = {isa = PBXBuildFile; fileRef = A047206E29549ACC007E061F /* SwiftUI+Share.swift */; };
A047207029549ACC007E061F /* SwiftUI+Share.swift in Sources */ = {isa = PBXBuildFile; fileRef = A047206E29549ACC007E061F /* SwiftUI+Share.swift */; };
A053524B29D33CA70023F041 /* OpenAI.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = A053524A29D33CA70023F041 /* OpenAI.xcconfig */; };
A08AA78429561170004DE329 /* View+UIImage.swift in Sources */ = {isa = PBXBuildFile; fileRef = A08AA78329561170004DE329 /* View+UIImage.swift */; };
A0943A6F2944A44900342426 /* ScaleToFit+ToggleStyle.swift in Sources */ = {isa = PBXBuildFile; fileRef = A0943A6E2944A44900342426 /* ScaleToFit+ToggleStyle.swift */; };
A0943A702944A44900342426 /* ScaleToFit+ToggleStyle.swift in Sources */ = {isa = PBXBuildFile; fileRef = A0943A6E2944A44900342426 /* ScaleToFit+ToggleStyle.swift */; };
Expand All @@ -28,9 +28,11 @@
A0D3C65E28984A10000838D7 /* PlantUMLTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A0D3C65D28984A10000838D7 /* PlantUMLTests.swift */; };
A0D3C66828984A11000838D7 /* PlantUMLUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A0D3C66728984A11000838D7 /* PlantUMLUITests.swift */; };
A0D3C66A28984A11000838D7 /* PlantUMLUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A0D3C66928984A11000838D7 /* PlantUMLUITestsLaunchTests.swift */; };
A0DC176429D345BB00CB70E6 /* OpenAIKit in Frameworks */ = {isa = PBXBuildFile; productRef = A0DC176329D345BB00CB70E6 /* OpenAIKit */; };
A0DC176629D345D600CB70E6 /* PlantUMLKeyboard in Frameworks */ = {isa = PBXBuildFile; productRef = A0DC176529D345D600CB70E6 /* PlantUMLKeyboard */; };
A0DC176829D345DB00CB70E6 /* LineEditor in Frameworks */ = {isa = PBXBuildFile; productRef = A0DC176729D345DB00CB70E6 /* LineEditor */; };
A0F2B14229353C2D00A44481 /* SwiftUI+Rotate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A0F2B14129353C2D00A44481 /* SwiftUI+Rotate.swift */; };
A0F2B14329353C2D00A44481 /* SwiftUI+Rotate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A0F2B14129353C2D00A44481 /* SwiftUI+Rotate.swift */; };
A0F329202902AC5E00E0C47C /* LineEditor in Frameworks */ = {isa = PBXBuildFile; productRef = A0F3291F2902AC5E00E0C47C /* LineEditor */; };
A0FB8F9C295616BF00910896 /* View+UIImage.swift in Sources */ = {isa = PBXBuildFile; fileRef = A08AA78329561170004DE329 /* View+UIImage.swift */; };
/* End PBXBuildFile section */

Expand All @@ -55,6 +57,7 @@
A01552A228CF47DF00F2B8A1 /* PlantUMLFramework */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = PlantUMLFramework; sourceTree = "<group>"; };
A01907EF2951CD5C0059CCBE /* privacy_policy.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = privacy_policy.md; sourceTree = "<group>"; };
A047206E29549ACC007E061F /* SwiftUI+Share.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SwiftUI+Share.swift"; sourceTree = "<group>"; };
A053524A29D33CA70023F041 /* OpenAI.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = OpenAI.xcconfig; sourceTree = "<group>"; };
A08AA78329561170004DE329 /* View+UIImage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "View+UIImage.swift"; sourceTree = "<group>"; };
A0943A6D29448A1700342426 /* AppStore.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = AppStore.xcassets; sourceTree = "<group>"; };
A0943A6E2944A44900342426 /* ScaleToFit+ToggleStyle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "ScaleToFit+ToggleStyle.swift"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -84,9 +87,10 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
A0F329202902AC5E00E0C47C /* LineEditor in Frameworks */,
A043CE7C28E08C4C005A3AF7 /* PlantUMLKeyboard in Frameworks */,
A02F69B228D1E19600090D97 /* PlantUMLFramework in Frameworks */,
A01A6FBC29D3464500C3A1F6 /* PlantUMLFramework in Frameworks */,
A0DC176829D345DB00CB70E6 /* LineEditor in Frameworks */,
A0DC176629D345D600CB70E6 /* PlantUMLKeyboard in Frameworks */,
A0DC176429D345BB00CB70E6 /* OpenAIKit in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -117,6 +121,7 @@
A0D3C63D28984A0E000838D7 = {
isa = PBXGroup;
children = (
A053524A29D33CA70023F041 /* OpenAI.xcconfig */,
A01907EF2951CD5C0059CCBE /* privacy_policy.md */,
A0943A6D29448A1700342426 /* AppStore.xcassets */,
A01552A228CF47DF00F2B8A1 /* PlantUMLFramework */,
Expand Down Expand Up @@ -203,9 +208,10 @@
);
name = PlantUMLApp;
packageProductDependencies = (
A02F69B128D1E19600090D97 /* PlantUMLFramework */,
A043CE7B28E08C4C005A3AF7 /* PlantUMLKeyboard */,
A0F3291F2902AC5E00E0C47C /* LineEditor */,
A0DC176329D345BB00CB70E6 /* OpenAIKit */,
A0DC176529D345D600CB70E6 /* PlantUMLKeyboard */,
A0DC176729D345DB00CB70E6 /* LineEditor */,
A01A6FBB29D3464500C3A1F6 /* PlantUMLFramework */,
);
productName = PlantUML;
productReference = A0D3C64628984A0E000838D7 /* PlantUMLApp.app */;
Expand Down Expand Up @@ -281,6 +287,7 @@
mainGroup = A0D3C63D28984A0E000838D7;
packageReferences = (
A0F3291E2902AC5E00E0C47C /* XCRemoteSwiftPackageReference "PlantUML4iPad" */,
A0DC176229D345BB00CB70E6 /* XCRemoteSwiftPackageReference "OpenAIKit" */,
);
productRefGroup = A0D3C64728984A0E000838D7 /* Products */;
projectDirPath = "";
Expand All @@ -298,6 +305,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A053524B29D33CA70023F041 /* OpenAI.xcconfig in Resources */,
A0D3C65328984A10000838D7 /* Preview Assets.xcassets in Resources */,
A0BFBA9A290D551F008340E3 /* Localizable.strings in Resources */,
A0D3C65028984A10000838D7 /* Assets.xcassets in Resources */,
Expand Down Expand Up @@ -504,6 +512,7 @@
};
A0D3C66E28984A11000838D7 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = A053524A29D33CA70023F041 /* OpenAI.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
Expand Down Expand Up @@ -540,6 +549,7 @@
};
A0D3C66F28984A11000838D7 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = A053524A29D33CA70023F041 /* OpenAI.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
Expand Down Expand Up @@ -688,6 +698,14 @@
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
A0DC176229D345BB00CB70E6 /* XCRemoteSwiftPackageReference "OpenAIKit" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/marcodotio/OpenAIKit.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 1.2.0;
};
};
A0F3291E2902AC5E00E0C47C /* XCRemoteSwiftPackageReference "PlantUML4iPad" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/bsorrentino/PlantUML4iPad.git";
Expand All @@ -699,15 +717,20 @@
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
A02F69B128D1E19600090D97 /* PlantUMLFramework */ = {
A01A6FBB29D3464500C3A1F6 /* PlantUMLFramework */ = {
isa = XCSwiftPackageProductDependency;
productName = PlantUMLFramework;
};
A043CE7B28E08C4C005A3AF7 /* PlantUMLKeyboard */ = {
A0DC176329D345BB00CB70E6 /* OpenAIKit */ = {
isa = XCSwiftPackageProductDependency;
package = A0DC176229D345BB00CB70E6 /* XCRemoteSwiftPackageReference "OpenAIKit" */;
productName = OpenAIKit;
};
A0DC176529D345D600CB70E6 /* PlantUMLKeyboard */ = {
isa = XCSwiftPackageProductDependency;
productName = PlantUMLKeyboard;
};
A0F3291F2902AC5E00E0C47C /* LineEditor */ = {
A0DC176729D345DB00CB70E6 /* LineEditor */ = {
isa = XCSwiftPackageProductDependency;
package = A0F3291E2902AC5E00E0C47C /* XCRemoteSwiftPackageReference "PlantUML4iPad" */;
productName = LineEditor;
Expand Down
6 changes: 4 additions & 2 deletions PlantUMLKeyboard/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ let package = Package(
// Dependencies declare other packages that this package depends on.
// .package(url: "https://github.com/siteline/SwiftUI-Introspect.git", branch: "master" ),
.package(path: "../PlantUMLFramework" ),
.package(url: "https://github.com/bsorrentino/PlantUML4iPad.git", branch: "line_editor")
.package(url: "https://github.com/marcodotio/OpenAIKit.git", from: "1.2.0"),
.package(url: "https://github.com/bsorrentino/PlantUML4iPad.git", branch: "line_editor"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
Expand All @@ -27,7 +28,8 @@ let package = Package(
name: "PlantUMLKeyboard",
dependencies: [
.product(name: "LineEditor", package: "PlantUML4iPad"),
"PlantUMLFramework"
.product(name: "OpenAIKit", package: "OpenAIKit"),
"PlantUMLFramework",
],
resources: [.copy("plantuml_keyboard_data.json")]
),
Expand Down

0 comments on commit dcccd1e

Please sign in to comment.