Skip to content

Commit

Permalink
Bump Firebase from 8.9.1 to 10.15.0 (#1174)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-magda authored Sep 16, 2023
1 parent aa30514 commit d535b58
Show file tree
Hide file tree
Showing 3 changed files with 179 additions and 135 deletions.
26 changes: 21 additions & 5 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ def all_pods
pod "SnapKit", "5.0.1"

# Firebase
pod "Firebase/Core", "8.9.1"
pod "Firebase/Messaging", "8.9.1"
pod "Firebase/Analytics", "8.9.1"
pod "Firebase/Crashlytics", "8.9.1"
pod "Firebase/RemoteConfig", "8.9.1"
pod "Firebase/Core", "10.15.0"
pod "Firebase/Messaging", "10.15.0"
pod "Firebase/Analytics", "10.15.0"
pod "Firebase/Crashlytics", "10.15.0"
pod "Firebase/RemoteConfig", "10.15.0"

pod "YandexMobileMetrica/Dynamic", "3.17.0"
pod "Amplitude", "8.5.0"
Expand Down Expand Up @@ -102,6 +102,22 @@ target "Stepic" do
end

post_install do |installer|
# Fix Xcode 15 Error 'DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead'
installer.aggregate_targets.each do |target|
target.xcconfigs.each do |variant, xcconfig|
xcconfig_path = target.client_root + target.xcconfig_relative_path(variant)
IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR"))
end
end
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if config.base_configuration_reference.is_a? Xcodeproj::Project::Object::PBXFileReference
xcconfig_path = config.base_configuration_reference.real_path
IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR"))
end
end
end

installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if config.build_settings["IPHONEOS_DEPLOYMENT_TARGET"].to_f < 12.0
Expand Down
Loading

0 comments on commit d535b58

Please sign in to comment.