Files
Gotcha/ios/project.yml
2026-08-03 22:06:32 +02:00

95 lines
2.9 KiB
YAML

name: Gotcha
options:
bundleIdPrefix: de.rfc1437
settings:
ENABLE_USER_SCRIPT_SANDBOXING: NO
packages:
Highlighter:
url: https://github.com/smittytone/HighlighterSwift
from: 3.1.0
MarkdownUI:
url: https://github.com/gonzalezreal/swift-markdown-ui
from: 2.1.0
targets:
Gotcha:
type: application
platform: iOS
deploymentTarget: "17.0"
settings:
PRODUCT_BUNDLE_IDENTIFIER: de.rfc1437.gotcha
MARKETING_VERSION: "1.0"
CURRENT_PROJECT_VERSION: "1"
DEVELOPMENT_TEAM: MU22FMRGK8
CODE_SIGN_STYLE: Automatic
TARGETED_DEVICE_FAMILY: "1"
CODE_SIGN_ENTITLEMENTS: Gotcha.entitlements
SWIFT_VERSION: "5.0"
SWIFT_OBJC_BRIDGING_HEADER: Gotcha-Bridging-Header.h
LIBRARY_SEARCH_PATHS: "$(inherited) $(DERIVED_FILE_DIR)/rust"
OTHER_LDFLAGS: "$(inherited) -lgotcha_core"
info:
path: Info.plist
properties:
CFBundleDisplayName: Gotcha
CFBundleShortVersionString: "$(MARKETING_VERSION)"
CFBundleVersion: "$(CURRENT_PROJECT_VERSION)"
ITSAppUsesNonExemptEncryption: false
CFBundleURLTypes:
- CFBundleURLName: de.rfc1437.gotcha
CFBundleURLSchemes:
- gotcha
UILaunchScreen: {}
UISupportedInterfaceOrientations:
- UIInterfaceOrientationPortrait
sources:
- Assets.xcassets
- PrivacyInfo.xcprivacy
- Sources
- Generated/gotcha_core.swift
dependencies:
- package: Highlighter
- package: MarkdownUI
- target: GotchaWidgets
embed: true
preBuildScripts:
- name: Build Rust core
basedOnDependencyAnalysis: false
script: |
./build_rust_core.bash
outputFiles:
- $(DERIVED_FILE_DIR)/rust/libgotcha_core.a
GotchaWidgets:
type: app-extension
platform: iOS
deploymentTarget: "17.0"
settings:
PRODUCT_BUNDLE_IDENTIFIER: de.rfc1437.gotcha.widgets
DEVELOPMENT_TEAM: MU22FMRGK8
CODE_SIGN_STYLE: Automatic
CODE_SIGN_ENTITLEMENTS: GotchaWidgets.entitlements
SWIFT_VERSION: "5.0"
SWIFT_OBJC_BRIDGING_HEADER: Gotcha-Bridging-Header.h
LIBRARY_SEARCH_PATHS: "$(inherited) $(DERIVED_FILE_DIR)/rust"
OTHER_LDFLAGS: "$(inherited) -lgotcha_core"
APPLICATION_EXTENSION_API_ONLY: YES
SKIP_INSTALL: YES
info:
path: GotchaWidgets-Info.plist
properties:
CFBundleDisplayName: Gotcha Widgets
ITSAppUsesNonExemptEncryption: false
NSExtension:
NSExtensionPointIdentifier: com.apple.widgetkit-extension
sources:
- Widgets
- Sources/WidgetIntents.swift
- PrivacyInfo.xcprivacy
- Generated/gotcha_core.swift
preBuildScripts:
- name: Build Rust core
basedOnDependencyAnalysis: false
script: |
./build_rust_core.bash
outputFiles:
- $(DERIVED_FILE_DIR)/rust/libgotcha_core.a