diff --git a/SupplementWebview/.classpath b/SupplementWebview/.classpath new file mode 100644 index 0000000..7d43582 --- /dev/null +++ b/SupplementWebview/.classpath @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/SupplementWebview/AndroidManifest.xml b/SupplementWebview/AndroidManifest.xml new file mode 100644 index 0000000..141abda --- /dev/null +++ b/SupplementWebview/AndroidManifest.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SupplementWebview/bin/AndroidManifest.xml b/SupplementWebview/bin/AndroidManifest.xml new file mode 100644 index 0000000..141abda --- /dev/null +++ b/SupplementWebview/bin/AndroidManifest.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/BuildConfig.class b/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/BuildConfig.class new file mode 100644 index 0000000..2f79b6d Binary files /dev/null and b/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/BuildConfig.class differ diff --git a/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R$attr.class b/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R$attr.class new file mode 100644 index 0000000..50fa5b1 Binary files /dev/null and b/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R$attr.class differ diff --git a/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R$dimen.class b/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R$dimen.class new file mode 100644 index 0000000..3e5b067 Binary files /dev/null and b/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R$dimen.class differ diff --git a/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R$drawable.class b/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R$drawable.class new file mode 100644 index 0000000..af11d2f Binary files /dev/null and b/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R$drawable.class differ diff --git a/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R$id.class b/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R$id.class new file mode 100644 index 0000000..37093bc Binary files /dev/null and b/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R$id.class differ diff --git a/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R$layout.class b/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R$layout.class new file mode 100644 index 0000000..841a96e Binary files /dev/null and b/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R$layout.class differ diff --git a/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R$menu.class b/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R$menu.class new file mode 100644 index 0000000..95b5578 Binary files /dev/null and b/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R$menu.class differ diff --git a/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R$string.class b/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R$string.class new file mode 100644 index 0000000..85f1d07 Binary files /dev/null and b/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R$string.class differ diff --git a/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R$style.class b/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R$style.class new file mode 100644 index 0000000..37cdeca Binary files /dev/null and b/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R$style.class differ diff --git a/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R.class b/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R.class new file mode 100644 index 0000000..74e239d Binary files /dev/null and b/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/R.class differ diff --git a/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/SupplementWebview.class b/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/SupplementWebview.class new file mode 100644 index 0000000..9ca3b8f Binary files /dev/null and b/SupplementWebview/bin/classes/jp/oneofthem/supplementwebview/SupplementWebview.class differ diff --git a/SupplementWebview/bin/jarlist.cache b/SupplementWebview/bin/jarlist.cache new file mode 100644 index 0000000..1b5ec3f --- /dev/null +++ b/SupplementWebview/bin/jarlist.cache @@ -0,0 +1,3 @@ +# cache for current jar dependecy. DO NOT EDIT. +# format is +# Encoding is UTF-8 diff --git a/SupplementWebview/gen/jp/oneofthem/supplementwebview/BuildConfig.java b/SupplementWebview/gen/jp/oneofthem/supplementwebview/BuildConfig.java new file mode 100644 index 0000000..11a4ac4 --- /dev/null +++ b/SupplementWebview/gen/jp/oneofthem/supplementwebview/BuildConfig.java @@ -0,0 +1,6 @@ +/** Automatically generated file. DO NOT MODIFY */ +package jp.oneofthem.supplementwebview; + +public final class BuildConfig { + public final static boolean DEBUG = true; +} \ No newline at end of file diff --git a/SupplementWebview/gen/jp/oneofthem/supplementwebview/R.java b/SupplementWebview/gen/jp/oneofthem/supplementwebview/R.java new file mode 100644 index 0000000..aa6dbad --- /dev/null +++ b/SupplementWebview/gen/jp/oneofthem/supplementwebview/R.java @@ -0,0 +1,68 @@ +/* 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 jp.oneofthem.supplementwebview; + +public final class R { + public static final class attr { + } + public static final class dimen { + /** Default screen margins, per the Android Design guidelines. + + Customize dimensions originally defined in res/values/dimens.xml (such as + screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here. + + */ + public static final int activity_horizontal_margin=0x7f040000; + public static final int activity_vertical_margin=0x7f040001; + } + public static final class drawable { + public static final int ic_launcher=0x7f020000; + } + public static final class id { + public static final int action_settings=0x7f080000; + } + public static final class layout { + public static final int activity_main=0x7f030000; + } + public static final class menu { + public static final int main=0x7f070000; + } + public static final class string { + public static final int action_settings=0x7f050001; + public static final int app_name=0x7f050000; + public static final int hello_world=0x7f050002; + } + public static final class style { + /** + Base application theme, dependent on API level. This theme is replaced + by AppBaseTheme from res/values-vXX/styles.xml on newer devices. + + + Theme customizations available in newer API levels can go in + res/values-vXX/styles.xml, while customizations related to + backward-compatibility can go here. + + + Base application theme for API 11+. This theme completely replaces + AppBaseTheme from res/values/styles.xml on API 11+ devices. + + API 11 theme customizations can go here. + + Base application theme for API 14+. This theme completely replaces + AppBaseTheme from BOTH res/values/styles.xml and + res/values-v11/styles.xml on API 14+ devices. + + API 14 theme customizations can go here. + */ + public static final int AppBaseTheme=0x7f060000; + /** Application theme. + All customizations that are NOT specific to a particular API-level can go here. + */ + public static final int AppTheme=0x7f060001; + } +} diff --git a/SupplementWebview/ic_launcher-web.png b/SupplementWebview/ic_launcher-web.png new file mode 100644 index 0000000..a18cbb4 Binary files /dev/null and b/SupplementWebview/ic_launcher-web.png differ diff --git a/SupplementWebview/libs/android-support-v4.jar b/SupplementWebview/libs/android-support-v4.jar new file mode 100644 index 0000000..65ebaf8 Binary files /dev/null and b/SupplementWebview/libs/android-support-v4.jar differ diff --git a/SupplementWebview/proguard-project.txt b/SupplementWebview/proguard-project.txt new file mode 100644 index 0000000..f2fe155 --- /dev/null +++ b/SupplementWebview/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/SupplementWebview/project.properties b/SupplementWebview/project.properties new file mode 100644 index 0000000..a3ee5ab --- /dev/null +++ b/SupplementWebview/project.properties @@ -0,0 +1,14 @@ +# 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-17 diff --git a/SupplementWebview/res/drawable-hdpi/ic_launcher.png b/SupplementWebview/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 0000000..288b665 Binary files /dev/null and b/SupplementWebview/res/drawable-hdpi/ic_launcher.png differ diff --git a/SupplementWebview/res/drawable-mdpi/ic_launcher.png b/SupplementWebview/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 0000000..6ae570b Binary files /dev/null and b/SupplementWebview/res/drawable-mdpi/ic_launcher.png differ diff --git a/SupplementWebview/res/drawable-xhdpi/ic_launcher.png b/SupplementWebview/res/drawable-xhdpi/ic_launcher.png new file mode 100644 index 0000000..d4fb7cd Binary files /dev/null and b/SupplementWebview/res/drawable-xhdpi/ic_launcher.png differ diff --git a/SupplementWebview/res/drawable-xxhdpi/ic_launcher.png b/SupplementWebview/res/drawable-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..85a6081 Binary files /dev/null and b/SupplementWebview/res/drawable-xxhdpi/ic_launcher.png differ diff --git a/SupplementWebview/res/layout/activity_main.xml b/SupplementWebview/res/layout/activity_main.xml new file mode 100644 index 0000000..effccb9 --- /dev/null +++ b/SupplementWebview/res/layout/activity_main.xml @@ -0,0 +1,16 @@ + + + + + \ No newline at end of file diff --git a/SupplementWebview/res/menu/main.xml b/SupplementWebview/res/menu/main.xml new file mode 100644 index 0000000..d227c49 --- /dev/null +++ b/SupplementWebview/res/menu/main.xml @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/SupplementWebview/res/values-sw600dp/dimens.xml b/SupplementWebview/res/values-sw600dp/dimens.xml new file mode 100644 index 0000000..1ba777d --- /dev/null +++ b/SupplementWebview/res/values-sw600dp/dimens.xml @@ -0,0 +1,8 @@ + + + + + \ No newline at end of file diff --git a/SupplementWebview/res/values-sw720dp-land/dimens.xml b/SupplementWebview/res/values-sw720dp-land/dimens.xml new file mode 100644 index 0000000..eee741a --- /dev/null +++ b/SupplementWebview/res/values-sw720dp-land/dimens.xml @@ -0,0 +1,9 @@ + + + + 128dp + + \ No newline at end of file diff --git a/SupplementWebview/res/values-v11/styles.xml b/SupplementWebview/res/values-v11/styles.xml new file mode 100644 index 0000000..541752f --- /dev/null +++ b/SupplementWebview/res/values-v11/styles.xml @@ -0,0 +1,11 @@ + + + + + + \ No newline at end of file diff --git a/SupplementWebview/res/values-v14/styles.xml b/SupplementWebview/res/values-v14/styles.xml new file mode 100644 index 0000000..f20e015 --- /dev/null +++ b/SupplementWebview/res/values-v14/styles.xml @@ -0,0 +1,12 @@ + + + + + + \ No newline at end of file diff --git a/SupplementWebview/res/values/dimens.xml b/SupplementWebview/res/values/dimens.xml new file mode 100644 index 0000000..a6dd140 --- /dev/null +++ b/SupplementWebview/res/values/dimens.xml @@ -0,0 +1,7 @@ + + + + 16dp + 16dp + + \ No newline at end of file diff --git a/SupplementWebview/res/values/strings.xml b/SupplementWebview/res/values/strings.xml new file mode 100644 index 0000000..fe4dccf --- /dev/null +++ b/SupplementWebview/res/values/strings.xml @@ -0,0 +1,8 @@ + + + + SupplementWebview + Settings + Hello world! + + \ No newline at end of file diff --git a/SupplementWebview/res/values/styles.xml b/SupplementWebview/res/values/styles.xml new file mode 100644 index 0000000..4a10ca4 --- /dev/null +++ b/SupplementWebview/res/values/styles.xml @@ -0,0 +1,20 @@ + + + + + + + + + \ No newline at end of file diff --git a/SupplementWebview/src/jp/oneofthem/supplementwebview/SupplementWebview.java b/SupplementWebview/src/jp/oneofthem/supplementwebview/SupplementWebview.java new file mode 100644 index 0000000..fa4ba3e --- /dev/null +++ b/SupplementWebview/src/jp/oneofthem/supplementwebview/SupplementWebview.java @@ -0,0 +1,16 @@ +package jp.oneofthem.supplementwebview; + +import jp.radiumsoftware.unitywebviewexample.ExtendedUnityPlayerActivity; +import android.content.Intent; +import android.util.Log; + +import com.unity3d.player.UnityPlayer; + +public class SupplementWebview { + public static void startWebview(){ + if(!"ExtendedUnityPlayerActivity".equalsIgnoreCase(UnityPlayer.currentActivity.getClass().getSimpleName())){ + UnityPlayer.currentActivity.startActivity(new Intent(UnityPlayer.currentActivity, ExtendedUnityPlayerActivity.class)); + } + return; + } +}