Skip to content

Commit 254f9fc

Browse files
authored
chore(ios): quiet pod install warning if RNFirebaseAnalyticsWithoutAdIdSupport is set (#6353)
1 parent 72786b4 commit 254f9fc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/analytics/RNFBAnalytics.podspec

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ Pod::Spec.new do |s|
4444

4545
s.dependency 'Firebase/AnalyticsWithoutAdIdSupport', firebase_sdk_version
4646
else
47-
Pod::UI.puts "#{s.name}: Using default Firebase/Analytics with Ad Ids. May require App Tracking Transparency. Not allowed for Kids apps."
48-
Pod::UI.puts "#{s.name}: You may set variable `$RNFirebaseAnalyticsWithoutAdIdSupport=true` in Podfile to use analytics without ad ids."
47+
if !defined?($RNFirebaseAnalyticsWithoutAdIdSupport)
48+
Pod::UI.puts "#{s.name}: Using default Firebase/Analytics with Ad Ids. May require App Tracking Transparency. Not allowed for Kids apps."
49+
Pod::UI.puts "#{s.name}: You may set variable `$RNFirebaseAnalyticsWithoutAdIdSupport=true` in Podfile to use analytics without ad ids."
50+
end
4951
s.dependency 'Firebase/Analytics', firebase_sdk_version
5052
end
5153

0 commit comments

Comments
 (0)