mirror of
https://github.com/Instagram/IGListKit
synced 2026-04-21 21:47:34 +00:00
Summary: As pointed out in the GitHub issues, if `resources` is used in the podspec instead of explicitly named `resource_bundles`, the associated files will be placed in the root bundle of the app. In this case, this means the `PrivacyInfo.xcprivacy` files for each framework of IGListKit would end up overwriting each other, and ultimately overwriting the manifest of the app itself. This diff configures the podspecs correctly to ensure there are no file conflicts. Reviewed By: benhgreen Differential Revision: D55056568 fbshipit-source-id: 85951afbc93c847a40caca64d7b930df74ff705d
44 lines
1.4 KiB
Ruby
44 lines
1.4 KiB
Ruby
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
Pod::Spec.new do |s|
|
|
s.name = 'IGListDiffKit'
|
|
s.version = `scripts/version.sh`
|
|
s.summary = 'Diffing utilities for a data-driven UICollectionView framework.'
|
|
s.homepage = 'https://github.com/Instagram/IGListKit'
|
|
s.documentation_url = 'https://instagram.github.io/IGListKit'
|
|
s.description = 'Diffing utilities for a data-driven UICollectionView framework for building fast and flexible lists.'
|
|
|
|
s.license = { :type => 'MIT' }
|
|
s.authors = 'Instagram'
|
|
s.social_media_url = 'https://twitter.com/fbOpenSource'
|
|
s.source = {
|
|
:git => 'https://github.com/Instagram/IGListKit.git',
|
|
:tag => s.version.to_s,
|
|
:branch => 'stable'
|
|
}
|
|
|
|
s.source_files = 'Source/IGListDiffKit/**/*.{h,m,mm}'
|
|
s.private_header_files = 'Source/IGListDiffKit/Internal/*.h'
|
|
|
|
s.resource_bundles = { "#{s.name}_Privacy" => ['Source/PrivacyInfo.xcprivacy'] }
|
|
s.requires_arc = true
|
|
|
|
s.ios.deployment_target = '11.0'
|
|
s.tvos.deployment_target = '11.0'
|
|
s.osx.deployment_target = '10.13'
|
|
|
|
s.ios.frameworks = 'UIKit'
|
|
s.tvos.frameworks = 'UIKit'
|
|
s.osx.frameworks = 'Cocoa'
|
|
|
|
s.library = 'c++'
|
|
s.pod_target_xcconfig = {
|
|
'OTHER_CFLAGS' => '-fmodules',
|
|
'OTHER_CPLUSPLUSFLAGS' => '-fcxx-modules',
|
|
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++11',
|
|
'CLANG_CXX_LIBRARY' => 'libc++',
|
|
}
|
|
end
|