-
Notifications
You must be signed in to change notification settings - Fork 467
Download version directly from the web/S3 #111
Comments
That's interesting :) Can you explain a bit more about Regarding |
Thanks for asking. In our scenario we are using CHCP to push UI code to our SDK inside a host app built and deployed to the store by our client. This means the following changes:
We are still making drafts for the new design & will update soon :) |
So, you are planning to use CHCP to update components in your SDK. And the client is using SDK to construct UI on his web page. Is this correct? If yes, then probably the easiest way would be to fork the plugin, and then change HCPPlugin class for iOS and HotCodePushPlugin.java class for Android. In these classes you will need to remove assets installation and page reload (as you said), plus add some SDK-specific logic. Also, change the path, where the updated files are stored. Should be quite simple, since it's this and this classes. And maybe extend JS interface with your SDK components. If what you are building is SDK, then you must think, that client would want to install CHCP plugin in order to update his codebase. So you need to separate them... |
But it is an interesting usage of the plugin :) |
👋 Hi! Thank you for your interest in this repo. 😢 We are not using nordnet/cordova-hot-code-push anymore, and we lack the manpower and the experience needed to maintain it. We are aware of the inconveniece that this may cause you. Feel free to use it as is, or create your own fork. 🔒 This will now be closed & locked. ℹ️ Please see #371 for more information. |
We are porting CHCP for use in our SDK
We plan to implement the following features:
install-from-assets
flag in the XMLinstall-from-assets
flag is false: override copyAssetDirectoryToAppDirectory with createStubAppDirectory (creates a stub directory on disk with empty config and manifest and then continues to update as usual)auto-redirect-to-index-page
flag to config.xml (allows to disable the redirect if we prefer to keep the old version running)The text was updated successfully, but these errors were encountered: