Skip to content

Commit d44a5f0

Browse files
committed
Adding build.xml to support building jar files from source. Solves pakerfeldt#15.
Signed-off-by: Patrik Åkerfeldt <[email protected]>
1 parent 9d4c5e4 commit d44a5f0

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ bin
44
gen
55
target
66
local.properties
7-
build.xml
87
proguard.cfg

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ And then you'll need to connect your `ViewFlow` with the `FlowIndicator`:
6464
indicator.setTitleProvider(myTitleProvider);
6565
viewFlow.setFlowIndicator(indicator);
6666

67+
## Building a jar file
68+
If you rather want a jar file instead of a including the project as an android library, run `ant jar` in the `android-viewflow/viewflow` folder, to build a jar file.
69+
6770
## Contributions
6871
The following persons deserves a mention for their contributions:
6972

viewflow/build.xml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<project name="android-viewflow" default="jar" basedir=".">
2+
<description>
3+
A view switcher library for Android
4+
</description>
5+
<!-- set global properties for this build -->
6+
<property name="src" location="src" />
7+
<property name="bin" location="bin" />
8+
9+
<target name="jar">
10+
<jar destfile="android-viewflow.jar" basedir="bin/">
11+
<include name="org/**" />
12+
</jar>
13+
</target>
14+
</project>

0 commit comments

Comments
 (0)