diff --git a/Packages/ShapsBenkau_SwiftUIBackports/Package.swift b/Packages/ShapsBenkau_SwiftUIBackports/Package.swift index 3d4c7f01..823340bc 100755 --- a/Packages/ShapsBenkau_SwiftUIBackports/Package.swift +++ b/Packages/ShapsBenkau_SwiftUIBackports/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version: 5.5 +// swift-tools-version:5.3 import PackageDescription let package = Package( diff --git a/Packages/vChewing_MainAssembly/.gitignore b/Packages/vChewing_MainAssembly/.gitignore new file mode 100644 index 00000000..3b298120 --- /dev/null +++ b/Packages/vChewing_MainAssembly/.gitignore @@ -0,0 +1,9 @@ +.DS_Store +/.build +/Packages +/*.xcodeproj +xcuserdata/ +DerivedData/ +.swiftpm/config/registries.json +.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +.netrc diff --git a/Packages/vChewing_MainAssembly/Package.swift b/Packages/vChewing_MainAssembly/Package.swift new file mode 100644 index 00000000..13006a3b --- /dev/null +++ b/Packages/vChewing_MainAssembly/Package.swift @@ -0,0 +1,64 @@ +// swift-tools-version:5.3 +import PackageDescription + +let package = Package( + name: "MainAssembly", + platforms: [ + .macOS(.v10_13), + ], + products: [ + .library( + name: "MainAssembly", + targets: ["MainAssembly"] + ), + ], + dependencies: [ + .package(path: "../Jad_BookmarkManager"), + .package(path: "../vChewing_CandidateWindow"), + .package(path: "../vChewing_CocoaExtension"), + .package(path: "../DanielGalasko_FolderMonitor"), + .package(path: "../vChewing_Hotenka"), + .package(path: "../vChewing_IMKUtils"), + .package(path: "../vChewing_LangModelAssembly"), + .package(path: "../vChewing_Megrez"), + .package(path: "../vChewing_NotifierUI"), + .package(path: "../vChewing_PhraseEditorUI"), + .package(path: "../vChewing_PopupCompositionBuffer"), + .package(path: "../vChewing_Shared"), + .package(path: "../Qwertyyb_ShiftKeyUpChecker"), + .package(path: "../vChewing_SwiftExtension"), + .package(path: "../vChewing_Tekkon"), + .package(path: "../vChewing_TooltipUI"), + .package(path: "../vChewing_UpdateSputnik"), + .package(path: "../vChewing_Uninstaller"), + ], + targets: [ + .target( + name: "MainAssembly", + dependencies: [ + .product(name: "BookmarkManager", package: "Jad_BookmarkManager"), + .product(name: "CandidateWindow", package: "vChewing_CandidateWindow"), + .product(name: "CocoaExtension", package: "vChewing_CocoaExtension"), + .product(name: "Hotenka", package: "vChewing_Hotenka"), + .product(name: "FolderMonitor", package: "DanielGalasko_FolderMonitor"), + .product(name: "IMKUtils", package: "vChewing_IMKUtils"), + .product(name: "LangModelAssembly", package: "vChewing_LangModelAssembly"), + .product(name: "Megrez", package: "vChewing_Megrez"), + .product(name: "NotifierUI", package: "vChewing_NotifierUI"), + .product(name: "PhraseEditorUI", package: "vChewing_PhraseEditorUI"), + .product(name: "PopupCompositionBuffer", package: "vChewing_PopupCompositionBuffer"), + .product(name: "Shared", package: "vChewing_Shared"), + .product(name: "ShiftKeyUpChecker", package: "Qwertyyb_ShiftKeyUpChecker"), + .product(name: "SwiftExtension", package: "vChewing_SwiftExtension"), + .product(name: "Tekkon", package: "vChewing_Tekkon"), + .product(name: "TooltipUI", package: "vChewing_TooltipUI"), + .product(name: "UpdateSputnik", package: "vChewing_UpdateSputnik"), + .product(name: "Uninstaller", package: "vChewing_Uninstaller"), + ] + ), + .testTarget( + name: "MainAssemblyTests", + dependencies: ["MainAssembly"] + ), + ] +) diff --git a/Packages/vChewing_MainAssembly/README.md b/Packages/vChewing_MainAssembly/README.md new file mode 100644 index 00000000..6c37b015 --- /dev/null +++ b/Packages/vChewing_MainAssembly/README.md @@ -0,0 +1,3 @@ +# MainAssembly + +威注音輸入法核心元件。 diff --git a/Packages/vChewing_MainAssembly/Sources/MainAssembly/MainAssembly.swift b/Packages/vChewing_MainAssembly/Sources/MainAssembly/MainAssembly.swift new file mode 100644 index 00000000..e86e00c9 --- /dev/null +++ b/Packages/vChewing_MainAssembly/Sources/MainAssembly/MainAssembly.swift @@ -0,0 +1,5 @@ +public struct MainAssembly { + public private(set) var text = "Hello, World!" + + public init() {} +} diff --git a/Packages/vChewing_MainAssembly/Tests/MainAssemblyTests/MainAssemblyTests.swift b/Packages/vChewing_MainAssembly/Tests/MainAssemblyTests/MainAssemblyTests.swift new file mode 100644 index 00000000..8a50fed2 --- /dev/null +++ b/Packages/vChewing_MainAssembly/Tests/MainAssemblyTests/MainAssemblyTests.swift @@ -0,0 +1,11 @@ +@testable import MainAssembly +import XCTest + +final class MainAssemblyTests: XCTestCase { + func testExample() throws { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct + // results. + XCTAssertEqual(MainAssembly().text, "Hello, World!") + } +}