This repository has been archived by the owner on Sep 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update build scripts for pearl-driver-react-native (#501)
- Loading branch information
Umair Sarfraz
authored
Jun 18, 2020
1 parent
54e70fd
commit 629019a
Showing
8 changed files
with
15 additions
and
110 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
entangled | ||
android/src/main/jniLibs | ||
iota_common | ||
|
||
# OSX | ||
# | ||
|
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,22 @@ | ||
#!/bin/bash | ||
|
||
out=bazel-bin/mobile/android | ||
entangled_branch=develop | ||
branch=develop | ||
|
||
if [ ! -d entangled ]; then | ||
git clone https://github.com/iotaledger/entangled && cd entangled && git submodule update --init --recursive | ||
if [ ! -d iota_common ]; then | ||
git clone https://github.com/iotaledger/iota_common && cd iota_common && git submodule update --init --recursive | ||
else | ||
cd entangled | ||
cd iota_common | ||
|
||
if [ "$1" == "clean" ]; then | ||
bazel clean | ||
fi | ||
|
||
git fetch origin $entangled_branch:latest && git checkout latest && git submodule update --recursive | ||
git fetch origin $branch:latest && git checkout latest && git submodule update --recursive | ||
fi | ||
|
||
fetched=$? | ||
|
||
if [ $fetched ]; then | ||
# Checkout to previous version as temporary workaround | ||
git checkout 82ae5baa6af24bf55568a5a8aabb91ac601cdfc5 | ||
|
||
bazel build -c opt --fat_apk_cpu='armeabi-v7a,arm64-v8a,x86,x86_64' //mobile/android:dummy && echo A | unzip $out/dummy.apk -d $out/dummy && cp -r $out/dummy/lib/ ../android/src/main/jniLibs | ||
fi |
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