Skip to content

Commit

Permalink
fix: TargetScript+Templates Configuration 환경에 따라 Service Info 가져오는 Sc…
Browse files Browse the repository at this point in the history
…ript 제거

- ModuleType+Templates FirebaseAnalyticsWithoutAdIdSupport로 변경
  • Loading branch information
Do-hyun-Kim committed Dec 26, 2024
1 parent 3869a55 commit 5bc82b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Tuist/ProjectDescriptionHelpers/Modular+Templates.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ extension Target {
sources: factory.sources,
resources: factory.resources,
entitlements: factory.entitlements,
scripts: [.firebaseInfoByConfiguration, .firebaseCrashlytics],
scripts: [.firebaseCrashlytics],
dependencies: factory.dependencies,
settings: factory.settings
)
Expand Down
4 changes: 2 additions & 2 deletions Tuist/ProjectDescriptionHelpers/ModuleType+Templates.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ public enum ModuleLayer: String, CaseIterable, ModuleType {
]
case .Util:
return [
.external(name: "FirebaseAnalytics", condition: .when(.all)),
.external(name: "FirebaseCrashlytics", condition: .when(.all)),
.external(name: "FirebaseAnalyticsWithoutAdIdSupport"),
.external(name: "FirebaseCrashlytics"),
.with(.Core)
]
case .Data:
Expand Down
13 changes: 0 additions & 13 deletions Tuist/ProjectDescriptionHelpers/TargetScript+Templates.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,4 @@ public extension TargetScript {
],
basedOnDependencyAnalysis: false
)

static let firebaseInfoByConfiguration = TargetScript.post(
script: """
case "${CONFIGURATION}" in
"PRD" )
cp -r "$SRCROOT/Resources/GoogleService-Info.plist" "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/GoogleService-Info.plist"
;;
*)
esac
""",
name: "Firebase Info copy by Configuration",
basedOnDependencyAnalysis: false
)
}

0 comments on commit 5bc82b8

Please sign in to comment.