-
Notifications
You must be signed in to change notification settings - Fork 147
/
OpenIMSDK.podspec
82 lines (60 loc) · 2.3 KB
/
OpenIMSDK.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#
# Be sure to run `pod lib lint OpenIMSDK.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'OpenIMSDK'
s.version = '3.8.3'
s.summary = 'Open-IM-SDK'
# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!
s.description = <<-DESC
An OpenIM SDK in Objective-C for iOS
DESC
s.homepage = 'https://github.com/OpenIMSDK/Open-IM-SDK-iOS'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'OpenIM' => 'https://github.com/OpenIMSDK/Open-IM-SDK-iOS' }
s.source = { :git => 'https://github.com/OpenIMSDK/Open-IM-SDK-iOS.git', :tag => s.version.to_s }
s.ios.deployment_target = '11.0'
s.source_files = 'OpenIMSDK/OpenIMSDK.{h,m}'
s.subspec 'Utils' do |ss|
ss.source_files = 'OpenIMSDK/Utils/*.{h,m}'
end
s.subspec 'CallbackProxy' do |ss|
ss.dependency 'OpenIMSDK/Utils'
ss.source_files = 'OpenIMSDK/CallbackProxy/*.{h,m}'
end
s.subspec 'Model' do |ss|
ss.dependency 'OpenIMSDK/Utils'
ss.source_files = 'OpenIMSDK/Model/*.{h,m}'
end
s.subspec 'Interface' do |ss|
ss.dependency 'OpenIMSDK/Model'
ss.dependency 'OpenIMSDK/CallbackProxy'
ss.dependency 'OpenIMSDK/Callbacker'
ss.source_files = 'OpenIMSDK/Interface/*.{h,m}'
end
s.subspec 'Callbacker' do |ss|
ss.dependency 'OpenIMSDK/Model'
ss.dependency 'OpenIMSDK/Utils'
ss.source_files = 'OpenIMSDK/Callbacker/*.{h,m}'
end
valid_archs = ['armv7s','arm64','x86_64']
s.xcconfig = {
'VALID_ARCHS' => valid_archs.join(' '),
}
s.pod_target_xcconfig = {
'ARCHS[sdk=iphonesimulator*]' => '$(ARCHS_STANDARD_64_BIT)', 'DEFINES_MODULE' => 'YES'
}
s.library = 'resolv'
s.frameworks = 'SystemConfiguration'
s.static_framework = true
s.dependency 'OpenIMSDKCore', '3.8.3'
s.dependency 'MJExtension'
end