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

Podspec added #24

Merged
merged 3 commits into from
Apr 19, 2018
Merged

Podspec added #24

merged 3 commits into from
Apr 19, 2018

Conversation

stephenkopylov
Copy link
Contributor

@stephenkopylov stephenkopylov commented Apr 18, 2018

Added a proper podspec for using with cocoapods.

Actually, this is the only way to link the library with project without suffering and this shitty
"<RCT***.h> not found" errors

Usage:
pod 'RNKeyboardManager', :path => '../node_modules/react-native-keyboard-manager'

@stephenkopylov stephenkopylov mentioned this pull request Apr 18, 2018
Stephen Kopylov and others added 2 commits April 18, 2018 18:21
@stephenkopylov
Copy link
Contributor Author

Added instructions to Readme

Copy link
Owner

@douglasjunior douglasjunior left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stephenkopylov Did you see my comment review?

s.preserve_paths = 'README.md', 'package.json', '*.js'
s.source_files = 'ios/ReactNativeKeyboardManager/**/*.{h,m}'
s.dependency 'React'
s.dependency 'IQKeyboardManager'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s.dependency          'IQKeyboardManager'

This dependency of the IQKeyboardManager make Cocopods to install it again?

Because the IQKeyboardManager is already included in the source code.

@stephenkopylov
Copy link
Contributor Author

stephenkopylov commented Apr 19, 2018

Yep, I've seen.

In case when user uses cocoapods it will be handled by it, otherwise it will use your, included IQKeyboardManager.

It's actually a one and only proper way to handle dependencies in cocoapods.

UPD: and yep, it works with charm this way =)

@douglasjunior douglasjunior merged commit 44c6dab into douglasjunior:master Apr 19, 2018
@douglasjunior
Copy link
Owner

Great, thanks.

@douglasjunior douglasjunior mentioned this pull request Apr 19, 2018
@douglasjunior
Copy link
Owner

I'm going to release a version in a few hours.

@stephenkopylov
Copy link
Contributor Author

@douglasjunior
Perfect. Thank you!

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

Successfully merging this pull request may close these issues.

None yet

2 participants