File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change 1
1
/* eslint max-len: 0 */
2
2
3
3
module . exports = platform => [ {
4
- name : ( { name } ) => `${ platform } /${ name } .podspec` ,
5
- content : ( { name } ) => `
4
+ name : ( { name } ) => `${ name } .podspec` ,
5
+ content : ( { name } ) => `require "json"
6
+
7
+ package = JSON.parse(File.read(File.join(__dir__, "package.json")))
8
+
6
9
Pod::Spec.new do |s|
7
10
s.name = "${ name } "
8
- s.version = "1.0.0"
9
- s.summary = " ${ name } "
11
+ s.version = package["version"]
12
+ s.summary = package["description"]
10
13
s.description = <<-DESC
11
14
${ name }
12
15
DESC
13
- s.homepage = ""
16
+ s.homepage = "https://github.com/author/ ${ name } "
14
17
s.license = "MIT"
15
- # s.license = { :type => "MIT", :file => "FILE_LICENSE" }
16
- s.author = { "author" => "author@domain.cn" }
18
+ # s.license = { :type => "MIT", :file => "FILE_LICENSE" }
19
+ s.author = { "author" => "author@domain.cn" }
17
20
s.platform = :ios, "7.0"
18
- s.source = { :git => "https://github.com/author/${ name } .git", :tag => "master" }
19
- s.source_files = "${ name } /**/*.{h,m}"
20
- s.requires_arc = true
21
+ s.source = { :git => "https://github.com/author/${ name } .git", :tag => "#{s.version}" }
21
22
23
+ s.source_files = "ios/**/*.{h,m}"
24
+ s.requires_arc = true
22
25
23
26
s.dependency "React"
24
27
#s.dependency "others"
25
-
26
28
end
27
29
28
30
` ,
You can’t perform that action at this time.
0 commit comments