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

Update api to match Cordova implementation #5

Merged
merged 27 commits into from
Sep 29, 2015
Merged

Conversation

itsananderson
Copy link

This is a pretty big refactor. Pulled out most of the package handling code to a distinct CodePushPackage.m file. Still a few pieces of polish I need to do on the Obj-C code, but I wanted to get this out for review since I've been working on it in private for so long.

return NativeCodePush.downloadUpdate(this)
.then((downloadedPackage) => {
return extend({}, downloadedPackage, local);
});
Copy link
Contributor

Choose a reason for hiding this comment

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

what happens if the download fails? cordova side has an error handller for this

Copy link
Author

Choose a reason for hiding this comment

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

Since we return a promise, any errors thrown by downloadUpdate() will be bubbled up to the calling code.

@geof90
Copy link
Contributor

geof90 commented Sep 9, 2015

LGTM


[CodePush loadBundle];

//resolve([NSNull null]);
Copy link
Contributor

Choose a reason for hiding this comment

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

remove?

@@ -1,4 +1,4 @@
/**
/*y
Copy link
Contributor

Choose a reason for hiding this comment

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

?

Copy link
Author

Choose a reason for hiding this comment

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

Accidental change. I'll revert.

@shishirx34
Copy link
Contributor

minor comments, LGTM otherwise!! 👍

itsananderson pushed a commit that referenced this pull request Sep 29, 2015
Update api to match Cordova implementation
@itsananderson itsananderson merged commit 6b7b311 into master Sep 29, 2015
@lostintangent lostintangent deleted the update-api branch December 9, 2015 21:57
max-mironov pushed a commit to max-mironov/react-native-code-push that referenced this pull request Jul 6, 2017
…d_apps_v2

Support for brownfield apps v2
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

3 participants