Created
January 4, 2022 13:48
-
-
Save noppefoxwolf/d80fb5b90eb4b4438b4cd33a1527b7d2 to your computer and use it in GitHub Desktop.
EditormodeのPackage.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// swift-tools-version:5.5 | |
// The swift-tools-version declares the minimum version of Swift required to build this package. | |
import PackageDescription | |
let package = Package( | |
name: "AppPackage", | |
platforms: [.iOS(.v15)], | |
products: [ | |
.library(name: "AppModule", targets: ["AppModule", "DebugMenuModule"]), | |
.library(name: "ColorPickerModule", targets: ["ColorPicker"]), | |
.library(name: "LayerListModule", targets: ["LayerList"]), | |
.library(name: "PalettePickerModule", targets: ["PalettePicker"]), | |
.library(name: "EditorModule", targets: ["Editor", "Development"]), | |
.library(name: "ToolbarModule", targets: ["Toolbar"]), | |
.library(name: "PaletteModule", targets: ["Palette"]), | |
.library(name: "PurchaseModule", targets: ["Purchase"]), | |
.library(name: "SettingsModule", targets: ["Settings", "GridSettings", "GlobalSettings"]), | |
.library(name: "DocumentCreationModule", targets: ["DocumentCreation", "DebugMenuModule"]), | |
.library(name: "GoogleMobileAdsModule", targets: ["GoogleMobileAdsSetup"]), | |
.library(name: "CheatsheetModule", targets: ["Cheatsheet"]), | |
.library(name: "CodableCoreGraphicsModule", targets: ["CodableCoreGraphics"]), | |
.library(name: "CoreModule", targets: ["Core"]), | |
.library(name: "FloodFillModule", targets: ["FloodFill", "CodableCoreGraphics"]) | |
], | |
dependencies: [ | |
.package(url: "https://github.com/SnapKit/SnapKit", from: "5.0.1"), | |
.package(url: "https://github.com/malcommac/SwiftRichString", from: "3.7.2"), | |
.package(url: "https://github.com/henzai-apps/ImageColors", from: "1.0.0"), | |
.package(name: "Firebase", path: "../Firebase"), | |
.package(name: "GoogleMobileAds", path: "../GoogleMobileAds"), | |
.package( | |
name: "SnapshotTesting", | |
url: "https://github.com/pointfreeco/swift-snapshot-testing", | |
from: "1.9.0" | |
), | |
.package(url: "https://github.com/noppefoxwolf/DebugMenu", from: "1.25.0"), | |
], | |
targets: [ | |
.target( | |
name: "AppModule", | |
dependencies: [ | |
"DocumentBrowser", | |
"Editor", | |
"Core", | |
"Purchase", | |
"FirebaseSetup", | |
] | |
), | |
.target( | |
name: "Editor", | |
dependencies: [ | |
"SnapKit", | |
"SwiftRichString", | |
"Core", | |
"PixelEditor", | |
"UndoNotification", | |
"Toolbar", | |
"PalettePicker", | |
"LayerList", | |
"Palette", | |
"GridSettings", | |
"Cheatsheet", | |
"GoogleMobileAdsSetup", | |
] | |
), | |
.target( | |
name: "PixelEditor", | |
dependencies: [ | |
"SnapKit", | |
"Core", | |
"UndoNotification", | |
"GridMaker", | |
] | |
), | |
.target( | |
name: "UndoNotification", | |
dependencies: [ | |
"Core", | |
"SnapKit", | |
"SwiftRichString", | |
] | |
), | |
.target( | |
name: "DocumentBrowser", | |
dependencies: [ | |
"SnapKit", | |
"Core", | |
"DocumentCreation", | |
"SwiftRichString", | |
"GlobalSettings", | |
"Editor", | |
] | |
), | |
.target( | |
name: "DocumentCreation", | |
dependencies: [ | |
"SnapKit", | |
"Core", | |
"PalettePicker", | |
"Purchase", | |
] | |
), | |
.target( | |
name: "Core", | |
dependencies: [ | |
"FloodFill", | |
"CodableCoreGraphics", | |
] | |
), | |
.testTarget( | |
name: "CoreTests", | |
dependencies: [ | |
"Core", | |
"FloodFill", | |
] | |
), | |
.target( | |
name: "FloodFill" | |
), | |
.testTarget( | |
name: "FloodFillTests", | |
dependencies: [ | |
"FloodFill", | |
"Core", | |
] | |
), | |
.target( | |
name: "PalettePicker", | |
dependencies: [ | |
"SwiftRichString", | |
"ImageColors", | |
"SnapKit", | |
"Core", | |
] | |
), | |
.target( | |
name: "LayerList", | |
dependencies: [ | |
"Core", | |
"SnapKit", | |
"LayerDetails", | |
"SwiftRichString", | |
"ColorPicker", | |
] | |
), | |
.testTarget( | |
name: "LayerListTests", | |
dependencies: [ | |
"LayerList" | |
] | |
), | |
.target( | |
name: "LayerDetails", | |
dependencies: [ | |
"Core", | |
"SnapKit", | |
] | |
), | |
.testTarget( | |
name: "PalettePickerTests", | |
dependencies: [ | |
"PalettePicker" | |
], | |
resources: [ | |
.process("Resource") | |
] | |
), | |
.testTarget( | |
name: "AppModuleTests", | |
dependencies: [ | |
"AppModule" | |
] | |
), | |
.target( | |
name: "ColorPicker", | |
dependencies: [ | |
"SnapKit", | |
"SwiftRichString", | |
"Core", | |
] | |
), | |
.target( | |
name: "Toolbar", | |
dependencies: [ | |
"SnapKit" | |
], | |
resources: [.process("Resource")] | |
), | |
.target( | |
name: "Palette", | |
dependencies: [ | |
"Core", | |
"SnapKit" | |
] | |
), | |
.target( | |
name: "Development", | |
resources: [.process("Resource")] | |
), | |
.target( | |
name: "Purchase", | |
dependencies: [ | |
"SnapKit", | |
"Core", | |
], | |
resources: [ | |
.process("PurchaseViewController.storyboard"), | |
.process("Resource"), | |
] | |
), | |
.target( | |
name: "Settings", | |
dependencies: [ | |
"SnapKit" | |
] | |
), | |
.target( | |
name: "GlobalSettings", | |
dependencies: [ | |
"Settings" | |
] | |
), | |
.target( | |
name: "GridSettings", | |
dependencies: [ | |
"SnapKit", | |
"SwiftRichString", | |
"GridMaker", | |
"Settings", | |
] | |
), | |
.target( | |
name: "GridMaker", | |
dependencies: [ | |
"Core" | |
] | |
), | |
.testTarget( | |
name: "GridMakerTests", | |
dependencies: [ | |
"SnapshotTesting", | |
"GridMaker", | |
], | |
resources: [ | |
.copy("Resource") | |
] | |
), | |
.target( | |
name: "DebugMenuModule", | |
dependencies: [ | |
"Core", | |
"DebugMenu", | |
] | |
), | |
.target( | |
name: "Cheatsheet", | |
dependencies: [ | |
"SnapKit" | |
] | |
), | |
.target( | |
name: "CodableCoreGraphics" | |
), | |
.testTarget( | |
name: "CodableCoreGraphicsTests", | |
dependencies: ["CodableCoreGraphics"] | |
) | |
] | |
) | |
// MARK: Firebase | |
package.targets.append(contentsOf: [ | |
.target( | |
name: "FirebaseSetup", | |
dependencies: [ | |
.product(name: "FirebaseCrashlytics", package: "Firebase"), | |
.product(name: "FirebaseAnalytics", package: "Firebase"), | |
], | |
linkerSettings: [ | |
.unsafeFlags(["-ObjC"]) | |
] | |
) | |
]) | |
// MARK: GoogleMobileAds | |
package.targets.append(contentsOf: [ | |
.target( | |
name: "GoogleMobileAdsSetup", | |
dependencies: [ | |
.product(name: "GoogleMobileAds", package: "GoogleMobileAds") | |
], | |
linkerSettings: [ | |
.unsafeFlags(["-ObjC"]) | |
] | |
) | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment