From bada2a32d3e215df56ccee2d698c65182373ce9d Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Fri, 18 Dec 2009 19:43:15 +0000 Subject: [PATCH] Update README and build.xml for Eclair git-svn-id: https://connectbot.googlecode.com/svn/trunk/connectbot@446 df292f66-193f-0410-a5fc-6d59da041ff2 --- AndroidManifest.xml | 2 +- README | 15 +- build.xml | 523 +++++++++++++++++++++++++++++++------------- 3 files changed, 373 insertions(+), 167 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index d21a70a..18db390 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -2,7 +2,7 @@ + android:versionCode="224"> Android -> Project APK Configurations +sdk.dir=/usr/local/android ProGuard Support diff --git a/build.xml b/build.xml index 562beff..4ce7314 100644 --- a/build.xml +++ b/build.xml @@ -11,12 +11,12 @@ used by the Ant rules. Here are some properties you may want to change/update: - application-package + application.package the name of your application package as defined in the manifest. Used by the 'uninstall' rule. - source-folder + source.dir the name of the source folder. Default is 'src'. - out-folder + out.dir the name of the output folder. Default is 'bin'. Properties related to the SDK location or the project target should be updated @@ -37,16 +37,16 @@ - - - - - + + + + + + classpathref="android.antlibs" /> + classpathref="android.antlibs" /> + + - + + + + + + - - - - - + + + + + + + + - - + + + - - + + + - - - - - - - + + + + - - - - - - + + - + + + + + + + + + + + + + + + + + + + + - - + + + - + + + + + + + + - - + + + + + + + + Converting compiled files and external libraries into ${intermediate.dex.file}... + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Running zip align on final apk... + + + + + + + + + + + + + + Installing ${out.debug.package} onto default emulator or device... + + + + + + + + + + + + + Creating output directories if needed... - - - - - + + + + + - - + + Generating R.java / Manifest.java from the resources... + - + - + - + - - + + Compiling aidl files into Java classes... - - - - - + + + + + - - + + + + + + - - + destdir="${out.classes.absolute.dir}" + bootclasspathref="android.target.classpath" + verbose="${verbose}" classpath="${extensible.classpath}"> + + - - + @@ -181,13 +312,13 @@ - -injars ${out-classes} - -outjars ${out-folder}/classes.min.jar - -libraryjars ${android-jar} + -injars ${out.classes.dir} + -outjars ${out.dir}/classes.min.jar + -libraryjars ${android.jar} -dontskipnonpubliclibraryclasses -dontobfuscate - -dontoptimize - -printusage ${out-folder}/proguard.usage + -dontoptimize + -printusage ${out.dir}/proguard.usage -keep public class * extends android.app.Activity -keep public class * extends android.app.Service @@ -199,118 +330,205 @@ - Converting compiled files and external libraries into ${out-folder}/${dex-file}... + Converting compiled files and external libraries into ${out.dir}/${dex.file.name}... - - - + + + - Converting compiled files and external libraries into ${out-folder}/${dex-file}... + Converting compiled files and external libraries into ${out.dir}/${dex.file.name}... - - - + + + - + - + Packaging resources - - - - - - - - + + + - - - - - - - - - All generated packages need to be signed with jarsigner before they are published. + + + - - - Installing ${out-debug-package} onto default emulator... - - - - - - - - Installing ${out-debug-package} onto default emulator... - - - - - - - - - - Uninstalling ${application-package} from the default emulator... + + + + + + + + + + Debug Package: ${out.debug.package} + + + + + + + + + + + + + No key.store and key.alias properties found in build.properties. + Please sign ${out.unsigned.package} manually + and run zipalign from the Android SDK tools. + + + + + + + + + Signing final apk... + + + + + Release Package: ${out.release.package} + + + + + + + + + + + + + Unable to run 'ant uninstall', manifest.package property is not defined. + + + + + + Uninstalling ${manifest.package} from the default emulator or device... + - + + + + + + Instrumenting classes from ${out.absolute.dir}/classes... + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Android Ant Build. Available targets: help: Displays this help. - debug: Builds the application and sign it with a debug key. + clean: Removes output files created by other targets. + compile: Compiles project's .java files into .class files. + debug: Builds the application and signs it with a debug key. release: Builds the application. The generated apk file must be signed before it is published. - install: Installs the debug package onto a running emulator or - device. This can only be used if the application has - not yet been installed. - reinstall: Installs the debug package on a running emulator or - device that already has the application. - The signatures must match. - uninstall: uninstall the application from a running emulator or + install: Installs/reinstalls the debug package onto a running + emulator or device. + If the application was previously installed, the + signatures must match. + uninstall: Uninstalls the application from a running emulator or device. proguard: use before build statements like "debug" and "release" to enable proguard dead code removal. NOTE: You must @@ -325,7 +543,8 @@ - + @@ -342,16 +561,16 @@ - + - Updated "msg_version" to: ${ant.project.name} ${manifest.android:versionName} (r${Revision} ${build.date}) + Updated "msg_version" to: ${ant.project.name} ${manifest.version.name} (r${Revision} ${build.date}) - - + + @@ -359,12 +578,12 @@ - + Building and installing tests... - + Running test cases...