aboutsummaryrefslogtreecommitdiffstats
path: root/testapps/basicJar/src
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2010-09-16 18:53:44 -0700
committerXavier Ducrohet <xav@android.com>2010-09-24 16:33:38 -0700
commita66ca8ad997527af0e7a07ba851da0a6d379fad0 (patch)
tree0827f8d51c3d55ecf4abc0f2b824feafdf211a4f /testapps/basicJar/src
parent03dec99d1bc5fc418e58235c5e6dd0543b41413e (diff)
downloadsdk-a66ca8ad997527af0e7a07ba851da0a6d379fad0.zip
sdk-a66ca8ad997527af0e7a07ba851da0a6d379fad0.tar.gz
sdk-a66ca8ad997527af0e7a07ba851da0a6d379fad0.tar.bz2
Use proguard for release builds through Ant.
This is only activated if default.properties contains a property "proguard.config" with the name of a proguard config file. Some clean-up in the Ant tasks and in the name of the properties used by the rules and the custom tasks to make them clearer. Added a new test app with a project using a jar file as well as a library using a jar file. Change-Id: Ia8f4d873025993d454c0a484e61d47ae679ea79c
Diffstat (limited to 'testapps/basicJar/src')
-rw-r--r--testapps/basicJar/src/com/android/tests/basicjar/Foo.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/testapps/basicJar/src/com/android/tests/basicjar/Foo.java b/testapps/basicJar/src/com/android/tests/basicjar/Foo.java
new file mode 100644
index 0000000..6a9536f
--- /dev/null
+++ b/testapps/basicJar/src/com/android/tests/basicjar/Foo.java
@@ -0,0 +1,16 @@
+package com.android.tests.basicjar;
+
+import java.util.Random;
+
+public class Foo {
+ public static int FOO = 42;
+
+ public int getFoo() {
+ return FOO;
+ }
+
+ public int getRandomFoo() {
+ Random r = new Random(System.currentTimeMillis());
+ return r.nextInt(FOO);
+ }
+} \ No newline at end of file