-
Notifications
You must be signed in to change notification settings - Fork 136
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
Allow using cocoapods without react native link #244
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,10 +10,10 @@ Pod::Spec.new do |s| | |
s.homepage = package['homepage'] | ||
s.documentation_url = "https://docs.microsoft.com/en-us/appcenter/" | ||
|
||
s.author = { 'Microsoft' => 'appcentersdk@microsoft.com' } | ||
s.author = { 'Microsoft' => 'appcentersdk@microsoft.com' } | ||
|
||
s.source = { :git => "https://github.com/Microsoft/AppCenter-SDK-React-Native.git" } | ||
s.source_files = "appcenter-crashes/ios/AppCenterReactNativeCrashes/*.{h,m}" | ||
s.source = { :git => "https://github.com/Microsoft/AppCenter-SDK-React-Native.git" } | ||
s.source_files = "AppCenterReactNativeCrashes/**/*.{h,m}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tested your branch on a sample project and this seems to work for cocopods project too. However before I merge, can you elaborate why it works to remove the beginning of the path, and what about the stars? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep: the source_files path is related to the root of the .podspec file. So we want to include in the podspec all .h and .m files (including sub-folders thus **/*.{h.m}) in AppCenterReactNativeCrashes folder starting from the root. Starting from 2 levels up in the filesystem path would break the spec since source files would not be found. |
||
s.platform = :ios, '9.0' | ||
s.requires_arc = true | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was that required that you replace some part of the paths with stars?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not required, however, this way it included sub-folders as well.