Add configurable iPhone widgets
This commit is contained in:
@@ -34,6 +34,10 @@ targets:
|
||||
CFBundleShortVersionString: "$(MARKETING_VERSION)"
|
||||
CFBundleVersion: "$(CURRENT_PROJECT_VERSION)"
|
||||
ITSAppUsesNonExemptEncryption: false
|
||||
CFBundleURLTypes:
|
||||
- CFBundleURLName: de.rfc1437.gotcha
|
||||
CFBundleURLSchemes:
|
||||
- gotcha
|
||||
UILaunchScreen: {}
|
||||
UISupportedInterfaceOrientations:
|
||||
- UIInterfaceOrientationPortrait
|
||||
@@ -45,6 +49,42 @@ targets:
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user