add submodule and add conversion tests

This commit is contained in:
Miwa / Ensan
2024-02-20 00:34:47 +09:00
parent 83535f13f6
commit 6f2a5218a2
6 changed files with 960 additions and 0 deletions

View File

@ -22,6 +22,12 @@ let package = Package(
name: "SwiftUtils",
targets: ["SwiftUtils"]
),
///
.library(
name: "KanaKanjiConverterModuleWithDefaultDictionary",
targets: ["KanaKanjiConverterModuleWithDefaultDictionary"]
),
///
.library(
name: "KanaKanjiConverterModule",
targets: ["KanaKanjiConverterModule"]
@ -51,6 +57,20 @@ let package = Package(
resources: [],
swiftSettings: swiftSettings
),
.target(
name: "KanaKanjiConverterModuleWithDefaultDictionary",
dependencies: [
"KanaKanjiConverterModule"
],
exclude: [
"azooKey_dictionary_storage/README.md",
"azooKey_dictionary_storage/LICENSE",
],
resources: [
.copy("azooKey_dictionary_storage/Dictionary"),
],
swiftSettings: swiftSettings
),
.testTarget(
name: "SwiftUtilsTests",
dependencies: ["SwiftUtils"],
@ -64,6 +84,11 @@ let package = Package(
.copy("DictionaryMock")
],
swiftSettings: swiftSettings
),
.testTarget(
name: "KanaKanjiConverterModuleWithDefaultDictionaryTests",
dependencies: ["KanaKanjiConverterModuleWithDefaultDictionary"],
swiftSettings: swiftSettings
)
]
)