mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-28 08:49:17 +00:00
Make the switch to gradle!
1) ABS is now published as an AAR, so we can eliminate all local dependencies and bundled jars. 2) Upgrade to ABS 4.4.0 (The Last Release) and deal with the loss of Sherlock.Dialog by faking it with our own themes. 3) Remove all traces of ant. The modern world is here.
This commit is contained in:
22
BUILDING.md
22
BUILDING.md
@@ -1,23 +1,9 @@
|
||||
Building TextSecure
|
||||
===================
|
||||
|
||||
Fetch ActionBarSherlock:
|
||||
1. Ensure the 'Android Support Repository' is installed from the Android SDK manager.
|
||||
1. Ensure gradle >= 1.8 is installed.
|
||||
|
||||
git clone git://github.com/JakeWharton/ActionBarSherlock.git ../ActionBarSherlock
|
||||
pushd ../ActionBarSherlock && git checkout 4.2.0 && popd
|
||||
Execute Gradle:
|
||||
|
||||
Configure ActionBarSherlock for your android target:
|
||||
|
||||
android update project --path ../ActionBarSherlock/library --target 1
|
||||
|
||||
Configure TextSecure for your android target, linking to ASB:
|
||||
|
||||
android update project --path . --target 1 --library ../ActionBarSherlock/library
|
||||
|
||||
Finally, both codebases must share the android-support jar. As TextSecure's is newer, use it:
|
||||
|
||||
cp libs/android-support-v4.jar ../ActionBarSherlock/library/libs/android-support-v4.jar
|
||||
|
||||
Assuming your android toolchain is correctly configured, it should now be possible to build the TextSecure apk.
|
||||
|
||||
ant debug
|
||||
gradle build
|
||||
Reference in New Issue
Block a user