Skip to content
This repository was archived by the owner on Jan 10, 2024. It is now read-only.

Commit 71db829

Browse files
committed
android build script
1 parent a8a8d4a commit 71db829

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

native-src/build-android.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
set -e
3+
4+
function wd() {
5+
cd $(dirname $0)
6+
echo $PWD
7+
}
8+
(cd android && ./gradlew build)
9+
10+
NATIVE_SRC_DIR=$(wd);
11+
12+
AAR_PATH="${NATIVE_SRC_DIR}/android/webviewinterface/build/outputs/aar/webviewinterface-release.aar"
13+
TARGET_PATH="${NATIVE_SRC_DIR}/../src/platforms/android/"
14+
TARGET_FILE="webviewinterface.aar"
15+
16+
mkdir -p "${TARGET_PATH}"
17+
cp -v "${AAR_PATH}" "${TARGET_PATH}/${TARGET_FILE}"
15.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)