cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sgreb...@apache.org
Subject [1/2] docs commit: Windows Phone 8.0 WebViews
Date Thu, 11 Sep 2014 06:56:29 GMT
Repository: cordova-docs
Updated Branches:
  refs/heads/master 9119b7fd6 -> 0c4d4dd69


Windows Phone 8.0 WebViews


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/744f08e0
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/744f08e0
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/744f08e0

Branch: refs/heads/master
Commit: 744f08e04bbb33f9d4d9d2c7bf9795d6d60416a4
Parents: 9119b7f
Author: sgrebnov <v-segreb@microsoft.com>
Authored: Mon Sep 8 18:16:34 2014 +0400
Committer: sgrebnov <v-segreb@microsoft.com>
Committed: Thu Sep 11 10:51:15 2014 +0400

----------------------------------------------------------------------
 docs/en/edge/guide/hybrid/webviews/index.md |  2 +-
 docs/en/edge/guide/platforms/wp8/webview.md | 54 ++++++++++++++++++++++++
 2 files changed, 55 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/744f08e0/docs/en/edge/guide/hybrid/webviews/index.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/guide/hybrid/webviews/index.md b/docs/en/edge/guide/hybrid/webviews/index.md
index e08b25b..63e9e71 100644
--- a/docs/en/edge/guide/hybrid/webviews/index.md
+++ b/docs/en/edge/guide/hybrid/webviews/index.md
@@ -33,4 +33,4 @@ supported platforms:
 - Amazon Fire OS WebViews
 - Android WebViews
 - iOS WebViews
-
+- Windows Phone 8.0 WebViews
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/744f08e0/docs/en/edge/guide/platforms/wp8/webview.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/guide/platforms/wp8/webview.md b/docs/en/edge/guide/platforms/wp8/webview.md
new file mode 100644
index 0000000..8976722
--- /dev/null
+++ b/docs/en/edge/guide/platforms/wp8/webview.md
@@ -0,0 +1,54 @@
+---
+license: Licensed to the Apache Software Foundation (ASF) under one
+         or more contributor license agreements.  See the NOTICE file
+         distributed with this work for additional information
+         regarding copyright ownership.  The ASF licenses this file
+         to you under the Apache License, Version 2.0 (the
+         "License"); you may not use this file except in compliance
+         with the License.  You may obtain a copy of the License at
+         
+           http://www.apache.org/licenses/LICENSE-2.0
+         
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+         under the License.
+---
+
+# Windows Phone 8.0 WebViews
+
+This guide shows how to embed a Cordova-enabled WebView component
+within a larger Windows Phone 8.0 application. 
+
+To follow these instructions, make sure you have the latest Cordova 
+distribution. Download it from 
+[cordova.apache.org](http://cordova.apache.org) and unzip its 
+Windows Phone 8.0 package (cordova-wp8-*.zip).
+
+1. Navigate to the package's `wp8/framework` directory and build
+   `WPCordovaClassLib.sln`. 
+   It creates the `Bin\Debug[Release]\WPCordovaClassLib.dll`.
+
+1. Copy the `WPCordovaClassLib.dll` file into the Windows Phone 8 project's
+    `/libs` directory and include `WPCordovaClassLib.dll` to your
+    project via `Project->References->Add Reference`.
+    Alternatively, you can directly reference the
+    `wp8/framework/WPCordovaClassLib.csproj` file.
+
+1. Add `CordovaView` component to your page (for example, `MainPage.xaml`).
+
+        xmlns:my="clr-namespace:WPCordovaClassLib;assembly=WPCordovaClassLib">
+        ...
+        <my:CordovaView HorizontalAlignment="Stretch" Margin="0,0,0,0" 
+        StartPageUri="html/index.html" x:Name="CordovaView" VerticalAlignment="Stretch" />
+
+1. Copy `common/www/cordova.js` along with the application's HTML 
+    and JavaScript files to the Windows Phone 8 project's `html` directory
+    and include new files to the project.
+
+1. Copy the `wp8/template/config.xml`to the project's root directory and 
+
+Instructions above will link core Cordova components only, 
+see Using Plugman to Manage Plugins in order to link Cordova plugins.
\ No newline at end of file


Mime
View raw message