Updated podspec file
theneekz opened this issue Β· comments
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch react-native-boundary@1.1.1
for the project I'm working on.
Here is the diff that solved my problem:
diff --git a/node_modules/react-native-boundary/ios/RNBoundary.podspec b/node_modules/react-native-boundary/ios/RNBoundary.podspec
index 3587945..77a56bc 100644
--- a/node_modules/react-native-boundary/ios/RNBoundary.podspec
+++ b/node_modules/react-native-boundary/ios/RNBoundary.podspec
@@ -1,24 +1,20 @@
+require 'json'
+
+package = JSON.parse(File.read(File.join(__dir__, '../package.json')))
Pod::Spec.new do |s|
s.name = "RNBoundary"
- s.version = "1.0.0"
- s.summary = "RNBoundary"
- s.description = <<-DESC
- RNBoundary
- DESC
- s.homepage = ""
- s.license = "MIT"
- # s.license = { :type => "MIT", :file => "FILE_LICENSE" }
- s.author = { "author" => "author@domain.cn" }
- s.platform = :ios, "7.0"
- s.source = { :git => "https://github.com/author/RNBoundary.git", :tag => "master" }
- s.source_files = "RNBoundary/**/*.{h,m}"
- s.requires_arc = true
+ s.version = package['version']
+ s.summary = package['description']
+ s.license = package['license']
+ s.authors = package['author']
+ s.homepage = "https://github.com/mikhailperemitko/react-native-boundary#readme"
+ s.platform = :ios, "10.0"
- s.dependency "React"
- #s.dependency "others"
+ s.source = { :git => "https://github.com/eddieowens/react-native-boundary.git", :tag => "#{s.version}" }
+ s.source_files = "*.{h,m}"
+ s.requires_arc = true
+ s.dependency 'React'
end
-
-
\ No newline at end of file
This issue body was partially generated by patch-package.