Coder Social home page Coder Social logo

Comments (4)

zamotany avatar zamotany commented on May 26, 2024 3

That does make sense, but I wouldn't go as far as to say replace. Re.Pack was not intended as a CodePush alternative and doesn't provide as many OTA features as CodePush. You still need a code in a main bundle and you might need to update it at some point, but you won't be able to without CodePush. I would still recommend CodePush as a main solution for OTA due to it's maturity and features regarding hosting, rollbacks, distribution, versioning etc - if you were to use Re.Pack's remote chunks for that, you have to reimplement those functionalities.

from repack.

zamotany avatar zamotany commented on May 26, 2024

If you don't intend of using Code Splitting with Re.Pack, then you can use Code Push in a similar way you would do with Metro. However, like you said, if the Code Splitting is used the code will be split between multiple files, and it that case it might be problematic to use Code Plush or it might not work at all. I suspect you still would be able to use Code Push for a main bundle, but all additional chunks will be excluded from Code Push. Keep in mind that in order to use Code Splitting (with remote chunks - hosted on server) you have to configure ChunkManager.configure(...) which lives in main bundle, so if you change resolveRemoteChunk function to point to different URL with updated chunks, and you Code Push that new main bundle after the main bundle is applied on target device with Code Push, ChunkManager should download new chunks since the URL had changed.

from repack.

gustavopch avatar gustavopch commented on May 26, 2024

@zamotany Wait... so may Re.Pack even replace CodePush? I mean, if the main bundle is just a splash screen that loads the other chunks from a server, then in order to update the code running in the app it's just a matter of updating the chunks in the server (and probably notify the app to use the new chunk URLs). Does that make sense?

from repack.

zamotany avatar zamotany commented on May 26, 2024

Closing due to inactivity. Additional info is available at: https://re-pack.netlify.app/docs/code-splitting/code-push

from repack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.