soc.2012.android: 79066781: Added the testclient project. It current...
michael at soc.pidgin.im
michael at soc.pidgin.im
Mon May 28 07:18:22 EDT 2012
----------------------------------------------------------------------
Revision: 79066781382574dc91de998f878a699616543c7f
Parent: b7e743537d55de04975119fefcc3503b7a3d7f65
Author: michael at soc.pidgin.im
Date: 05/28/12 07:10:02
Branch: im.pidgin.soc.2012.android
URL: http://d.pidgin.im/viewmtn/revision/info/79066781382574dc91de998f878a699616543c7f
Changelog:
Added the testclient project. It currently loads the purple libraries and displays the version number.
Changes against parent b7e743537d55de04975119fefcc3503b7a3d7f65
added android/workspace/im.pidgin.libpurple.testclient
added android/workspace/im.pidgin.libpurple.testclient/.externalToolBuilders
added android/workspace/im.pidgin.libpurple.testclient/bin
added android/workspace/im.pidgin.libpurple.testclient/gen
added android/workspace/im.pidgin.libpurple.testclient/libs
added android/workspace/im.pidgin.libpurple.testclient/res
added android/workspace/im.pidgin.libpurple.testclient/res/drawable
added android/workspace/im.pidgin.libpurple.testclient/res/layout
added android/workspace/im.pidgin.libpurple.testclient/res/values
added android/workspace/im.pidgin.libpurple.testclient/src
added android/workspace/im.pidgin.libpurple.testclient/src/im
added android/workspace/im.pidgin.libpurple.testclient/src/im/pidgin
added android/workspace/im.pidgin.libpurple.testclient/src/im/pidgin/libpurple
added android/workspace/im.pidgin.libpurple.testclient/src/im/pidgin/libpurple/testclient
added android/workspace/im.pidgin.libpurple.testclient/.classpath
added android/workspace/im.pidgin.libpurple.testclient/.externalToolBuilders/Andorid build.launch
added android/workspace/im.pidgin.libpurple.testclient/.project
added android/workspace/im.pidgin.libpurple.testclient/AndroidManifest.xml
added android/workspace/im.pidgin.libpurple.testclient/build.ant
added android/workspace/im.pidgin.libpurple.testclient/proguard-project.txt
added android/workspace/im.pidgin.libpurple.testclient/project.properties
added android/workspace/im.pidgin.libpurple.testclient/res/drawable/pidgin.png
added android/workspace/im.pidgin.libpurple.testclient/res/layout/main.xml
added android/workspace/im.pidgin.libpurple.testclient/res/values/strings.xml
added android/workspace/im.pidgin.libpurple.testclient/src/im/pidgin/libpurple/testclient/PurpleTestClient.java
attr on android/workspace/im.pidgin.libpurple.testclient/res/drawable/pidgin.png
set mtn:manual_merge
to true
-------------- next part --------------
============================================================
--- /dev/null
+++ android/workspace/im.pidgin.libpurple.testclient/.classpath 192917216a166aff59308a55e65d2e3da01c2e34
@@ -0,0 +1,9 @@
+<?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 combineaccessrules="false" exported="true" kind="src" path="/im.pidgin.libpurple"/>
+ <classpathentry kind="output" path="bin/classes"/>
+</classpath>
============================================================
--- /dev/null
+++ android/workspace/im.pidgin.libpurple.testclient/.externalToolBuilders/Andorid build.launch 02f0c27c9ce6ba71db8572603df2c90d7f49630f
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
+<booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" value="true"/>
+<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/>
+<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>
+<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
+<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="true"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="im.pidgin.libpurple.testclient"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/im.pidgin.libpurple.testclient/build.ant}"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,"/>
+<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
+</launchConfiguration>
============================================================
--- /dev/null
+++ android/workspace/im.pidgin.libpurple.testclient/.project cd2755b05e0ee996071ca3d7820c2900267dfa38
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>im.pidgin.libpurple.testclient</name>
+ <comment></comment>
+ <projects>
+ <project>im.pidgin.libpurple</project>
+ </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>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
+ <triggers>full,incremental,</triggers>
+ <arguments>
+ <dictionary>
+ <key>LaunchConfigHandle</key>
+ <value><project>/.externalToolBuilders/Andorid build.launch</value>
+ </dictionary>
+ </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>
============================================================
--- /dev/null
+++ android/workspace/im.pidgin.libpurple.testclient/AndroidManifest.xml be8c8728a23d259e9d515e7060e08f430a6aefa2
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="im.pidgin.libpurple.testclient"
+ android:versionCode="1"
+ android:versionName="1.0" >
+
+ <uses-sdk android:minSdkVersion="10" />
+
+ <application
+ android:icon="@drawable/pidgin"
+ android:label="@string/app_name" >
+ <activity
+ android:name=".PurpleTestClient"
+ android:label="@string/app_name" >
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ </application>
+
+</manifest>
\ No newline at end of file
============================================================
--- /dev/null
+++ android/workspace/im.pidgin.libpurple.testclient/build.ant 7467221b45d79de6988a4c0c6ce79a02d631984b
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- ======================================================================
+ 27.05.2012 23:48:00
+
+ libpurple.testclient
+ Copy the libs for testclient
+
+ michaelz
+ ====================================================================== -->
+<project name="libpurple.testclient" default="build">
+ <description>
+ Copy the libs for testclient
+ </description>
+ <import file="../im.pidgin.libpurple/loadlibs.ant"/>
+
+ <!-- =================================
+ target: build
+ ================================= -->
+ <target name="build" depends="copylibs" description="">
+ </target>
+
+
+ <!-- =================================
+ target: copylibs
+ ================================= -->
+ <target name="copylibs" description="Copy the libs for testclient">
+ <dirname file="${ant.file.libpurple.testclient}" property="projectloc"/>
+
+ <libpurple.loadlibs outproject="${projectloc}"/>
+ </target>
+
+
+</project>
============================================================
--- /dev/null
+++ android/workspace/im.pidgin.libpurple.testclient/proguard-project.txt 2669873f891113a8f45506e825d0215306e95405
@@ -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 *;
+#}
============================================================
--- /dev/null
+++ android/workspace/im.pidgin.libpurple.testclient/project.properties b6a65a49cc6a85c649e22758ae8cd4df4f3d4fe6
@@ -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-10
+android.library.reference.1=../im.pidgin.libpurple
============================================================
# android/workspace/im.pidgin.libpurple.testclient/res/drawable/pidgin.png is binary
============================================================
--- /dev/null
+++ android/workspace/im.pidgin.libpurple.testclient/res/layout/main.xml e08e641929b3e82ebf61757561c148067c30987a
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:orientation="vertical" >
+
+ <TextView
+ android:id="@+id/main_text"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/hello" />
+
+</LinearLayout>
\ No newline at end of file
============================================================
--- /dev/null
+++ android/workspace/im.pidgin.libpurple.testclient/res/values/strings.xml cd022c06f6bd994be62b82e5efa01a1494fe6b11
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <string name="hello">Hello World, PurpleTestClient!</string>
+ <string name="app_name">Im.pidgin.libpurple.testclient</string>
+
+</resources>
\ No newline at end of file
============================================================
--- /dev/null
+++ android/workspace/im.pidgin.libpurple.testclient/src/im/pidgin/libpurple/testclient/PurpleTestClient.java cdb7bc17f35a9c8b790088bf7b149bc794b74e7e
@@ -0,0 +1,19 @@
+package im.pidgin.libpurple.testclient;
+
+import im.pidgin.libpurple.core.PurpleInstance;
+import android.app.Activity;
+import android.os.Bundle;
+import android.widget.TextView;
+
+public class PurpleTestClient extends Activity {
+ /** Called when the activity is first created. */
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.main);
+
+ TextView text = (TextView) findViewById(R.id.main_text);
+
+ text.setText("Purple Version: " + new PurpleInstance().getVersion_native());
+ }
+}
\ No newline at end of file
More information about the Commits
mailing list