Skip to content

Instantly share code, notes, and snippets.

@dpolivy
dpolivy / cordova_icon_splash.js
Created February 25, 2016 00:13
Cordova hook to manually copy the resolution-specific splash screens and icons for a wp8 project to the target directory
var fs = require ('fs');
module.exports = function(context) {
var events = context.requireCordovaModule('cordova-common').events;
// Define the assets to copy
var platformDir = {
wp8: {
icon: "",
splash: "",
@dpolivy
dpolivy / App.xaml.cs
Created July 1, 2015 00:19
Adding Custom URL support to a Cordova WP8 App
private void InitializePhoneApplication()
{
if (phoneApplicationInitialized)
return;
// Create the frame but don't set it as RootVisual yet; this allows the splash
// screen to remain active until the application is ready to render.
RootFrame = new PhoneApplicationFrame();
RootFrame.Navigated += CompleteInitializePhoneApplication;
@dpolivy
dpolivy / MainActivity.java
Created June 26, 2015 01:09
CB-9060 repro example code
/*
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