Hey,
I’m utilizing Creator 3.5.2
I wish to add ‘Distant Bundle’ folder into APK construct as nicely, is that attainable?
So by that originally we will save server bandwidth, so in future when there’s replace then solely we will obtain new ‘Distant Bundle’ into native storage.
Goal platform: Android, iOS
Regards,
Smit
I feel you may modify the content material of the src/settings.json file within the construct path to attain this. In src/settings.json, there’s a property named “remoteBundles”, you may change that content material.
@SantyWang Thanks for reply.
Suppose there’s folder in property named Stock
Then ought to i make it Bundle solely or Distant Bundle ?
As a result of if i choose Bundle solely then folder won’t exported in distant
folder to add on server
and if i choose Distant Bundle
then it won’t be included in property.
So sorry for late reply, The implementation course of appears like this
-
Firstly, you want a server(nginx or different server).
-
Then, it’s worthwhile to customise the launching strategy of recreation by customise the
software.js
within the construct path. Change the settings.json’s url to your server.(The next screenshots present the three.6 model for example, the three.5 model is comparable) -
Then, once you construct apk firstly, no must test isRemote. and the bundle Stock might be export as native bundle. Then will probably be load as native bundle. Add the
settings.json
in construct path to your server -
Then at some point you need replace the native bundle. It’s essential test the isRemote, and rebuild undertaking once more. Add bundle and settings.json to your server.
The precept is to make use of the settings.json’s updating to redirect the bundle to be loaded