Skip to content

Instantly share code, notes, and snippets.

@treastrain
Last active July 7, 2022 16:43
Show Gist options
  • Save treastrain/df4edf6aaff664be6428f895ac120732 to your computer and use it in GitHub Desktop.
Save treastrain/df4edf6aaff664be6428f895ac120732 to your computer and use it in GitHub Desktop.
Japan NFC Reader の XcodeGen project.yml (ビルド 2020110801 時点)
attributes:
ORGANIZATIONNAME: treastrain / Tanaka Ryoga
name: JapanNFCReader
configs:
Debug: debug
Release: release
settings:
base:
CURRENT_PROJECT_VERSION: 2020110801
MARKETING_VERSION: "2.0"
DEVELOPMENT_TEAM: 9TWATL5SE8
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME: AccentColor
options:
bundleIdPrefix: jp.tret.japanNFCReader
developmentLanguage: en
deploymentTarget:
iOS: 13.6
watchOS: 6.2
carthageExecutablePath: ./wcarthage
packages:
DZNEmptyDataSet:
url: https://github.com/kunalverma25/DZNEmptyDataSet
from: 1.8.2
# Firebase:
# url: https://github.com/firebase/firebase-ios-sdk
# branch: 7.0-spm-beta
IceCream:
url: https://github.com/caiyue1993/IceCream
from: 1.13.2
JapanNFCReaderConnect:
path: ../JapanNFCReaderConnect
SwiftyStoreKit:
url: https://github.com/bizz84/SwiftyStoreKit
from: 0.16.1
TOCropViewController:
url: https://github.com/TimOliver/TOCropViewController
from: 2.5.5
TRETJapanNFCReader:
path: ../TRETJapanNFCReader
UIDeviceComplete:
url: https://github.com/Nirma/UIDeviceComplete
from: 2.7.5
targets:
iOS App:
type: application
platform: iOS
settings:
base:
OTHER_LDFLAGS: $(inherited) $(OTHER_LDFLAGS) -ObjC
CODE_SIGN_ENTITLEMENTS: iOS App/Supporting Files/iOS App.entitlements
configs:
Debug:
PRODUCT_BUNDLE_IDENTIFIER: jp.tret.japanNFCReader.debug
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon.debug
Release:
PRODUCT_BUNDLE_IDENTIFIER: jp.tret.japanNFCReader
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
sources:
- Shared
- path: iOS App
excludes:
- "Cards/CardsSwiftUI/**"
- "Cards/CardsTableViewCell/CardsTableViewCellSwiftUI/**"
dependencies:
- target: iOS Widgets
- target: iOS Intents
- target: iOS Clip
- target: watchOS WatchKit App
- sdk: CloudKit.framework
- package: DZNEmptyDataSet
- package: IceCream
- package: JapanNFCReaderConnect
- package: SwiftyStoreKit
- package: TOCropViewController
product: CropViewController
- package: TRETJapanNFCReader
- package: UIDeviceComplete
# Firebase START
- framework: Carthage/Build/iOS/abseil.framework
embed: false
- framework: Carthage/Build/iOS/BoringSSL-GRPC.framework
embed: false
- framework: Carthage/Build/iOS/FIRAnalyticsConnector.framework
embed: false
- framework: Carthage/Build/iOS/Firebase.framework
embed: false
link: false
- framework: Carthage/Build/iOS/FirebaseABTesting.framework
embed: false
- framework: Carthage/Build/iOS/FirebaseAnalytics.framework
embed: false
- framework: Carthage/Build/iOS/FirebaseAuth.framework
embed: false
- framework: Carthage/Build/iOS/FirebaseCore.framework
embed: false
- framework: Carthage/Build/iOS/FirebaseCoreDiagnostics.framework
embed: false
- framework: Carthage/Build/iOS/FirebaseCrashlytics.framework
embed: false
- framework: Carthage/Build/iOS/FirebaseDynamicLinks.framework
embed: false
- framework: Carthage/Build/iOS/FirebaseFirestore.framework
embed: false
- framework: Carthage/Build/iOS/FirebaseInstallations.framework
embed: false
- framework: Carthage/Build/iOS/FirebasePerformance.framework
embed: false
- framework: Carthage/Build/iOS/FirebaseRemoteConfig.framework
embed: false
- framework: Carthage/Build/iOS/GoogleAppMeasurement.framework
embed: false
- framework: Carthage/Build/iOS/GoogleDataTransport.framework
embed: false
- framework: Carthage/Build/iOS/GoogleMobileAds.framework
embed: false
- framework: Carthage/Build/iOS/GoogleToolboxForMac.framework
embed: false
- framework: Carthage/Build/iOS/GoogleUtilities.framework
embed: false
- framework: Carthage/Build/iOS/gRPC-C++.framework
embed: false
- framework: Carthage/Build/iOS/gRPC-Core.framework
embed: false
- framework: Carthage/Build/iOS/GTMSessionFetcher.framework
embed: false
- framework: Carthage/Build/iOS/leveldb-library.framework
embed: false
- framework: Carthage/Build/iOS/nanopb.framework
embed: false
- framework: Carthage/Build/iOS/PromisesObjC.framework
embed: false
- framework: Carthage/Build/iOS/Protobuf.framework
embed: false
- framework: Carthage/Build/iOS/UserMessagingPlatform.framework
embed: false
- sdk: libc++.tbd
- sdk: libsqlite3.tbd
- sdk: CoreTelephony.framework
- sdk: JavaScriptCore.framework
- sdk: StoreKit.framework
# Firebase END
prebuildScripts:
- script: |
if [ $CONFIGURATION = "Debug" ]; then
echo "Running license-plist"
LICENSEPLIST_GITHUB_ACCESS_TOKEN=$($SRCROOT/Tokens/LICENSEPLIST_GITHUB_ACCESS_TOKEN)
cd $SRCROOT
/usr/local/bin/license-plist --package-path $PROJECT_FILE_PATH/project.xcworkspace/xcshareddata/swiftpm/Package.resolved --add-version-numbers --output-path iOS\ App/Supporting\ Files/Settings.bundle --github-token ${LICENSEPLIST_GITHUB_ACCESS_TOKEN} --config-path $SRCROOT/iOS\ App/Supporting\ Files/Settings.bundle/license_plist.yml --fail-if-missing-license
fi
name: LicensePlist Script
- script: |
if which swiftlint >/dev/null; then
swiftlint autocorrect --format
swiftlint
else
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
fi
name: SwiftLint Script
- script: |
/usr/local/bin/carthage copy-frameworks
name: Carthage Script
inputFileLists:
- $(SRCROOT)/iOS App/Supporting Files/carthage-input.xcfilelist
outputFileLists:
- $(SRCROOT)/iOS App/Supporting Files/carthage-output.xcfilelist
# postCompileScripts:
postBuildScripts:
- script: |
/usr/libexec/PlistBuddy -c "Set :PreferenceSpecifiers:1:DefaultValue ${MARKETING_VERSION} (${CURRENT_PROJECT_VERSION})" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Settings.bundle/Root.plist"
name: Set PreferenceSpecifiers 1 Version Script
- script: |
${PROJECT_DIR}/iOS\ App/Firebase/Scripts/Crashlytics/run
name: Firebase Crashlytics Script
shell: /bin/zsh
iOS Widgets:
type: app-extension
platform: iOS
deploymentTarget: 14.0
settings:
base:
CODE_SIGN_ENTITLEMENTS: iOS Widgets/iOS Widgets.entitlements
configs:
Debug:
PRODUCT_BUNDLE_IDENTIFIER: jp.tret.japanNFCReader.debug.ios-widgets
Release:
PRODUCT_BUNDLE_IDENTIFIER: jp.tret.japanNFCReader.ios-widgets
sources:
- path: Shared
excludes:
- "App/**"
- "iOS App/**"
- iOS Widgets
dependencies:
- sdk: SwiftUI.framework
- sdk: WidgetKit.framework
- package: IceCream
iOS Intents:
# type: app-extension.intents-service
type: app-extension
platform: iOS
deploymentTarget: 14.0
settings:
base:
INFOPLIST_FILE: iOS Intents/Info.plist
CODE_SIGN_ENTITLEMENTS: iOS Intents/iOS Intents.entitlements
configs:
Debug:
PRODUCT_BUNDLE_IDENTIFIER: jp.tret.japanNFCReader.debug.intents
Release:
PRODUCT_BUNDLE_IDENTIFIER: jp.tret.japanNFCReader.intents
sources:
- path: Shared
excludes:
- "App/**"
- "iOS App/**"
- iOS Intents
dependencies:
- package: IceCream
iOS Clip:
type: application.on-demand-install-capable
platform: iOS
deploymentTarget: 14.0
settings:
base:
CODE_SIGN_ENTITLEMENTS: iOS Clip/iOS Clip.entitlements
configs:
Debug:
SWIFT_ACTIVE_COMPILATION_CONDITIONS: DEBUG APPCLIP
PRODUCT_BUNDLE_IDENTIFIER: jp.tret.japanNFCReader.debug.Clip
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon.debug
CODE_SIGN_ENTITLEMENTS: iOS Clip/iOS Clip.debug.entitlements
Release:
SWIFT_ACTIVE_COMPILATION_CONDITIONS: APPCLIP
PRODUCT_BUNDLE_IDENTIFIER: jp.tret.japanNFCReader.Clip
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
CODE_SIGN_ENTITLEMENTS: iOS Clip/iOS Clip.entitlements
sources:
- path: Shared/All
- path: Shared/Localize
- path: Shared/App
- path: Shared/iOS App
- iOS Clip
dependencies:
- package: TRETJapanNFCReader
- package: UIDeviceComplete
watchOS WatchKit App:
type: application.watchapp2
platform: watchOS
settings:
configs:
Debug:
PRODUCT_BUNDLE_IDENTIFIER: jp.tret.japanNFCReader.debug.watchkitapp
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon.debug
COMPANION_BUNDLE_ID: jp.tret.japanNFCReader.debug
Release:
PRODUCT_BUNDLE_IDENTIFIER: jp.tret.japanNFCReader.watchkitapp
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
COMPANION_BUNDLE_ID: jp.tret.japanNFCReader
sources:
- watchOS WatchKit App
dependencies:
- target: watchOS WatchKit Extension
watchOS WatchKit Extension:
type: watchkit2-extension
platform: watchOS
settings:
base:
CODE_SIGN_ENTITLEMENTS: watchOS WatchKit Extension/watchOS WatchKit Extension.entitlements
configs:
Debug:
PRODUCT_BUNDLE_IDENTIFIER: jp.tret.japanNFCReader.debug.watchkitapp.watchkitextension
WKAPP_BUNDLE_ID: jp.tret.japanNFCReader.debug.watchkitapp
Release:
PRODUCT_BUNDLE_IDENTIFIER: jp.tret.japanNFCReader.watchkitapp.watchkitextension
WKAPP_BUNDLE_ID: jp.tret.japanNFCReader.watchkitapp
sources:
- path: Shared
excludes:
- "iOS App/**"
- watchOS WatchKit Extension
dependencies:
- sdk: CloudKit.framework
- package: IceCream
- package: TRETJapanNFCReader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment