mirror of
https://github.com/RxReader/wechat_kit.git
synced 2025-08-26 08:41:03 +08:00
58 lines
2.0 KiB
Dart
58 lines
2.0 KiB
Dart
#
|
|
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
|
|
# Run `pod lib lint wechat_kit.podspec' to validate before publishing.
|
|
#
|
|
|
|
if defined?($WechatKitSubspec)
|
|
wechat_kit_subspec = $WechatKitSubspec
|
|
else
|
|
wechat_kit_subspec = 'no_pay'
|
|
end
|
|
|
|
Pod::Spec.new do |s|
|
|
s.name = 'wechat_kit'
|
|
s.version = '3.2.0'
|
|
s.summary = 'WeChat SDKs as Flutter plugin.'
|
|
s.description = <<-DESC
|
|
A powerful Flutter plugin allowing developers to auth/share/pay with natvie Android & iOS WeChat SDKs.
|
|
DESC
|
|
s.homepage = 'https://github.com/RxReader/wechat_kit'
|
|
s.license = { :file => '../LICENSE' }
|
|
s.author = { 'RxReader' => 'email@example.com' }
|
|
s.source = { :path => '.' }
|
|
s.source_files = 'Classes/**/*'
|
|
s.public_header_files = 'Classes/**/*.h'
|
|
s.dependency 'Flutter'
|
|
s.platform = :ios, '8.0'
|
|
|
|
s.static_framework = true
|
|
# s.default_subspecs = :none
|
|
s.default_subspec = wechat_kit_subspec
|
|
|
|
s.subspec 'pay' do |sp|
|
|
sp.source_files = 'Libraries/OpenSDK1.9.2/*.h'
|
|
sp.public_header_files = 'Libraries/OpenSDK1.9.2/*.h'
|
|
sp.vendored_libraries = 'Libraries/OpenSDK1.9.2/*.a'
|
|
sp.frameworks = 'CoreGraphics', 'Security', 'WebKit'
|
|
sp.libraries = 'c++', 'z', 'sqlite3.0'
|
|
sp.pod_target_xcconfig = {
|
|
'OTHER_LDFLAGS' => '$(inherited) -ObjC -all_load',
|
|
}
|
|
end
|
|
|
|
s.subspec 'no_pay' do |sp|
|
|
sp.source_files = 'Libraries/OpenSDK1.9.2_NoPay/*.h'
|
|
sp.public_header_files = 'Libraries/OpenSDK1.9.2_NoPay/*.h'
|
|
sp.vendored_libraries = 'Libraries/OpenSDK1.9.2_NoPay/*.a'
|
|
sp.frameworks = 'CoreGraphics', 'Security', 'WebKit'
|
|
sp.libraries = 'c++', 'z', 'sqlite3.0'
|
|
sp.pod_target_xcconfig = {
|
|
'OTHER_LDFLAGS' => '$(inherited) -ObjC -all_load',
|
|
'GCC_PREPROCESSOR_DEFINITIONS' => 'NO_PAY=1'
|
|
}
|
|
end
|
|
|
|
# Flutter.framework does not contain a i386 slice.
|
|
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
|
|
end
|