chadtmiller.com/knotless
git that lives in your Atmosphere account
1
10
name: Knotless
options:
bundleIdPrefix: dev.knotless
deploymentTarget:
iOS: "18.0"
createIntermediateGroups: true
settings:
base:
SWIFT_VERSION: "6.0"
MARKETING_VERSION: "2.0"
CURRENT_PROJECT_VERSION: "9"
GENERATE_INFOPLIST_FILE: YES
INFOPLIST_KEY_CFBundleDisplayName: Knotless
INFOPLIST_KEY_ITSAppUsesNonExemptEncryption: NO
INFOPLIST_KEY_UILaunchScreen_Generation: YES
INFOPLIST_KEY_UIApplicationSceneManifest_Generation: YES
INFOPLIST_KEY_UISupportedInterfaceOrientations: UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight
DEVELOPMENT_TEAM: YN68LN9T7Z
CODE_SIGN_STYLE: Automatic
targets:
Knotless:
type: application
platform: iOS
sources:
- path: Knotless
excludes: [Vendor/**]
# Pele, as web/package-lock.json pins it: `just ios-pele` copies it here.
- path: Knotless/Vendor
buildPhase: resources
# Opens a private repository's notifications on the device (PushKey.swift).
dependencies:
- target: KnotlessNotifications
# Only what Xcode's generated Info.plist can't hold: the keychain group
# PushKey.swift reads, as entitlements can't be read at run time.
info:
path: Knotless/Info.plist
properties:
CFBundleShortVersionString: $(MARKETING_VERSION)
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
KnotlessKeychainGroup: $(AppIdentifierPrefix)dev.knotless.shared
entitlements:
path: Knotless/Knotless.entitlements
properties:
aps-environment: development
com.apple.developer.associated-domains:
- applinks:knotless.dev
- webcredentials:knotless.dev
# Its own first, where an item goes when none is named, as the session
# does: only the push key is in the group the extension reads.
keychain-access-groups:
- $(AppIdentifierPrefix)dev.knotless.app
- $(AppIdentifierPrefix)dev.knotless.shared
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: dev.knotless.app
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
# iPhone only: XcodeGen's preset for an app is "1,2" on the target itself.
TARGETED_DEVICE_FAMILY: "1"
KnotlessNotifications:
type: app-extension
platform: iOS
sources:
- path: KnotlessNotifications
- path: Knotless/API/PushKey.swift
info:
path: KnotlessNotifications/Info.plist
properties:
CFBundleDisplayName: Knotless
CFBundleShortVersionString: $(MARKETING_VERSION)
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
KnotlessKeychainGroup: $(AppIdentifierPrefix)dev.knotless.shared
NSExtension:
NSExtensionPointIdentifier: com.apple.usernotifications.service
NSExtensionPrincipalClass: $(PRODUCT_MODULE_NAME).NotificationService
entitlements:
path: KnotlessNotifications/KnotlessNotifications.entitlements
properties:
keychain-access-groups:
- $(AppIdentifierPrefix)dev.knotless.shared
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: dev.knotless.app.notifications
TARGETED_DEVICE_FAMILY: "1"
KnotlessUITests:
type: bundle.ui-testing
platform: iOS
sources: [KnotlessUITests]
dependencies:
- target: Knotless
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: dev.knotless.app.uitests
TARGETED_DEVICE_FAMILY: "1"
GENERATE_INFOPLIST_FILE: YES
schemes:
Knotless:
build:
targets:
Knotless: all
test:
targets: [KnotlessUITests]