Merge branch 'MOHEMM-Q3-DEV-LATEST' into enad-pre-live
commit
80a8c5937d
@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "com.huawei.cordovahmsgmscheckplugin",
|
||||
"version": "1.0.0",
|
||||
"description": "Account Check Kit 4.0",
|
||||
"cordova": {
|
||||
"id": "com.huawei.cordovahmsgmscheckplugin",
|
||||
"platforms": [
|
||||
"android"
|
||||
]
|
||||
},
|
||||
"keywords": [
|
||||
"ecosystem:cordova",
|
||||
"cordova-android"
|
||||
],
|
||||
"author": "",
|
||||
"license": "ISC"
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "com.huawei.cordovahmslocationplugin",
|
||||
"version": "1.0.0",
|
||||
"description": "Location Service",
|
||||
"cordova": {
|
||||
"id": "com.huawei.cordovahmslocationplugin",
|
||||
"platforms": [
|
||||
"android"
|
||||
]
|
||||
},
|
||||
"keywords": [
|
||||
"ecosystem:cordova",
|
||||
"cordova-android"
|
||||
],
|
||||
"author": "",
|
||||
"license": "ISC"
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "cordovahmspushplugin",
|
||||
"version": "1.0.0",
|
||||
"description": "For Hms Push",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "test",
|
||||
"license": "ISC",
|
||||
"cordova": {
|
||||
"id": "com.huawei.cordovahmspushplugin",
|
||||
"platforms": [
|
||||
"android"
|
||||
]
|
||||
},
|
||||
"keywords": [
|
||||
"ecosystem:cordova",
|
||||
"cordova-android"
|
||||
]
|
||||
}
|
||||
@ -0,0 +1,147 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<widget id="hmg.cloudSolutions.mohem" version="3.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
|
||||
<name>MOHEMM</name>
|
||||
<description>an app created by cloud Solutions</description>
|
||||
<author email="eservicescs@cloudsolution-sa.com" href="http://cloudsolution-sa.com">Cloud Solutions</author>
|
||||
<content src="index.html" />
|
||||
<content src="index.html" />
|
||||
<access origin="*" />
|
||||
<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="KeyboardResize" value="true" />
|
||||
<preference name="KeyboardResizeMode" value="native" />
|
||||
<preference name="HideKeyboardFormAccessoryBar" value="false" />
|
||||
<preference name="BackupWebStorage" value="none" />
|
||||
<preference name="SplashMaintainAspectRatio" value="true" />
|
||||
<preference name="FadeSplashScreenDuration" value="1000" />
|
||||
<preference name="SplashShowOnlyFirstTime" value="false" />
|
||||
<preference name="SplashScreen" value="screen" />
|
||||
<preference name="fullscreen" value="false" />
|
||||
<preference name="FadeSplashScreen" value="false" />
|
||||
<preference name="AutoHideSplashScreen" value="false" />
|
||||
<preference name="ShowSplashScreenSpinner" value="false" />
|
||||
<preference name="orientation" value="portrait" />
|
||||
<platform name="android">
|
||||
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<application android:networkSecurityConfig="@xml/network_security_config" />
|
||||
</edit-config>
|
||||
<resource-file src="resources/android/xml/network_security_config.xml" target="app/src/main/res/xml/network_security_config.xml" />
|
||||
<allow-intent href="market:*" />
|
||||
<icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
|
||||
<icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
|
||||
<icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
|
||||
<icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
|
||||
<icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
|
||||
<icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
|
||||
<splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
|
||||
<splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
|
||||
<splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
|
||||
<splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
|
||||
<splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
|
||||
<splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
|
||||
<splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
|
||||
<splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
|
||||
<splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
|
||||
<splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
|
||||
<splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
|
||||
<splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
|
||||
<feature name="SocialSharing">
|
||||
<param name="android-package" value="nl.xservices.plugins.SocialSharing" />
|
||||
</feature>
|
||||
</platform>
|
||||
<platform name="ios">
|
||||
<allow-intent href="itms:*" />
|
||||
<allow-intent href="itms-apps:*" />
|
||||
<icon height="57" src="resources/ios/icon/icon.png" width="57" />
|
||||
<icon height="114" src="resources/ios/icon/icon@2x.png" width="114" />
|
||||
<icon height="40" src="resources/ios/icon/icon-40.png" width="40" />
|
||||
<icon height="80" src="resources/ios/icon/icon-40@2x.png" width="80" />
|
||||
<icon height="120" src="resources/ios/icon/icon-40@3x.png" width="120" />
|
||||
<icon height="50" src="resources/ios/icon/icon-50.png" width="50" />
|
||||
<icon height="100" src="resources/ios/icon/icon-50@2x.png" width="100" />
|
||||
<icon height="60" src="resources/ios/icon/icon-60.png" width="60" />
|
||||
<icon height="120" src="resources/ios/icon/icon-60@2x.png" width="120" />
|
||||
<icon height="180" src="resources/ios/icon/icon-60@3x.png" width="180" />
|
||||
<icon height="72" src="resources/ios/icon/icon-72.png" width="72" />
|
||||
<icon height="144" src="resources/ios/icon/icon-72@2x.png" width="144" />
|
||||
<icon height="76" src="resources/ios/icon/icon-76.png" width="76" />
|
||||
<icon height="152" src="resources/ios/icon/icon-76@2x.png" width="152" />
|
||||
<icon height="167" src="resources/ios/icon/icon-83.5@2x.png" width="167" />
|
||||
<icon height="1024" src="resources/ios/icon/icon-1024.png" width="1024" />
|
||||
<splash height="1136" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" />
|
||||
<splash height="1334" src="resources/ios/splash/Default-667h.png" width="750" />
|
||||
<splash height="2208" src="resources/ios/splash/Default-736h.png" width="1242" />
|
||||
<splash height="1242" src="resources/ios/splash/Default-Landscape-736h.png" width="2208" />
|
||||
<splash height="1536" src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" />
|
||||
<splash height="2048" src="resources/ios/splash/Default-Landscape@~ipadpro.png" width="2732" />
|
||||
<splash height="768" src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" />
|
||||
<splash height="2048" src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" />
|
||||
<splash height="2732" src="resources/ios/splash/Default-Portrait@~ipadpro.png" width="2048" />
|
||||
<splash height="1024" src="resources/ios/splash/Default-Portrait~ipad.png" width="768" />
|
||||
<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" />
|
||||
<splash height="2732" src="resources/ios/splash/Default@2x~universal~anyany.png" width="2732" />
|
||||
<icon height="20" src="resources/ios/icon/icon-20.png" width="20" />
|
||||
<icon height="40" src="resources/ios/icon/icon-20@2x.png" width="40" />
|
||||
<icon height="60" src="resources/ios/icon/icon-20@3x.png" width="60" />
|
||||
<icon height="29" src="resources/ios/icon/icon-29.png" width="29" />
|
||||
<icon height="58" src="resources/ios/icon/icon-29@2x.png" width="58" />
|
||||
<icon height="87" src="resources/ios/icon/icon-29@3x.png" width="87" />
|
||||
<icon height="48" src="resources/ios/icon/icon-24@2x.png" width="48" />
|
||||
<icon height="55" src="resources/ios/icon/icon-27.5@2x.png" width="55" />
|
||||
<icon height="88" src="resources/ios/icon/icon-44@2x.png" width="88" />
|
||||
<icon height="172" src="resources/ios/icon/icon-86@2x.png" width="172" />
|
||||
<icon height="196" src="resources/ios/icon/icon-98@2x.png" width="196" />
|
||||
<icon height="216" src="resources/ios/icon/icon-108@2x.png" width="216" />
|
||||
<splash height="2688" src="resources/ios/splash/Default-2688h~iphone.png" width="1242" />
|
||||
<splash height="1242" src="resources/ios/splash/Default-Landscape-2688h~iphone.png" width="2688" />
|
||||
<splash height="1792" src="resources/ios/splash/Default-1792h~iphone.png" width="828" />
|
||||
<splash height="828" src="resources/ios/splash/Default-Landscape-1792h~iphone.png" width="1792" />
|
||||
<splash height="2436" src="resources/ios/splash/Default-2436h.png" width="1125" />
|
||||
<splash height="1125" src="resources/ios/splash/Default-Landscape-2436h.png" width="2436" />
|
||||
</platform>
|
||||
<platform name="android">
|
||||
<preference name="android-minSdkVersion" value="22" />
|
||||
<preference name="android-targetSdkVersion" value="30" />
|
||||
</platform>
|
||||
<plugin name="cordova-plugin-whitelist" spec="1.3.3" />
|
||||
<plugin name="cordova-plugin-statusbar" spec="2.4.2" />
|
||||
<plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
|
||||
<plugin name="cordova-plugin-geolocation" spec="~4.0.1" />
|
||||
<plugin name="cordova-plugin-datepicker" spec="~0.9.3" />
|
||||
<plugin name="cordova-plugin-ionic-webview" spec="4.1.0">
|
||||
<variable name="ANDROID_SUPPORT_ANNOTATIONS_VERSION" value="27.+" />
|
||||
</plugin>
|
||||
<plugin name="cordova-sqlite-storage" spec="^3.4.0" />
|
||||
<plugin name="cordova-plugin-nativestorage" spec="^2.3.2" />
|
||||
<plugin name="cordova-plugin-ble-central" spec="^1.2.4" />
|
||||
<plugin name="uk.co.workingedge.phonegap.plugin.launchnavigator" spec="^3.2.2" />
|
||||
<plugin name="cordova-plugin-themeablebrowser" spec="^0.2.18" />
|
||||
<plugin name="cordova-plugin-inappbrowser" spec="^3.1.0" />
|
||||
<plugin name="cordova-plugin-globalization" spec="^1.11.0" />
|
||||
<plugin name="cordova-plugin-android-permissions" spec="^1.0.2" />
|
||||
<plugin name="cordova-plugin-device" spec="^2.0.3" />
|
||||
<plugin name="cordova-plugin-local-notification" spec="^0.9.0-beta.2" />
|
||||
<plugin name="cordova-plugin-badge" spec="^0.8.8" />
|
||||
<plugin name="cordova.plugins.diagnostic" spec="^5.0.1" />
|
||||
<plugin name="phonegap-plugin-barcodescanner" spec="^8.1.0">
|
||||
<variable name="ANDROID_SUPPORT_V4_VERSION" value="27.+" />
|
||||
</plugin>
|
||||
<plugin name="cordova-plugin-camera" spec="^4.1.0" />
|
||||
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.2.0" />
|
||||
<plugin name="cordova-opentok-android-permissions" spec="^1.0.1" />
|
||||
<plugin name="cordova-plugin-appavailability" spec="^0.4.2" />
|
||||
<plugin name="cordova-plugin-apprate" spec="^1.4.0" />
|
||||
<plugin name="cordova-plugin-file" spec="^6.0.2" />
|
||||
<plugin name="cordova-plugin-filepath" spec="^1.5.6" />
|
||||
<plugin name="com-badrit-base64" spec="^0.2.0" />
|
||||
<plugin name="cordova-plugin-fingerprint-aio" spec="^3.0.0">
|
||||
<variable name="FACEID_USAGE_DESCRIPTION" value="User Authentication" />
|
||||
</plugin>
|
||||
<allow-navigation href="http://localhost:8100" sessionid="ccddd6d3" />
|
||||
</widget>
|
||||
@ -0,0 +1,257 @@
|
||||
{
|
||||
"name": "MOHEM",
|
||||
"version": "0.0.1",
|
||||
"author": "Cloud Solutions",
|
||||
"homepage": "http://www.cloudsolution-sa.com/",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"ng": "ng",
|
||||
"start": "ng serve",
|
||||
"build": "ng build",
|
||||
"test": "ng test",
|
||||
"lint": "ng lint",
|
||||
"e2e": "ng e2e"
|
||||
},
|
||||
"dependencies": {
|
||||
"@angular/animations": "^7.2.15",
|
||||
"@angular/common": "^7.2.2",
|
||||
"@angular/core": "^7.2.2",
|
||||
"@angular/forms": "^7.2.2",
|
||||
"@angular/http": "^7.2.2",
|
||||
"@angular/platform-browser": "^7.2.2",
|
||||
"@angular/platform-browser-dynamic": "^7.2.2",
|
||||
"@angular/router": "^7.2.2",
|
||||
"@ionic-native/android-permissions": "^5.18.0",
|
||||
"@ionic-native/app-availability": "^5.18.0",
|
||||
"@ionic-native/app-rate": "^5.18.0",
|
||||
"@ionic-native/background-geolocation": "^5.30.0",
|
||||
"@ionic-native/badge": "^5.18.0",
|
||||
"@ionic-native/barcode-scanner": "^5.18.0",
|
||||
"@ionic-native/base64": "^5.18.0",
|
||||
"@ionic-native/ble": "^5.18.0",
|
||||
"@ionic-native/camera": "^5.18.0",
|
||||
"@ionic-native/core": "^5.8.0",
|
||||
"@ionic-native/date-picker": "^5.10.0",
|
||||
"@ionic-native/device": "^5.18.0",
|
||||
"@ionic-native/diagnostic": "^5.18.0",
|
||||
"@ionic-native/file": "^5.18.0",
|
||||
"@ionic-native/file-chooser": "^5.36.0",
|
||||
"@ionic-native/file-opener": "^5.36.0",
|
||||
"@ionic-native/file-path": "^5.18.0",
|
||||
"@ionic-native/file-picker": "^5.36.0",
|
||||
"@ionic-native/fingerprint-aio": "^5.18.0",
|
||||
"@ionic-native/firebase-x": "^5.34.0",
|
||||
"@ionic-native/geolocation": "^5.10.0",
|
||||
"@ionic-native/globalization": "^5.18.0",
|
||||
"@ionic-native/health": "^5.4.0",
|
||||
"@ionic-native/in-app-browser": "^5.17.0",
|
||||
"@ionic-native/keyboard": "^5.17.0",
|
||||
"@ionic-native/launch-navigator": "^5.17.0",
|
||||
"@ionic-native/local-notifications": "^5.17.0",
|
||||
"@ionic-native/native-storage": "^5.17.0",
|
||||
"@ionic-native/nfc": "^5.30.0",
|
||||
"@ionic-native/open-native-settings": "^5.14.0",
|
||||
"@ionic-native/sms-retriever": "^5.36.0",
|
||||
"@ionic-native/social-sharing": "^5.34.0",
|
||||
"@ionic-native/splash-screen": "^5.0.0",
|
||||
"@ionic-native/sqlite": "^5.18.0",
|
||||
"@ionic-native/status-bar": "^5.0.0",
|
||||
"@ionic-native/themeable-browser": "^5.18.0",
|
||||
"@ionic-native/wifi-wizard-2": "^5.31.1",
|
||||
"@ionic-native/zbar": "^5.10.0",
|
||||
"@ionic/angular": "^4.1.0",
|
||||
"@ng-bootstrap/ng-bootstrap": "^4.2.2",
|
||||
"@swimlane/ngx-charts": "^10.1.0",
|
||||
"angular-calendar": "^0.26.11",
|
||||
"app": "0.1.0",
|
||||
"chart.js": "^2.9.3",
|
||||
"com-badrit-base64": "^0.2.0",
|
||||
"cordova-android": "^8.1.0",
|
||||
"cordova-android-support-gradle-release": "^3.0.1",
|
||||
"cordova-open-native-settings": "^1.5.2",
|
||||
"cordova-opentok-android-permissions": "^1.0.1",
|
||||
"cordova-plugin-actionsheet": "^2.3.3",
|
||||
"cordova-plugin-add-swift-support": "^2.0.2",
|
||||
"cordova-plugin-android-permissions": "^1.0.2",
|
||||
"cordova-plugin-androidx": "^1.0.2",
|
||||
"cordova-plugin-androidx-adapter": "^1.1.0",
|
||||
"cordova-plugin-appavailability": "^0.4.2",
|
||||
"cordova-plugin-apprate": "^1.4.0",
|
||||
"cordova-plugin-badge": "^0.8.8",
|
||||
"cordova-plugin-ble-central": "^1.2.4",
|
||||
"cordova-plugin-camera": "^4.1.0",
|
||||
"cordova-plugin-datepicker": "^0.9.3",
|
||||
"cordova-plugin-device": "^2.0.3",
|
||||
"cordova-plugin-dialogs": "^2.0.2",
|
||||
"cordova-plugin-file": "^6.0.2",
|
||||
"cordova-plugin-file-opener2": "^3.0.5",
|
||||
"cordova-plugin-filechooser": "^1.2.0",
|
||||
"cordova-plugin-filepath": "^1.5.6",
|
||||
"cordova-plugin-filepicker": "^1.1.6",
|
||||
"cordova-plugin-fingerprint-aio": "^3.0.0",
|
||||
"cordova-plugin-firebasex": "^13.0.0",
|
||||
"cordova-plugin-geolocation": "^4.0.2",
|
||||
"cordova-plugin-globalization": "^1.11.0",
|
||||
"cordova-plugin-inappbrowser": "^3.1.0",
|
||||
"cordova-plugin-ionic-keyboard": "^2.2.0",
|
||||
"cordova-plugin-ionic-webview": "^4.1.0",
|
||||
"cordova-plugin-local-notification": "^0.9.0-beta.2",
|
||||
"cordova-plugin-nativestorage": "^2.3.2",
|
||||
"cordova-plugin-sms-retriever-manager": "^1.0.3",
|
||||
"cordova-plugin-splashscreen": "^5.0.3",
|
||||
"cordova-plugin-statusbar": "^2.4.3",
|
||||
"cordova-plugin-themeablebrowser": "^0.2.18",
|
||||
"cordova-plugin-whitelist": "^1.3.4",
|
||||
"cordova-plugin-wifiwizard2": "^3.1.1",
|
||||
"cordova-plugin-x-socialsharing": "^6.0.3",
|
||||
"cordova-sqlite-storage": "^3.4.0",
|
||||
"cordova-support-google-services": "^1.3.2",
|
||||
"cordova.plugins.diagnostic": "^5.0.1",
|
||||
"core-js": "^2.5.4",
|
||||
"date-fns": "^1.30.1",
|
||||
"es6-promise-plugin": "^4.1.0",
|
||||
"ionic2-calendar": "^0.5.8",
|
||||
"ionic4-rating": "^1.0.9",
|
||||
"ng-circle-progress": "^1.5.1",
|
||||
"ng2-file-upload": "^1.3.0",
|
||||
"ng2-pdf-viewer": "^5.3.2",
|
||||
"ngx-gauge": "^1.0.0-beta.10",
|
||||
"npm": "^6.14.11",
|
||||
"phonegap-nfc": "^1.2.0",
|
||||
"phonegap-plugin-barcodescanner": "^8.1.0",
|
||||
"phonegap-plugin-multidex": "^1.0.0",
|
||||
"primeicons": "^1.0.0",
|
||||
"primeng": "^7.1.3",
|
||||
"run": "1.4.0",
|
||||
"rxjs": "~6.3.3",
|
||||
"tslib": "^1.10.0",
|
||||
"uk.co.workingedge.phonegap.plugin.launchnavigator": "^3.2.2",
|
||||
"xlsx": "^0.14.3",
|
||||
"zone.js": "~0.8.29"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-devkit/architect": "~0.12.3",
|
||||
"@angular-devkit/build-angular": "^0.13.9",
|
||||
"@angular-devkit/core": "~7.2.3",
|
||||
"@angular-devkit/schematics": "~7.2.3",
|
||||
"@angular/cli": "^7.3.6",
|
||||
"@angular/compiler": "~7.2.2",
|
||||
"@angular/compiler-cli": "~7.2.2",
|
||||
"@angular/language-service": "~7.2.2",
|
||||
"@ionic/angular-toolkit": "~1.4.0",
|
||||
"@ionic/lab": "3.1.2",
|
||||
"@types/jasmine": "~2.8.8",
|
||||
"@types/jasminewd2": "~2.0.3",
|
||||
"@types/node": "~10.12.0",
|
||||
"codelyzer": "~4.5.0",
|
||||
"com.huawei.cordovahmsgmscheckplugin": "file:CordovaHMSPlugin/CordovaHMSGMSCheckPlugin",
|
||||
"com.huawei.cordovahmslocationplugin": "file:CordovaHMSPlugin/CordovaHMSLocationPlugin",
|
||||
"cordova-ios": "^6.2.0",
|
||||
"cordova-plugin-wifiwizard2": "^3.1.1",
|
||||
"es6-promise-plugin": "^4.1.0",
|
||||
"jasmine-core": "~2.99.1",
|
||||
"jasmine-spec-reporter": "~4.2.1",
|
||||
"karma": "^4.0.1",
|
||||
"karma-chrome-launcher": "~2.2.0",
|
||||
"karma-coverage-istanbul-reporter": "~2.0.1",
|
||||
"karma-jasmine": "~1.1.2",
|
||||
"karma-jasmine-html-reporter": "^0.2.2",
|
||||
"node-sass": "^4.13.1",
|
||||
"protractor": "^5.4.3",
|
||||
"ts-node": "~8.0.0",
|
||||
"tslint": "~5.12.0",
|
||||
"typescript": "3.1.6"
|
||||
},
|
||||
"description": "An Ionic project",
|
||||
"cordova": {
|
||||
"plugins": {
|
||||
"cordova-plugin-whitelist": {},
|
||||
"cordova-plugin-statusbar": {},
|
||||
"cordova-plugin-device": {},
|
||||
"cordova-plugin-splashscreen": {},
|
||||
"cordova-plugin-nativestorage": {},
|
||||
"cordova-plugin-globalization": {},
|
||||
"cordova-plugin-android-permissions": {},
|
||||
"cordova-plugin-badge": {},
|
||||
"cordova-plugin-ionic-keyboard": {},
|
||||
"cordova-plugin-datepicker": {},
|
||||
"cordova-plugin-geolocation": {},
|
||||
"phonegap-plugin-barcodescanner": {
|
||||
"ANDROID_SUPPORT_V4_VERSION": "27.+"
|
||||
},
|
||||
"cordova-plugin-ionic-webview": {
|
||||
"ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
|
||||
},
|
||||
"cordova.plugins.diagnostic": {
|
||||
"ANDROID_SUPPORT_VERSION": "28.+"
|
||||
},
|
||||
"cordova-open-native-settings": {},
|
||||
"cordova-plugin-camera": {
|
||||
"ANDROID_SUPPORT_V4_VERSION": "27.+"
|
||||
},
|
||||
"cordova-plugin-file": {},
|
||||
"cordova-plugin-filepath": {},
|
||||
"com-badrit-base64": {},
|
||||
"cordova-sqlite-storage": {},
|
||||
"cordova-plugin-ble-central": {},
|
||||
"uk.co.workingedge.phonegap.plugin.launchnavigator": {},
|
||||
"cordova-plugin-themeablebrowser": {},
|
||||
"cordova-plugin-inappbrowser": {},
|
||||
"cordova-plugin-local-notification": {},
|
||||
"cordova-opentok-android-permissions": {},
|
||||
"cordova-plugin-appavailability": {},
|
||||
"cordova-plugin-apprate": {},
|
||||
"cordova-plugin-fingerprint-aio": {
|
||||
"FACEID_USAGE_DESCRIPTION": "User Authentication"
|
||||
},
|
||||
"cordova-plugin-androidx": {},
|
||||
"cordova-plugin-androidx-adapter": {},
|
||||
"cordova-plugin-background-geolocation": {
|
||||
"GOOGLE_PLAY_SERVICES_VERSION": "+"
|
||||
},
|
||||
"phonegap-nfc": {},
|
||||
"wifiwizard2": {},
|
||||
"com.huawei.cordovahmsgmscheckplugin": {},
|
||||
"com.huawei.cordovahmslocationplugin": {},
|
||||
"cordova-plugin-x-socialsharing": {},
|
||||
"cordova-plugin-firebasex": {
|
||||
"FIREBASE_ANALYTICS_COLLECTION_ENABLED": "true",
|
||||
"FIREBASE_PERFORMANCE_COLLECTION_ENABLED": "true",
|
||||
"FIREBASE_CRASHLYTICS_COLLECTION_ENABLED": "true",
|
||||
"ANDROID_ICON_ACCENT": "#FF00FFFF",
|
||||
"ANDROID_FIREBASE_PERFORMANCE_MONITORING": "false",
|
||||
"ANDROID_PLAY_SERVICES_TAGMANAGER_VERSION": "17.0.0",
|
||||
"ANDROID_PLAY_SERVICES_AUTH_VERSION": "19.0.0",
|
||||
"ANDROID_FIREBASE_ANALYTICS_VERSION": "19.0.0",
|
||||
"ANDROID_FIREBASE_MESSAGING_VERSION": "22.0.0",
|
||||
"ANDROID_FIREBASE_CONFIG_VERSION": "21.0.0",
|
||||
"ANDROID_FIREBASE_PERF_VERSION": "20.0.1",
|
||||
"ANDROID_FIREBASE_AUTH_VERSION": "21.0.1",
|
||||
"ANDROID_FIREBASE_INAPPMESSAGING_VERSION": "20.0.0",
|
||||
"ANDROID_FIREBASE_FIRESTORE_VERSION": "23.0.1",
|
||||
"ANDROID_FIREBASE_FUNCTIONS_VERSION": "20.0.0",
|
||||
"ANDROID_FIREBASE_IID_VERSION": "21.1.0",
|
||||
"ANDROID_FIREBASE_INSTALLATIONS_VERSION": "17.0.0",
|
||||
"ANDROID_FIREBASE_CRASHLYTICS_VERSION": "18.0.1",
|
||||
"ANDROID_FIREBASE_CRASHLYTICS_NDK_VERSION": "18.0.1",
|
||||
"ANDROID_GSON_VERSION": "2.8.7",
|
||||
"ANDROID_FIREBASE_PERF_GRADLE_PLUGIN_VERSION": "1.4.0"
|
||||
},
|
||||
"cordova-android-support-gradle-release": {
|
||||
"ANDROID_SUPPORT_VERSION": "27.+"
|
||||
},
|
||||
"cordova-plugin-sms-retriever-manager": {
|
||||
"PLAY_SERVICES_VERSION": "15.0.1"
|
||||
},
|
||||
"cordova-plugin-file-opener2": {
|
||||
"ANDROID_SUPPORT_V4_VERSION": "27.+"
|
||||
},
|
||||
"cordova-plugin-filepicker": {},
|
||||
"cordova-plugin-filechooser": {}
|
||||
},
|
||||
"platforms": [
|
||||
"android",
|
||||
"ios"
|
||||
]
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
<app-generic-header showImage="false" showBack="true" [headerText]="'itemforsale,offersdiscount' | translate">
|
||||
</app-generic-header>
|
||||
<ion-content>
|
||||
<div #map id="map">
|
||||
|
||||
</div>
|
||||
</ion-content>
|
||||
@ -0,0 +1,4 @@
|
||||
#map {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { LocationComponent } from './location.component';
|
||||
|
||||
describe('LocationComponent', () => {
|
||||
let component: LocationComponent;
|
||||
let fixture: ComponentFixture<LocationComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ LocationComponent ],
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(LocationComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@ -0,0 +1,79 @@
|
||||
import { Component, ElementRef, OnInit, ViewChild } from '@angular/core';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
import { HMGUtils } from 'src/app/hmg-common/hmg_utils';
|
||||
import { CommonService } from 'src/app/hmg-common/services/common/common.service';
|
||||
import { OfferDiscountService } from '../services/service';
|
||||
declare var google;
|
||||
@Component({
|
||||
selector: 'app-location',
|
||||
templateUrl: './location.component.html',
|
||||
styleUrls: ['./location.component.scss'],
|
||||
})
|
||||
|
||||
export class LocationComponent implements OnInit {
|
||||
@ViewChild('map') mapContainer: ElementRef;
|
||||
locations: any = [];
|
||||
map: any;
|
||||
offerDetails: any;
|
||||
constructor(public hmgUtils: HMGUtils, public route: ActivatedRoute, public cs: CommonService) {
|
||||
this.route
|
||||
.params.subscribe(val => {
|
||||
setTimeout(() => {
|
||||
this.ionEnter();
|
||||
}, 100);
|
||||
});
|
||||
}
|
||||
ionEnter() {
|
||||
this.locations = this.cs.sharedService.getSharedData(OfferDiscountService.selected_offers, false);
|
||||
this.offerDetails = this.cs.sharedService.getSharedData(OfferDiscountService.selected_offers, false);
|
||||
this.displayMap();
|
||||
}
|
||||
ngOnInit() {
|
||||
|
||||
}
|
||||
displayMap() {
|
||||
|
||||
const map = new google.maps.Map(
|
||||
document.getElementById("map") as HTMLElement,
|
||||
{
|
||||
zoom: 10,
|
||||
center: { lat: 24.7136, lng: 46.6753 },
|
||||
}
|
||||
);
|
||||
|
||||
this.setMarkers(map);
|
||||
|
||||
}
|
||||
setMarkers(map) {
|
||||
|
||||
for (let i = 0; i < this.locations.length; i++) {
|
||||
const loc = this.locations[i];
|
||||
const infoWindow = new google.maps.InfoWindow();
|
||||
var marker = new google.maps.Marker({
|
||||
position: { lat: loc.latitude, lng: loc.longitude },
|
||||
map,
|
||||
// icon: image,
|
||||
// shape: shape,
|
||||
title: this.offerDetails.Title,
|
||||
|
||||
});
|
||||
marker.addListener("click", () => {
|
||||
this.cs.openLocation(loc.latitude, loc.longitude)
|
||||
});
|
||||
}
|
||||
this.hmgUtils.getCurrentLocation((resp) => {
|
||||
console.log(resp);
|
||||
if (resp) {
|
||||
const latLng = new google.maps.LatLng(resp.latitude, resp.longitude);
|
||||
const mapOptions = {
|
||||
center: latLng,
|
||||
zoom: 17,
|
||||
mapTypeId: google.maps.MapTypeId.ROADMAP,
|
||||
myLocation: true
|
||||
};
|
||||
|
||||
this.map = new google.maps.Map(this.mapContainer.nativeElement, mapOptions);
|
||||
};
|
||||
})
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue