follow-up prev: fix typo
This commit is contained in:
@@ -39,7 +39,7 @@ TARGET_ARCH="$1"
|
|||||||
if [[ "$TARGET_ARCH" != "armeabi-v7a" \
|
if [[ "$TARGET_ARCH" != "armeabi-v7a" \
|
||||||
&& "$TARGET_ARCH" != "arm64-v8a" \
|
&& "$TARGET_ARCH" != "arm64-v8a" \
|
||||||
&& "$TARGET_ARCH" != "x86_64" ]]; then
|
&& "$TARGET_ARCH" != "x86_64" ]]; then
|
||||||
fail "build_barcode_scanner.sh invalid target architecture argument: $TARGET_ARCH"
|
fail "make_barcode_scanner.sh invalid target architecture argument: $TARGET_ARCH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
info "Building BarcodeScannerView and deps for architecture: $TARGET_ARCH"
|
info "Building BarcodeScannerView and deps for architecture: $TARGET_ARCH"
|
||||||
@@ -68,7 +68,7 @@ else
|
|||||||
cd "$ZXING_CPP_DIR/wrappers/aar"
|
cd "$ZXING_CPP_DIR/wrappers/aar"
|
||||||
chmod +x gradlew
|
chmod +x gradlew
|
||||||
|
|
||||||
# Set local.properties to use SDK of docker container
|
# Set local.properties to use SDK of docker container
|
||||||
echo "sdk.dir=${ANDROID_SDK_HOME}" > local.properties
|
echo "sdk.dir=${ANDROID_SDK_HOME}" > local.properties
|
||||||
# gradlew will install a specific NDK version required by zxing-cpp
|
# gradlew will install a specific NDK version required by zxing-cpp
|
||||||
./gradlew :zxingcpp:assembleRelease -Pandroid.injected.build.abi="$TARGET_ARCH"
|
./gradlew :zxingcpp:assembleRelease -Pandroid.injected.build.abi="$TARGET_ARCH"
|
||||||
|
|||||||
Reference in New Issue
Block a user