Skip to content

Commit dd657aa

Browse files
author
MrNiranam
committed
Apply Phonegap
Bug fix and apply Phonegap.
1 parent ed86b1e commit dd657aa

File tree

8 files changed

+366
-204
lines changed

8 files changed

+366
-204
lines changed

config.xml

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<!-- config.xml reference: https://build.phonegap.com/docs/config-xml -->
4+
<widget xmlns = "http://www.w3.org/ns/widgets"
5+
xmlns:gap = "http://phonegap.com/ns/1.0"
6+
id = "com.phonegap.netpiechat"
7+
version = "1.0.0">
8+
9+
<name>Netpie Chat</name>
10+
11+
<description>
12+
แอพแชทดีๆ ทั้งสวยและฟรี โดย Libary จากคนไทย
13+
</description>
14+
15+
<author href="http://sirawit.me" email="[email protected]">
16+
[Mr.]Niranam
17+
</author>
18+
19+
<!--
20+
If you do not want any permissions to be added to your app, add the
21+
following tag to your config.xml; you will still have the INTERNET
22+
permission on your app, which PhoneGap requires.
23+
-->
24+
<preference name="permissions" value="none"/>
25+
26+
<!-- Customize your app and platform with the preference element. -->
27+
<preference name="orientation" value="default" /> <!-- all: default means both landscape and portrait are enabled -->
28+
<preference name="target-device" value="universal" /> <!-- all: possible values handset, tablet, or universal -->
29+
<preference name="fullscreen" value="true" /> <!-- all: hides the status bar at the top of the screen -->
30+
<preference name="webviewbounce" value="true" /> <!-- ios: control whether the screen 'bounces' when scrolled beyond the top -->
31+
<preference name="prerendered-icon" value="true" /> <!-- ios: if icon is prerendered, iOS will not apply it's gloss to the app's icon on the user's home screen -->
32+
<preference name="stay-in-webview" value="false" /> <!-- ios: external links should open in the default browser, 'true' would use the webview the app lives in -->
33+
<preference name="ios-statusbarstyle" value="black-opaque" /> <!-- ios: black-translucent will appear black because the PhoneGap webview doesn't go beneath the status bar -->
34+
<preference name="detect-data-types" value="true" /> <!-- ios: controls whether data types (such as phone no. and dates) are automatically turned into links by the system -->
35+
<preference name="exit-on-suspend" value="false" /> <!-- ios: if set to true, app will terminate when home button is pressed -->
36+
<preference name="show-splash-screen-spinner" value="true" /> <!-- ios: if set to false, the spinner won't appear on the splash screen during app loading -->
37+
<preference name="auto-hide-splash-screen" value="true" /> <!-- ios: if set to false, the splash screen must be hidden using a JavaScript API -->
38+
<preference name="disable-cursor" value="false" /> <!-- blackberry: prevents a mouse-icon/cursor from being displayed on the app -->
39+
<preference name="android-installLocation" value="auto" /> <!-- android: app install location. 'auto' will choose. 'internalOnly' is device memory. 'preferExternal' is SDCard. -->
40+
<!--
41+
Define a specific version of PhoneGap to build into your app.
42+
<preference name="phonegap-version" value="3.5.0" />
43+
-->
44+
45+
<!-- Plugins -->
46+
47+
<!-- Core plugins -->
48+
<gap:plugin name="org.apache.cordova.battery-status" />
49+
<gap:plugin name="org.apache.cordova.media-capture" />
50+
<gap:plugin name="org.apache.cordova.console" />
51+
<gap:plugin name="org.apache.cordova.device" />
52+
<gap:plugin name="org.apache.cordova.device-motion" />
53+
<gap:plugin name="org.apache.cordova.device-orientation" />
54+
<gap:plugin name="org.apache.cordova.dialogs" />
55+
<gap:plugin name="org.apache.cordova.inappbrowser" />
56+
<gap:plugin name="org.apache.cordova.media" />
57+
<gap:plugin name="org.apache.cordova.network-information" />
58+
<gap:plugin name="org.apache.cordova.splashscreen" />
59+
<gap:plugin name="org.apache.cordova.vibration" />
60+
61+
<!-- Third party plugins -->
62+
<!-- A list of available plugins are available at https://build.phonegap.com/plugins -->
63+
<!--
64+
<gap:plugin name="com.phonegap.plugins.barcodescanner" />
65+
-->
66+
67+
<!-- Define app icon for each platform. -->
68+
<icon src="netpie.png" />
69+
<icon src="res/icon/android/icon-36-ldpi.png" gap:platform="android" gap:qualifier="ldpi" />
70+
<icon src="res/icon/android/icon-48-mdpi.png" gap:platform="android" gap:qualifier="mdpi" />
71+
<icon src="res/icon/android/icon-72-hdpi.png" gap:platform="android" gap:qualifier="hdpi" />
72+
<icon src="res/icon/android/icon-96-xhdpi.png" gap:platform="android" gap:qualifier="xhdpi" />
73+
<icon src="res/icon/blackberry/icon-80.png" gap:platform="blackberry" />
74+
<icon src="res/icon/blackberry/icon-80.png" gap:platform="blackberry" gap:state="hover"/>
75+
<icon src="res/icon/ios/icon-57.png" gap:platform="ios" width="57" height="57" />
76+
<icon src="res/icon/ios/icon-72.png" gap:platform="ios" width="72" height="72" />
77+
<icon src="res/icon/ios/icon-57-2x.png" gap:platform="ios" width="114" height="114" />
78+
<icon src="res/icon/ios/icon-72-2x.png" gap:platform="ios" width="144" height="144" />
79+
<icon src="res/icon/webos/icon-64.png" gap:platform="webos" />
80+
<icon src="res/icon/windows-phone/icon-48.png" gap:platform="winphone" />
81+
<icon src="res/icon/windows-phone/icon-173.png" gap:platform="winphone" gap:role="background" />
82+
83+
<!-- Define app splash screen for each platform. -->
84+
<gap:splash src="res/screen/android/screen-ldpi-portrait.png" gap:platform="android" gap:qualifier="port-ldpi" />
85+
<gap:splash src="res/screen/android/screen-mdpi-portrait.png" gap:platform="android" gap:qualifier="port-mdpi" />
86+
<gap:splash src="res/screen/android/screen-hdpi-portrait.png" gap:platform="android" gap:qualifier="port-hdpi" />
87+
<gap:splash src="res/screen/android/screen-xhdpi-portrait.png" gap:platform="android" gap:qualifier="port-xhdpi" />
88+
<gap:splash src="res/screen/blackberry/screen-225.png" gap:platform="blackberry" />
89+
<gap:splash src="res/screen/ios/screen-iphone-portrait.png" gap:platform="ios" width="320" height="480" />
90+
<gap:splash src="res/screen/ios/screen-iphone-portrait-2x.png" gap:platform="ios" width="640" height="960" />
91+
<gap:splash src="res/screen/ios/screen-iphone-portrait-568h-2x.png" gap:platform="ios" width="640" height="1136" />
92+
<gap:splash src="res/screen/ios/screen-ipad-portrait.png" gap:platform="ios" width="768" height="1024" />
93+
<gap:splash src="res/screen/ios/screen-ipad-landscape.png" gap:platform="ios" width="1024" height="768" />
94+
<gap:splash src="res/screen/windows-phone/screen-portrait.jpg" gap:platform="winphone" />
95+
96+
<gap:config-file platform="ios" parent="CFBundleShortVersionString">
97+
<string>100</string>
98+
</gap:config-file>
99+
100+
<!--
101+
Define access to external domains.
102+
<access /> - a blank access tag denies access to all external resources.
103+
<access origin="*" /> - a wildcard access tag allows access to all external resource.
104+
Otherwise, you can specify specific domains:
105+
<access origin="http://phonegap.com" /> - allow any secure requests to http://phonegap.com/
106+
<access origin="http://phonegap.com" subdomains="true" /> - same as above, but including subdomains, such as http://build.phonegap.com/
107+
<access origin="http://phonegap.com" browserOnly="true" /> - only allows http://phonegap.com to be opened by the child browser.
108+
-->
109+
110+
<access origin="*"/>
111+
<!-- Added the following intents to support the removal of whitelist code from base cordova to a plugin -->
112+
<!-- Whitelist configuration. Refer to https://cordova.apache.org/docs/en/edge/guide_appdev_whitelist_index.md.html -->
113+
<plugin name="cordova-plugin-whitelist" version="1" />
114+
<allow-intent href="http://*/*" />
115+
<allow-intent href="https://*/*" />
116+
<allow-intent href="tel:*" />
117+
<allow-intent href="sms:*" />
118+
<allow-intent href="mailto:*" />
119+
<allow-intent href="geo:*" />
120+
<platform name="android">
121+
<allow-intent href="market:*" />
122+
</platform>
123+
<platform name="ios">
124+
<allow-intent href="itms:*" />
125+
<allow-intent href="itms-apps:*" />
126+
</platform>
127+
128+
</widget>

css/font.css

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
@font-face {
2+
font-family: 'Material Icons';
3+
font-style: normal;
4+
font-weight: 400;
5+
src: local('Material Icons'), local('MaterialIcons-Regular'), url('../fonts/MaterialIcons.woff2') format('woff2');
6+
}
7+
8+
.material-icons {
9+
font-family: 'Material Icons';
10+
font-weight: normal;
11+
font-style: normal;
12+
font-size: 24px;
13+
line-height: 1;
14+
letter-spacing: normal;
15+
text-transform: none;
16+
display: inline-block;
17+
white-space: nowrap;
18+
word-wrap: normal;
19+
direction: ltr;
20+
-webkit-font-feature-settings: 'liga';
21+
-webkit-font-smoothing: antialiased;
22+
}
23+
24+
@font-face {
25+
font-family: 'Kanit';
26+
font-style: normal;
27+
font-weight: 400;
28+
src: local('Kanit'), local('Kanit-Regular'), url('../fonts/Kanit-Regular.woff') format('woff');
29+
}
30+
31+
@font-face {
32+
font-family: 'Kanit';
33+
font-style: normal;
34+
font-weight: 600;
35+
src: local('Kanit SemiBold'), local('Kanit-SemiBold'), url('../fonts/Kanit-SemiBold.woff') format('woff');
36+
}

fonts/Kanit-Regular.woff

19.8 KB
Binary file not shown.

fonts/Kanit-SemiBold.woff

19.9 KB
Binary file not shown.

fonts/MaterialIcons.woff2

43.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)