cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [2/51] [abbrv] git commit: more cleanup
Date Thu, 01 Nov 2012 10:53:29 GMT
more cleanup


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/commit/9236bfb5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/tree/9236bfb5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/diff/9236bfb5

Branch: refs/heads/master
Commit: 9236bfb5bfe306f55f2c57ca6196523f4b8b901c
Parents: ae5ef07
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Thu Nov 1 03:26:32 2012 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Thu Nov 1 03:26:32 2012 -0700

----------------------------------------------------------------------
 windows8/QuickBuildReadme.txt                      |   28 -
 windows8/README.md                                 |  108 +-
 windows8/src/cordova-win8/cordova-win8.jsproj      |  118 -
 .../src/cordova-win8/cordova-win8_TemporaryKey.pfx |  Bin 2512 -> 0 bytes
 windows8/src/cordova-win8/js/cordova.windows8.js   | 7300 ---------------
 windows8/src/cordova-win8/package.appxmanifest     |   75 -
 windows8/src/cordova-win8/test/cordova.js          |   13 -
 windows8/src/cordova-win8/test/css/default.css     |   15 -
 windows8/src/cordova-win8/test/default.html        |  114 -
 windows8/src/cordova-win8/test/images/logo.png     |  Bin 801 -> 0 bytes
 .../src/cordova-win8/test/images/smalllogo.png     |  Bin 329 -> 0 bytes
 .../src/cordova-win8/test/images/splashscreen.png  |  Bin 2146 -> 0 bytes
 .../src/cordova-win8/test/images/storelogo.png     |  Bin 429 -> 0 bytes
 windows8/src/cordova-win8/test/jasmine.css         |   81 -
 windows8/src/cordova-win8/test/jasmine.js          | 2530 -----
 .../src/cordova-win8/test/pages/accelerometer.html |   48 -
 windows8/src/cordova-win8/test/pages/all.html      |   83 -
 windows8/src/cordova-win8/test/pages/battery.html  |   44 -
 windows8/src/cordova-win8/test/pages/camera.html   |   49 -
 windows8/src/cordova-win8/test/pages/capture.html  |   49 -
 windows8/src/cordova-win8/test/pages/compass.html  |   49 -
 windows8/src/cordova-win8/test/pages/contacts.html |   49 -
 windows8/src/cordova-win8/test/pages/device.html   |   49 -
 windows8/src/cordova-win8/test/pages/file.html     |   86 -
 .../src/cordova-win8/test/pages/filetransfer.html  |   68 -
 .../src/cordova-win8/test/pages/geolocation.html   |   49 -
 windows8/src/cordova-win8/test/pages/media.html    |   49 -
 windows8/src/cordova-win8/test/pages/network.html  |   49 -
 .../src/cordova-win8/test/pages/notification.html  |   49 -
 windows8/src/cordova-win8/test/pages/platform.html |   49 -
 windows8/src/cordova-win8/test/pages/storage.html  |   49 -
 windows8/src/cordova-win8/test/test-runner.js      |    9 -
 .../cordova-win8/test/tests/accelerometer.tests.js |   58 -
 .../src/cordova-win8/test/tests/battery.tests.js   |    5 -
 .../src/cordova-win8/test/tests/camera.tests.js    |  192 -
 .../src/cordova-win8/test/tests/capture.tests.js   |  262 -
 .../src/cordova-win8/test/tests/compass.tests.js   |   76 -
 .../src/cordova-win8/test/tests/contacts.tests.js  |  451 -
 .../src/cordova-win8/test/tests/device.tests.js    |   34 -
 windows8/src/cordova-win8/test/tests/file.tests.js | 3481 -------
 .../cordova-win8/test/tests/filetransfer.tests.js  |   72 -
 .../cordova-win8/test/tests/geolocation.tests.js   |  125 -
 .../src/cordova-win8/test/tests/media.tests.js     |  146 -
 .../src/cordova-win8/test/tests/network.tests.js   |   25 -
 .../cordova-win8/test/tests/notification.tests.js  |   20 -
 .../src/cordova-win8/test/tests/platform.tests.js  |   35 -
 .../src/cordova-win8/test/tests/storage.tests.js   |  405 -
 windows8/src/cordova-win8/test/uploadTestServer.js |  143 -
 .../src/cordova-win8/test/views/HtmlReporter.js    |  101 -
 .../cordova-win8/test/views/HtmlReporterHelpers.js |   60 -
 .../src/cordova-win8/test/views/ReporterView.js    |  164 -
 windows8/src/cordova-win8/test/views/SpecView.js   |   79 -
 windows8/src/cordova-win8/test/views/SuiteView.js  |   22 -
 .../src/cordova-win8/test/views/TrivialReporter.js |  192 -
 windows8/src/src.sln                               |   62 -
 55 files changed, 103 insertions(+), 17366 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9236bfb5/windows8/QuickBuildReadme.txt
----------------------------------------------------------------------
diff --git a/windows8/QuickBuildReadme.txt b/windows8/QuickBuildReadme.txt
deleted file mode 100644
index ed2079e..0000000
--- a/windows8/QuickBuildReadme.txt
+++ /dev/null
@@ -1,28 +0,0 @@
-Explanation
-	The tools in this repository will generate a cordova.js file from the .js files in "src\cordova-win8\js".
This file will then be put in a folder (framework), which will be zipped to be used as a template
for Visual Studio. Instead of creating a template, you can create your own Visual Studio project
from a normal template and use the cordova API from these instructions.
-
-Instructions
-1.	Follow the instructions listed in README.md up to creating the Cordova-Metro.zip file
(which should be listed for after 'For Metro App develop'. This process should create cordova.js
in framework/Cordova-Metro/js.
-2.	Create a javascript/html Windows 8 (formerly Metro Style) app or use an existing one from
Visual Studio 2012.
-3.	Add a copy of cordova.js created in step 1 to the project.
-4.	Add the contents of the lib folder in framework/ to the lib folder in the project from
step 2. If there is no lib folder, create one.
-5.	Then press `Add` -> `Existing project...` select the `SQLite3.vcxproj` in the `lib\SQLite\SQLite3`.
-6.	Select the project from step 2 in the Solution Explorer, then `Project` -> `Add Reference...`
-> select the SQLite3.
-7.	On each html page in the project that needs the cordova scripts, add these lines to those
files:
-
-	<script src="lib/Jscex/src/jscex.js"></script>
-	<script src="lib/Jscex/src/jscex-builderbase.js"></script>
-	<script src="lib/Jscex/src/jscex-parser.js"></script>
-	<script src="lib/Jscex/src/jscex-async.js"></script>
-	<script src="lib/Jscex/src/jscex-jit.js"></script>
-	<script src="lib/Jscex/src/jscex-promise.js"></script>
-
-	<script src="/js/cordova.js"></script>
-7.	Confirm that these links correctly reference the files. If not, update the location pointed
to by source accordingly.
-8.	Build and run.
-
-References
-	Cordova API
-		http://docs.phonegap.com/en/2.0.0/index.html
-
-Any questions or issues, please email matthew.p.berk@intel.com
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9236bfb5/windows8/README.md
----------------------------------------------------------------------
diff --git a/windows8/README.md b/windows8/README.md
index df4d33a..3b039f9 100644
--- a/windows8/README.md
+++ b/windows8/README.md
@@ -1,9 +1,107 @@
-# Apache Cordova for Windows 8 Metro
-===
-- The project supports Cordova on Win8, and uses WinLib4JS for most implementation (others
with SQLite3, Jscex and so on).
-- [The wiki about Cordova-Win8: Impl and not Impl.](https://github.com/01org/cordova-win8/wiki)

+---
+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.
+---
+
+Getting Started with Windows 8
+==================================
+
+This guide describes how to set up your development environment for Cordova and run a sample
application.  Note that Cordova used to be called PhoneGap, so some of the sites still use
the old PhoneGap name.
+
+During development of Windows 8 and Windows RT, Microsoft deprecated the name "Metro-style
apps". On MSDN, this type of app is now called a "Windows Store" app. That's the name that
we'll use in this guide. Also in this guide whenever we refer to Windows 8, you should take
that to mean both Windows 8 and Windows RT.
+
+1. Requirements
+---------------
+
+- Windows 8
+
+- Visual Studio 2012 Professional or better, or Visual Studio 2012 Express for Windows 8
+
+Follow the instructions [here](http://www.windowsstore.com/) to submit your apps Windows
Store.
+
+2. Install SDK + Cordova
+----------------------------
+
+- Setup your preferred variant of Visual Studio 2012. All of the paid versions of the product
(Professional, etc) let you build Windows Store apps. To build Windows Store apps using the
[Express editions](http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-products),
you will need **Express for Windows 8**.
+- Download the latest copy of [Cordova](http://phonegap.com/download) and extract its contents.
We will be working with the subfolder **lib\windows-8**.
+
+3. Setup New Project
+--------------------
+
+You can already build Windows 8 apps using the "HTML/JavaScript track" available in Windows
Store apps. The purpose of Cordova in Windows Store apps is to expose the same APIs used on
all the other Cordova platforms.
+
+- Open Visual Studio 2012 and choose **New Project**.
+- Select **Installed - Template - Other Languages - JavaScript - Windows Store** from the
tree, and then **Blank App** from the projects list. Enter whatever project name you like.
We're using **CordovaWin8Foo** in this guide.
+
+    ![](img/guide/getting-started/windows-8/wsnewproject.PNG)
+
+- Microsoft continues to use **default.html** as the default page for use in websites, whereas
most "open web" developers use **index.html**. (Plus it's likely that in the other platform
variants of your project you are using **index.html** as the name of your default page.) To
fix this, in Solution Explorer rename the **default.html** file to **index.html**. Then double-click
the **package.appxmanifest** file and change the **Start page** value to **index.html**. 
+
+	![](img/guide/getting-started/windows-8/wschangemanifest.PNG)
+
+- To include **cordova.js** in your project, right-click on the **js** folder in Solution
Explorer and select **Add - New Item**. Locate the **corvoda.js** file in the **lib\windows-8**
folder that we called out previously. 
+
+- Edit the code for **index.html**. Add a reference to **cordova.js**. You can do this manually,
or by dragging the file from Solution Explorer.
+
+### Adding the reference...
+	    <!-- WinJS references -->
+	    <link href="//Microsoft.WinJS.1.0/css/ui-dark.css" rel="stylesheet" />
+	    <script src="//Microsoft.WinJS.1.0/js/base.js"></script>
+	    <script src="//Microsoft.WinJS.1.0/js/ui.js"></script>
+
+	    <!-- Cordova -->
+	    <script src="/js/cordova.js"></script>
+
+	    <!-- CordovaWin8Foo references -->
+	    <link href="/css/default.css" rel="stylesheet" />
+	    <script src="/js/default.js"></script>
+
+- Next we want to add some code that will demonstrate that Cordova is working. 
+
+### Adding a 'deviceready' handler...
+	<body>
+	    <p>Content goes here</p>
+
+	    <script type="text/javascript">
+
+	        console.log("Subscribing...");
+	        document.addEventListener("deviceready", function () {
+
+	            navigator.notification.alert("The device is ready!");
+
+	        });
+
+	    </script>
+
+	</body>
+
+
+5. Test the Project
+-------------------------------
+
+- Run the project from Visual Studio. You'll see the message box appear.
+
+	![](img/guide/getting-started/windows-8/wsalert.PNG)
+
+Done!
+-----
+
+That's it! You're now ready to build Windows Store apps with Cordova.
 
-## Getting Started
 
  
 ### For Cordova API developer 

http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9236bfb5/windows8/src/cordova-win8/cordova-win8.jsproj
----------------------------------------------------------------------
diff --git a/windows8/src/cordova-win8/cordova-win8.jsproj b/windows8/src/cordova-win8/cordova-win8.jsproj
deleted file mode 100755
index 7bb8a4f..0000000
--- a/windows8/src/cordova-win8/cordova-win8.jsproj
+++ /dev/null
@@ -1,118 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup Label="ProjectConfigurations">
-    <ProjectConfiguration Include="Debug|AnyCPU">
-      <Configuration>Debug</Configuration>
-      <Platform>AnyCPU</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Debug|ARM">
-      <Configuration>Debug</Configuration>
-      <Platform>ARM</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Debug|x64">
-      <Configuration>Debug</Configuration>
-      <Platform>x64</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Debug|x86">
-      <Configuration>Debug</Configuration>
-      <Platform>x86</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|AnyCPU">
-      <Configuration>Release</Configuration>
-      <Platform>AnyCPU</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|ARM">
-      <Configuration>Release</Configuration>
-      <Platform>ARM</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|x64">
-      <Configuration>Release</Configuration>
-      <Platform>x64</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|x86">
-      <Configuration>Release</Configuration>
-      <Platform>x86</Platform>
-    </ProjectConfiguration>
-  </ItemGroup>
-  <PropertyGroup Label="Globals">
-    <ProjectGuid>ac81dc10-b726-47b1-8521-ebfdda2ca496</ProjectGuid>
-  </PropertyGroup>
-  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props"
Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')"
/>
-  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).Default.props"
/>
-  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).props"
/>
-  <PropertyGroup>
-    <TargetPlatformIdentifier>Windows</TargetPlatformIdentifier>
-    <TargetPlatformVersion>8.0</TargetPlatformVersion>
-    <DefaultLanguage>en-US</DefaultLanguage>
-    <PackageCertificateKeyFile>cordova-win8_TemporaryKey.pfx</PackageCertificateKeyFile>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
-    <OutputPath>bin\$(Platform)\$(Configuration)</OutputPath>
-  </PropertyGroup>
-  <ItemGroup>
-    <AppxManifest Include="package.appxmanifest">
-      <SubType>Designer</SubType>
-    </AppxManifest>
-    <Content Include="js\cordova.windows8.js" />
-    <Content Include="test\cordova.js" />
-    <Content Include="test\css\default.css" />
-    <Content Include="test\default.html" />
-    <Content Include="test\views\HtmlReporter.js" />
-    <Content Include="test\views\HtmlReporterHelpers.js" />
-    <Content Include="test\views\ReporterView.js" />
-    <Content Include="test\views\SpecView.js" />
-    <Content Include="test\views\SuiteView.js" />
-    <Content Include="test\views\TrivialReporter.js" />
-    <Content Include="test\images\logo.png" />
-    <Content Include="test\images\smalllogo.png" />
-    <Content Include="test\images\splashscreen.png" />
-    <Content Include="test\images\storelogo.png" />
-    <Content Include="test\jasmine.css" />
-    <Content Include="test\jasmine.js" />
-    <Content Include="test\pages\accelerometer.html" />
-    <Content Include="test\pages\all.html" />
-    <Content Include="test\pages\battery.html" />
-    <Content Include="test\pages\camera.html" />
-    <Content Include="test\pages\capture.html" />
-    <Content Include="test\pages\compass.html" />
-    <Content Include="test\pages\contacts.html" />
-    <Content Include="test\pages\device.html" />
-    <Content Include="test\pages\file.html" />
-    <Content Include="test\pages\filetransfer.html" />
-    <Content Include="test\pages\geolocation.html" />
-    <Content Include="test\pages\media.html" />
-    <Content Include="test\pages\network.html" />
-    <Content Include="test\pages\notification.html" />
-    <Content Include="test\pages\platform.html" />
-    <Content Include="test\pages\storage.html" />
-    <Content Include="test\test-runner.js" />
-    <Content Include="test\tests\accelerometer.tests.js" />
-    <Content Include="test\tests\battery.tests.js" />
-    <Content Include="test\tests\camera.tests.js" />
-    <Content Include="test\tests\capture.tests.js" />
-    <Content Include="test\tests\compass.tests.js" />
-    <Content Include="test\tests\contacts.tests.js" />
-    <Content Include="test\tests\device.tests.js" />
-    <Content Include="test\tests\file.tests.js" />
-    <Content Include="test\tests\filetransfer.tests.js" />
-    <Content Include="test\tests\geolocation.tests.js" />
-    <Content Include="test\tests\media.tests.js" />
-    <Content Include="test\tests\network.tests.js" />
-    <Content Include="test\tests\notification.tests.js" />
-    <Content Include="test\tests\platform.tests.js" />
-    <Content Include="test\tests\storage.tests.js" />
-    <Content Include="test\uploadTestServer.js" />
-    <None Include="cordova-win8_TemporaryKey.pfx" />
-  </ItemGroup>
-  <ItemGroup>
-    <SDKReference Include="Microsoft.WinJS.1.0.RC, Version=1.0" />
-  </ItemGroup>
-  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).targets"
/>
-  <!-- To modify your build process, add your task inside one of the targets below and
uncomment it. 
-       Other similar extension points exist, see Microsoft.Common.targets.
-  <Target Name="BeforeBuild">
-  </Target>
-  <Target Name="AfterBuild">
-  </Target>
-  -->
-</Project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9236bfb5/windows8/src/cordova-win8/cordova-win8_TemporaryKey.pfx
----------------------------------------------------------------------
diff --git a/windows8/src/cordova-win8/cordova-win8_TemporaryKey.pfx b/windows8/src/cordova-win8/cordova-win8_TemporaryKey.pfx
deleted file mode 100755
index 37cb134..0000000
Binary files a/windows8/src/cordova-win8/cordova-win8_TemporaryKey.pfx and /dev/null differ


Mime
View raw message