@@ -141,13 +141,11 @@ copy it into `~/AndroidJSCore/lib`. Now you can open `~/AndroidJSCore/examples/
141141in Android Studio and run it.
142142
143143Building AndroidJSCore-2.2 library
144- -------------------------------
144+ ----------------------------------
145145
146146If you are interested in building the library directly and possibly contributing, you must
147147do 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,
160158you 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
173176add 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-
193189License
194190-------
195191
0 commit comments