unimp.podspec 11.6 KB
Newer Older
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
1 2 3 4 5 6 7 8 9 10 11 12
#
#  Be sure to run `pod spec lint unimp.podspec' to ensure this is a
#  valid spec and to remove all comments including this before submitting the spec.
#
#  To learn more about Podspec attributes see https://guides.cocoapods.org/syntax/podspec.html
#  To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#

Pod::Spec.new do |s|

  s.name         = "unimp"
  s.version      = "3.99"
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
13
  s.summary      = "UniMPSDK"
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
14 15 16
  s.homepage     = "https://gitcode.net/dcloud/unimpsdk-ios"
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author             = { "wangzhitong" => "wangzhitong@dcloud.io" }
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
17
  s.source       = { :git => "https://gitcode.net/dcloud/unimpsdk-ios.git", :tag => "#{s.version}"}
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
18
  s.default_subspec = 'Core'
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
19
  s.platform     = :ios, '11.0'
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
20 21 22 23

  ### 基础库(必选)

  s.subspec 'Core' do |ss|
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
24 25
    ss.public_header_files = 'UniMPSDK/Core/Headers/**/*.{h,swift}'
    ss.source_files = 'UniMPSDK/Core/Headers/**/*.{h,swift}'
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
26 27 28 29 30
    ss.frameworks = 'UIKit', 'CoreText','JavaScriptCore','WebKit','CoreTelephony','MediaPlayer','QuartzCore','CFNetwork',
    'Foundation','CoreFoundation','CoreGraphics','QuickLook'
    ss.vendored_libraries = 'UniMPSDK/Core/Libs/*.{a}'
    ss.vendored_frameworks = 'UniMPSDK/Core/Libs/*.{framework}'
    ss.resources = 'UniMPSDK/Core/Resources/*'
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
31
    # ss.dependency 'SDWebImage','5.10.0'
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
32 33 34
    ss.libraries = 'c++','iconv'
  end

DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
35
  ### 子模块
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
36 37 38 39 40 41 42 43 44 45 46 47 48 49

  s.subspec 'Accelerometer' do |ss|
    ss.frameworks = 'Accelerate'
    ss.vendored_libraries = 'UniMPSDK/Accelerometer/Libs/*.{a}'
  end

  s.subspec 'Audio' do |ss|
    ss.frameworks = 'AVFoundation'
    ss.vendored_libraries = 'UniMPSDK/Audio/Libs/*.{a}'
    ss.vendored_frameworks = 'UniMPSDK/Audio/Libs/*.{framework}'  
  end

  s.subspec 'Camera&Gallery' do |ss|
    ss.public_header_files = 'UniMPSDK/Camera&Gallery/Headers/**/*.{h,swift}'
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
50
    ss.source_files = 'UniMPSDK/Camera&Gallery/Headers/**/*.{h,swift}'
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
    ss.resources = 'UniMPSDK/Camera&Gallery/Resources/*'
    ss.frameworks = 'AssetsLibrary','Photos','CoreMedia','MetalKit','GLKit'
    ss.vendored_libraries = 'UniMPSDK/Camera&Gallery/Libs/*.{a}'
  end

  s.subspec 'Contacts' do |ss|
    ss.frameworks = 'AddressBookUI','AddressBook','AVFoundation','CoreVideo','CoreMedia'
    ss.vendored_libraries = 'UniMPSDK/Contacts/Libs/*.{a}'
  end

  s.subspec 'File' do |ss|
    ss.vendored_libraries = 'UniMPSDK/File/Libs/*.{a}'
  end

  s.subspec 'NativeJS' do |ss|
    ss.vendored_libraries = 'UniMPSDK/NativeJS/Libs/*.{a}'
  end

  s.subspec 'Message' do |ss|
    ss.frameworks = 'MessageUI'
    ss.vendored_libraries = 'UniMPSDK/Message/Libs/*.{a}'
  end

  s.subspec 'Orientation' do |ss|
    ss.frameworks = 'CoreLocation'
    ss.vendored_libraries = 'UniMPSDK/Orientation/Libs/*.{a}'
  end

  s.subspec 'Proximity' do |ss|
    ss.vendored_libraries = 'UniMPSDK/Proximity/Libs/*.{a}'
  end

  s.subspec 'XMLHttpRequest' do |ss|
    ss.vendored_libraries = 'UniMPSDK/XMLHttpRequest/Libs/*.{a}'
  end

  s.subspec 'Zip' do |ss|
    ss.vendored_libraries = 'UniMPSDK/Zip/Libs/*.{a}'
  end

  s.subspec 'Fingerprint' do |ss|
    ss.frameworks = 'LocalAuthentication'
    ss.vendored_libraries = 'UniMPSDK/Fingerprint/Libs/*.{a}'
  end

  s.subspec 'FaceId' do |ss|
    ss.frameworks = 'LocalAuthentication'
    ss.vendored_libraries = 'UniMPSDK/Fingerprint/Libs/*.{a}'
  end

  s.subspec 'Sqlite' do |ss|
    ss.libraries = 'sqlite3.0'
    ss.vendored_libraries = 'UniMPSDK/Sqlite/Libs/*.{a}'
  end

  s.subspec 'IBeacon' do |ss|
    ss.frameworks = 'CoreBluetooth','CoreLocation'
    ss.vendored_libraries = 'UniMPSDK/IBeacon/Libs/*.{a}'
  end

  s.subspec 'BlueTooth' do |ss|
    ss.frameworks = 'CoreBluetooth'
    ss.vendored_libraries = 'UniMPSDK/BlueTooth/Libs/*.{a}'
  end

  s.subspec 'LivePusher' do |ss|
    ss.frameworks = 'AVFoundation','QuartzCore',
    'OpenGLES','AudioToolbox','VideoToolbox',
    'Accelerate','CoreMedia','CoreTelephony',
    'SystemConfiguration','CoreMotion'
    ss.vendored_libraries = 'UniMPSDK/LivePusher/Libs/*.{a}'
    ss.vendored_frameworks = 'UniMPSDK/LivePusher/Libs/*.{framework}'
  end

  s.subspec 'Barcode' do |ss|
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
126 127
    ss.public_header_files = 'UniMPSDK/Barcode/Headers/**/*{.h,.swift}'
    ss.source_files = 'UniMPSDK/Barcode/Headers/**/*.{h,swift}'
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
128 129 130 131 132 133 134
    ss.frameworks = 'AVFoundation','ImageIO','CoreVideo','CoreMedia'
    ss.vendored_libraries = 'UniMPSDK/Barcode/Libs/*.{a}'
    ss.libraries = 'iconv.2'
  end

  s.subspec 'Video' do |ss|
    ss.public_header_files = 'UniMPSDK/Video/Headers/**/*{.h,.swift}'
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
135
    ss.source_files = 'UniMPSDK/Video/Headers/**/*.{h,swift}'
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233
    ss.frameworks = 'AudioToolbox','AVFoundation',
    'CoreGraphics','CoreMedia','VideoToolbox',
    'VideoToolbox','MediaPlayer','MobileCoreServices',
    'OpenGLES','QuartzCore','UIKit'
    ss.resources = 'UniMPSDK/Video/Resources/*'
    ss.vendored_libraries = 'UniMPSDK/Video/Libs/*.{a}'
    ss.vendored_frameworks = 'UniMPSDK/Video/Libs/*.{framework}'
    ss.libraries = 'c++','z','bz2'
    ss.dependency  'unimp/Masonry'
  end

  s.subspec 'Geolocation' do |ss|
    ss.frameworks = 'CoreLocation'
    ss.vendored_libraries = 'UniMPSDK/Geolocation/Libs/*.{a}'
  end

  s.subspec 'Geolocation-Baidu' do |ss|
    ss.frameworks = 'SystemConfiguration','Security'
    ss.vendored_libraries = 'UniMPSDK/Geolocation/Baidu/Libs/*.{a}'
    ss.libraries = 'c++','sqlite3.0' 
    ss.dependency 'unimp/Geolocation'
    ss.dependency 'BMKLocationKit', '2.0.9'
    ss.dependency 'unimp/BaiduMapCommon'
  end

  s.subspec 'Geolocation-Gaode' do |ss|
    ss.frameworks = 'ExternalAccessory','GLKit','security','CoreTelephony','SystemConfiguration'
    ss.vendored_libraries = 'UniMPSDK/Geolocation/Gaode/Libs/*.{a}'
    ss.libraries = 'c++','z'
    ss.dependency 'AMapLocation','2.10.0'
    ss.dependency 'AMapSearch', '9.7.0'
    ss.dependency 'unimp/Geolocation'
  end

  s.subspec 'Map' do |ss|
    ss.frameworks = 'MapKit','CoreLocation','GLKit'
    ss.vendored_libraries = 'UniMPSDK/Map/Libs/*.{a}'
  end

  s.subspec 'Map-Baidu' do |ss|
    ss.frameworks = 'QuartzCore','CoreGraphics','CoreTelephony',
    'SystemConfiguration','Security','OpenGLES'
    ss.vendored_libraries = 'UniMPSDK/Map/Baidu/Libs/*.{a}'
    ss.libraries = 'c++','sqlite3.0'
    ss.dependency 'BaiduMapKit', '6.6.0'
    ss.dependency 'unimp/BaiduMapCommon'
    ss.dependency 'unimp/Map'
  end

  s.subspec 'Map-Gaode' do |ss|
    ss.resources = 'UniMPSDK/Map/Gaode/Resources/*'
    ss.vendored_libraries = 'UniMPSDK/Map/Gaode/Libs/*.{a}'
    ss.libraries = 'c++'
    ss.dependency  'AMap3DMap','9.7.0'
    ss.dependency 'unimp/Masonry'
    ss.dependency 'unimp/Map'
  end

  s.subspec 'Speech' do |ss|
    ss.vendored_libraries = 'UniMPSDK/Speech/Libs/*.{a}'
  end

  s.subspec 'Speech-Baidu' do |ss|
    ss.resources = 'UniMPSDK/Speech/Baidu/Resources/*'
    ss.frameworks = 'AudioToolbox','AVFoundation','CFNetwork',
    'CoreLocation','CoreTelephony','SystemConfiguration','GLKit'
    ss.vendored_libraries = 'UniMPSDK/Speech/Baidu/Libs/*.{a}'
    ss.dependency 'unimp/Speech'
    ss.libraries = 'c++','z','sqlite3.0'
  end

  s.subspec 'Payment' do |ss|
    ss.vendored_libraries = 'UniMPSDK/Payment/Libs/*.{a}'
  end

  s.subspec 'Payment-IAP' do |ss|
    ss.frameworks = 'StoreKit'
    ss.vendored_libraries = 'UniMPSDK/Payment/IAP/Libs/*.{a}'
    ss.dependency 'unimp/Payment'
  end

  s.subspec 'Payment-AliPay' do |ss|
    ss.frameworks = 'CFNetwork','SystemConfiguration','CoreMotion','Security'
    ss.vendored_libraries = 'UniMPSDK/Payment/AliPay/Libs/*.{a}'
    ss.libraries = 'c++'
    ss.dependency 'AlipaySDK-iOS','15.8.16'
    ss.dependency 'unimp/Payment'
  end

  s.subspec 'Payment-Wechat' do |ss|
    ss.vendored_libraries = 'UniMPSDK/Payment/Wechat/Libs/*.{a}'
    ss.libraries = 'z','sqlite3.0'
    ss.dependency 'WechatOpenSDK-XCFramework','2.0.2'
    ss.dependency 'unimp/Payment'
  end

  s.subspec 'Payment-Paypal' do |ss|
    ss.vendored_libraries = 'UniMPSDK/Payment/Paypal/Libs/*.{a}'
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
234
    # ss.dependency 'PayPalCheckout','1.2.0'
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
235 236 237 238 239
    ss.dependency 'unimp/Payment'
  end

  s.subspec 'Payment-Stripe' do |ss|
    ss.vendored_libraries = 'UniMPSDK/Payment/Stripe/Libs/*.{a}'
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
240
    # ss.dependency 'Stripe','23.18.2'
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
241 242 243 244 245 246 247 248 249
    ss.dependency 'unimp/Payment'
  end

  s.subspec 'Share' do |ss|
    ss.vendored_libraries = 'UniMPSDK/Share/Libs/*.{a}'
  end

  s.subspec 'Share-Sina' do |ss|
    ss.frameworks = 'ImageIO'
250
    ss.vendored_libraries = 'UniMPSDK/Share/Sina/Libs/*.{a}'
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
251
    ss.libraries = 'sqlite3.0'
252
    ss.dependency 'Weibo_SDK', '3.3.5'
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
253 254 255 256 257 258 259 260 261 262 263 264 265 266 267
    ss.dependency 'unimp/Share'
  end

  s.subspec 'Share-QQ' do |ss|
    ss.vendored_libraries = 'UniMPSDK/Share/QQ/Libs/*.{a}'
    ss.dependency 'unimp/QQ'
    ss.dependency 'unimp/Share'
  end

  s.subspec 'Share-Wechat' do |ss|
    ss.vendored_libraries = 'UniMPSDK/Share/Wechat/Libs/*.{a}'
    ss.dependency 'WechatOpenSDK-XCFramework','2.0.2'
    ss.dependency 'unimp/Share'
  end

268
  s.subspec 'Share-Wechat-Nopay' do |ss|
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
269 270 271 272 273 274 275 276 277 278 279 280 281
    ss.vendored_libraries = 'UniMPSDK/Share/Wechat/Libs/*.{a}'
    ss.dependency 'unimp/Wechat-Nopay'
    ss.dependency 'unimp/Share'
  end

  s.subspec 'Oauth' do |ss|
    ss.vendored_libraries = 'UniMPSDK/Oauth/Libs/*.{a}'
  end

  s.subspec 'Oauth-Sina' do |ss|
    ss.frameworks = 'ImageIO'
    ss.vendored_libraries = 'UniMPSDK/Oauth/Sina/Libs/*.{a}'
    ss.libraries = 'sqlite3.0'
282
    ss.dependency 'Weibo_SDK', '3.3.5'
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298
    ss.dependency 'unimp/Oauth'
  end

  s.subspec 'Oauth-QQ' do |ss|
    ss.vendored_libraries = 'UniMPSDK/Oauth/QQ/Libs/*.{a}'
    ss.dependency 'unimp/QQ'
    ss.dependency 'unimp/Oauth'
  end

  s.subspec 'Oauth-Wechat' do |ss|
    ss.frameworks = 'CoreTelephony','SystemConfiguration'
    ss.vendored_libraries = 'UniMPSDK/Oauth/Wechat/Libs/*.{a}'
    ss.dependency 'WechatOpenSDK-XCFramework','2.0.2'
    ss.dependency 'unimp/Oauth'
  end

299
  s.subspec 'Oauth-Wechat-Nopay' do |ss|
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318
    ss.vendored_libraries = 'UniMPSDK/Oauth/Wechat/Libs/*.{a}'
    ss.dependency 'unimp/Wechat-Nopay'
    ss.dependency 'unimp/Oauth'
  end

  s.subspec 'Oauth-Apple' do |ss|
    ss.frameworks = 'AuthenticationServices'
    ss.vendored_libraries = 'UniMPSDK/Oauth/Apple/Libs/*.{a}'
    ss.dependency 'unimp/Oauth'
  end

  s.subspec 'Oauth-Google' do |ss|
    ss.vendored_libraries = 'UniMPSDK/Oauth/Google/Libs/*.{a}'
    ss.dependency 'GoogleSignIn','7.0.0'
    ss.dependency 'unimp/Oauth'
  end

  s.subspec 'Oauth-Facebook' do |ss|
    ss.vendored_libraries = 'UniMPSDK/Oauth/Facebook/Libs/*.{a}'
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
319
    # ss.dependency 'FBSDKLoginKit','16.2.1'
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
320 321 322 323 324 325 326 327
    ss.dependency 'unimp/Oauth'
  end

  s.subspec 'Statistic' do |ss|
    ss.vendored_libraries = 'UniMPSDK/Statistic/Libs/*.{a}'
  end

  s.subspec 'Statistic-Umeng' do |ss|
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
328
    ss.vendored_libraries = 'UniMPSDK/Statistic/Umeng/Libs/*.{a}'
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
329 330 331 332 333
    ss.dependency  'UMCommon','7.4.2'
    ss.dependency  'UMAPM','1.8.4'
    ss.dependency 'unimp/Statistic'
  end

DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
334
  s.subspec 'Log' do |ss|
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
335
    ss.vendored_libraries = 'UniMPSDK/Log/Libs/*.{a}'
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
336
  end
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
337

DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
338 339 340 341 342 343 344
  s.subspec 'Canvas' do |ss|
    ss.frameworks = 'OpenGLES'
    ss.vendored_libraries = 'UniMPSDK/Canvas/Libs/*.{a}'
  end

  ## 子模块公用依赖

DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
345 346 347 348 349
  s.subspec 'Masonry' do |ss|
    ss.public_header_files = 'UniMPSDK/Masonry/Headers/**/*{.h,.swift}'
    ss.source_files = 'UniMPSDK/Masonry/Headers/**/*.{h,swift}'
    ss.vendored_frameworks = 'UniMPSDK/Masonry/Libs/*.{framework}'
  end
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
350

DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
351 352 353
  s.subspec 'BaiduMapCommon' do |ss|
    ss.vendored_libraries = 'UniMPSDK/BaiduMapCommon/Libs/*.{a}'
  end
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
354

DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
355 356 357 358 359 360 361 362 363
  s.subspec 'Wechat-Nopay' do |ss|
    ss.public_header_files = 'UniMPSDK/Wechat-Nopay/Headers/**/*{.h,.swift}'
    ss.source_files = 'UniMPSDK/Wechat-Nopay/Headers/**/*.{h,swift}'
    ss.vendored_libraries = 'UniMPSDK/Wechat-Nopay/Libs/*.{a}'
  end

  s.subspec 'QQ' do |ss|
    ss.vendored_frameworks = 'UniMPSDK/QQ/Libs/*.{framework}'
  end
DCloud_iOS_WZT's avatar
DCloud_iOS_WZT 已提交
364 365 366 367
  


end