-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minimum deployment target #14
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -337,7 +337,7 @@ def merge(merged_framework_name, group_contents, podfile_info) | |||
|
||||
# Create the local podspec | ||||
Pod::UI.puts "\tCreating Podspec for the merged framework".magenta | ||||
create_podspec(merged_framework_name, pods_to_merge, PodspecInfo.new(frameworks.uniq, prefix_header_contents.uniq, private_header_files.uniq, resources.uniq, script_phases.uniq, compiler_flags.uniq, libraries.uniq, prepare_command.uniq, resource_bundles, vendored_libraries.uniq, swift_version), mixed_language_group) | ||||
create_podspec(merged_framework_name, pods_to_merge, PodspecInfo.new(frameworks.uniq, prefix_header_contents.uniq, private_header_files.uniq, resources.uniq, script_phases.uniq, compiler_flags.uniq, libraries.uniq, prepare_command.uniq, resource_bundles, vendored_libraries.uniq, swift_version), mixed_language_group, podfile_info) | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where is this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, this was created in this line
|
||||
|
||||
Pod::UI.puts 'Cleaning up cache'.cyan | ||||
FileUtils.rm_rf(CacheDirectory) | ||||
|
@@ -487,7 +487,7 @@ def generate_module_map(merged_framework_name, public_headers) | |||
module_map.close | ||||
end | ||||
|
||||
def create_podspec(merged_framework_name, pods_to_merge, podspec_info, mixed_language_group) | ||||
def create_podspec(merged_framework_name, pods_to_merge, podspec_info, mixed_language_group, podfile_info) | ||||
frameworks = podspec_info.frameworks | ||||
prefix_header_contents = podspec_info.prefix_header_contents | ||||
private_header_files = podspec_info.private_header_files | ||||
|
@@ -499,6 +499,7 @@ def create_podspec(merged_framework_name, pods_to_merge, podspec_info, mixed_lan | |||
resource_bundles = podspec_info.resource_bundles | ||||
vendored_libraries = podspec_info.vendored_libraries | ||||
swift_versions = podspec_info.swift_versions | ||||
ios_deployment_target = podfile_info.platforms.find { |platform| platform.include? "ios"}.split(',')[1] | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What happens if the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's a very valid question! By default Cocoapods provide a default in case that one is not specified:
Nevertheless, in this specific case, we should provide a default one in the case that is not specified in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Uhmm ran some experiments and one thing emerged. If I delete the It is necessary to specify the platform in the Podfile if not integrating. If the project was integrated it already I think we're good if the The other case is when once it was integrated we comment it out the [!] Automatically assigning platform `iOS` with version `11.0` on target `PodMergeExample` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`. Let me know your thoughts about it. |
||||
|
||||
mergedPodspec = %( | ||||
Pod::Spec.new do |s| | ||||
|
@@ -510,7 +511,7 @@ def create_podspec(merged_framework_name, pods_to_merge, podspec_info, mixed_lan | |||
s.license = { :type => 'MIT', :text => 'Merged Pods by cocoapods-pod-merge plugin ' } | ||||
s.author = { 'GrabTaxi Pte Ltd' => '[email protected]' } | ||||
s.source = { :git => 'https://github.com/grab/cocoapods-pod-merge', :tag => '1.0.0' } | ||||
s.ios.deployment_target = '8.0' | ||||
s.ios.deployment_target = #{ios_deployment_target} | ||||
s.source_files = 'Sources/**/*.{h,m,mm,swift}' | ||||
) | ||||
|
||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this change? I think we can continue to use the new Cocoapods CDN
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uhmm weird, I've used the latest Cocoapods version so it should be using the CDN now. I'll check that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're good with
trunk
. Take a look at this closed issue CocoaPods/CocoaPods#9190.