This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 736
Android builds arm arm64 and x86 #777
Merged
vimmerru
merged 30 commits into
hyperledger-indy:master
from
faisal00813:android_builds
Jun 28, 2018
Merged
Changes from 14 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
a98a882
Android build scripts for arm arm64 and x86 architectures
faisal00813 bb4bede
Fixed dependency build script
faisal00813 1ea665b
Merge branch 'master' into android_builds
faisal00813 6e0d31a
Fixed external storage path for universal compatibility
faisal00813 fbd59c0
upgraded log crate and env_logger to work with android_logger
faisal00813 ebcd7e5
fixed libsqlcipher-sys version in cargo.lock
Artemkaaas 56fe80d
Merge remote-tracking branch 'upstream/master' into android_builds
faisal00813 1062c97
Added bundled feature to rusqlite
faisal00813 9a50823
Merge remote-tracking branch 'origin/android_builds' into android_builds
faisal00813 a6e37b8
Merge branch 'master' into android_builds
faisal00813 326ffef
Fixed a log statement
faisal00813 2c8045c
- Added build scripts for libnullpay for android support
faisal00813 2888dd6
Merge branch 'master' into android_builds
faisal00813 1a7c0ec
- simplified logic to find the android target in build.rs
faisal00813 c647217
Now sqlite is staically linked only on android platform.
faisal00813 b8a8d0e
Now sqlite is staically linked for android and ios.
faisal00813 33a609d
Updated openssl scripts to checkout the tag from build git repository
faisal00813 0d7dca8
Updated version of libsodium in build scripts
faisal00813 28a79d2
Simplified android build scripts. Now single script will build for al…
faisal00813 8279283
Moved the logic of creating the directory in android environment to a…
faisal00813 9a537d1
Now libindy panics when it cannot find path in EXTERNAL_STORAGE varia…
faisal00813 7d2b666
Added prebuild downloads capability in build.withoutdocker.sh script
faisal00813 4eb089b
Merge branch 'master' into android_builds
jovfer 2ec128d
Merge branch 'android_builds' of https://github.com/faisal00813/indy-…
faisal00813 3ee6359
Changed `match` to `if else` in build.rs
faisal00813 a83969a
moved android declaration of rusqlite for better visibility
faisal00813 adfcde4
moved android declaration and general rusqlite togather to bottom of …
faisal00813 f5f8d69
Reverted: moved android declaration of rusqlite for better visibility
faisal00813 7ba938c
Fixed libnullpay build.rs
faisal00813 1774122
Merge branch 'master' into android_builds
jovfer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Building binaries of LibIndy for Android | ||
|
||
**Not ready for production use! Not fully tested.** | ||
|
||
## Prerequisites | ||
|
||
- Docker | ||
|
||
## How to build. | ||
- Goto `indy-sdk/libindy/build_scripts/android` folder | ||
- Run `build.dependencies.locally.sh` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Will it build dependencies for all supported architectures? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. The script will build for x86, arm and arm64 architectures. |
||
- This will locally build the dependencies for libindy | ||
- Run `build_arm.sh` to build for armv7 cpu architecture | ||
- Run `build_arm64.sh` to build for arm64 cpu architecture | ||
- Run `build_x86.sh` to build for x86 cpu architecture | ||
|
||
## Usage | ||
- Copy generated `indy-sdk/libindy/build_scripts/android/libindy.so` to the jniLibs folder of you android project | ||
- Load library using the JNA | ||
|
||
|
||
## Notes: | ||
Make sure the Android app which is going to use libindy has permissions to write to external storage. | ||
|
||
Add following line to AndroidManifest.xml | ||
|
||
`<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>` | ||
|
||
Android emulator generally use x86 images | ||
|
||
##Known Issues | ||
|
||
- The android build does successfully compile on OSX | ||
- It fails on the libzmq linking | ||
- `libindy/build_scripts/android/build.nondocker.sh` can be used to make android builds without Docker | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can i build it on windows and MacOS?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only Linux is supported as of now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add this info to per-requirements? It is better to provide info about platform that we tested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That info is present in Known Issues segment at the bottom of the document.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok