|
| 1 | +import ProjectDescription |
| 2 | +import ProjectDescriptionHelpers |
| 3 | + |
| 4 | +let project = Project( |
| 5 | + name: "DevLogApp", |
| 6 | + targets: [ |
| 7 | + .target( |
| 8 | + name: "DevLog", |
| 9 | + destinations: .iOS, |
| 10 | + product: .app, |
| 11 | + bundleId: "opfic.DevLog", |
| 12 | + deploymentTargets: .iOS("17.0"), |
| 13 | + infoPlist: .file(path: "Sources/Resource/Info.plist"), |
| 14 | + sources: ["Sources/**"], |
| 15 | + resources: [ |
| 16 | + "Sources/Resource/**", |
| 17 | + "!Sources/Resource/Info.plist", |
| 18 | + "!Sources/Resource/*.entitlements", |
| 19 | + "!Sources/Resource/*.xcconfig", |
| 20 | + ], |
| 21 | + entitlements: .file(path: "Sources/Resource/DevLog.entitlements"), |
| 22 | + dependencies: [ |
| 23 | + .project(target: "DevLogPresentation", path: "../DevLogPresentation"), |
| 24 | + .project(target: "DevLogPersistence", path: "../DevLogPersistence"), |
| 25 | + .project(target: "DevLogInfra", path: "../DevLogInfra"), |
| 26 | + .project(target: "DevLogData", path: "../DevLogData"), |
| 27 | + .project(target: "DevLogDomain", path: "../DevLogDomain"), |
| 28 | + .project(target: "DevLogCore", path: "../DevLogCore"), |
| 29 | + .project(target: "DevLogWidgetCore", path: "../../Widget/DevLogWidgetCore"), |
| 30 | + .project(target: "DevLogWidgetExtension", path: "../../Widget/DevLogWidgetExtension"), |
| 31 | + DevLogPackages.swiftLintPlugin, |
| 32 | + ], |
| 33 | + settings: .devlog( |
| 34 | + versionXcconfigPath: "../Shared/Version.xcconfig", |
| 35 | + base: [ |
| 36 | + "ASSETCATALOG_COMPILER_APPICON_NAME": "AppIcon", |
| 37 | + "CODE_SIGN_STYLE": "Automatic", |
| 38 | + "DEVELOPMENT_TEAM": DevLogSigning.teamID, |
| 39 | + "IPHONEOS_DEPLOYMENT_TARGET": "17.0", |
| 40 | + ] |
| 41 | + ) |
| 42 | + ), |
| 43 | + .testTarget( |
| 44 | + name: "DevLogAppTests", |
| 45 | + destinations: .iOS, |
| 46 | + product: .unitTests, |
| 47 | + bundleId: "opfic.DevLogAppTests", |
| 48 | + infoPlist: .default, |
| 49 | + sources: ["Tests/**"], |
| 50 | + dependencies: [ |
| 51 | + .target(name: "DevLog"), |
| 52 | + ], |
| 53 | + settings: .devlog( |
| 54 | + base: [ |
| 55 | + "BUNDLE_LOADER": "$(TEST_HOST)", |
| 56 | + "CODE_SIGN_STYLE": "Automatic", |
| 57 | + "DEVELOPMENT_TEAM": DevLogSigning.teamID, |
| 58 | + "IPHONEOS_DEPLOYMENT_TARGET": "17.0", |
| 59 | + "TEST_HOST": "$(BUILT_PRODUCTS_DIR)/DevLog.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/DevLog", |
| 60 | + "TEST_TARGET_NAME": "DevLog", |
| 61 | + ] |
| 62 | + ) |
| 63 | + ), |
| 64 | + ] |
| 65 | +) |
0 commit comments