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

Refactor plugin config, and change example so it can download updates #2

Merged
merged 12 commits into from Aug 21, 2015

Conversation

itsananderson
Copy link

Couple big changes here:

  1. The Code Push plugin reads config settings from Info.plist rather than having them passed in from script code. There is also a native API for overriding those settings.
  2. Cleaned up the interface for downloading updates. Now the example app's "Update" button is actually wired up to download the update.

Still todo: finish refactoring the code to better reflect Richard's native plugin interface.

jsCodeLocation = [HybridMobileDeploy appBundleUrl];

//jsCodeLocation = [HybridMobileDeploy getBundleUrl];
Copy link
Member

Choose a reason for hiding this comment

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

Why not delete the commented code?

Copy link
Author

Choose a reason for hiding this comment

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

Both of these configurations are convenient for testing different scenarios, so it's nice to be able to switch back and forth by commenting them out. However, there's no need to change the checked-in state from what it was before, so I'll revert this.

@dtivel
Copy link
Member

dtivel commented Jul 24, 2015

LGTM

sergey-akhalkov pushed a commit that referenced this pull request Jul 17, 2017
* Handle TargetBinaryVersionMismatch

* fix readme, add binary version mismatch example to docs

* fix docs, typings
raedur pushed a commit to happy-co/react-native-code-push that referenced this pull request Jul 31, 2017
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