Added Android shell app created with Android SDK.
authorTobias Brunner <tobias@strongswan.org>
Fri, 17 Feb 2012 15:59:23 +0000 (16:59 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 8 Aug 2012 13:09:30 +0000 (15:09 +0200)
src/frontends/android/.classpath [new file with mode: 0644]
src/frontends/android/.gitignore [new file with mode: 0644]
src/frontends/android/AndroidManifest.xml [new file with mode: 0644]
src/frontends/android/proguard.cfg [new file with mode: 0644]
src/frontends/android/project.properties [new file with mode: 0644]
src/frontends/android/res/drawable-hdpi/ic_launcher.png [new file with mode: 0644]
src/frontends/android/res/drawable-ldpi/ic_launcher.png [new file with mode: 0644]
src/frontends/android/res/drawable-mdpi/ic_launcher.png [new file with mode: 0644]
src/frontends/android/res/layout/main.xml [new file with mode: 0644]
src/frontends/android/res/values/strings.xml [new file with mode: 0644]
src/frontends/android/src/org/strongswan/android/strongSwanActivity.java [new file with mode: 0644]

diff --git a/src/frontends/android/.classpath b/src/frontends/android/.classpath
new file mode 100644 (file)
index 0000000..a4763d1
--- /dev/null
@@ -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/src/frontends/android/.gitignore b/src/frontends/android/.gitignore
new file mode 100644 (file)
index 0000000..a031dba
--- /dev/null
@@ -0,0 +1,4 @@
+bin/
+gen/
+libs/
+obj/
diff --git a/src/frontends/android/AndroidManifest.xml b/src/frontends/android/AndroidManifest.xml
new file mode 100644 (file)
index 0000000..702a15d
--- /dev/null
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="org.strongswan.android"
+    android:versionCode="1"
+    android:versionName="1.0" >
+
+    <uses-sdk android:minSdkVersion="15" />
+
+    <application
+        android:icon="@drawable/ic_launcher"
+        android:label="@string/app_name" >
+        <activity
+            android:name=".strongSwanActivity"
+            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
diff --git a/src/frontends/android/proguard.cfg b/src/frontends/android/proguard.cfg
new file mode 100644 (file)
index 0000000..b1cdf17
--- /dev/null
@@ -0,0 +1,40 @@
+-optimizationpasses 5
+-dontusemixedcaseclassnames
+-dontskipnonpubliclibraryclasses
+-dontpreverify
+-verbose
+-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
+
+-keep public class * extends android.app.Activity
+-keep public class * extends android.app.Application
+-keep public class * extends android.app.Service
+-keep public class * extends android.content.BroadcastReceiver
+-keep public class * extends android.content.ContentProvider
+-keep public class * extends android.app.backup.BackupAgentHelper
+-keep public class * extends android.preference.Preference
+-keep public class com.android.vending.licensing.ILicensingService
+
+-keepclasseswithmembernames class * {
+    native <methods>;
+}
+
+-keepclasseswithmembers class * {
+    public <init>(android.content.Context, android.util.AttributeSet);
+}
+
+-keepclasseswithmembers class * {
+    public <init>(android.content.Context, android.util.AttributeSet, int);
+}
+
+-keepclassmembers class * extends android.app.Activity {
+   public void *(android.view.View);
+}
+
+-keepclassmembers enum * {
+    public static **[] values();
+    public static ** valueOf(java.lang.String);
+}
+
+-keep class * implements android.os.Parcelable {
+  public static final android.os.Parcelable$Creator *;
+}
diff --git a/src/frontends/android/project.properties b/src/frontends/android/project.properties
new file mode 100644 (file)
index 0000000..8da376a
--- /dev/null
@@ -0,0 +1,11 @@
+# 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 use,
+# "ant.properties", and override values to adapt the script to your
+# project structure.
+
+# Project target.
+target=android-15
diff --git a/src/frontends/android/res/drawable-hdpi/ic_launcher.png b/src/frontends/android/res/drawable-hdpi/ic_launcher.png
new file mode 100644 (file)
index 0000000..8074c4c
Binary files /dev/null and b/src/frontends/android/res/drawable-hdpi/ic_launcher.png differ
diff --git a/src/frontends/android/res/drawable-ldpi/ic_launcher.png b/src/frontends/android/res/drawable-ldpi/ic_launcher.png
new file mode 100644 (file)
index 0000000..1095584
Binary files /dev/null and b/src/frontends/android/res/drawable-ldpi/ic_launcher.png differ
diff --git a/src/frontends/android/res/drawable-mdpi/ic_launcher.png b/src/frontends/android/res/drawable-mdpi/ic_launcher.png
new file mode 100644 (file)
index 0000000..a07c69f
Binary files /dev/null and b/src/frontends/android/res/drawable-mdpi/ic_launcher.png differ
diff --git a/src/frontends/android/res/layout/main.xml b/src/frontends/android/res/layout/main.xml
new file mode 100644 (file)
index 0000000..bc12cd8
--- /dev/null
@@ -0,0 +1,12 @@
+<?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:layout_width="fill_parent"
+        android:layout_height="wrap_content"
+        android:text="@string/hello" />
+
+</LinearLayout>
\ No newline at end of file
diff --git a/src/frontends/android/res/values/strings.xml b/src/frontends/android/res/values/strings.xml
new file mode 100644 (file)
index 0000000..f4df761
--- /dev/null
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+    <string name="hello">Hello World, strongSwanActivity!</string>
+    <string name="app_name">strongSwan</string>
+
+</resources>
\ No newline at end of file
diff --git a/src/frontends/android/src/org/strongswan/android/strongSwanActivity.java b/src/frontends/android/src/org/strongswan/android/strongSwanActivity.java
new file mode 100644 (file)
index 0000000..16d4a09
--- /dev/null
@@ -0,0 +1,13 @@
+package org.strongswan.android;
+
+import android.app.Activity;
+import android.os.Bundle;
+
+public class strongSwanActivity 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