Skip to content

Commit 820558b

Browse files
committed
Initial commit
0 parents  commit 820558b

File tree

126 files changed

+29262
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+29262
-0
lines changed

.bithoundrc

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"ignore": [
3+
"www/spec/lib/**",
4+
"**/deps/**",
5+
"**/node_modules/**",
6+
"**/thirdparty/**",
7+
"**/third_party/**",
8+
"**/vendor/**",
9+
"**/**-min-**",
10+
"**/**-min.**",
11+
"**/**.min.**",
12+
"**/**jquery.?(ui|effects)-*.*.?(*).?(cs|j)s",
13+
"**/**jquery-*.*.?(*).?(cs|j)s",
14+
"**/prototype?(*).js",
15+
"**/**?(*).ts",
16+
"**/mootools*.*.*.js",
17+
"**/dojo.js",
18+
"**/MochiKit.js",
19+
"**/yahoo-*.js",
20+
"**/yui*.js",
21+
"**/ckeditor*.js",
22+
"**/tiny_mce*.js",
23+
"**/tiny_mce/?(langs|plugins|themes|utils)/**",
24+
"**/MathJax/**",
25+
"**/shBrush*.js",
26+
"**/shCore.js",
27+
"**/shLegacy.js",
28+
"**/modernizr.custom.?(*).js",
29+
"**/knockout-*.*.*.debug.js",
30+
"**/extjs/*.js",
31+
"**/extjs/*.xml",
32+
"**/extjs/*.txt",
33+
"**/extjs/*.html",
34+
"**/extjs/*.properties",
35+
"**/extjs/.sencha",
36+
"**/extjs/docs/**",
37+
"**/extjs/builds/**",
38+
"**/extjs/cmd/**",
39+
"**/extjs/examples/**",
40+
"**/extjs/locale/**",
41+
"**/extjs/packages/**",
42+
"**/extjs/plugins/**",
43+
"**/extjs/resources/**",
44+
"**/extjs/src/**",
45+
"**/extjs/welcome/**",
46+
"bower_components/**"
47+
],
48+
"test": [
49+
"**/test/**",
50+
"**/tests/**",
51+
"**/spec/**",
52+
"**/specs/**"
53+
]
54+
}

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

CONTRIBUTING.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## Contributing
2+
3+
Thank you for your interest in contributing to the Hello World PhoneGap Template.
4+
5+
#### Issues
6+
7+
One of the best contributions is filing issues in the [Issue Tracker][issue-tracker].
8+
9+
All contributions (feature or bug fix) should start with an issue first.
10+
11+
#### Pull requests
12+
13+
- Fork the repository
14+
- Create a branch (`git checkout -b issue-nnn`)
15+
- If possible, add a failing test
16+
- Commit your fix/feature and tests (`git commit -am "fixes for issue #nnn"`)
17+
- Push to the branch (`git push -u origin issue-nnn`)
18+
- Open a [Pull Request][pull-request]
19+
20+
21+
[issue-tracker]: https://github.com/phonegap/phonegap-template-hello-world/issues
22+
[pull-request]: https://github.com/phonegap/phonegap-template-hello-world/pulls

README.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Hello World PhoneGap Template [![bitHound Score][bithound-img]][bithound-url]
2+
3+
A PhoneGap Hello World template
4+
5+
## Usage
6+
7+
#### PhoneGap CLI
8+
9+
The hello-world template is the default when you create a new application using the [phonegap-cli][phonegap-cli-url].
10+
11+
phonegap create my-app
12+
13+
Create an app using this template specifically:
14+
15+
phonegap create my-app --template hello-world
16+
17+
To see a list of other available PhoneGap templates:
18+
19+
phonegap template list
20+
21+
## [config.xml][config-xml]
22+
23+
#### android-minSdkVersion (Android only)
24+
25+
Minimum SDK version supported on the target device. Maximum version is blank by default.
26+
27+
This template sets the minimum to `14`.
28+
29+
<preference name="android-minSdkVersion" value="14" />
30+
31+
#### &lt;access ...&gt; (All)
32+
33+
This template defaults to wide open access.
34+
35+
<access origin="*" />
36+
37+
It is strongly encouraged that you restrict access to external resources in your application before releasing to production.
38+
39+
For more information on whitelist configuration, see the [Cordova Whitelist Guide][cordova-whitelist-guide] and the [Cordova Whitelist Plugin documentation][cordova-plugin-whitelist]
40+
41+
## [www/index.html][index-html]
42+
43+
#### Content Security Policy (CSP)
44+
45+
The default CSP is similarly open:
46+
47+
<meta http-equiv="Content-Security-Policy" content="default-src * 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src *" />
48+
49+
Much like the access tag above, you are strongly encouraged to use a more restrictive CSP in production.
50+
51+
A good starting point declaration might be:
52+
53+
<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 *" />
54+
55+
For more information on the Content Security Policy, see the [section on CSP in the Cordova Whitelist Plugin documentation][cordova-plugin-whitelist-csp].
56+
57+
Another good resource for generating a good CSP declaration is [CSP is Awesome][csp-is-awesome]
58+
59+
60+
[phonegap-cli-url]: http://github.com/phonegap/phonegap-cli
61+
[cordova-app]: http://github.com/apache/cordova-app-hello-world
62+
[bithound-img]: https://www.bithound.io/github/phonegap/phonegap-app-hello-world/badges/score.svg
63+
[bithound-url]: https://www.bithound.io/github/phonegap/phonegap-app-hello-world
64+
[config-xml]: https://github.com/phonegap/phonegap-template-hello-world/blob/master/config.xml
65+
[index-html]: https://github.com/phonegap/phonegap-template-hello-world/blob/master/www/index.html
66+
[cordova-whitelist-guide]: https://cordova.apache.org/docs/en/dev/guide/appdev/whitelist/index.html
67+
[cordova-plugin-whitelist]: http://cordova.apache.org/docs/en/latest/reference/cordova-plugin-whitelist
68+
[cordova-plugin-whitelist-csp]: http://cordova.apache.org/docs/en/latest/reference/cordova-plugin-whitelist#content-security-policy
69+
[csp-is-awesome]: http://cspisawesome.com

config.xml

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<widget id="com.moapsystem.mob" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
3+
<name>MOAP</name>
4+
<description>
5+
MOAP Beneficiary Database.
6+
</description>
7+
<author email="sherifdata@gmail.com" href="http://webworksgh.com">
8+
Abubakari Sherifdeen
9+
</author>
10+
<content src="index.html" />
11+
<preference name="DisallowOverscroll" value="true" />
12+
<preference name="android-minSdkVersion" value="14" />
13+
<plugin name="cordova-plugin-battery-status" source="npm" spec="~1.2.4" />
14+
<plugin name="cordova-plugin-camera" source="npm" spec="~2.4.1" />
15+
<plugin name="cordova-plugin-media-capture" source="npm" spec="~1.4.3" />
16+
<plugin name="cordova-plugin-device" source="npm" spec="~1.1.6" />
17+
<plugin name="cordova-plugin-dialogs" source="npm" spec="~1.3.3" />
18+
<plugin name="cordova-plugin-file" source="npm" spec="~4.3.3" />
19+
<plugin name="cordova-plugin-geolocation" source="npm" spec="~2.4.3" />
20+
<plugin name="cordova-plugin-globalization" source="npm" spec="~1.0.7" />
21+
<plugin name="cordova-plugin-inappbrowser" source="npm" spec="~1.7.1" />
22+
<plugin name="cordova-plugin-network-information" source="npm" spec="~1.3.3" />
23+
<plugin name="cordova-plugin-vibration" source="npm" spec="~2.1.5" />
24+
<platform name="android">
25+
<icon density="ldpi" src="www/res/icon/android/drawable-ldpi-icon.png" />
26+
<icon density="mdpi" src="www/res/icon/android/drawable-mdpi-icon.png" />
27+
<icon density="hdpi" src="www/res/icon/android/drawable-hdpi-icon.png" />
28+
<icon density="xhdpi" src="www/res/icon/android/drawable-xhdpi-icon.png" />
29+
<icon density="xxhdpi" src="www/res/icon/android/drawable-xxhdpi-icon.png" />
30+
<icon density="xxxhdpi" src="www/res/icon/android/drawable-xxxhdpi-icon.png" />
31+
<splash density="land-ldpi" src="www/res/screen/android/drawable-land-ldpi-screen.png" />
32+
<splash density="land-mdpi" src="www/res/screen/android/drawable-land-mdpi-screen.png" />
33+
<splash density="land-hdpi" src="www/res/screen/android/drawable-land-hdpi-screen.png" />
34+
<splash density="land-xhdpi" src="www/res/screen/android/drawable-land-xhdpi-screen.png" />
35+
<splash density="land-xxhdpi" src="www/res/screen/android/drawable-land-xxhdpi-screen.png" />
36+
<splash density="land-xxxhdpi" src="www/res/screen/android/drawable-land-xxxhdpi-screen.png" />
37+
<splash density="port-ldpi" src="www/res/screen/android/drawable-port-ldpi-screen.png" />
38+
<splash density="port-mdpi" src="www/res/screen/android/drawable-port-mdpi-screen.png" />
39+
<splash density="port-hdpi" src="www/res/screen/android/drawable-port-hdpi-screen.png" />
40+
<splash density="port-xhdpi" src="www/res/screen/android/drawable-port-xhdpi-screen.png" />
41+
<splash density="port-xxhdpi" src="www/res/screen/android/drawable-port-xxhdpi-screen.png" />
42+
<splash density="port-xxxhdpi" src="www/res/screen/android/drawable-port-xxxhdpi-screen.png" />
43+
</platform>
44+
<platform name="ios">
45+
<icon height="57" platform="ios" src="www/res/icon/ios/icon.png" width="57" />
46+
<icon height="114" platform="ios" src="www/res/icon/ios/icon@2x.png" width="114" />
47+
<icon height="40" platform="ios" src="www/res/icon/ios/icon-40.png" width="40" />
48+
<icon height="80" platform="ios" src="www/res/icon/ios/icon-40@2x.png" width="80" />
49+
<icon height="50" platform="ios" src="www/res/icon/ios/icon-50.png" width="50" />
50+
<icon height="100" platform="ios" src="www/res/icon/ios/icon-50@2x.png" width="100" />
51+
<icon height="60" platform="ios" src="www/res/icon/ios/icon-60.png" width="60" />
52+
<icon height="120" platform="ios" src="www/res/icon/ios/icon-60@2x.png" width="120" />
53+
<icon height="180" platform="ios" src="www/res/icon/ios/icon-60@3x.png" width="180" />
54+
<icon height="72" platform="ios" src="www/res/icon/ios/icon-72.png" width="72" />
55+
<icon height="144" platform="ios" src="www/res/icon/ios/icon-72@2x.png" width="144" />
56+
<icon height="76" platform="ios" src="www/res/icon/ios/icon-76.png" width="76" />
57+
<icon height="152" platform="ios" src="www/res/icon/ios/icon-76@2x.png" width="152" />
58+
<icon height="29" platform="ios" src="www/res/icon/ios/icon-small.png" width="29" />
59+
<icon height="58" platform="ios" src="www/res/icon/ios/icon-small@2x.png" width="58" />
60+
<icon height="87" platform="ios" src="www/res/icon/ios/icon-small@3x.png" width="87" />
61+
<splash height="1136" platform="ios" src="www/res/screen/ios/Default-568h@2x~iphone.png" width="640" />
62+
<splash height="1334" platform="ios" src="www/res/screen/ios/Default-667h.png" width="750" />
63+
<splash height="2208" platform="ios" src="www/res/screen/ios/Default-736h.png" width="1242" />
64+
<splash height="1242" platform="ios" src="www/res/screen/ios/Default-Landscape-736h.png" width="2208" />
65+
<splash height="1536" platform="ios" src="www/res/screen/ios/Default-Landscape@2x~ipad.png" width="2048" />
66+
<splash height="768" platform="ios" src="www/res/screen/ios/Default-Landscape~ipad.png" width="1024" />
67+
<splash height="2048" platform="ios" src="www/res/screen/ios/Default-Portrait@2x~ipad.png" width="1536" />
68+
<splash height="1024" platform="ios" src="www/res/screen/ios/Default-Portrait~ipad.png" width="768" />
69+
<splash height="960" platform="ios" src="www/res/screen/ios/Default@2x~iphone.png" width="640" />
70+
<splash height="480" platform="ios" src="www/res/screen/ios/Default~iphone.png" width="320" />
71+
</platform>
72+
<platform name="wp8">
73+
<icon height="99" platform="wp8" src="www/res/icon/wp8/ApplicationIcon.png" width="99" />
74+
<icon height="159" platform="wp8" src="www/res/icon/wp8/Background.png" width="159" />
75+
<splash height="1280" platform="wp8" src="www/res/screen/wp8/screen-portrait.jpg" width="768" />
76+
</platform>
77+
<platform name="windows">
78+
<icon height="150" platform="windows" src="www/res/icon/windows/Square150x150Logo.scale-100.png" width="150" />
79+
<icon height="30" platform="windows" src="www/res/icon/windows/Square30x30Logo.scale-100.png" width="30" />
80+
<icon height="50" platform="windows" src="www/res/icon/windows/StoreLogo.scale-100.png" width="50" />
81+
<splash height="300" platform="windows" src="www/res/screen/windows/SplashScreen.scale-100.png" width="620" />
82+
<icon height="120" platform="windows" src="www/res/icon/windows/StoreLogo.scale-240.png" width="120" />
83+
<icon height="44" platform="windows" src="www/res/icon/windows/Square44x44Logo.scale-100.png" width="44" />
84+
<icon height="106" platform="windows" src="www/res/icon/windows/Square44x44Logo.scale-240.png" width="106" />
85+
<icon height="70" platform="windows" src="www/res/icon/windows/Square70x70Logo.scale-100.png" width="70" />
86+
<icon height="71" platform="windows" src="www/res/icon/windows/Square71x71Logo.scale-100.png" width="71" />
87+
<icon height="170" platform="windows" src="www/res/icon/windows/Square71x71Logo.scale-240.png" width="170" />
88+
<icon height="360" platform="windows" src="www/res/icon/windows/Square150x150Logo.scale-240.png" width="360" />
89+
<icon height="310" platform="windows" src="www/res/icon/windows/Square310x310Logo.scale-100.png" width="310" />
90+
<icon height="150" platform="windows" src="www/res/icon/windows/Wide310x150Logo.scale-100.png" width="310" />
91+
<icon height="360" platform="windows" src="www/res/icon/windows/Wide310x150Logo.scale-240.png" width="744" />
92+
<splash height="1920" platform="windows" src="www/res/screen/windows/SplashScreenPhone.scale-240.png" width="1152" />
93+
</platform>
94+
<access origin="*" />
95+
<allow-intent href="http://*/*" />
96+
<allow-intent href="https://*/*" />
97+
<allow-intent href="tel:*" />
98+
<allow-intent href="sms:*" />
99+
<allow-intent href="mailto:*" />
100+
<allow-intent href="geo:*" />
101+
<platform name="android">
102+
<allow-intent href="market:*" />
103+
</platform>
104+
<platform name="ios">
105+
<allow-intent href="itms:*" />
106+
<allow-intent href="itms-apps:*" />
107+
</platform>
108+
<gap:plugin name="cordova-plugin-whitelist" source="npm" />
109+
<plugin name="cordova-plugin-whitelist" spec="~1.3.3" />
110+
</widget>

hooks/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!--
2+
#
3+
# Licensed to the Apache Software Foundation (ASF) under one
4+
# or more contributor license agreements. See the NOTICE file
5+
# distributed with this work for additional information
6+
# regarding copyright ownership. The ASF licenses this file
7+
# to you under the Apache License, Version 2.0 (the
8+
# "License"); you may not use this file except in compliance
9+
# with the License. You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
#
20+
-->
21+
# Cordova Hooks
22+
23+
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.

node_modules/cordova-plugin-whitelist/.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/cordova-plugin-whitelist/CONTRIBUTING.md

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)