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

Fix ios linking issue #123

Merged
merged 1 commit into from
Sep 26, 2017
Merged

Fix ios linking issue #123

merged 1 commit into from
Sep 26, 2017

Conversation

dhei
Copy link
Member

@dhei dhei commented Sep 25, 2017

react-native link is broken for iOS projects due to #107.

There are two issues with #107:
(1) initInAppDelegate(header, initCode, oldInitCodeRegExp) in /mobile-center-link-scripts/src/ios/index.js has inconsistent return types. It returns a string in success but a Promise in failure. This caused a runtime error when calling initInAppDelegate in react-native link on iOS project.
(2) postlink.js in mobile-center is missing a return in the arrow function (this line) in the promise chaining. This caused react-native link prompting user for iOS appsecret without waiting for user input. This issue exists for mobile-center-analytics, mobile-center-push, mobile-center-crashes module.

This PR addresses the above issues and tested on blank new RN apps (iOS & Android).

@msftclas
Copy link

@dhei,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@guperrot guperrot merged commit 7b0836f into develop Sep 26, 2017
@guperrot guperrot deleted the fix/linking-new-ios-app branch September 26, 2017 00:08
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.

3 participants