weibo_kit/ios/weibo_kit.podspec

49 lines
1.6 KiB
Dart

#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
# Run `pod lib lint weibo_kit.podspec` to validate before publishing.
#
pubspec = YAML.load_file(File.join('..', 'pubspec.yaml'))
library_version = pubspec['version'].gsub('+', '-')
Pod::Spec.new do |s|
s.name = 'weibo_kit'
s.version = library_version
s.summary = 'A powerful Flutter plugin allowing developers to auth/share with natvie Android & iOS Weibo SDKs.'
s.description = <<-DESC
A powerful Flutter plugin allowing developers to auth/share with natvie Android & iOS Weibo SDKs.
DESC
s.homepage = 'http://example.com'
s.license = { :file => '../LICENSE' }
s.author = { 'Your Company' => 'email@example.com' }
s.source = { :path => '.' }
s.dependency 'Flutter'
s.platform = :ios, '9.0'
#
s.source_files = ['Classes/**/*.{h,m}', 'Weibo_SDK/**/*.{h,m}']
s.public_header_files = ['Classes/**/*.h', 'Weibo_SDK/**/*.h']
#
s.vendored_libraries = 'Weibo_SDK/libWeiboSDK.a'
#
s.resources = ['Weibo_SDK/**/*.bundle', 'Weibo_SDK/**/*.xcprivacy']
s.static_framework = true
s.pod_target_xcconfig = {
'DEFINES_MODULE' => 'YES',
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386',
'HEADER_SEARCH_PATHS' => '"$(PODS_TARGET_SRCROOT)"',
'OTHER_LDFLAGS' => '-ObjC'
}
#
s.xcconfig = {
'HEADER_SEARCH_PATHS' => '"$(PODS_TARGET_SRCROOT)"',
'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES'
}
end