Skip to content

Commit 49d3e28

Browse files
authored
Update RNCustomKeyboardKit.podspec
fix this error: [!] The `RNCustomKeyboardKit` pod failed to validate due to 1 error: - ERROR | attributes: Missing required attribute `homepage`.
1 parent 17c251f commit 49d3e28

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

ios/RNCustomKeyboardKit.podspec

+11-15
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
1+
require 'json'
2+
3+
package = JSON.parse(File.read(File.join(__dir__, '..', 'package.json')))
14

25
Pod::Spec.new do |s|
36
s.name = "RNCustomKeyboardKit"
4-
s.version = "1.0.0"
5-
s.summary = "RNCustomKeyboardKit"
6-
s.description = <<-DESC
7-
RNCustomKeyboardKit
8-
DESC
9-
s.homepage = "https://github.com/themodernjavascript/react-native-custom-keyboard-kit"
10-
s.license = "MIT"
11-
# s.license = { :type => "MIT", :file => "FILE_LICENSE" }
12-
s.author = { "author" => "[email protected]" }
7+
s.version = package['version']
8+
s.summary = package['description']
9+
s.license = package['license']
10+
11+
s.authors = package['author']
12+
s.homepage = package['homepage']
13+
1314
s.platform = :ios, "7.0"
1415
s.source = { :git => "https://github.com/author/RNCustomKeyboardKit.git", :tag => "master" }
15-
s.source_files = "*.{h,m}"
16+
s.source_files = "RNCustomKeyboardKit/**/*.{h,m}"
1617
s.requires_arc = true
1718

18-
1919
s.dependency "React"
20-
#s.dependency "others"
21-
2220
end
23-
24-

0 commit comments

Comments
 (0)