element-ios/RiotSwiftUI/target.yml

84 lines
2.4 KiB
YAML
Raw Normal View History

name: RiotSwiftUI
schemes:
RiotSwiftUI:
analyze:
config: Debug
archive:
config: Release
build:
targets:
RiotSwiftUI:
- running
- testing
- profiling
- analyzing
- archiving
profile:
config: Release
run:
config: Debug
disableMainThreadChecker: true
test:
config: Debug
disableMainThreadChecker: true
targets:
- RiotSwiftUnitTests
gatherCoverageData: true
coverageTargets:
- RiotSwiftUI
targets:
RiotSwiftUI:
type: application
platform: iOS
dependencies:
- target: DesignKit
- package: Mapbox
sources:
- path: .
excludes:
# Don't include service implementations and coordinator/bridges in target.
- "**/MatrixSDK/**"
- "**/Coordinator/**"
- "**/Test/**"
- path: ../Riot/Managers/AppInfo/
- path: ../Riot/Categories/Bundle.swift
- path: ../Riot/Generated/Strings.swift
- path: ../Riot/Generated/UntranslatedStrings.swift
- path: ../Riot/Generated/Images.swift
- path: ../Riot/Managers/Theme/
- path: ../Riot/Managers/Locale/LocaleProviderType.swift
- path: ../Config/BuildSettings.swift
- path: ../Riot/Modules/Room/TimelineCells/Styles/RoomTimelineStyleIdentifier.swift
- path: ../Riot/Categories/String.swift
- path: ../Riot/Categories/Character.swift
- path: ../Riot/Categories/UIColor.swift
- path: ../Riot/Categories/UISearchBar.swift
- path: ../Riot/Categories/UIView.swift
- path: ../Riot/Categories/UIApplication.swift
- path: ../Riot/Assets/en.lproj/Vector.strings
- path: ../Riot/Modules/Analytics/AnalyticsScreen.swift
2022-08-03 09:47:17 +00:00
- path: ../Riot/Modules/LocationSharing/LocationAuthorizationStatus.swift
- path: ../Riot/Assets/en.lproj/Untranslated.strings
buildPhase: resources
- path: ../Riot/Assets/Images.xcassets
buildPhase: resources
- path: ../Riot/Assets/SharedImages.xcassets
buildPhase: resources
configFiles:
Debug: Debug.xcconfig
Release: Release.xcconfig
2022-09-27 07:17:22 +00:00
postBuildScripts:
- name: 🧹 SwiftFormat
runOnlyWhenInstalling: false
shell: /bin/sh
script: |
export PATH="$PATH:/opt/homebrew/bin"
if which swiftformat >/dev/null; then
swiftformat --lint --lenient "$PROJECT_DIR"
else
echo "warning: SwiftFormat not installed, download from https://github.com/nicklockwood/SwiftFormat"
fi