Skip to content

Commit c69ff5c

Browse files
committed
Updating BackboneTodo sample for RTM
1 parent e362d05 commit c69ff5c

File tree

12 files changed

+117
-45
lines changed

12 files changed

+117
-45
lines changed

todo-backbonejs/BackboneTodo/BackboneToDo.jsproj

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.Default.props" Condition="Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.Default.props')" />
44
<ItemGroup Label="ProjectConfigurations">
55
<ProjectConfiguration Include="Debug|Android">
@@ -67,41 +67,27 @@
6767
<Platform>Windows Phone (Universal)</Platform>
6868
</ProjectConfiguration>
6969
</ItemGroup>
70-
<ItemGroup>
71-
<Service Include="{4a0dddb5-7a95-4fbf-97cc-616d07737a77}" />
72-
</ItemGroup>
7370
<PropertyGroup Label="Globals">
7471
<ProjectGuid>9705b719-5ac1-4647-bf04-5e4f7b68b037</ProjectGuid>
7572
</PropertyGroup>
76-
<PropertyGroup>
77-
<DefaultReferenceGroup>Implicit (Multi-Device Apps)</DefaultReferenceGroup>
78-
</PropertyGroup>
7973
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
80-
<PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '12.0'">
81-
<VisualStudioVersion>12.0</VisualStudioVersion>
74+
<PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0'">
75+
<VisualStudioVersion>14.0</VisualStudioVersion>
8276
</PropertyGroup>
8377
<PropertyGroup>
84-
<TypeScriptToolsVersion>1.4</TypeScriptToolsVersion>
85-
<DefaultReferenceGroup>Implicit (Multi-Device Apps)</DefaultReferenceGroup>
86-
</PropertyGroup>
87-
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
88-
<TypeScriptCompileOnSaveEnabled>false</TypeScriptCompileOnSaveEnabled>
89-
<TypeScriptRemoveComments>false</TypeScriptRemoveComments>
90-
<TypeScriptSourceMap>true</TypeScriptSourceMap>
78+
<TypeScriptToolsVersion>1.5</TypeScriptToolsVersion>
9179
</PropertyGroup>
92-
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
80+
<PropertyGroup>
9381
<TypeScriptCompileOnSaveEnabled>false</TypeScriptCompileOnSaveEnabled>
94-
<TypeScriptRemoveComments>true</TypeScriptRemoveComments>
95-
<TypeScriptSourceMap>false</TypeScriptSourceMap>
9682
</PropertyGroup>
9783
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\ApacheCordovaTools\vs-mda-targets\Microsoft.TypeScript.MDA.targets" />
84+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets" />
9885
<PropertyGroup>
9986
<ProjectUISubcaption>Tools for Apache Cordova</ProjectUISubcaption>
10087
</PropertyGroup>
10188
<PropertyGroup>
10289
<TargetPlatformIdentifier>MDD</TargetPlatformIdentifier>
10390
</PropertyGroup>
104-
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets" />
10591
<Target Name="EnsureBuildPrerequisites">
10692
<!-- These errors will trigger if building from inside Visual Studio and requirements could not be determined -->
10793
<Error Condition="$(MDAPropertiesEvaluated) == 'true' And $(NodeJsDir) == ''" Text="Path to NodeJs could not be determined. Please check that NodeJs has been installed." />
@@ -111,13 +97,13 @@
11197
<Error Condition="$(MDAPropertiesEvaluated) == '' And $(MDAVsixDir) == ''" Text="Path to Visual Studio Extension for Tools for Apache Cordova has not been specified. Please install it and set the MDAVsixDir environment variable before building." />
11298
<!-- Sanity check that things exist in the specified places. These are more likely to fail if building outside Visual Studio and the required environment variables have not been set, or set incorrectly. -->
11399
<Error Condition="!Exists('$(NodeJsDir)') Or !Exists('$(NodeJsDir)\node.exe')" Text="The specified NodeJs directory $(NodeJsDir) either does not exist, or does not contain node.exe. Please check that NodeJs has been installed, and set the NodeJsDir variable to the correct directory." />
114-
<Error Condition="!Exists('$(MDAVsixDir)') Or !Exists('$(MDAVsixDir)\packages\vs-mda')" Text="The specified directory to the Visual Studio extension $(MDAVsixDir)\node.exe either does not exist, or does not contain a packages\vs-mda sub-directory. Please check that the extension directory exists and set the MDAVsixDir variable to the correct directory." />
100+
<Error Condition="!Exists('$(MDAVsixDir)') Or !Exists('$(MDAVsixDir)\packages\vs-tac')" Text="The specified directory to the Visual Studio extension $(MDAVsixDir)\node.exe either does not exist, or does not contain a packages\vs-tac sub-directory. Please check that the extension directory exists and set the MDAVsixDir variable to the correct directory." />
115101
<!-- Installs (if necessary) the supporting Nodejs module -->
116-
<Exec Command="&quot;$(MDAVsixDir)&quot;\packages\vs-mda\install &quot;$(NodeJsDir)&quot; &quot;$(MDAVsixDir)&quot;\packages\vs-mda" />
102+
<Exec Command="&quot;$(MDAVsixDir)&quot;\packages\vs-tac\install &quot;$(NodeJsDir)&quot; &quot;$(MDAVsixDir)&quot;\packages\vs-tac" />
117103
</Target>
118104
<ProjectExtensions>
119105
<VisualStudio>
120-
<UserProperties project_1json__JSONSchema="http://www.asp.net/media/4878834/project.json" />
106+
<UserProperties />
121107
</VisualStudio>
122108
</ProjectExtensions>
123109
<Import Project="_apacheCordovaProjectSourceItems.Targets" Condition="Exists('_apacheCordovaProjectSourceItems.Targets')" />
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "BackboneToDo",
3+
"dependencies": {
4+
}
5+
}
Lines changed: 94 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,94 @@
1-
<?xml version='1.0' encoding='utf-8'?>
2-
<widget xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:vs="http://schemas.microsoft.com/appx/2014/htmlapps" id="com.microsoft.mdha.samples.backbonetodo" version="1.0.0.0" xmlns="http://www.w3.org/ns/widgets">
3-
<name>BackboneToDo</name>
4-
<description>
5-
A blank project that uses Apache Cordova to help you build an app that targets multiple mobile platforms: Android, iOS, Windows, and Windows Phone.
6-
</description>
7-
<author href="http://go.microsoft.com/fwlink/?LinkID=398477" email="[email protected]">
8-
Visual Studio Tools for Apache Cordova Team
9-
</author>
10-
<content src="index.html" />
11-
<access origin="*" />
12-
<preference name="SplashScreen" value="screen" />
13-
<preference name="BackgroundColor" value="#EDECEC" />
14-
<vs:features>
15-
<vs:feature>[email protected]</vs:feature>
16-
<vs:feature>[email protected]</vs:feature>
17-
</vs:features>
18-
<vs:platformSpecificValues>
19-
<vs:platformSpecificWidget platformName="windows8" />
20-
</vs:platformSpecificValues>
21-
</widget>
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<widget xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:vs="http://schemas.microsoft.com/appx/2014/htmlapps" id="io.cordova.myapp123ad8" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" defaultlocale="en-US">
3+
<name>BackboneToDo</name>
4+
<description>A blank project that uses Apache Cordova to help you build an app that targets multiple mobile platforms: Android, iOS, Windows, and Windows Phone.</description>
5+
<author href="http://cordova.io" email="[email protected]">Apache Cordova Team </author>
6+
<content src="index.html" />
7+
<access origin="*" />
8+
<vs:features />
9+
<preference name="SplashScreen" value="screen" />
10+
<preference name="windows-target-version" value="8.1" />
11+
<platform name="android">
12+
<icon src="res/icons/android/icon-36-ldpi.png" density="ldpi" />
13+
<icon src="res/icons/android/icon-48-mdpi.png" density="mdpi" />
14+
<icon src="res/icons/android/icon-72-hdpi.png" density="hdpi" />
15+
<icon src="res/icons/android/icon-96-xhdpi.png" density="xhdpi" />
16+
</platform>
17+
<platform name="ios">
18+
<!-- iOS 8.0+ -->
19+
<!-- iPhone 6 Plus -->
20+
<icon src="res/icons/ios/icon-60-3x.png" width="180" height="180" />
21+
<!-- iOS 7.0+ -->
22+
<!-- iPhone / iPod Touch -->
23+
<icon src="res/icons/ios/icon-60.png" width="60" height="60" />
24+
<icon src="res/icons/ios/icon-60-2x.png" width="120" height="120" />
25+
<!-- iPad -->
26+
<icon src="res/icons/ios/icon-76.png" width="76" height="76" />
27+
<icon src="res/icons/ios/icon-76-2x.png" width="152" height="152" />
28+
<!-- iOS 6.1 -->
29+
<!-- Spotlight Icon -->
30+
<icon src="res/icons/ios/icon-40.png" width="40" height="40" />
31+
<icon src="res/icons/ios/icon-40-2x.png" width="80" height="80" />
32+
<!-- iPhone / iPod Touch -->
33+
<icon src="res/icons/ios/icon-57.png" width="57" height="57" />
34+
<icon src="res/icons/ios/icon-57-2x.png" width="114" height="114" />
35+
<!-- iPad -->
36+
<icon src="res/icons/ios/icon-72.png" width="72" height="72" />
37+
<icon src="res/icons/ios/icon-72-2x.png" width="144" height="144" />
38+
<!-- iPhone Spotlight and Settings Icon -->
39+
<icon src="res/icons/ios/icon-small.png" width="29" height="29" />
40+
<icon src="res/icons/ios/icon-small-2x.png" width="58" height="58" />
41+
<!-- iPad Spotlight and Settings Icon -->
42+
<icon src="res/icons/ios/icon-50.png" width="50" height="50" />
43+
<icon src="res/icons/ios/icon-50-2x.png" width="100" height="100" />
44+
</platform>
45+
<platform name="windows">
46+
<icon src="res/icons/windows/Square150x150Logo.scale-100.png" width="150" height="150" />
47+
<icon src="res/icons/windows/Square150x150Logo.scale-240.png" width="360" height="360" />
48+
<icon src="res/icons/windows/Square30x30Logo.scale-100.png" width="30" height="30" />
49+
<icon src="res/icons/windows/Square310x310Logo.scale-100.png" width="310" height="310" />
50+
<icon src="res/icons/windows/Square44x44Logo.scale-240.png" width="106" height="106" />
51+
<icon src="res/icons/windows/Square70x70Logo.scale-100.png" width="70" height="70" />
52+
<icon src="res/icons/windows/Square71x71Logo.scale-240.png" width="170" height="170" />
53+
<icon src="res/icons/windows/StoreLogo.scale-100.png" width="50" height="50" />
54+
<icon src="res/icons/windows/StoreLogo.scale-240.png" width="120" height="120" />
55+
<icon src="res/icons/windows/Wide310x150Logo.scale-100.png" width="310" height="150" />
56+
<icon src="res/icons/windows/Wide310x150Logo.scale-240.png" width="744" height="360" />
57+
</platform>
58+
<platform name="wp8">
59+
<icon src="res/icons/wp8/ApplicationIcon.png" width="62" height="62" />
60+
<icon src="res/icons/wp8/Background.png" width="173" height="173" />
61+
</platform>
62+
<platform name="android">
63+
<splash src="res/screens/android/screen-hdpi-landscape.png" density="land-hdpi" />
64+
<splash src="res/screens/android/screen-ldpi-landscape.png" density="land-ldpi" />
65+
<splash src="res/screens/android/screen-mdpi-landscape.png" density="land-mdpi" />
66+
<splash src="res/screens/android/screen-xhdpi-landscape.png" density="land-xhdpi" />
67+
<splash src="res/screens/android/screen-hdpi-portrait.png" density="port-hdpi" />
68+
<splash src="res/screens/android/screen-ldpi-portrait.png" density="port-ldpi" />
69+
<splash src="res/screens/android/screen-mdpi-portrait.png" density="port-mdpi" />
70+
<splash src="res/screens/android/screen-xhdpi-portrait.png" density="port-xhdpi" />
71+
</platform>
72+
<platform name="ios">
73+
<splash src="res/screens/ios/screen-iphone-portrait.png" width="320" height="480" />
74+
<splash src="res/screens/ios/screen-iphone-portrait-2x.png" width="640" height="960" />
75+
<splash src="res/screens/ios/screen-ipad-portrait.png" width="768" height="1024" />
76+
<splash src="res/screens/ios/screen-ipad-portrait-2x.png" width="1536" height="2048" />
77+
<splash src="res/screens/ios/screen-ipad-landscape.png" width="1024" height="768" />
78+
<splash src="res/screens/ios/screen-ipad-landscape-2x.png" width="2048" height="1536" />
79+
<splash src="res/screens/ios/screen-iphone-568h-2x.png" width="640" height="1136" />
80+
<splash src="res/screens/ios/screen-iphone-portrait-667h.png" width="750" height="1334" />
81+
<splash src="res/screens/ios/screen-iphone-portrait-736h.png" width="1242" height="2208" />
82+
<splash src="res/screens/ios/screen-iphone-landscape-736h.png" width="2208" height="1242" />
83+
</platform>
84+
<platform name="windows">
85+
<splash src="res/screens/windows/SplashScreen.scale-100.png" width="620" height="300" />
86+
<splash src="res/screens/windows/SplashScreen.scale-240.png" width="1152" height="1920" />
87+
<splash src="res/screens/windows/SplashScreenPhone.scale-240.png" width="1152" height="1920" />
88+
</platform>
89+
<platform name="wp8">
90+
<splash src="res/screens/wp8/SplashScreenImage.jpg" width="480" height="800" />
91+
</platform>
92+
<vs:plugin name="com.microsoft.azure-mobile-services" version="1.2.8" />
93+
<vs:plugin name="org.apache.cordova.geolocation" version="0.3.12" />
94+
</widget>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"name": "BackboneToDo",
3+
"version": "1.0.0",
4+
"dependencies": {
5+
}
6+
}
Loading
Loading
Loading
Loading
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"cordova-cli": "4.2.0"
2+
"cordova-cli": "5.1.1"
33
}

todo-backbonejs/BackboneTodo/www/scripts/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ $(function () {
1111
// Handle the Cordova pause and resume events
1212
document.addEventListener('pause', onPause.bind(this), false);
1313
document.addEventListener('resume', onResume.bind(this), false);
14+
1415
// Initialize storage and the app's base view.
1516
app.initializeStorage();
1617
new app.BaseView();
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// Platform specific overrides will be placed in the merges folder versions of this file

0 commit comments

Comments
 (0)