Skip to content

Commit

Permalink
List of included changes:
Browse files Browse the repository at this point in the history
  - Internal fixes and cleanup.

PiperOrigin-RevId: 603707677
Change-Id: Idfaa54bbc443148e72af36c6f3235e2a4120ee2a
  • Loading branch information
Google ML Kit authored and miworking committed Feb 12, 2024
1 parent fb5dda0 commit 1c5ad98
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions ios/quickstarts/smartreply/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ platform :ios, '12.0'

project 'SmartReplyExample.xcodeproj'

pod 'GoogleMLKit/SmartReply', '4.0.0'
pod 'GoogleMLKit/SmartReply', '5.0.0'

pod 'MaterialComponents'
pod 'SwiftLint'
Expand All @@ -13,13 +13,27 @@ end
target 'SmartReplyExample' do
end

# Disable signing for pods
post_install do |installer|
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.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
end
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
end

0 comments on commit 1c5ad98

Please sign in to comment.