-
-
Save lamvd0101/b1270882e8b3758045108f0141f6eac6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DIR=$PWD | |
RN_AAR=$DIR/node_modules/react-native/android/com/facebook/react/react-native/0.61.5/react-native-0.61.5.aar | |
HERMES_AAR=$DIR/node_modules/hermes-engine/android/hermes-release.aar | |
BUILD_LIBS=$DIR/android/build/libs | |
OUTPUT=$DIR/android/SDKOutput | |
rm -rf $OUTPUT | |
mkdir $OUTPUT | |
mkdir $OUTPUT/libs | |
cd android | |
./gradlew clean -x app:assembleRelease assembleRelease | |
./gradlew createGradleFile | |
cd - | |
cd $BUILD_LIBS | |
find . -name "*-release.aar" | while read f; do | |
echo "$f" | |
cp $f $OUTPUT/libs | |
done | |
cd - | |
cp $RN_AAR $OUTPUT/libs | |
cp $HERMES_AAR $OUTPUT/libs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment