-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 95f7f9e
Showing
80 changed files
with
3,946 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"ignore": [ | ||
"www/spec/lib/**", | ||
"**/deps/**", | ||
"**/node_modules/**", | ||
"**/thirdparty/**", | ||
"**/third_party/**", | ||
"**/vendor/**", | ||
"**/**-min-**", | ||
"**/**-min.**", | ||
"**/**.min.**", | ||
"**/**jquery.?(ui|effects)-*.*.?(*).?(cs|j)s", | ||
"**/**jquery-*.*.?(*).?(cs|j)s", | ||
"**/prototype?(*).js", | ||
"**/**?(*).ts", | ||
"**/mootools*.*.*.js", | ||
"**/dojo.js", | ||
"**/MochiKit.js", | ||
"**/yahoo-*.js", | ||
"**/yui*.js", | ||
"**/ckeditor*.js", | ||
"**/tiny_mce*.js", | ||
"**/tiny_mce/?(langs|plugins|themes|utils)/**", | ||
"**/MathJax/**", | ||
"**/shBrush*.js", | ||
"**/shCore.js", | ||
"**/shLegacy.js", | ||
"**/modernizr.custom.?(*).js", | ||
"**/knockout-*.*.*.debug.js", | ||
"**/extjs/*.js", | ||
"**/extjs/*.xml", | ||
"**/extjs/*.txt", | ||
"**/extjs/*.html", | ||
"**/extjs/*.properties", | ||
"**/extjs/.sencha", | ||
"**/extjs/docs/**", | ||
"**/extjs/builds/**", | ||
"**/extjs/cmd/**", | ||
"**/extjs/examples/**", | ||
"**/extjs/locale/**", | ||
"**/extjs/packages/**", | ||
"**/extjs/plugins/**", | ||
"**/extjs/resources/**", | ||
"**/extjs/src/**", | ||
"**/extjs/welcome/**", | ||
"bower_components/**" | ||
], | ||
"test": [ | ||
"**/test/**", | ||
"**/tests/**", | ||
"**/spec/**", | ||
"**/specs/**" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Mac | ||
.DS_Store | ||
|
||
# Node | ||
npm-debug.log | ||
/node_modules | ||
|
||
# Cordova | ||
/platforms | ||
/plugins | ||
|
||
# res | ||
resources/signing | ||
jsconfig.json | ||
.vscode/ | ||
typings/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## Contributing | ||
|
||
Thank you for your interest in contributing to the Hello World PhoneGap Template. | ||
|
||
#### Issues | ||
|
||
One of the best contributions is filing issues in the [Issue Tracker][issue-tracker]. | ||
|
||
All contributions (feature or bug fix) should start with an issue first. | ||
|
||
#### Pull requests | ||
|
||
- Fork the repository | ||
- Create a branch (`git checkout -b issue-nnn`) | ||
- If possible, add a failing test | ||
- Commit your fix/feature and tests (`git commit -am "fixes for issue #nnn"`) | ||
- Push to the branch (`git push -u origin issue-nnn`) | ||
- Open a [Pull Request][pull-request] | ||
|
||
|
||
[issue-tracker]: https://github.com/phonegap/phonegap-template-hello-world/issues | ||
[pull-request]: https://github.com/phonegap/phonegap-template-hello-world/pulls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Hello World PhoneGap Template [![bitHound Score][bithound-img]][bithound-url] | ||
|
||
A PhoneGap Hello World template | ||
|
||
## Usage | ||
|
||
#### PhoneGap CLI | ||
|
||
The hello-world template is the default when you create a new application using the [phonegap-cli][phonegap-cli-url]. | ||
|
||
phonegap create my-app | ||
|
||
Create an app using this template specifically: | ||
|
||
phonegap create my-app --template hello-world | ||
|
||
To see a list of other available PhoneGap templates: | ||
|
||
phonegap template list | ||
|
||
## [config.xml][config-xml] | ||
|
||
#### android-minSdkVersion (Android only) | ||
|
||
Minimum SDK version supported on the target device. Maximum version is blank by default. | ||
|
||
This template sets the minimum to `14`. | ||
|
||
<preference name="android-minSdkVersion" value="14" /> | ||
|
||
#### <access ...> (All) | ||
|
||
This template defaults to wide open access. | ||
|
||
<access origin="*" /> | ||
|
||
It is strongly encouraged that you restrict access to external resources in your application before releasing to production. | ||
|
||
For more information on whitelist configuration, see the [Cordova Whitelist Guide][cordova-whitelist-guide] and the [Cordova Whitelist Plugin documentation][cordova-plugin-whitelist] | ||
|
||
## [www/index.html][index-html] | ||
|
||
#### Content Security Policy (CSP) | ||
|
||
The default CSP is similarly open: | ||
|
||
<meta http-equiv="Content-Security-Policy" content="default-src * 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src *" /> | ||
|
||
Much like the access tag above, you are strongly encouraged to use a more restrictive CSP in production. | ||
|
||
A good starting point declaration might be: | ||
|
||
<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: 'unsafe-inline' https://ssl.gstatic.com; style-src 'self' 'unsafe-inline'; media-src *" /> | ||
|
||
For more information on the Content Security Policy, see the [section on CSP in the Cordova Whitelist Plugin documentation][cordova-plugin-whitelist-csp]. | ||
|
||
Another good resource for generating a good CSP declaration is [CSP is Awesome][csp-is-awesome] | ||
|
||
|
||
[phonegap-cli-url]: http://github.com/phonegap/phonegap-cli | ||
[cordova-app]: http://github.com/apache/cordova-app-hello-world | ||
[bithound-img]: https://www.bithound.io/github/phonegap/phonegap-app-hello-world/badges/score.svg | ||
[bithound-url]: https://www.bithound.io/github/phonegap/phonegap-app-hello-world | ||
[config-xml]: https://github.com/phonegap/phonegap-template-hello-world/blob/master/config.xml | ||
[index-html]: https://github.com/phonegap/phonegap-template-hello-world/blob/master/www/index.html | ||
[cordova-whitelist-guide]: https://cordova.apache.org/docs/en/dev/guide/appdev/whitelist/index.html | ||
[cordova-plugin-whitelist]: http://cordova.apache.org/docs/en/latest/reference/cordova-plugin-whitelist | ||
[cordova-plugin-whitelist-csp]: http://cordova.apache.org/docs/en/latest/reference/cordova-plugin-whitelist#content-security-policy | ||
[csp-is-awesome]: http://cspisawesome.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<widget id="com.phonegap.helloworld" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0"> | ||
<name>helloworld</name> | ||
<description> | ||
Hello World sample application that responds to the deviceready event. | ||
</description> | ||
<author email="support@phonegap.com" href="http://phonegap.com"> | ||
PhoneGap Team | ||
</author> | ||
<content src="index.html" /> | ||
<preference name="DisallowOverscroll" value="true" /> | ||
<preference name="android-minSdkVersion" value="14" /> | ||
<plugin name="cordova-plugin-battery-status" source="npm" spec="~1.2.4" /> | ||
<plugin name="cordova-plugin-camera" source="npm" spec="~2.4.1" /> | ||
<plugin name="cordova-plugin-media-capture" source="npm" spec="~1.4.3" /> | ||
<plugin name="cordova-plugin-device" source="npm" spec="~1.1.6" /> | ||
<plugin name="cordova-plugin-dialogs" source="npm" spec="~1.3.3" /> | ||
<plugin name="cordova-plugin-file" source="npm" spec="~4.3.3" /> | ||
<plugin name="cordova-plugin-geolocation" source="npm" spec="~2.4.3" /> | ||
<plugin name="cordova-plugin-globalization" source="npm" spec="~1.0.7" /> | ||
<plugin name="cordova-plugin-inappbrowser" source="npm" spec="~1.7.1" /> | ||
<plugin name="cordova-plugin-network-information" source="npm" spec="~1.3.3" /> | ||
<plugin name="cordova-plugin-vibration" source="npm" spec="~2.1.5" /> | ||
<platform name="android"> | ||
<icon density="ldpi" src="www/res/icon/android/drawable-ldpi-icon.png" /> | ||
<icon density="mdpi" src="www/res/icon/android/drawable-mdpi-icon.png" /> | ||
<icon density="hdpi" src="www/res/icon/android/drawable-hdpi-icon.png" /> | ||
<icon density="xhdpi" src="www/res/icon/android/drawable-xhdpi-icon.png" /> | ||
<icon density="xxhdpi" src="www/res/icon/android/drawable-xxhdpi-icon.png" /> | ||
<icon density="xxxhdpi" src="www/res/icon/android/drawable-xxxhdpi-icon.png" /> | ||
<splash density="land-ldpi" src="www/res/screen/android/drawable-land-ldpi-screen.png" /> | ||
<splash density="land-mdpi" src="www/res/screen/android/drawable-land-mdpi-screen.png" /> | ||
<splash density="land-hdpi" src="www/res/screen/android/drawable-land-hdpi-screen.png" /> | ||
<splash density="land-xhdpi" src="www/res/screen/android/drawable-land-xhdpi-screen.png" /> | ||
<splash density="land-xxhdpi" src="www/res/screen/android/drawable-land-xxhdpi-screen.png" /> | ||
<splash density="land-xxxhdpi" src="www/res/screen/android/drawable-land-xxxhdpi-screen.png" /> | ||
<splash density="port-ldpi" src="www/res/screen/android/drawable-port-ldpi-screen.png" /> | ||
<splash density="port-mdpi" src="www/res/screen/android/drawable-port-mdpi-screen.png" /> | ||
<splash density="port-hdpi" src="www/res/screen/android/drawable-port-hdpi-screen.png" /> | ||
<splash density="port-xhdpi" src="www/res/screen/android/drawable-port-xhdpi-screen.png" /> | ||
<splash density="port-xxhdpi" src="www/res/screen/android/drawable-port-xxhdpi-screen.png" /> | ||
<splash density="port-xxxhdpi" src="www/res/screen/android/drawable-port-xxxhdpi-screen.png" /> | ||
</platform> | ||
<platform name="ios"> | ||
<icon height="57" platform="ios" src="www/res/icon/ios/icon.png" width="57" /> | ||
<icon height="114" platform="ios" src="www/res/icon/ios/icon@2x.png" width="114" /> | ||
<icon height="40" platform="ios" src="www/res/icon/ios/icon-40.png" width="40" /> | ||
<icon height="80" platform="ios" src="www/res/icon/ios/icon-40@2x.png" width="80" /> | ||
<icon height="50" platform="ios" src="www/res/icon/ios/icon-50.png" width="50" /> | ||
<icon height="100" platform="ios" src="www/res/icon/ios/icon-50@2x.png" width="100" /> | ||
<icon height="60" platform="ios" src="www/res/icon/ios/icon-60.png" width="60" /> | ||
<icon height="120" platform="ios" src="www/res/icon/ios/icon-60@2x.png" width="120" /> | ||
<icon height="180" platform="ios" src="www/res/icon/ios/icon-60@3x.png" width="180" /> | ||
<icon height="72" platform="ios" src="www/res/icon/ios/icon-72.png" width="72" /> | ||
<icon height="144" platform="ios" src="www/res/icon/ios/icon-72@2x.png" width="144" /> | ||
<icon height="76" platform="ios" src="www/res/icon/ios/icon-76.png" width="76" /> | ||
<icon height="152" platform="ios" src="www/res/icon/ios/icon-76@2x.png" width="152" /> | ||
<icon height="29" platform="ios" src="www/res/icon/ios/icon-small.png" width="29" /> | ||
<icon height="58" platform="ios" src="www/res/icon/ios/icon-small@2x.png" width="58" /> | ||
<icon height="87" platform="ios" src="www/res/icon/ios/icon-small@3x.png" width="87" /> | ||
<splash height="1136" platform="ios" src="www/res/screen/ios/Default-568h@2x~iphone.png" width="640" /> | ||
<splash height="1334" platform="ios" src="www/res/screen/ios/Default-667h.png" width="750" /> | ||
<splash height="2208" platform="ios" src="www/res/screen/ios/Default-736h.png" width="1242" /> | ||
<splash height="1242" platform="ios" src="www/res/screen/ios/Default-Landscape-736h.png" width="2208" /> | ||
<splash height="1536" platform="ios" src="www/res/screen/ios/Default-Landscape@2x~ipad.png" width="2048" /> | ||
<splash height="768" platform="ios" src="www/res/screen/ios/Default-Landscape~ipad.png" width="1024" /> | ||
<splash height="2048" platform="ios" src="www/res/screen/ios/Default-Portrait@2x~ipad.png" width="1536" /> | ||
<splash height="1024" platform="ios" src="www/res/screen/ios/Default-Portrait~ipad.png" width="768" /> | ||
<splash height="960" platform="ios" src="www/res/screen/ios/Default@2x~iphone.png" width="640" /> | ||
<splash height="480" platform="ios" src="www/res/screen/ios/Default~iphone.png" width="320" /> | ||
</platform> | ||
<platform name="wp8"> | ||
<icon height="99" platform="wp8" src="www/res/icon/wp8/ApplicationIcon.png" width="99" /> | ||
<icon height="159" platform="wp8" src="www/res/icon/wp8/Background.png" width="159" /> | ||
<splash height="1280" platform="wp8" src="www/res/screen/wp8/screen-portrait.jpg" width="768" /> | ||
</platform> | ||
<platform name="windows"> | ||
<icon height="150" platform="windows" src="www/res/icon/windows/Square150x150Logo.scale-100.png" width="150" /> | ||
<icon height="30" platform="windows" src="www/res/icon/windows/Square30x30Logo.scale-100.png" width="30" /> | ||
<icon height="50" platform="windows" src="www/res/icon/windows/StoreLogo.scale-100.png" width="50" /> | ||
<splash height="300" platform="windows" src="www/res/screen/windows/SplashScreen.scale-100.png" width="620" /> | ||
<icon height="120" platform="windows" src="www/res/icon/windows/StoreLogo.scale-240.png" width="120" /> | ||
<icon height="44" platform="windows" src="www/res/icon/windows/Square44x44Logo.scale-100.png" width="44" /> | ||
<icon height="106" platform="windows" src="www/res/icon/windows/Square44x44Logo.scale-240.png" width="106" /> | ||
<icon height="70" platform="windows" src="www/res/icon/windows/Square70x70Logo.scale-100.png" width="70" /> | ||
<icon height="71" platform="windows" src="www/res/icon/windows/Square71x71Logo.scale-100.png" width="71" /> | ||
<icon height="170" platform="windows" src="www/res/icon/windows/Square71x71Logo.scale-240.png" width="170" /> | ||
<icon height="360" platform="windows" src="www/res/icon/windows/Square150x150Logo.scale-240.png" width="360" /> | ||
<icon height="310" platform="windows" src="www/res/icon/windows/Square310x310Logo.scale-100.png" width="310" /> | ||
<icon height="150" platform="windows" src="www/res/icon/windows/Wide310x150Logo.scale-100.png" width="310" /> | ||
<icon height="360" platform="windows" src="www/res/icon/windows/Wide310x150Logo.scale-240.png" width="744" /> | ||
<splash height="1920" platform="windows" src="www/res/screen/windows/SplashScreenPhone.scale-240.png" width="1152" /> | ||
</platform> | ||
<access origin="*" /> | ||
<allow-intent href="http://*/*" /> | ||
<allow-intent href="https://*/*" /> | ||
<allow-intent href="tel:*" /> | ||
<allow-intent href="sms:*" /> | ||
<allow-intent href="mailto:*" /> | ||
<allow-intent href="geo:*" /> | ||
<platform name="android"> | ||
<allow-intent href="market:*" /> | ||
</platform> | ||
<platform name="ios"> | ||
<allow-intent href="itms:*" /> | ||
<allow-intent href="itms-apps:*" /> | ||
</platform> | ||
</widget> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!-- | ||
# | ||
# 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 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
--> | ||
# Cordova Hooks | ||
|
||
Cordova Hooks represent special scripts which could be added by application and plugin developers or even by your own build system to customize cordova commands. See Hooks Guide for more details: http://cordova.apache.org/docs/en/edge/guide_appdev_hooks_index.md.html#Hooks%20Guide. |
Oops, something went wrong.