Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions client/.sourcemaps/0.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions client/.sourcemaps/1.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions client/.sourcemaps/main.js.map

Large diffs are not rendered by default.

20 changes: 15 additions & 5 deletions client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,21 @@

## Installation instructions
```
npm install -g cordova ionic
npm install -g ios-sim ios-deploy //if emulating or deploying to ios device
npm install
ionic state restore
ionic serve || ionic run ios|android || ionic emulate ios|android
npm install -g cordova // to install cordova
npm install -g ionic // to install ionic

cd client // to go to the root directory
npm install // to install all dependencies

ionic cordova platform add android // to add android platform
ionic cordova platform add ios // to add ios platform
ionic cordova emulate android // to emulate in android emulator
ionic cordova emulate ios // to emulate in ios emulator

ionic cordova build android // to generate .apk file
ionic cordova build ios // to generate for ios

ionic lab // to emulate in all 3 platforms (Android, IOS, Windows) in the browser
```

## Feature list
Expand Down
61 changes: 32 additions & 29 deletions client/config.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="edu.bu.sail.urbanrefuge" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Urban Refuge</name>
<widget id="edu.bu.sail.urbanrefuge" version="2.00" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>MyApp</name>
<description>App to locate non-governmental organizations and service providers for non-camp, urban refugees living in Amman, Jordan.</description>
<author email="hicsail@bu.edu" href="https://sail.bu.edu">Boston University Software &amp; Application Innovation Lab</author>
<content src="index.html" />
<access origin="*" />
<allow-navigation href="http://ionic.local/*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<preference name="ScrollEnabled" value="false" />
<preference name="android-minSdkVersion" value="19" />
<preference name="BackupWebStorage" value="none" />
<preference name="SplashMaintainAspectRatio" value="true" />
<preference name="FadeSplashScreenDuration" value="300" />
<preference name="SplashShowOnlyFirstTime" value="false" />
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="3000" />
<platform name="android">
<allow-intent href="market:*" />
<icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
Expand Down Expand Up @@ -65,30 +72,26 @@
<splash height="960" src="resources/ios/splash/Default@2x~iphone.png" width="640" />
<splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" />
</platform>
<preference name="webviewbounce" value="false" />
<preference name="UIWebViewBounce" value="false" />
<preference name="DisallowOverscroll" value="true" />
<preference name="android-minSdkVersion" value="16" />
<preference name="BackupWebStorage" value="none" />
<preference name="SplashMaintainAspectRatio" value="true" />
<preference name="FadeSplashScreenDuration" value="300" />
<preference name="SplashShowOnlyFirstTime" value="false" />
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="3000" />
<feature name="StatusBar">
<param name="ios-package" onload="true" value="CDVStatusBar" />
</feature>
<engine name="android" spec="~6.1.2" />
<plugin name="ionic-plugin-keyboard" spec="~2.2.1" />
<plugin name="cordova-plugin-whitelist" spec="1.3.1" />
<plugin name="cordova-plugin-console" spec="1.0.5" />
<plugin name="cordova-plugin-statusbar" spec="2.2.1" />
<plugin name="cordova-plugin-device" spec="1.1.4" />
<plugin name="cordova-plugin-splashscreen" spec="~4.0.1" />
<plugin name="cordova-plugin-geolocation" spec="~2.4.2" />
<plugin name="cordova-plugin-inappbrowser" spec="~1.7.0" />
<plugin name="cordova-plugin-hockeyapp" spec="~2.2.3" />

<icon src="resources/android/icon/drawable-xhdpi-icon.png" />

<plugin name="cordova-plugin-whitelist" spec="1.3.3" />
<plugin name="cordova-plugin-device" spec="2.0.2" />
<plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
<plugin name="cordova-plugin-ionic-webview" spec="1.1.19" />
<plugin name="cordova-plugin-ionic-keyboard" spec="2.0.5" />
<plugin name="cordova-plugin-hockeyapp" spec="^5.1.2" />
<plugin name="cordova-plugin-email-composer" spec="^0.8.15" />
<plugin name="mx.ferreyra.callnumber" spec="~0.0.2" />
<allow-navigation href="http://155.41.15.180:8100" />
<plugin name="cordova-sms-plugin" spec="^0.1.11" />
<edit-config file="*-Info.plist" mode="merge" target="NSLocationWhenInUseUsageDescription">
<string>We want your location! Best regards NSA</string>
</edit-config>
<plugin name="cordova-plugin-geolocation" spec="^4.0.1">
<variable name="GEOLOCATION_USAGE_DESCRIPTION" value="To locate you" />
</plugin>
<allow-navigation href="http://155.41.57.70:8100" />
<allow-navigation href="http://155.41.63.50:8100" />
<plugin name="cordova-plugin-statusbar" spec="^2.4.2" />
<plugin name="cordova-plugin-inappbrowser" spec="^3.0.0" />
<engine name="android" spec="7.0.0" />
<engine name="ios" spec="4.5.4" />
</widget>
6 changes: 4 additions & 2 deletions client/ionic.config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"name": "urban-refuge",
"app_id": "",
"v2": true,
"typescript": true
"integrations": {
"cordova": {}
},
"type": "ionic-angular"
}
Loading