Browse Source

Provide an ant script to export transdroid.jar

The Connect project can now be easily exported to the correct location
with the provided build.xml.
pull/82/head
Florian Schmaus 11 years ago
parent
commit
6b2d7360a9
  1. 2
      README.md
  2. 1
      core/libs/.gitignore
  3. 29
      lib/build.xml

2
README.md

@ -21,7 +21,7 @@ Please respect the coding standards for easier merging. master contains the curr @@ -21,7 +21,7 @@ Please respect the coding standards for easier merging. master contains the curr
Code structure
==============
Transdroid is currently developed in Eclipse, against Android 4.3 (API level 18). To support lite and full version of the app, the core UI is contained in a separate Android library project. The torrent client adapters are also in a seperate project, called Transdroid Connect, but this is a classic Java project. If the Connect project is updated, a fresh .jar needs to be exported (currently manually) to core/libs/transdroid.jar.
Transdroid is currently developed in Eclipse, against Android 4.3 (API level 18). To support lite and full version of the app, the core UI is contained in a separate Android library project. The torrent client adapters are also in a seperate project, called Transdroid Connect, but this is a classic Java project. If the Connect project is updated, a fresh .jar needs to be exported to core/libs/transdroid.jar. In order to do so, run ant within the lib/ directory.
* core - Contains the core Android library project with UI, services, resources, etc.
* full - Full app version (website release) through AndroidManifest.xml configuration

1
core/libs/.gitignore vendored

@ -0,0 +1 @@ @@ -0,0 +1 @@
transdroid.jar

29
lib/build.xml

@ -0,0 +1,29 @@ @@ -0,0 +1,29 @@
<project default="transdroid.jar">
<!-- Should match targetSdkVersion in manifest -->
<property name="android.version" value="android-19" />
<!-- Try to get the sdk location from ANDROID_HOME env var -->
<property environment="env" />
<condition property="sdk-location" value="${env.ANDROID_HOME}">
<isset property="env.ANDROID_HOME" />
</condition>
<target name="check-android-exists" >
<available property="android.exists" file="${sdk-location}/platforms/${android.version}/android.jar" />
<fail unless="${android.exists}" message="Android version ${android.version} does not is not available : ${sdk-location}/platforms/${android.version}/android.jar is not found" />
</target>
<target name="transdroid.jar" depends="check-android-exists" >
<javac
srcdir="src/"
destdir="build/"
bootclasspath="${sdk-location}/platforms/${android.version}/android.jar"
/>
<jar
destfile="../core/libs/transdroid.jar"
basedir="build/"
/>
</target>
</project>
Loading…
Cancel
Save