Skip to content

Instantly share code, notes, and snippets.

View mirko77's full-sized avatar

ParanoidAndroid mirko77

View GitHub Profile
@pholas
pholas / .gitignore
Created November 7, 2016 08:42
.gitignore for Xcode 8 and Swift 3
## OS X files
.DS_Store
.DS_Store?
.Trashes
.Spotlight-V100
*.swp
## Xcode build files
DerivedData/
build/
@EddyVerbruggen
EddyVerbruggen / cordova-ios-3.7.0-handleopenurl-fix
Last active August 29, 2015 14:10
Cordova iOS 3.7.0 handleOpenURL coldstart fix
// I'm not saying this is the best solution, it's just a temp fix which works in my case to solve
// the issue where a passed in url is not propagated to the handleOpenURL js function upon
// coldstart on iOS Cordova 3.7.0.
// Stay tuned on this issue for a better fix: https://issues.apache.org/jira/browse/CB-7606
// replace processOpenUrl in CDVViewController.m by this:
- (void)processOpenUrl:(NSURL*)url pageLoaded:(BOOL)pageLoaded
{
NSString* readyState = [webView stringByEvaluatingJavaScriptFromString:@"document.readyState"];
@ezodude
ezodude / 001_adjust_ios_deploy_target.js
Last active August 29, 2015 14:01
This is a Cordova CLI hook that resets an iOS deployment target in platform generated project file.
#!/usr/bin/env node
var IOS_DEPLOYMENT_TARGET = '7.0';
var fs = require("fs"),
path = require("path"),
shell = require("shelljs"),
xcode = require('xcode'),
projectRoot = process.argv[2];
@jgoux
jgoux / app.js
Created April 15, 2014 14:53
Ionic / AngularJS service wrapper for Web SQL API / SQLite-Cordova-Plugin
angular.module('myApp', ['ionic', 'myApp.services', 'myApp.controllers'])
.run(function(DB) {
DB.init();
});
@rjmunro
rjmunro / .gitignore
Created June 21, 2013 13:54
gitignore for cordova cli projects
# Android
platforms/android/assets/www
platforms/android/bin/
platforms/android/gen/
platforms/android/res/xml/config.xml
# iOS
platforms/ios/build/
platforms/ios/CordovaLib/build/
platforms/ios/www
@RandyMcMillan
RandyMcMillan / PhoneGap.gitignore
Created April 17, 2012 18:30
PhoneGap.gitignore
# ANDROID / ECLIPSE
# built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files