Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated podspec file #61

Open
theneekz opened this issue Aug 23, 2021 · 0 comments
Open

Updated podspec file #61

theneekz opened this issue Aug 23, 2021 · 0 comments

Comments

@theneekz
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant