Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kudo/v8-android-buildscripts
V8 build scripts for React Native Android
https://github.com/kudo/v8-android-buildscripts
react-native v8
Last synced: about 12 hours ago
JSON representation
V8 build scripts for React Native Android
- Host: GitHub
- URL: https://github.com/kudo/v8-android-buildscripts
- Owner: Kudo
- License: bsd-2-clause
- Created: 2019-05-01T09:01:03.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-01-26T07:59:01.000Z (10 months ago)
- Last Synced: 2024-11-07T07:54:25.373Z (7 days ago)
- Topics: react-native, v8
- Language: Shell
- Homepage:
- Size: 166 KB
- Stars: 76
- Watchers: 6
- Forks: 33
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![npm version](https://badge.fury.io/js/v8-android.svg)](https://badge.fury.io/js/v8-android)
[![Build for Android](https://github.com/Kudo/v8-android-buildscripts/actions/workflows/android.yml/badge.svg)](https://github.com/Kudo/v8-android-buildscripts/actions/workflows/android.yml)
[![iOS build](https://github.com/Kudo/v8-android-buildscripts/actions/workflows/ios.yml/badge.svg)](https://github.com/Kudo/v8-android-buildscripts/actions/workflows/ios.yml)# V8 build scripts for React Native Android
The aim of this project is to support V8 runtime for React Native.
## Integrate prebuilt V8 library
We publish prebuilt V8 shared libraries at npm.
[https://www.npmjs.com/package/v8-android](https://www.npmjs.com/package/v8-android)This makes upgrade V8 from React Native easier and is pretty much like what [jsc-android-buildscripts](https://github.com/react-native-community/jsc-android-buildscripts) did.
To integrate with React Native, please check [react-native-v8](https://github.com/Kudo/react-native-v8).
## V8 Feature Flags
#### V8 comes in 4 flavours
- v8 lite mode (memory optimized)
- v8 lite mode + no intl (memory optimized + smaller size)
- v8 JIT (performance optimized)
- v8 JIT + no intl (performance optimized + smaller size)#### Features
1. Single libv8android.so (or libv8.so on iOS) file.
2. Support i18n and JavaScript [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl).
3. V8 Lite mode (JIT-less mode) https://v8.dev/blog/v8-lite
4. Build by Android official NDK r23c which prevent potential ABI incompatible issue to integrate with React Native.## Build Guides
### Prerequisites
* Ubuntu 20.04
* git + python + nodejs + npm + wget + yarn### Build steps
```sh
# Checkout V8 code and install necessary packages
yarn setup# Build
yarn start
```Could further check real build steps from [GitHub Actions](https://github.com/Kudo/v8-android-buildscripts/blob/master/.github/workflows/).