forked from chauduyphanvu/mopub-ios-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mopub-ios-sdk.podspec
63 lines (58 loc) · 2.74 KB
/
mopub-ios-sdk.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Pod::Spec.new do |spec|
spec.name = 'mopub-ios-sdk'
spec.module_name = 'MoPubSDK'
spec.version = '5.18.2'
spec.license = { :type => 'New BSD', :file => 'LICENSE' }
spec.homepage = 'https://github.com/mopub/mopub-ios-sdk'
spec.authors = { 'MoPub' => '[email protected]' }
spec.summary = 'The Official MoPub Client SDK allows developers to easily monetize their apps by showing banner, interstitial, and native ads.'
spec.description = <<-DESC
MoPub is a hosted ad serving solution built specifically for mobile publishers.\n
Grow your mobile advertising business with powerful ad management, optimization \n
and reporting capabilities, and earn revenue by connecting to the world's largest \n
mobile ad exchange. \n\n
To learn more or sign up for an account, go to http://www.mopub.com. \n
DESC
spec.social_media_url = 'http://twitter.com/mopub'
spec.source = { :git => 'https://github.com/mopub/mopub-ios-sdk.git', :tag => '5.18.2' }
spec.requires_arc = true
spec.ios.deployment_target = '10.0'
spec.swift_version = '5.0'
spec.frameworks = [
'AVFoundation',
'AVKit',
'CoreGraphics',
'CoreLocation',
'CoreMedia',
'CoreTelephony',
'Foundation',
'MediaPlayer',
'QuartzCore',
'SystemConfiguration',
'UIKit',
'SafariServices'
]
spec.weak_frameworks = [
'AdSupport',
'StoreKit',
'WebKit'
]
spec.default_subspecs = 'MoPubSDK'
spec.xcconfig = {
'OTHER_LDFLAGS' => '-framework OMSDK_Mopub'
}
spec.subspec 'MoPubSDK' do |sdk|
sdk.dependency 'mopub-ios-sdk/Core'
sdk.dependency 'mopub-ios-sdk/NativeAds'
end
spec.subspec 'Core' do |core|
core.source_files = 'MoPubSDK/**/*.{swift,h,m}'
core.resource_bundles = {'MoPubResources' => ['MoPubSDK/Resources/**/*', 'MoPubSDK/**/*.{nib,xib,js}']}
core.exclude_files = ['MoPubSDK/NativeAds']
core.vendored_frameworks = 'Frameworks/*.xcframework'
end
spec.subspec 'NativeAds' do |native|
native.dependency 'mopub-ios-sdk/Core'
native.source_files = ['MoPubSDK/NativeAds/**/*.{swift,h,m}']
end
end