Skip to content

Commit 3a98f00

Browse files
committed
Fixed podspec
There were a number of issues with the previous podspec, including missing homepage attribute, wrong `source_files` values etc.
1 parent 1b70ed1 commit 3a98f00

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

ios/RNPdfScanner.podspec

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
1+
require 'json'
2+
3+
package = JSON.parse(File.read(File.join(__dir__, '../package.json')))
14

25
Pod::Spec.new do |s|
3-
s.name = "RNPdfScanner"
4-
s.version = "1.0.0"
5-
s.summary = "RNPdfScanner"
6-
s.description = <<-DESC
7-
RNPdfScanner
8-
DESC
9-
s.homepage = ""
10-
s.license = "MIT"
11-
# s.license = { :type => "MIT", :file => "FILE_LICENSE" }
12-
s.author = { "author" => "[email protected]" }
13-
s.platform = :ios, "7.0"
14-
s.source = { :git => "https://github.com/author/RNPdfScanner.git", :tag => "master" }
15-
s.source_files = "RNPdfScanner/**/*.{h,m}"
16-
s.requires_arc = true
6+
s.name = 'RNPdfScanner'
7+
s.version = package['version']
8+
s.summary = package['description']
9+
s.description = package['description']
10+
s.license = package['license']
11+
s.author = package['author']
12+
s.homepage = 'https://github.com/Michaelvilleneuve/react-native-document-scanner'
13+
s.source = { :git => 'https://github.com/Michaelvilleneuve/react-native-document-scanner.git', :tag => s.version }
1714

15+
s.requires_arc = true
16+
s.platform = :ios, '7.0'
1817

19-
s.dependency "React"
20-
#s.dependency "others"
18+
s.preserve_paths = 'README.md', 'package.json', 'index.js'
19+
s.source_files = '*.{h,m}'
2120

21+
s.dependency 'React'
2222
end
23-
24-

0 commit comments

Comments
 (0)