diff --git a/replugin-sample/host/app/src/main/assets/plugins/demo1.jar b/replugin-sample/host/app/src/main/assets/plugins/demo1.jar index 172c1ce2..2b087a8c 100644 Binary files a/replugin-sample/host/app/src/main/assets/plugins/demo1.jar and b/replugin-sample/host/app/src/main/assets/plugins/demo1.jar differ diff --git a/replugin-sample/host/app/src/main/assets/plugins/webview.jar b/replugin-sample/host/app/src/main/assets/plugins/webview.jar index 69d3814e..b9578a9a 100644 Binary files a/replugin-sample/host/app/src/main/assets/plugins/webview.jar and b/replugin-sample/host/app/src/main/assets/plugins/webview.jar differ diff --git a/replugin-sample/host/app/src/main/java/com/qihoo360/replugin/sample/host/MainActivity.java b/replugin-sample/host/app/src/main/java/com/qihoo360/replugin/sample/host/MainActivity.java index 202e21a5..0077e7e0 100644 --- a/replugin-sample/host/app/src/main/java/com/qihoo360/replugin/sample/host/MainActivity.java +++ b/replugin-sample/host/app/src/main/java/com/qihoo360/replugin/sample/host/MainActivity.java @@ -86,6 +86,8 @@ public void onClick(View v) { findViewById(R.id.btn_start_demo4).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { + // 示例:直接通过宿主打开WebView插件中的Activity + // FIXME: 后续可以将webview MainActivity URL 改为动态传入 // 若没有安装,则直接提示“错误” if (RePlugin.isPluginInstalled("webview")) { RePlugin.startActivity(MainActivity.this, RePlugin.createIntent("webview", "com.qihoo360.replugin.sample.webview.MainActivity")); diff --git a/replugin-sample/plugin/plugin-demo1/app/src/main/java/com/qihoo360/replugin/sample/demo1/activity/webview/WebViewActivity.java b/replugin-sample/plugin/plugin-demo1/app/src/main/java/com/qihoo360/replugin/sample/demo1/activity/webview/WebViewActivity.java index ec5af209..ec14172a 100644 --- a/replugin-sample/plugin/plugin-demo1/app/src/main/java/com/qihoo360/replugin/sample/demo1/activity/webview/WebViewActivity.java +++ b/replugin-sample/plugin/plugin-demo1/app/src/main/java/com/qihoo360/replugin/sample/demo1/activity/webview/WebViewActivity.java @@ -28,7 +28,7 @@ /** * @author RePlugin Team * - * WebView 示例 + * WebView 示例,具体业务逻辑由webView插件来实现 */ public class WebViewActivity extends Activity { diff --git a/replugin-sample/plugin/plugin-webview/app/src/main/AndroidManifest.xml b/replugin-sample/plugin/plugin-webview/app/src/main/AndroidManifest.xml index 06b22ebf..c37e9176 100644 --- a/replugin-sample/plugin/plugin-webview/app/src/main/AndroidManifest.xml +++ b/replugin-sample/plugin/plugin-webview/app/src/main/AndroidManifest.xml @@ -17,12 +17,12 @@ - + - + \ No newline at end of file diff --git a/replugin-sample/plugin/plugin-webview/app/src/main/res/drawable/app_icon.png b/replugin-sample/plugin/plugin-webview/app/src/main/res/drawable/app_icon.png deleted file mode 100644 index 1aa2a9df..00000000 Binary files a/replugin-sample/plugin/plugin-webview/app/src/main/res/drawable/app_icon.png and /dev/null differ diff --git a/replugin-sample/plugin/plugin-webview/app/src/main/res/drawable/ic_launcher.png b/replugin-sample/plugin/plugin-webview/app/src/main/res/drawable/ic_launcher.png new file mode 100644 index 00000000..bfa42f0e Binary files /dev/null and b/replugin-sample/plugin/plugin-webview/app/src/main/res/drawable/ic_launcher.png differ diff --git a/replugin-sample/plugin/plugin-webview/app/src/main/res/values/strings.xml b/replugin-sample/plugin/plugin-webview/app/src/main/res/values/strings.xml index 0089feca..e1a9a6b6 100644 --- a/replugin-sample/plugin/plugin-webview/app/src/main/res/values/strings.xml +++ b/replugin-sample/plugin/plugin-webview/app/src/main/res/values/strings.xml @@ -15,5 +15,5 @@ --> - Webview + WebView