Skip to content

Commit

Permalink
๐Ÿ”ง :: ํฌ๋ž˜์‹œํ‹ฑ์Šค ์Šคํฌ๋ฆฝํŠธ ํŒŒ์ผ ์ถ”๊ฐ€
Browse files Browse the repository at this point in the history
  • Loading branch information
KangTaeHoon committed Apr 10, 2023
1 parent 40fcd2c commit d4a173f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Projects/App/Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let settinges: Settings =

let isForDev = (ProcessInfo.processInfo.environment["TUIST_DEV"] ?? "0") == "1" ? true : false

let scripts: [TargetScript] = isForDev ? [.swiftLint, .needle] : []
let scripts: [TargetScript] = isForDev ? [.swiftLint, .needle] : [.firebaseCrashlytics]

let targets: [Target] = [
.init(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,6 @@ extension HomeViewController {
output.songEntityOfAllChart
.subscribe(onNext: { (songs) in
PlayState.shared.loadAndAppendSongsToPlaylist(songs)
let numbers = [0]
let _ = numbers[1]
})
.disposed(by: disposeBag)
}
Expand Down
4 changes: 4 additions & 0 deletions Scripts/FirebaseCrashlyticsScript.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
if [ "${CONFIGURATION}" != "Debug" ]; then
"Tuist/Dependencies/SwiftPackageManager/.build/checkouts/firebase-ios-sdk/Crashlytics/run"
"Tuist/Dependencies/SwiftPackageManager/.build/checkouts/firebase-ios-sdk/Crashlytics/upload-symbols" -gsp ./Resources/GoogleService-Info.plist -p ios ${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}
fi
6 changes: 6 additions & 0 deletions Tuist/ProjectDescriptionHelpers/Action+Template.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,10 @@ public extension TargetScript {
name: "Needle",
basedOnDependencyAnalysis: false
)

static let firebaseCrashlytics = TargetScript.pre(
path: .relativeToRoot("Scripts/FirebaseCrashlyticsScript.sh"),
name: "FirebaseCrashlytics",
basedOnDependencyAnalysis: false
)
}

0 comments on commit d4a173f

Please sign in to comment.