forked from ChatSecure/ChatSecureAndroid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
48 lines (31 loc) · 1.24 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
== Preparation
git submodule update --init
./update-ant-build.sh
* Ensure that external/MessageBar/library/project.properties has:
android.library=true
* setup external/asmack/local.properties to point to your android sdk *
(cd external/asmack && ./build.bash && cp build/asmack-android-4.jar ../../libs)
== Building with ant
Follow the steps from the prep section, then:
ant debug
== Eclipse
Add the following as Android projects (File->New->Project..., Android project from existing code),
after following the steps in the prep section:
1. File --> Import... --> Android --> Existing Android Code Into Workspace
* external/OnionKit/library
* external/MemorizingTrustManager
* external/ActionBarSherlock/library
2. Right-click on the project called 'library' --> Refactor --> Rename... and
rename it to 'ActionBarSherlock'
3. Import Gibberbot itself like #1 above
== Old Stuff
Patching Smack library for Android [1]
$ svn co -r 10869 \
http://svn.igniterealtime.org/svn/repos/smack/trunk smack-android
$ cd smack-android/source
$ patch -p0 -i patches/smack/smack.diff
$ cd ../build
$ ant
$ cd ../target
[1] Thanks to: http://bjdodson.blogspot.com/2009/07/xmpp-on-android-using-smack.html)
l