Install the two dependencies, ImageMagick and Ghostscript.
$ brew install imagemagick
$ brew install ghostscript| #!/usr/bin/env node | |
| /** This hook updates platform configuration files based on preferences and config-file data defined in config.xml. | |
| Currently only the AndroidManifest.xml and IOS *-Info.plist file are supported. | |
| See http://stackoverflow.com/questions/28198983/ionic-cordova-add-intent-filter-using-config-xml | |
| Preferences: | |
| 1. Preferences defined outside of the platform element will apply to all platforms | |
| 2. Preferences defined inside a platform element will apply only to the specified platform |
| #!/usr/bin/env node | |
| //this hook installs all your plugins | |
| var pluginlist = [ | |
| "org.apache.cordova.device", | |
| "org.apache.cordova.console" | |
| ]; | |
| var fs = require('fs'); |
| # | |
| # Set the build number to the current git commit count. | |
| # If we're using the Dev scheme, then we'll suffix the build | |
| # number with the current branch name, to make collisions | |
| # far less likely across feature branches. | |
| # Based on: http://w3facility.info/question/how-do-i-force-xcode-to-rebuild-the-info-plist-file-in-my-project-every-time-i-build-the-project/ | |
| # | |
| git=`sh /etc/profile; which git` | |
| appBuild=`"$git" rev-list --all |wc -l` | |
| if [ $CONFIGURATION = "Debug" ]; then |
| #!/usr/bin/env node | |
| // Based on the 'replace text' hook found here: http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/ | |
| // This hook should be placed in the 'after_prepare' hook folder. | |
| // The hook relies on a JSON file located at '<project_root>/resources/.build.json' to track the build number. | |
| // build.json content: | |
| // {"build: 1} | |
| // Add 'BUILDNR' to the version number in the '<project_root>/config.xml' file. |
| angular.module('myApp.factories', []) | |
| .factory('$fakeStorage', [ | |
| function(){ | |
| function FakeStorage() {}; | |
| FakeStorage.prototype.setItem = function (key, value) { | |
| this[key] = value; | |
| }; | |
| FakeStorage.prototype.getItem = function (key) { | |
| return typeof this[key] == 'undefined' ? null : this[key]; | |
| } |
iOS 7.0 and iOS 8 (Beta) do not have support for minimal-ui viewport keyword, nor do they response to window.slideTo(0,1) or support Fullscreen API, which means there is no easy way to tell Mobile Safari to hide address bar/menu without user interaction.
This is a problem for Web App that mimics Native App design, where html/body are commonly set to height: 100%, so browser viewport = available screen estate. There are currently no solution besides adding apple-mobile-web-app-capable meta and ask users to manually Save to Homescreen.
Frustrated by this limit, we present a soft-fullscreen prompt design, which, coupled with proper CSS hack, can achieve soft-fullscreen with relatively small effort from users.
| #!/bin/bash | |
| # update_build_number.sh | |
| # Usage: `update_build_number.sh [branch]` | |
| # Run this script after the 'Copy Bundle Resources' build phase | |
| # Ref: http://tgoode.com/2014/06/05/sensible-way-increment-bundle-version-cfbundleversion-xcode/ | |
| branch=${1:-'master'} | |
| buildNumber=$(expr $(git rev-list $branch --count) - $(git rev-list HEAD..$branch --count)) | |
| echo "Updating build number to $buildNumber using branch '$branch'." |
| /* | |
| * Select2 v3.4.6 styles customization for Flat UI | |
| */ | |
| /*----------------------------------------------- Main select element ------------------------------------------------*/ | |
| .select2-container .select2-choice { | |
| height: 41px; /* Jobsy form controls have 37px total height */ | |
| border: 2px solid #bdc3c7; | |
| border-radius: 6px; | |
| outline: none; | |
| font: 15px/38px "Lato", Liberation Sans, Arial, sans-serif; |
| ### This file configures various client-side behaviors. | |
| ### | |
| ### The commented-out examples below are intended to demonstrate | |
| ### how to use this file. | |
| ### Section for authentication and authorization customizations. | |
| [auth] | |
| ### Set password stores used by Subversion. They should be | |
| ### delimited by spaces or commas. The order of values determines | |
| ### the order in which password stores are used. |