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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add podspec for cocoapod #42

Open
blaisebarre opened this issue Oct 26, 2021 · 1 comment
Open

Add podspec for cocoapod #42

blaisebarre opened this issue Oct 26, 2021 · 1 comment

Comments

@blaisebarre
Copy link

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

When I install the cocoapods of my project, let me know :

[!] The RNActivityRecognition pod failed to validate due to 1 error:
- ERROR | attributes: Missing required attribute homepage.
- WARN | source: The version should be included in the Git tag.
- WARN | description: The description is equal to the summary.

Indeed, it missing a RNActivityRecognition.podspec in the lib.
Here is the diff that solved my problem:

diff --git a/node_modules/react-native-activity-recognition/RNActivityRecognition.podspec b/node_modules/react-native-activity-recognition/RNActivityRecognition.podspec
new file mode 100644
index 0000000..f9b3123
--- /dev/null
+++ b/node_modules/react-native-activity-recognition/RNActivityRecognition.podspec
@@ -0,0 +1,18 @@
+require 'json'
+
+package = JSON.parse(File.read('./package.json'))
+
+Pod::Spec.new do |s|
+  s.name                = 'RNActivityRecognition'
+  s.version             = package['version']
+  s.summary             = package['description']
+  s.description         = package['description']
+  s.homepage            = package['homepage']
+  s.license             = package['license']
+  s.author              = package['author']
+  s.source              = { :git => "https://github.com/XebiaStudio/react-native-activity-recognition.git" }
+  s.platform            = :ios, "7.0"
+  s.source_files        = "ios/*.{h,m}"
+  s.preserve_paths      = "*.js"
+  s.dependency 'React-Core'
+end

This issue body was partially generated by patch-package.

@tsachit
Copy link

tsachit commented Dec 23, 2022

When do we get this? I had to manually the homepage value

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

2 participants