Skip to content
This repository was archived by the owner on Mar 25, 2019. It is now read-only.

Commit e7c7584

Browse files
author
Eric Lange
committed
Update README.md
1 parent 6f6c8d5 commit e7c7584

1 file changed

Lines changed: 15 additions & 19 deletions

File tree

README.md

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,11 @@ copy it into `~/AndroidJSCore/lib`. Now you can open `~/AndroidJSCore/examples/
141141
in Android Studio and run it.
142142

143143
Building AndroidJSCore-2.2 library
144-
-------------------------------
144+
----------------------------------
145145

146146
If you are interested in building the library directly and possibly contributing, you must
147147
do the following:
148148

149-
#### TL;DR - do this
150-
151149
##### Step 1: Get `hemroid` package manager and build JavaScriptCore
152150

153151
% git clone https://github.com/ericwlange/hemroid.git
@@ -156,20 +154,25 @@ do the following:
156154
% export ANDROID_SDK=/path/to/sdk
157155
% hemroid install javascriptcore
158156

159-
Note that this requires [GIT LFS](https://git-lfs.github.com/). If you don't already have it installed,
157+
Note that `hemroid` requires [GIT LFS](https://git-lfs.github.com/). If you don't already have it installed,
160158
you will need to install it.
161159

160+
[`hemroid`](https://github.com/ericwlange/hemroid) is a package manager for Android, similar in intent
161+
to Homebrew on OSX or `apt` on Linux. The JavaScriptCore library is part of WebKit. `hemroid` manages the tweaks
162+
required to get it to build on Android. Building JavaScriptCore takes a long time, upwards of an hour or more,
163+
depending on your hardware. If the process fails for any reason it will dump the build log in `/tmp/hemroid.burst`.
164+
Most likely some tool or another needs to be installed that is not installed on your system. Fix the dependency
165+
and then re-run `hemroid install javascriptcore`.
166+
162167
##### Step 2: Build AndroidJSCore
163168

164-
git clone https://github.com/ericwlange/AndroidJSCore.git
165-
cd AndroidJSCore/AndroidJSCore
166-
echo ndk.dir=$ANDROID_NDK > local.properties
167-
echo sdk.dir=$ANDROID_SDK >> local.properties
168-
./gradlew assembleRelease
169-
mkdir -p ../lib
170-
cp AndroidJSCore/build/outputs/aar/* ../lib
169+
% git clone https://github.com/ericwlange/AndroidJSCore.git
170+
% cd AndroidJSCore/AndroidJSCore
171+
% echo ndk.dir=$ANDROID_NDK > local.properties
172+
% echo sdk.dir=$ANDROID_SDK >> local.properties
173+
% ./gradlew assembleRelease
171174

172-
Your library now sits in `lib/AndroidJSCore-2.2-pre1-release.aar`. To use it, simply
175+
Your library now sits in `AndroidJSCore/build/outputs/aar/AndroidJSCore-2.2-pre1-release.aar`. To use it, simply
173176
add the following to your app's `build.gradle`:
174177

175178
repositories {
@@ -183,13 +186,6 @@ add the following to your app's `build.gradle`:
183186
}
184187

185188

186-
More details to come ...
187-
188-
Work in Progress
189-
----------------
190-
191-
- Test framework
192-
193189
License
194190
-------
195191

0 commit comments

Comments
 (0)