DDD EA – Lightning talk 2 – universal store apps
This is a talk on universal store apps by iris classon @irisclasson
Universal store applications came out at build 2014 but it wasn’t new – just made easier
Universal store applications means it works on windows 8.1 and on windows phone 8.1. We can share code, assets and resources meaning less code duplication. The only difference is the user experience
It also means that if a user purchases your app for windows, it also will work on their phone with synced data. Xamarind also allows you to make your app work on iphone and android devices too, if you use decoupled code.
Lots of different languages are possible to use with universal store apps.
You need windows 8.1, visual studio and developer license (which is free). You can run windows 8.1 in a virtual machine.
You can define shared controls in the “shared projects” which allows small pieces of functionality to be shared between projects. The code is clever enough to adapt to determine which control to load for mobile or desktop.
A resources dictionary is like a CSS file and contains all the styles necessary for the apps.
When you share code between platform with this technique you have many options – investigate PCL (portable class libraries), conditional compilation and bait and switch.
Intellisense in visual studio is also clever enough to determine which pieces of your code will run depending on which platform you are building for.
When creating a universal store app, you get 3 projects: windows, windows phone and shared
You need to add dll references of third party libraries to both projects.
Each project has it’s own manifest file which needs certain properties setting in each one before releasing the app
There are many options for side loading apps on windows.