mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-12 23:34:57 +00:00
1c1b2ec4ab
This includes a top-level "android" symlink that should allow `react-native link` command to work.
19 lines
393 B
Bash
Executable File
19 lines
393 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
set -o pipefail
|
|
|
|
symlink() {
|
|
[ -e "$(basename "$1")" ] || ln -s "$1"
|
|
}
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
# A top-level "android" directory is expected by `react-native link`
|
|
symlink react-native/android
|
|
|
|
# NPM doesn't support publishing symlinks, so these must be re-created
|
|
cd react-native/android/app/src/main/jni
|
|
symlink ../../../../../../src
|
|
symlink ../../../../../../vendor
|