Skip to content

Commit 37bcb20

Browse files
committedSep 4, 2019
feat: cordova is working fine
1 parent 91495fd commit 37bcb20

20 files changed

+481
-75
lines changed
 

‎README.md

+13-5
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ HiApp use different build tools to build the same project, Hope it will helps yo
1919

2020
## Requirements
2121

22-
* cordova `^8.0.0`
22+
* cordova `^9.0.0`
2323
* framework7 `^4.5.0`
2424
* framework7-vue `^4.5.0`
2525

@@ -30,10 +30,10 @@ To check if you satisfy requirements for building the platform:
3030
$ cordova requirements
3131

3232
Requirements check results for ios:
33-
Apple OS X: installed darwin
34-
Xcode: installed 9.2
35-
ios-deploy: installed 1.9.2
36-
CocoaPods: installed
33+
Apple macOS: installed darwin
34+
Xcode: installed 10.3
35+
ios-deploy: installed 1.9.4
36+
CocoaPods: installed 1.7.5
3737

3838
```
3939

@@ -102,6 +102,14 @@ $ cordova build ios
102102

103103
### 6. Test the App on an iOS Device with Xcode
104104

105+
* Using the command
106+
107+
```
108+
$ cordova run ios
109+
```
110+
111+
* Using the Xcode
112+
105113
Double-click to open the `platforms/ios/HiApp.xcodeproj` file
106114

107115
Press the `Run` button to deploy the application in the emulator or iOS device

‎config.xml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<widget id="com.hiliaox.hiapp" version="4.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
3+
<name>HiApp</name>
4+
<description>
5+
A hybrid app made with Framework7.With PhoneGap you can easily convert it to native iOS app.
6+
</description>
7+
<author email="BelinChung@gmail.com" href="https://hi.dearb.me/">
8+
BelinChung
9+
</author>
10+
<content src="index.html" />
11+
<access origin="*" />
12+
<allow-intent href="http://*/*" />
13+
<allow-intent href="https://*/*" />
14+
<allow-intent href="tel:*" />
15+
<allow-intent href="sms:*" />
16+
<allow-intent href="mailto:*" />
17+
<allow-intent href="geo:*" />
18+
<preference name="DisallowOverscroll" value="true" />
19+
<preference name="StatusBarBackgroundColor" value="#ff9630" />
20+
<preference name="StatusBarStyle" value="lightcontent" />
21+
<platform name="android">
22+
<allow-intent href="market:*" />
23+
</platform>
24+
<platform name="ios">
25+
<allow-intent href="itms:*" />
26+
<allow-intent href="itms-apps:*" />
27+
<icon height="60" src="www/static/icons/ios/icon-60.png" width="60" />
28+
<icon height="120" src="www/static/icons/ios/icon-60@2x.png" width="120" />
29+
<icon height="40" src="www/static/icons/ios/icon-40.png" width="40" />
30+
<icon height="80" src="www/static/icons/ios/icon-40@2x.png" width="80" />
31+
<icon height="57" src="www/static/icons/ios/icon.png" width="57" />
32+
<icon height="114" src="www/static/icons/ios/icon@2x.png" width="114" />
33+
<icon height="29" src="www/static/icons/ios/icon-small.png" width="29" />
34+
<icon height="58" src="www/static/icons/ios/icon-small@2x.png" width="58" />
35+
<icon height="76" src="www/static/icons/ios/icon-76.png" width="76" />
36+
<icon height="152" src="www/static/icons/ios/icon-76@2x.png" width="152" />
37+
<icon height="72" src="www/static/icons/ios/icon-72.png" width="72" />
38+
<icon height="144" src="www/static/icons/ios/icon-72@2x.png" width="144" />
39+
<icon height="50" src="www/static/icons/ios/icon-50.png" width="50" />
40+
</platform>
41+
<plugin name="cordova-plugin-statusbar" spec="^2.4.3" />
42+
<plugin name="cordova-plugin-camera" spec="^4.1.0" />
43+
<plugin name="cordova-plugin-geolocation" spec="^4.0.2" />
44+
<plugin name="cordova-plugin-file-transfer" spec="^1.7.1" />
45+
<plugin name="cordova-plugin-inappbrowser" spec="^2.0.2" />
46+
<plugin name="cordova-plugin-network-information" spec="^2.0.2" />
47+
<plugin name="cordova-plugin-whitelist" spec="^1.3.4" />
48+
</widget>

‎package-lock.json

+394-67
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+26-3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@
3232
"homepage": "https://hi.dearb.me/",
3333
"dependencies": {
3434
"axios": "^0.19.0",
35+
"cordova-ios": "5.0.1",
36+
"cordova-plugin-camera": "^4.1.0",
37+
"cordova-plugin-file": "^6.0.2",
38+
"cordova-plugin-file-transfer": "^1.7.1",
39+
"cordova-plugin-geolocation": "^4.0.2",
40+
"cordova-plugin-inappbrowser": "^2.0.2",
41+
"cordova-plugin-network-information": "^2.0.2",
42+
"cordova-plugin-statusbar": "^2.4.3",
43+
"cordova-plugin-whitelist": "^1.3.4",
3544
"core-js": "^2.6.5",
3645
"date-fns": "^2.0.1",
3746
"framework7": "^4.5.0",
@@ -48,11 +57,25 @@
4857
"@vue/cli-service": "^3.11.0",
4958
"@vue/eslint-config-standard": "^4.0.0",
5059
"babel-eslint": "^10.0.1",
60+
"cpy-cli": "^1.0.1",
5161
"eslint": "^5.16.0",
5262
"eslint-plugin-vue": "^5.0.0",
5363
"less": "^3.0.4",
5464
"less-loader": "^5.0.0",
55-
"vue-template-compiler": "^2.6.10",
56-
"cpy-cli": "^1.0.1"
65+
"vue-template-compiler": "^2.6.10"
66+
},
67+
"cordova": {
68+
"plugins": {
69+
"cordova-plugin-whitelist": {},
70+
"cordova-plugin-statusbar": {},
71+
"cordova-plugin-camera": {},
72+
"cordova-plugin-geolocation": {},
73+
"cordova-plugin-file-transfer": {},
74+
"cordova-plugin-inappbrowser": {},
75+
"cordova-plugin-network-information": {}
76+
},
77+
"platforms": [
78+
"ios"
79+
]
5780
}
58-
}
81+
}

‎public/favicon.ico

-4.19 KB
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

‎static/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)
Please sign in to comment.