Update project file to use schemes

This commit is contained in:
Balazs Perlaki-Horvath 2023-12-31 11:12:34 +01:00
parent 47be0ca9af
commit 0cfe056969

View File

@ -12,14 +12,13 @@ settings:
base: base:
DEVELOPMENT_TEAM: L7HWM3SP3L DEVELOPMENT_TEAM: L7HWM3SP3L
GENERATE_INFOPLIST_FILE: YES GENERATE_INFOPLIST_FILE: YES
CURRENT_PROJECT_VERSION: 120 CURRENT_PROJECT_VERSION: 133
ENABLE_USER_SCRIPT_SANDBOXING: NO ENABLE_USER_SCRIPT_SANDBOXING: NO
ENABLE_MODULE_VERIFIER: YES ENABLE_MODULE_VERIFIER: YES
MODULE_VERIFIER_SUPPORTED_LANGUAGES: "objective-c objective-c++" MODULE_VERIFIER_SUPPORTED_LANGUAGES: "objective-c objective-c++"
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS: YES ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS: YES
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED: YES CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED: YES
ENABLE_PREVIEWS: YES ENABLE_PREVIEWS: YES
INFOPLIST_FILE: Support/Info.plist
INFOPLIST_KEY_LSApplicationCategoryType: public.app-category.reference INFOPLIST_KEY_LSApplicationCategoryType: public.app-category.reference
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone: UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone: UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad: UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad: UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight
@ -58,28 +57,10 @@ packages:
url: https://github.com/apple/swift-collections.git url: https://github.com/apple/swift-collections.git
majorVersion: 1.0.4 majorVersion: 1.0.4
targets: targetTemplates:
Kiwix: ApplicationTemplate:
settings:
base:
MARKETING_VERSION: "3.3"
PRODUCT_BUNDLE_IDENTIFIER: self.Kiwix
INFOPLIST_KEY_CFBundleDisplayName: Kiwix
type: application type: application
supportedDestinations: [iOS, macOS] supportedDestinations: [iOS, macOS]
sources:
- path: App
- path: Support/Kiwix-Bridging-Header.h
destinationFilters: [iOS]
- path: Model
- path: Support
excludes:
- "Launch.storyboard"
- "**/*.zim"
- "**/qqq.lproj"
- path: SwiftUI
- path: ViewModel
- path: Views
preBuildScripts: preBuildScripts:
- script: | - script: |
# Copy Clang module map to xcframework for Swift C++ Interoperability # Copy Clang module map to xcframework for Swift C++ Interoperability
@ -88,9 +69,6 @@ targets:
cp Support/CoreKiwix.modulemap CoreKiwix.xcframework/macos-arm64_x86_64/Headers/module.modulemap cp Support/CoreKiwix.modulemap CoreKiwix.xcframework/macos-arm64_x86_64/Headers/module.modulemap
name: "Copy CoreKiwix module maps" name: "Copy CoreKiwix module maps"
basedOnDependencyAnalysis: false basedOnDependencyAnalysis: false
configFiles:
Debug: Support/kiwix.xcconfig
Release: Support/kiwix.xcconfig
entitlements: entitlements:
path: Support/Kiwix.entitlements path: Support/Kiwix.entitlements
properties: properties:
@ -111,6 +89,30 @@ targets:
- package: Defaults - package: Defaults
- package: SwiftUIBackports - package: SwiftUIBackports
- package: OrderedCollections - package: OrderedCollections
sources:
- path: App
- path: Model
- path: SwiftUI
- path: ViewModel
- path: Views
targets:
Kiwix:
templates:
- ApplicationTemplate
settings:
base:
MARKETING_VERSION: "3.3"
PRODUCT_BUNDLE_IDENTIFIER: self.Kiwix
INFOPLIST_KEY_CFBundleDisplayName: Kiwix
INFOPLIST_FILE: Support/Info.plist
configFiles:
Debug: Support/kiwix.xcconfig
Release: Support/kiwix.xcconfig
sources:
- path: Support
excludes:
- "**/qqq.lproj"
UnitTests: UnitTests:
type: bundle.unit-test type: bundle.unit-test
platform: macOS platform: macOS
@ -118,13 +120,11 @@ targets:
PRODUCT_BUNDLE_IDENTIFIER: org.kiwix.Tests PRODUCT_BUNDLE_IDENTIFIER: org.kiwix.Tests
TEST_HOST: $(BUILT_PRODUCTS_DIR)/Kiwix.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Kiwix TEST_HOST: $(BUILT_PRODUCTS_DIR)/Kiwix.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Kiwix
BUNDLE_LOADER: $(TEST_HOST) BUNDLE_LOADER: $(TEST_HOST)
DEVELOPMENT_TEAM: L7HWM3SP3L
sources: sources:
- path: Tests - path: Tests
dependencies: dependencies:
- target: Kiwix - target: Kiwix
schemes: schemes:
Kiwix: Kiwix:
build: build: