How to build and modified expo-updates local

Please provide the following:

  1. SDK Version:45
  2. Platforms(Android/iOS/web/all):android
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

Hi,
I am working on a bare React Native project. I am using expo-updates to implement OTA update for my app.
But in my app I want to change ServerUrl at runtime.

So I follow this instruction: expo/CONTRIBUTING.md at main · expo/expo (github.com) to fork expo and try to build it on my Windows machine.

I follow and try modified expo-updates at “packages”
I end up update typescript functions and update file [UpdatesModule.kt] in android to add new method.
But I don’t know how to build this android project correctly. since grade sync have error.

Can you guys give me some more info on how should I working on modified expo-updates.
Thanks

Hi @ddv0623

One way you might be able to do this sort of thing is to use patch-package to modify the package after it’s installed, but before it is built. That way you don’t need to fork the package, but you would need to update the patch every time you upgrade the package to a new version.