Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit fc13859

Browse files
authored
image changes and custom config (#140)
Signed-off-by: awjh-ibm <[email protected]>
1 parent 6916021 commit fc13859

34 files changed

+473
-302
lines changed

packages/vehicle-manufacture-car-builder/.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,7 @@ typings/
6969
.env
7070

7171
www/
72+
73+
# Phone app generated
74+
plugins
75+
platforms
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,71 @@
1-
<!--
2-
Licensed under the Apache License, Version 2.0 (the "License");
3-
you may not use this file except in compliance with the License.
4-
You may obtain a copy of the License at
5-
6-
http://www.apache.org/licenses/LICENSE-2.0
7-
8-
Unless required by applicable law or agreed to in writing, software
9-
distributed under the License is distributed on an "AS IS" BASIS,
10-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11-
See the License for the specific language governing permissions and
12-
limitations under the License.
13-
-->
14-
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
15-
<widget id="io.ionic.starter" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
16-
<name>Arium</name>
17-
<description>An awesome demo for Vehicle Lifecycle.</description>
18-
<author email="[email protected]">Anna Thomas</author>
19-
<content src="index.html"/>
20-
<access origin="*"/>
21-
<allow-navigation href="http://ionic.local/*"/>
22-
<allow-intent href="http://*/*"/>
23-
<allow-intent href="https://*/*"/>
24-
<allow-intent href="tel:*"/>
25-
<allow-intent href="sms:*"/>
26-
<allow-intent href="mailto:*"/>
27-
<allow-intent href="geo:*"/>
28-
<platform name="android">
29-
<allow-intent href="market:*"/>
30-
</platform>
31-
<platform name="ios">
32-
<allow-intent href="itms:*"/>
33-
<allow-intent href="itms-apps:*"/>
34-
<icon src="resources/ios/icon/icon.png" width="57" height="57"/>
35-
<icon src="resources/ios/icon/[email protected]" width="114" height="114"/>
36-
<icon src="resources/ios/icon/icon-40.png" width="40" height="40"/>
37-
<icon src="resources/ios/icon/[email protected]" width="80" height="80"/>
38-
<icon src="resources/ios/icon/[email protected]" width="120" height="120"/>
39-
<icon src="resources/ios/icon/icon-50.png" width="50" height="50"/>
40-
<icon src="resources/ios/icon/[email protected]" width="100" height="100"/>
41-
<icon src="resources/ios/icon/icon-60.png" width="60" height="60"/>
42-
<icon src="resources/ios/icon/[email protected]" width="120" height="120"/>
43-
<icon src="resources/ios/icon/[email protected]" width="180" height="180"/>
44-
<icon src="resources/ios/icon/icon-72.png" width="72" height="72"/>
45-
<icon src="resources/ios/icon/[email protected]" width="144" height="144"/>
46-
<icon src="resources/ios/icon/icon-76.png" width="76" height="76"/>
47-
<icon src="resources/ios/icon/[email protected]" width="152" height="152"/>
48-
<icon src="resources/ios/icon/[email protected]" width="167" height="167"/>
49-
<icon src="resources/ios/icon/icon-small.png" width="29" height="29"/>
50-
<icon src="resources/ios/icon/[email protected]" width="58" height="58"/>
51-
<icon src="resources/ios/icon/[email protected]" width="87" height="87"/>
52-
<splash src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" height="1136"/>
53-
<splash src="resources/ios/splash/Default-667h.png" width="750" height="1334"/>
54-
<splash src="resources/ios/splash/Default-736h.png" width="1242" height="2208"/>
55-
<splash src="resources/ios/splash/Default-Landscape-736h.png" width="2208" height="1242"/>
56-
<splash src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" height="1536"/>
57-
<splash src="resources/ios/splash/Default-Landscape@~ipadpro.png" width="2732" height="2048"/>
58-
<splash src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" height="768"/>
59-
<splash src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" height="2048"/>
60-
<splash src="resources/ios/splash/Default-Portrait@~ipadpro.png" width="2048" height="2732"/>
61-
<splash src="resources/ios/splash/Default-Portrait~ipad.png" width="768" height="1024"/>
62-
<splash src="resources/ios/splash/Default@2x~iphone.png" width="640" height="960"/>
63-
<splash src="resources/ios/splash/Default~iphone.png" width="320" height="480"/>
64-
</platform>
65-
<preference name="webviewbounce" value="false"/>
66-
<preference name="UIWebViewBounce" value="false"/>
67-
<preference name="DisallowOverscroll" value="true"/>
68-
<preference name="android-minSdkVersion" value="16"/>
69-
<preference name="BackupWebStorage" value="none"/>
70-
<preference name="SplashMaintainAspectRatio" value="true"/>
71-
<preference name="FadeSplashScreenDuration" value="300"/>
72-
<preference name="SplashShowOnlyFirstTime" value="false"/>
73-
<feature name="StatusBar">
74-
<param name="ios-package" onload="true" value="CDVStatusBar"/>
75-
</feature>
76-
<plugin name="cordova-plugin-whitelist" spec="~1.3.1"/>
77-
<plugin name="cordova-plugin-statusbar" spec="~2.2.1"/>
78-
<plugin name="cordova-plugin-device" spec="~1.1.4"/>
79-
<plugin name="cordova-plugin-console" spec="~1.0.5"/>
80-
<plugin name="cordova-plugin-splashscreen" spec="~4.0.1"/>
81-
<plugin name="ionic-plugin-keyboard" spec="~2.2.1"/>
82-
<icon src="resources/ios/icon/[email protected]"/>
83-
</widget>
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<widget id="vehicle.manufacture.demo" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
3+
<name>Arium</name>
4+
<description>An awesome demo for Vehicle Lifecycle.</description>
5+
<author email="[email protected]">Anna Thomas</author>
6+
<content src="index.html" />
7+
<access origin="*" />
8+
<allow-navigation href="http://ionic.local/*" />
9+
<allow-intent href="http://*/*" />
10+
<allow-intent href="https://*/*" />
11+
<allow-intent href="tel:*" />
12+
<allow-intent href="sms:*" />
13+
<allow-intent href="mailto:*" />
14+
<allow-intent href="geo:*" />
15+
<platform name="android">
16+
<allow-intent href="market:*" />
17+
</platform>
18+
<platform name="ios">
19+
<allow-intent href="itms:*" />
20+
<allow-intent href="itms-apps:*" />
21+
<icon height="57" src="resources/ios/icon/icon.png" width="57" />
22+
<icon height="114" src="resources/ios/icon/[email protected]" width="114" />
23+
<icon height="40" src="resources/ios/icon/icon-40.png" width="40" />
24+
<icon height="80" src="resources/ios/icon/[email protected]" width="80" />
25+
<icon height="120" src="resources/ios/icon/[email protected]" width="120" />
26+
<icon height="50" src="resources/ios/icon/icon-50.png" width="50" />
27+
<icon height="100" src="resources/ios/icon/[email protected]" width="100" />
28+
<icon height="60" src="resources/ios/icon/icon-60.png" width="60" />
29+
<icon height="120" src="resources/ios/icon/[email protected]" width="120" />
30+
<icon height="180" src="resources/ios/icon/[email protected]" width="180" />
31+
<icon height="72" src="resources/ios/icon/icon-72.png" width="72" />
32+
<icon height="144" src="resources/ios/icon/[email protected]" width="144" />
33+
<icon height="76" src="resources/ios/icon/icon-76.png" width="76" />
34+
<icon height="152" src="resources/ios/icon/[email protected]" width="152" />
35+
<icon height="167" src="resources/ios/icon/[email protected]" width="167" />
36+
<icon height="29" src="resources/ios/icon/icon-small.png" width="29" />
37+
<icon height="58" src="resources/ios/icon/[email protected]" width="58" />
38+
<icon height="87" src="resources/ios/icon/[email protected]" width="87" />
39+
<splash height="1136" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" />
40+
<splash height="1334" src="resources/ios/splash/Default-667h.png" width="750" />
41+
<splash height="2208" src="resources/ios/splash/Default-736h.png" width="1242" />
42+
<splash height="1242" src="resources/ios/splash/Default-Landscape-736h.png" width="2208" />
43+
<splash height="1536" src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" />
44+
<splash height="2048" src="resources/ios/splash/Default-Landscape@~ipadpro.png" width="2732" />
45+
<splash height="768" src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" />
46+
<splash height="2048" src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" />
47+
<splash height="2732" src="resources/ios/splash/Default-Portrait@~ipadpro.png" width="2048" />
48+
<splash height="1024" src="resources/ios/splash/Default-Portrait~ipad.png" width="768" />
49+
<splash height="960" src="resources/ios/splash/Default@2x~iphone.png" width="640" />
50+
<splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" />
51+
</platform>
52+
<preference name="webviewbounce" value="false" />
53+
<preference name="UIWebViewBounce" value="false" />
54+
<preference name="DisallowOverscroll" value="true" />
55+
<preference name="android-minSdkVersion" value="16" />
56+
<preference name="BackupWebStorage" value="none" />
57+
<preference name="SplashMaintainAspectRatio" value="true" />
58+
<preference name="FadeSplashScreenDuration" value="300" />
59+
<preference name="SplashShowOnlyFirstTime" value="false" />
60+
<feature name="StatusBar">
61+
<param name="ios-package" onload="true" value="CDVStatusBar" />
62+
</feature>
63+
<plugin name="cordova-plugin-whitelist" spec="~1.3.1" />
64+
<plugin name="cordova-plugin-statusbar" spec="~2.2.1" />
65+
<plugin name="cordova-plugin-device" spec="~1.1.4" />
66+
<plugin name="cordova-plugin-console" spec="~1.0.5" />
67+
<plugin name="cordova-plugin-splashscreen" spec="~4.0.1" />
68+
<plugin name="ionic-plugin-keyboard" spec="~2.2.1" />
69+
<icon src="resources/ios/icon/[email protected]" />
70+
<engine name="ios" spec="~4.5.4" />
71+
</widget>
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"name": "vehicleLifecycle",
33
"app_id": "test",
4-
"type": "ionic-angular"
4+
"type": "ionic-angular",
5+
"integrations": {
6+
"cordova": {}
7+
}
58
}

packages/vehicle-manufacture-car-builder/package.json

+30-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vehicle-manufacture-car-builder",
33
"private": false,
44
"author": "Hyperledger Composer",
5-
"homepage": "http://ionicframework.com/",
5+
"homepage": "http://github.com/hyperledger/composer-sample-applications",
66
"scripts": {
77
"clean": "ionic-app-scripts clean",
88
"build": "ionic-app-scripts build",
@@ -37,8 +37,20 @@
3737
}
3838
},
3939
"dependencies": {
40+
"@ionic-native/keyboard": "3.4.2",
4041
"config": "^1.26.1",
42+
"cordova-ios": "^4.5.4",
43+
"cordova-plugin-compat": "^1.2.0",
44+
"cordova-plugin-console": "^1.1.0",
45+
"cordova-plugin-device": "^1.1.7",
46+
"cordova-plugin-ionic-keyboard": "^2.1.2",
47+
"cordova-plugin-ionic-webview": "^1.2.1",
48+
"cordova-plugin-splashscreen": "^4.1.0",
49+
"cordova-plugin-statusbar": "^2.4.2",
50+
"cordova-plugin-whitelist": "^1.3.3",
4151
"express": "^4.15.2",
52+
"ionic-plugin-keyboard": "^2.2.1",
53+
"shelljs": "^0.8.2",
4254
"ws": "^2.3.1"
4355
},
4456
"devDependencies": {
@@ -68,5 +80,20 @@
6880
},
6981
"version": "0.0.7",
7082
"description": "Vehicle Lifecycle - A mobile application for the customers view",
71-
"license": "Apache-2.0"
72-
}
83+
"license": "Apache-2.0",
84+
"cordova": {
85+
"plugins": {
86+
"cordova-plugin-console": {},
87+
"cordova-plugin-device": {},
88+
"cordova-plugin-splashscreen": {},
89+
"cordova-plugin-statusbar": {},
90+
"cordova-plugin-whitelist": {},
91+
"ionic-plugin-keyboard": {},
92+
"cordova-plugin-ionic-webview": {},
93+
"cordova-plugin-ionic-keyboard": {}
94+
},
95+
"platforms": [
96+
"ios"
97+
]
98+
}
99+
}

packages/vehicle-manufacture-car-builder/src/app/app.module.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { SplashScreen } from '@ionic-native/splash-screen';
1818
import { StatusBar } from '@ionic-native/status-bar';
1919
import { CloudSettings, CloudModule } from '@ionic/cloud-angular';
2020
import { HttpModule } from '@angular/http';
21+
import { Keyboard } from '@ionic-native/keyboard';
2122

2223
import { MyApp } from './app.component';
2324
import { LoginPage } from '../pages/login/login';
@@ -26,6 +27,8 @@ import { BuilderPage } from '../pages/builder/builder';
2627
import { StatusPage } from '../pages/status/status';
2728
import { CarSlideComponent } from '../components/car-slide/car-slide';
2829
import { HeaderComponent } from '../components/header/header';
30+
import { SettingsPage } from '../pages/settings/settings';
31+
import { ConfigProvider } from '../providers/config/config';
2932

3033
// This needs to be changed if interacting with Ionic services - https://docs.ionic.io/setup.html
3134
const cloudSettings: CloudSettings = {
@@ -38,6 +41,7 @@ const cloudSettings: CloudSettings = {
3841
declarations: [
3942
MyApp,
4043
LoginPage,
44+
SettingsPage,
4145
DesignerPage,
4246
BuilderPage,
4347
StatusPage,
@@ -54,14 +58,17 @@ const cloudSettings: CloudSettings = {
5458
entryComponents: [
5559
MyApp,
5660
LoginPage,
61+
SettingsPage,
5762
DesignerPage,
5863
BuilderPage,
5964
StatusPage
6065
],
6166
providers: [
6267
StatusBar,
6368
SplashScreen,
64-
{provide: ErrorHandler, useClass: IonicErrorHandler}
69+
Keyboard,
70+
{provide: ErrorHandler, useClass: IonicErrorHandler},
71+
ConfigProvider
6572
]
6673
})
6774
export class AppModule {}
Loading
Loading

0 commit comments

Comments
 (0)