Skip to content

Commit

Permalink
feat(android): try not to push core.aar
Browse files Browse the repository at this point in the history
Signed-off-by: Sacha Froment <sfroment42@gmail.com>
  • Loading branch information
sfroment committed Nov 20, 2018
1 parent d3386df commit 8e25650
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Expand Up @@ -237,7 +237,7 @@ jobs:
command: |
env
cd ../gomobile
/tmp/retry -m 3 make build.android
/tmp/retry -m 3 make sed.ble build.ble unsed.ble build.android
- restore_cache:
key: v1-rn-gems-{{ checksum "~/go/src/berty.tech/client/react-native/Gemfile.lock" }}
Expand Down
Binary file removed client/react-native/android/ble/libs/jars/ble.jar
Binary file not shown.
9 changes: 9 additions & 0 deletions client/react-native/gomobile/Makefile
Expand Up @@ -66,6 +66,15 @@ test:
.PHONY: build.android
build.android: $(ANDROID_BUILD_PATH)/core.aar

.PHONY: sed.ble
sed.ble:
sed -r -i '' 's/(.*Core.*)/\/\/\1/g' $(ANDROID_PATH)ble/src/main/java/chat/berty/ble/Manager.java

.PHONY: unsed.ble
unsed.ble:
sed -r -i 's/\/\/(.*Core.*)/\1/g' $(ANDROID_PATH)ble/src/main/java/chat/berty/ble/Manager.java

.PHONY: build.ble
build.ble: $(BLE_DIR_PATH)/ble.jar

$(BLE_DIR_PATH)/ble.jar:
Expand Down

0 comments on commit 8e25650

Please sign in to comment.