diff --git a/code/ryzom/tools/server/ryzom_ams/android_app/.classpath b/code/ryzom/tools/server/ryzom_ams/android_app/.classpath new file mode 100644 index 000000000..c3c8602bb --- /dev/null +++ b/code/ryzom/tools/server/ryzom_ams/android_app/.classpath @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/code/ryzom/tools/server/ryzom_ams/android_app/.project b/code/ryzom/tools/server/ryzom_ams/android_app/.project new file mode 100644 index 000000000..ba01a3a61 --- /dev/null +++ b/code/ryzom/tools/server/ryzom_ams/android_app/.project @@ -0,0 +1,33 @@ + + + MyAndroidApp + + + + + + com.android.ide.eclipse.adt.ResourceManagerBuilder + + + + + com.android.ide.eclipse.adt.PreCompilerBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + com.android.ide.eclipse.adt.ApkBuilder + + + + + + com.android.ide.eclipse.adt.AndroidNature + org.eclipse.jdt.core.javanature + + diff --git a/code/ryzom/tools/server/ryzom_ams/android_app/.settings/org.eclipse.jdt.core.prefs b/code/ryzom/tools/server/ryzom_ams/android_app/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 000000000..2a856569f --- /dev/null +++ b/code/ryzom/tools/server/ryzom_ams/android_app/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,12 @@ +#Tue Feb 21 13:19:14 SGT 2012 +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.6 diff --git a/code/ryzom/tools/server/ryzom_ams/android_app/AndroidManifest.xml b/code/ryzom/tools/server/ryzom_ams/android_app/AndroidManifest.xml new file mode 100644 index 000000000..70e45aa6c --- /dev/null +++ b/code/ryzom/tools/server/ryzom_ams/android_app/AndroidManifest.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/code/ryzom/tools/server/ryzom_ams/android_app/gen/com/mkyong/android/BuildConfig.java b/code/ryzom/tools/server/ryzom_ams/android_app/gen/com/mkyong/android/BuildConfig.java new file mode 100644 index 000000000..b068a863d --- /dev/null +++ b/code/ryzom/tools/server/ryzom_ams/android_app/gen/com/mkyong/android/BuildConfig.java @@ -0,0 +1,6 @@ +/** Automatically generated file. DO NOT MODIFY */ +package com.mkyong.android; + +public final class BuildConfig { + public final static boolean DEBUG = true; +} \ No newline at end of file diff --git a/code/ryzom/tools/server/ryzom_ams/android_app/gen/com/mkyong/android/R.java b/code/ryzom/tools/server/ryzom_ams/android_app/gen/com/mkyong/android/R.java new file mode 100644 index 000000000..a451800e7 --- /dev/null +++ b/code/ryzom/tools/server/ryzom_ams/android_app/gen/com/mkyong/android/R.java @@ -0,0 +1,25 @@ +/* AUTO-GENERATED FILE. DO NOT MODIFY. + * + * This class was automatically generated by the + * aapt tool from the resource data it found. It + * should not be modified by hand. + */ + +package com.mkyong.android; + +public final class R { + public static final class attr { + } + public static final class drawable { + public static final int ic_launcher=0x7f020000; + } + public static final class id { + public static final int webView1=0x7f050000; + } + public static final class layout { + public static final int main=0x7f030000; + } + public static final class string { + public static final int app_name=0x7f040000; + } +} diff --git a/code/ryzom/tools/server/ryzom_ams/assets/android_app/info.txt b/code/ryzom/tools/server/ryzom_ams/android_app/info.txt similarity index 100% rename from code/ryzom/tools/server/ryzom_ams/assets/android_app/info.txt rename to code/ryzom/tools/server/ryzom_ams/android_app/info.txt diff --git a/code/ryzom/tools/server/ryzom_ams/android_app/proguard.cfg b/code/ryzom/tools/server/ryzom_ams/android_app/proguard.cfg new file mode 100644 index 000000000..b1cdf17b5 --- /dev/null +++ b/code/ryzom/tools/server/ryzom_ams/android_app/proguard.cfg @@ -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 ; +} + +-keepclasseswithmembers class * { + public (android.content.Context, android.util.AttributeSet); +} + +-keepclasseswithmembers class * { + public (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/code/ryzom/tools/server/ryzom_ams/android_app/project.properties b/code/ryzom/tools/server/ryzom_ams/android_app/project.properties new file mode 100644 index 000000000..73fc66102 --- /dev/null +++ b/code/ryzom/tools/server/ryzom_ams/android_app/project.properties @@ -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-18 diff --git a/code/ryzom/tools/server/ryzom_ams/android_app/res/drawable-hdpi/ic_launcher.png b/code/ryzom/tools/server/ryzom_ams/android_app/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 000000000..8074c4c57 Binary files /dev/null and b/code/ryzom/tools/server/ryzom_ams/android_app/res/drawable-hdpi/ic_launcher.png differ diff --git a/code/ryzom/tools/server/ryzom_ams/android_app/res/drawable-ldpi/ic_launcher.png b/code/ryzom/tools/server/ryzom_ams/android_app/res/drawable-ldpi/ic_launcher.png new file mode 100644 index 000000000..1095584ec Binary files /dev/null and b/code/ryzom/tools/server/ryzom_ams/android_app/res/drawable-ldpi/ic_launcher.png differ diff --git a/code/ryzom/tools/server/ryzom_ams/android_app/res/drawable/ic_launcher.png b/code/ryzom/tools/server/ryzom_ams/android_app/res/drawable/ic_launcher.png new file mode 100644 index 000000000..a07c69fa5 Binary files /dev/null and b/code/ryzom/tools/server/ryzom_ams/android_app/res/drawable/ic_launcher.png differ diff --git a/code/ryzom/tools/server/ryzom_ams/android_app/res/layout/main.xml b/code/ryzom/tools/server/ryzom_ams/android_app/res/layout/main.xml new file mode 100644 index 000000000..41627df16 --- /dev/null +++ b/code/ryzom/tools/server/ryzom_ams/android_app/res/layout/main.xml @@ -0,0 +1,7 @@ + + \ No newline at end of file diff --git a/code/ryzom/tools/server/ryzom_ams/android_app/res/values/strings.xml b/code/ryzom/tools/server/ryzom_ams/android_app/res/values/strings.xml new file mode 100644 index 000000000..09b33f582 --- /dev/null +++ b/code/ryzom/tools/server/ryzom_ams/android_app/res/values/strings.xml @@ -0,0 +1,4 @@ + + + Ryzom Core AMS + \ No newline at end of file diff --git a/code/ryzom/tools/server/ryzom_ams/android_app/src/com/mkyong/android/MainActivity.java b/code/ryzom/tools/server/ryzom_ams/android_app/src/com/mkyong/android/MainActivity.java new file mode 100644 index 000000000..260856c52 --- /dev/null +++ b/code/ryzom/tools/server/ryzom_ams/android_app/src/com/mkyong/android/MainActivity.java @@ -0,0 +1,22 @@ +package com.mkyong.android; + +import android.app.Activity; +import android.os.Bundle; +import android.webkit.WebView; +import android.webkit.WebViewClient; + +public class MainActivity extends Activity { + + private WebView webView; + + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.main); + + webView = (WebView) findViewById(R.id.webView1); + webView.setWebViewClient(new WebViewClient()); + webView.getSettings().setJavaScriptEnabled(true); + webView.loadUrl("http://shard.ryzomcore.org/ams/index.php"); + + } +} diff --git a/code/ryzom/tools/server/ryzom_ams/assets/android_app/Ryzom_Core_AMS.7z b/code/ryzom/tools/server/ryzom_ams/assets/android_app/Ryzom_Core_AMS.7z deleted file mode 100644 index ed9366564..000000000 Binary files a/code/ryzom/tools/server/ryzom_ams/assets/android_app/Ryzom_Core_AMS.7z and /dev/null differ