Kudo / react-native-v8

Opt-in V8 runtime for React Native Android
MIT License
900 stars 69 forks source link

Super slow boost download #160

Closed reinismu closed 1 year ago

reinismu commented 1 year ago

It takes around 2 hours for it to download every time I build...

image

Has anyone noticed this as well? Is there a way to change url where it is downloading it from?

Kudo commented 1 year ago

hi there! i'm sorry this would be an known issue. you could add REACT_NATIVE_DOWNLOADS_DIR environment variable to some local path for keeping the boost tarball, next time gradle will not download it again when cache hit. i.e. REACT_NATIVE_DOWNLOADS_DIR=$HOME/REACT_NATIVE_DOWNLOADS_DIR ./gradlew :app:assembleDebug

reinismu commented 1 year ago

Why is it not cached by default? I'm pretty sure CMake can do that

Kudo commented 1 year ago

the default folder to store the downloaded tarball is node_modules/react-native-v8/android/build. if you run clean build or npm install again to purge the build folder, gradle download plugin will download the tarball again.