aboutsummaryrefslogtreecommitdiffstats
path: root/testapps/testProjectTest/lib
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2012-03-02 19:23:09 -0800
committerXavier Ducrohet <xav@android.com>2012-03-02 19:30:58 -0800
commit9834e28a9868d8193df5b6ee4634b999079c2a8a (patch)
tree968b6b5fb01c270471250777c3f55c629b1e3a14 /testapps/testProjectTest/lib
parent420f7b22e62d45ff579e700c6456834c0739e37f (diff)
downloadsdk-9834e28a9868d8193df5b6ee4634b999079c2a8a.zip
sdk-9834e28a9868d8193df5b6ee4634b999079c2a8a.tar.gz
sdk-9834e28a9868d8193df5b6ee4634b999079c2a8a.tar.bz2
Add new test projects.
- test for User Library usage - test for test project with library. Change-Id: I49b7d4702937f634a1df907af327a979af09f227
Diffstat (limited to 'testapps/testProjectTest/lib')
-rw-r--r--testapps/testProjectTest/lib/.classpath8
-rw-r--r--testapps/testProjectTest/lib/.project33
-rw-r--r--testapps/testProjectTest/lib/AndroidManifest.xml9
-rw-r--r--testapps/testProjectTest/lib/proguard-project.txt20
-rw-r--r--testapps/testProjectTest/lib/project.properties15
-rw-r--r--testapps/testProjectTest/lib/res/layout/main.xml15
-rw-r--r--testapps/testProjectTest/lib/src/com/android/tests/testprojecttest/lib/LibActivity.java13
7 files changed, 113 insertions, 0 deletions
diff --git a/testapps/testProjectTest/lib/.classpath b/testapps/testProjectTest/lib/.classpath
new file mode 100644
index 0000000..a4763d1
--- /dev/null
+++ b/testapps/testProjectTest/lib/.classpath
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="gen"/>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
+ <classpathentry kind="output" path="bin/classes"/>
+</classpath>
diff --git a/testapps/testProjectTest/lib/.project b/testapps/testProjectTest/lib/.project
new file mode 100644
index 0000000..274b512
--- /dev/null
+++ b/testapps/testProjectTest/lib/.project
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>testProjectTest-lib</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ApkBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/testapps/testProjectTest/lib/AndroidManifest.xml b/testapps/testProjectTest/lib/AndroidManifest.xml
new file mode 100644
index 0000000..f8cc83d
--- /dev/null
+++ b/testapps/testProjectTest/lib/AndroidManifest.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.android.tests.testprojecttest.lib"
+ android:versionCode="1"
+ android:versionName="1.0" >
+
+ <uses-sdk android:minSdkVersion="15" />
+
+</manifest> \ No newline at end of file
diff --git a/testapps/testProjectTest/lib/proguard-project.txt b/testapps/testProjectTest/lib/proguard-project.txt
new file mode 100644
index 0000000..f2fe155
--- /dev/null
+++ b/testapps/testProjectTest/lib/proguard-project.txt
@@ -0,0 +1,20 @@
+# To enable ProGuard in your project, edit project.properties
+# to define the proguard.config property as described in that file.
+#
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in ${sdk.dir}/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the ProGuard
+# include property in project.properties.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
diff --git a/testapps/testProjectTest/lib/project.properties b/testapps/testProjectTest/lib/project.properties
new file mode 100644
index 0000000..36f1594
--- /dev/null
+++ b/testapps/testProjectTest/lib/project.properties
@@ -0,0 +1,15 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system edit
+# "ant.properties", and override values to adapt the script to your
+# project structure.
+#
+# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
+#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
+
+# Project target.
+target=android-15
+android.library=true
diff --git a/testapps/testProjectTest/lib/res/layout/main.xml b/testapps/testProjectTest/lib/res/layout/main.xml
new file mode 100644
index 0000000..14a9c4b
--- /dev/null
+++ b/testapps/testProjectTest/lib/res/layout/main.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:orientation="vertical" >
+
+ <TextView
+ android:id="@+id/text"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:text="some string"
+ tools:ignore="HardcodedText" />
+
+</LinearLayout> \ No newline at end of file
diff --git a/testapps/testProjectTest/lib/src/com/android/tests/testprojecttest/lib/LibActivity.java b/testapps/testProjectTest/lib/src/com/android/tests/testprojecttest/lib/LibActivity.java
new file mode 100644
index 0000000..7d7f607
--- /dev/null
+++ b/testapps/testProjectTest/lib/src/com/android/tests/testprojecttest/lib/LibActivity.java
@@ -0,0 +1,13 @@
+package com.android.tests.testprojecttest.lib;
+
+import android.app.Activity;
+import android.os.Bundle;
+
+public class LibActivity extends Activity {
+ /** Called when the activity is first created. */
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.main);
+ }
+} \ No newline at end of file