build react native reanimated from source

This commit is contained in:
proletarius101 2022-01-06 08:43:19 +00:00
parent 65410b9a71
commit 07c9bf455f
2 changed files with 17 additions and 2 deletions

View File

@ -26,18 +26,22 @@ Builds:
- tar xJf node.tar.xz
- cp -a node-v16.13.1-linux-x64/. /usr/local/
- rm -rf node-v16.13.1-linux-x64/ node.tar.xz
- npm --global install yarn
init:
- cd ../..
- npm install --no-optional
gradle:
- yes
output: build/outputs/apk/release/app-release-unsigned.apk
srclibs:
- react-native-reanimated@2.3.1
prebuild: echo -e "android { packagingOptions { pickFirst 'lib/**/*.so' } }" >>
build.gradle
scanignore:
- Nunti/android/build.gradle
- Nunti/node_modules/jsc-android
- Nunti/node_modules/react-native/android
- Nunti/node_modules/hermes-engine
- Nunti/node_modules/react-native-reanimated/android
- Nunti/node_modules/react-native-vector-icons/android/build.gradle
- Nunti/node_modules/react-native-safe-area-context/android/build.gradle
- Nunti/node_modules/react-native-pager-view/android/build.gradle
@ -47,7 +51,17 @@ Builds:
- Nunti/node_modules/react-native/ReactAndroid/build.gradle
scandelete:
- Nunti/node_modules
ndk: r23b
build:
- REACT_NATIVE_VERSION=`npm pkg get 'dependencies.react-native' | sed -E 's/^"([0-9]+\.[0-9]+\.[0-9]+)"/\1/'`
- REACT_NATIVE_VERSION_MINOR=`echo ${REACT_NATIVE_VERSION} | sed -E 's/^[0-9]+\.([0-9]+)\.[0-9]+/\1/'`
- pushd $$react-native-reanimated$$
- pushd ..
- yarn add react-native@"${REACT_NATIVE_VERSION}"
- popd
- FOR_HERMES=True gradle :assembleRelease
- popd
- mv $$react-native-reanimated$$/build/outputs/aar/android-release.aar ../../node_modules/react-native-reanimated/android/react-native-reanimated-${REACT_NATIVE_VERSION_MINOR}-hermes.aar
ndk: r23
AutoUpdateMode: Version %v
UpdateCheckMode: Tags

View File

@ -6,3 +6,4 @@ Subdir: android
Prepare: |
rm -rf Example
rm -rf ios
yarn