|
@@ -9,52 +9,14 @@ require 'json'
|
9
|
9
|
|
10
|
10
|
package = JSON.parse File.read File.join __dir__, "package.json"
|
11
|
11
|
Pod::Spec.new do |s|
|
12
|
|
-
|
13
|
|
- # ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
14
|
|
- #
|
15
|
|
- # These will help people to find your library, and whilst it
|
16
|
|
- # can feel like a chore to fill in it's definitely to your advantage. The
|
17
|
|
- # summary should be tweet-length, and the description more in depth.
|
18
|
|
- #
|
19
|
|
-
|
20
|
12
|
s.name = package["name"]
|
21
|
13
|
s.version = package["version"]
|
22
|
14
|
s.summary = package["summary"]
|
23
|
|
-
|
24
|
|
- # This description is used to generate tags and improve search results.
|
25
|
|
- # * Think: What does it do? Why did you write it? What is the focus?
|
26
|
|
- # * Try to keep it short, snappy and to the point.
|
27
|
|
- # * Write the description between the DESC delimiters below.
|
28
|
|
- # * Finally, don't worry about the indent, CocoaPods strips it!
|
29
|
|
- s.description = <<-DESC
|
30
|
|
- DESC
|
|
15
|
+ s.description = package["description"]
|
31
|
16
|
|
32
|
17
|
s.homepage = package["homepage"]
|
33
|
|
- # s.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif"
|
34
|
|
-
|
35
|
|
-
|
36
|
|
- # ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
37
|
|
- #
|
38
|
|
- # Licensing your code is important. See http://choosealicense.com for more info.
|
39
|
|
- # CocoaPods will detect a license file if there is a named LICENSE*
|
40
|
|
- # Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'.
|
41
|
|
- #
|
42
|
|
-
|
43
|
18
|
s.license = package["license"]
|
44
|
|
- # s.license = { :type => "MIT", :file => "FILE_LICENSE" }
|
45
|
|
-
|
46
|
|
-
|
47
|
|
- # ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
48
|
|
- #
|
49
|
|
- # Specify the authors of the library, with email addresses. Email addresses
|
50
|
|
- # of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also
|
51
|
|
- # accepts just a name if you'd rather not provide an email address.
|
52
|
|
- #
|
53
|
|
- # Specify a social_media_url where others can refer to, for example a twitter
|
54
|
|
- # profile URL.
|
55
|
|
- #
|
56
|
|
-
|
57
|
|
- s.authors = package["authors"]
|
|
19
|
+ s.authors = package["authors"]
|
58
|
20
|
|
59
|
21
|
# ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
60
|
22
|
#
|
|
@@ -62,7 +24,7 @@ Pod::Spec.new do |s|
|
62
|
24
|
# the deployment target. You can optionally include the target after the platform.
|
63
|
25
|
#
|
64
|
26
|
|
65
|
|
- # s.platform = :ios
|
|
27
|
+ s.platform = :ios
|
66
|
28
|
# s.platform = :ios, "5.0"
|
67
|
29
|
|
68
|
30
|
# When using multiple platforms
|
|
@@ -78,20 +40,11 @@ Pod::Spec.new do |s|
|
78
|
40
|
# Supports git, hg, bzr, svn and HTTP.
|
79
|
41
|
#
|
80
|
42
|
|
81
|
|
- s.source = { :git => package["repository"]["url"], :tag => "#{s.version}" }
|
82
|
|
-
|
83
|
|
-
|
84
|
|
- # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
85
|
|
- #
|
86
|
|
- # CocoaPods is smart about how it includes source code. For source files
|
87
|
|
- # giving a folder will include any swift, h, m, mm, c & cpp files.
|
88
|
|
- # For header files it will include any header in the folder.
|
89
|
|
- # Not including the public_header_files will make all headers public.
|
90
|
|
- #
|
91
|
|
-
|
92
|
|
- s.source_files = "Classes", "Classes/**/*.{h,m}"
|
93
|
|
- s.exclude_files = "Classes/Exclude"
|
|
43
|
+ #s.source = { :http => "file:///./ios" }
|
|
44
|
+ s.source = { :git => package["repository"]["url"] }
|
|
45
|
+ #s.source = { :git => package["repository"]["url"] , :tag => "#{s.version}" }
|
94
|
46
|
|
|
47
|
+ s.source_files = "RCTAgora", "RCTAgora/**/*.{h,m}"
|
95
|
48
|
# s.public_header_files = "Classes/**/*.h"
|
96
|
49
|
|
97
|
50
|
|
|
@@ -129,8 +82,22 @@ Pod::Spec.new do |s|
|
129
|
82
|
# you can include multiple dependencies to ensure it works.
|
130
|
83
|
|
131
|
84
|
# s.requires_arc = true
|
132
|
|
-
|
133
|
|
- # s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
|
|
85
|
+ s.subspec 'AgoraRtcEngineKit' do |sp|
|
|
86
|
+ sp.dependency 'AgoraRtcEngine_iOS', '2.3.3'
|
|
87
|
+ sp.source_files = 'AgoraRtcEngineKit/**/*.{c,h,m,mm,S,cpp}'
|
|
88
|
+ end
|
|
89
|
+
|
|
90
|
+ s.subspec 'AgoraRtcCryptoLoader' do |sp|
|
|
91
|
+ sp.source_files = './ios/RCTAgora/libs/AgoraRtcCryptoLoader.framework/**/*.{c,h,m,mm,S,cpp}'
|
|
92
|
+ sp.vendored_libraries = 'libcrypto.a'
|
|
93
|
+ end
|
|
94
|
+
|
|
95
|
+ s.xcconfig = {
|
|
96
|
+ "HEADER_SEARCH_PATHS" => [
|
|
97
|
+ "$(SDKROOT)../../node_modules/react-native/React",
|
|
98
|
+ "$(SDKROOT)../../ios/Pods"
|
|
99
|
+ ]
|
|
100
|
+ }
|
134
|
101
|
s.dependency "AgoraRtcEngine_iOS", "2.3.3"
|
135
|
102
|
|
136
|
103
|
end
|