Fairoj: production environment setup

This commit is contained in:
saravanakumarkandasami 2019-08-20 13:34:24 +05:30
parent 4f3e8e811a
commit 60bae7b88f
95 changed files with 9861 additions and 5947 deletions

View File

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.sineedge.pdglender" version="0.0.4" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="com.sineedge.pdglender" version="0.0.5" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>PD Genie</name>
<description>info@pdgenie.com</description>
<author email="info@pdgenie.com" href="https://pdgenie.com">PD Genie</author>

5311
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
{
"name": "Ionic3AngularMaterial",
"name": "pdgenie",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
@ -23,6 +23,7 @@
"@angular/material": "^5.0.1",
"@angular/platform-browser": "5.0.3",
"@angular/platform-browser-dynamic": "5.0.3",
"@ionic-native/app-version": "^4.20.0",
"@ionic-native/camera": "^4.16.0",
"@ionic-native/core": "4.4.0",
"@ionic-native/fingerprint-aio": "^4.16.0",
@ -36,6 +37,7 @@
"chart.js": "^2.7.3",
"cordova-android": "7.1.1",
"cordova-browser": "5.0.4",
"cordova-plugin-app-version": "0.1.9",
"cordova-plugin-camera": "~4.0.3",
"cordova-plugin-compat": "1.2.0",
"cordova-plugin-device": "2.0.2",
@ -58,7 +60,7 @@
"zone.js": "0.8.18"
},
"devDependencies": {
"@ionic/app-scripts": "3.1.5",
"@ionic/app-scripts": "^3.2.4",
"typescript": "2.4.2"
},
"description": "An Ionic project",
@ -80,7 +82,8 @@
"cordova-plugin-ionic-keyboard": {},
"cordova-plugin-geolocation": {
"GEOLOCATION_USAGE_DESCRIPTION": "To locate you"
}
},
"cordova-plugin-app-version": {}
},
"platforms": [
"browser",

View File

@ -47,6 +47,10 @@
{
"xml": "<feature name=\"LaunchNavigator\"><param name=\"android-package\" value=\"uk.co.workingedge.phonegap.plugin.LaunchNavigator\" /></feature>",
"count": 1
},
{
"xml": "<feature name=\"AppVersion\"><param name=\"android-package\" value=\"uk.co.whiteoctober.cordova.AppVersion\" /></feature>",
"count": 1
}
]
}
@ -149,6 +153,9 @@
"uk.co.workingedge.phonegap.plugin.launchnavigator": {
"OKHTTP_VERSION": "3.+",
"PACKAGE_NAME": "io.ionic.starterlen"
},
"cordova-plugin-app-version": {
"PACKAGE_NAME": "com.sineedge.pdglender"
}
},
"dependent_plugins": {},
@ -294,6 +301,14 @@
"merges": [
"launchnavigator"
]
},
{
"id": "cordova-plugin-app-version.AppVersionPlugin",
"file": "plugins/cordova-plugin-app-version/www/AppVersionPlugin.js",
"pluginId": "cordova-plugin-app-version",
"clobbers": [
"cordova.getAppVersion"
]
}
],
"plugin_metadata": {
@ -308,6 +323,7 @@
"cordova-plugin-splashscreen": "5.0.2",
"cordova-plugin-statusbar": "2.4.2",
"cordova-plugin-whitelist": "1.3.3",
"uk.co.workingedge.phonegap.plugin.launchnavigator": "4.2.2"
"uk.co.workingedge.phonegap.plugin.launchnavigator": "4.2.2",
"cordova-plugin-app-version": "0.1.9"
}
}

View File

@ -8,6 +8,6 @@ public final class BuildConfig {
public static final String APPLICATION_ID = "com.sineedge.pdglender";
public static final String BUILD_TYPE = "release";
public static final String FLAVOR = "";
public static final int VERSION_CODE = 4;
public static final String VERSION_NAME = "0.0.4";
public static final int VERSION_CODE = 5;
public static final String VERSION_NAME = "0.0.5";
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -141,6 +141,14 @@ module.exports = [
"merges": [
"launchnavigator"
]
},
{
"id": "cordova-plugin-app-version.AppVersionPlugin",
"file": "plugins/cordova-plugin-app-version/www/AppVersionPlugin.js",
"pluginId": "cordova-plugin-app-version",
"clobbers": [
"cordova.getAppVersion"
]
}
];
module.exports.metadata =
@ -157,7 +165,8 @@ module.exports.metadata =
"cordova-plugin-splashscreen": "5.0.2",
"cordova-plugin-statusbar": "2.4.2",
"cordova-plugin-whitelist": "1.3.3",
"uk.co.workingedge.phonegap.plugin.launchnavigator": "4.2.2"
"uk.co.workingedge.phonegap.plugin.launchnavigator": "4.2.2",
"cordova-plugin-app-version": "0.1.9"
};
// BOTTOM OF METADATA
});

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
#Tue Aug 06 11:32:43 IST 2019
#Tue Aug 20 13:28:06 IST 2019
S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\build\\generated\\res\\pngs\\release\\drawable-hdpi\\ic_fingerprint_success.png=S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\build\\intermediates\\res\\merged\\release\\drawable-hdpi_ic_fingerprint_success.png.flat
S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\src\\main\\res\\drawable-xhdpi\\ic_fp_40px.png=S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\build\\intermediates\\res\\merged\\release\\drawable-xhdpi_ic_fp_40px.png.flat
S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\src\\main\\res\\mipmap-ldpi\\icon.png=S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\build\\intermediates\\res\\merged\\release\\mipmap-ldpi_icon.png.flat
@ -35,9 +35,9 @@ S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\build\\generated\\re
S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\src\\main\\res\\drawable-land-hdpi\\screen.png=S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\build\\intermediates\\res\\merged\\release\\drawable-land-hdpi_screen.png.flat
S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\src\\main\\res\\drawable-port-hdpi\\screen.png=S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\build\\intermediates\\res\\merged\\release\\drawable-port-hdpi_screen.png.flat
S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\src\\main\\res\\drawable-port-xhdpi\\screen.png=S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\build\\intermediates\\res\\merged\\release\\drawable-port-xhdpi_screen.png.flat
S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\src\\main\\res\\drawable-port-mdpi\\screen.png=S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\build\\intermediates\\res\\merged\\release\\drawable-port-mdpi_screen.png.flat
S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\src\\main\\res\\drawable-land-mdpi\\screen.png=S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\build\\intermediates\\res\\merged\\release\\drawable-land-mdpi_screen.png.flat
S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\src\\main\\res\\drawable-land-xxxhdpi\\screen.png=S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\build\\intermediates\\res\\merged\\release\\drawable-land-xxxhdpi_screen.png.flat
S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\src\\main\\res\\drawable-port-mdpi\\screen.png=S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\build\\intermediates\\res\\merged\\release\\drawable-port-mdpi_screen.png.flat
S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\build\\generated\\res\\pngs\\release\\drawable-ldpi\\ic_fingerprint_error.png=S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\build\\intermediates\\res\\merged\\release\\drawable-ldpi_ic_fingerprint_error.png.flat
S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\src\\main\\res\\drawable-land-xxxhdpi\\screen.png=S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\build\\intermediates\\res\\merged\\release\\drawable-land-xxxhdpi_screen.png.flat
S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\src\\main\\res\\drawable-land-xhdpi\\screen.png=S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\build\\intermediates\\res\\merged\\release\\drawable-land-xhdpi_screen.png.flat
S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\src\\main\\res\\mipmap-xhdpi\\icon.png=S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\build\\intermediates\\res\\merged\\release\\mipmap-xhdpi_icon.png.flat

View File

@ -1,4 +1,4 @@
#Tue Aug 06 11:33:39 IST 2019
#Tue Aug 20 13:29:23 IST 2019
base.0=S\:\\pd_office\\sineedgelenderapp\\platforms\\android\\app\\build\\intermediates\\transforms\\dex\\release\\0
path.0=classes.dex
renamed.0=classes.dex

View File

@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.sineedge.pdglender"
android:hardwareAccelerated="true"
android:versionCode="4"
android:versionName="0.0.4" >
android:versionCode="5"
android:versionName="0.0.5" >
<uses-sdk
android:minSdkVersion="19"

View File

@ -1 +1 @@
[{"outputType":{"type":"MERGED_MANIFESTS"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":4},"path":"AndroidManifest.xml","properties":{"packageId":"com.sineedge.pdglender","split":"","minSdkVersion":"19"}}]
[{"outputType":{"type":"MERGED_MANIFESTS"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":5},"path":"AndroidManifest.xml","properties":{"packageId":"com.sineedge.pdglender","split":"","minSdkVersion":"19"}}]

View File

@ -1 +1 @@
[{"outputType":{"type":"INSTANT_RUN_MERGED_MANIFESTS"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":4},"path":"AndroidManifest.xml","properties":{"packageId":"com.sineedge.pdglender","split":"","minSdkVersion":"19"}}]
[{"outputType":{"type":"INSTANT_RUN_MERGED_MANIFESTS"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":5},"path":"AndroidManifest.xml","properties":{"packageId":"com.sineedge.pdglender","split":"","minSdkVersion":"19"}}]

View File

@ -1 +1 @@
[{"outputType":{"type":"PROCESSED_RES"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":4},"path":"resources-release.ap_","properties":{"packageId":"com.sineedge.pdglender","split":"","minSdkVersion":"19"}}]
[{"outputType":{"type":"PROCESSED_RES"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":5},"path":"resources-release.ap_","properties":{"packageId":"com.sineedge.pdglender","split":"","minSdkVersion":"19"}}]

View File

@ -1 +1 @@
[{"name":"main","index":0,"scopes":["EXTERNAL_LIBRARIES","PROJECT","SUB_PROJECTS"],"types":["DEX"],"format":"DIRECTORY","present":true}]
[{"name":"main","index":0,"scopes":["SUB_PROJECTS","PROJECT","EXTERNAL_LIBRARIES"],"types":["DEX"],"format":"DIRECTORY","present":true}]

View File

@ -1 +1 @@
[{"name":"resources","index":0,"scopes":["EXTERNAL_LIBRARIES","PROJECT","SUB_PROJECTS"],"types":["RESOURCES"],"format":"JAR","present":true}]
[{"name":"resources","index":0,"scopes":["SUB_PROJECTS","PROJECT","EXTERNAL_LIBRARIES"],"types":["RESOURCES"],"format":"JAR","present":true}]

View File

@ -1 +1 @@
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":4},"path":"app-release-unsigned.apk","properties":{"packageId":"com.sineedge.pdglender","split":"","minSdkVersion":"19"}}]
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":5},"path":"app-release-unsigned.apk","properties":{"packageId":"com.sineedge.pdglender","split":"","minSdkVersion":"19"}}]

View File

@ -176,7 +176,7 @@ document.getElementById(id).style.display = 'none';
<span class="mdl-layout-title">Lint Report: 3 errors</span>
<div class="mdl-layout-spacer"></div>
<nav class="mdl-navigation mdl-layout--large-screen-only">
Check performed at Tue Aug 06 11:33:24 IST 2019 </nav>
Check performed at Tue Aug 20 13:29:08 IST 2019 </nav>
</div>
</header>
<div class="mdl-layout__drawer">

View File

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="4" android:versionName="0.0.4" package="com.sineedge.pdglender" xmlns:android="http://schemas.android.com/apk/res/android">
<manifest android:hardwareAccelerated="true" android:versionCode="5" android:versionName="0.0.5" package="com.sineedge.pdglender" xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<application android:hardwareAccelerated="true" android:icon="@mipmap/icon" android:label="@string/app_name" android:supportsRtl="true">

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -141,6 +141,14 @@ module.exports = [
"merges": [
"launchnavigator"
]
},
{
"id": "cordova-plugin-app-version.AppVersionPlugin",
"file": "plugins/cordova-plugin-app-version/www/AppVersionPlugin.js",
"pluginId": "cordova-plugin-app-version",
"clobbers": [
"cordova.getAppVersion"
]
}
];
module.exports.metadata =
@ -157,7 +165,8 @@ module.exports.metadata =
"cordova-plugin-splashscreen": "5.0.2",
"cordova-plugin-statusbar": "2.4.2",
"cordova-plugin-whitelist": "1.3.3",
"uk.co.workingedge.phonegap.plugin.launchnavigator": "4.2.2"
"uk.co.workingedge.phonegap.plugin.launchnavigator": "4.2.2",
"cordova-plugin-app-version": "0.1.9"
};
// BOTTOM OF METADATA
});

View File

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.sineedge.pdglender" version="0.0.4" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="com.sineedge.pdglender" version="0.0.5" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<feature name="ActionSheet">
<param name="android-package" value="nl.xservices.plugins.actionsheet.ActionSheet" />
</feature>
@ -33,6 +33,9 @@
<feature name="LaunchNavigator">
<param name="android-package" value="uk.co.workingedge.phonegap.plugin.LaunchNavigator" />
</feature>
<feature name="AppVersion">
<param name="android-package" value="uk.co.whiteoctober.cordova.AppVersion" />
</feature>
<feature name="Keyboard">
<param name="android-package" onload="true" value="io.ionic.keyboard.IonicKeyboard" />
</feature>

View File

@ -141,6 +141,14 @@ module.exports = [
"merges": [
"launchnavigator"
]
},
{
"id": "cordova-plugin-app-version.AppVersionPlugin",
"file": "plugins/cordova-plugin-app-version/www/AppVersionPlugin.js",
"pluginId": "cordova-plugin-app-version",
"clobbers": [
"cordova.getAppVersion"
]
}
];
module.exports.metadata =
@ -157,7 +165,8 @@ module.exports.metadata =
"cordova-plugin-splashscreen": "5.0.2",
"cordova-plugin-statusbar": "2.4.2",
"cordova-plugin-whitelist": "1.3.3",
"uk.co.workingedge.phonegap.plugin.launchnavigator": "4.2.2"
"uk.co.workingedge.phonegap.plugin.launchnavigator": "4.2.2",
"cordova-plugin-app-version": "0.1.9"
};
// BOTTOM OF METADATA
});

View File

@ -54,6 +54,9 @@
},
"cordova-plugin-geolocation": {
"PACKAGE_NAME": "io.ionic.starter"
},
"cordova-plugin-app-version": {
"PACKAGE_NAME": "io.ionic.starterlen"
}
},
"dependent_plugins": {},
@ -161,6 +164,14 @@
"clobbers": [
"localforage"
]
},
{
"file": "plugins/cordova-plugin-app-version/www/AppVersionPlugin.js",
"id": "cordova-plugin-app-version.AppVersionPlugin",
"pluginId": "cordova-plugin-app-version",
"clobbers": [
"cordova.getAppVersion"
]
}
],
"plugin_metadata": {
@ -174,6 +185,7 @@
"cordova-plugin-whitelist": "1.3.3",
"uk.co.workingedge.phonegap.plugin.launchnavigator": "4.2.2",
"cordova-plugin-compat": "1.2.0",
"cordova-plugin-geolocation": "2.4.3"
"cordova-plugin-geolocation": "2.4.3",
"cordova-plugin-app-version": "0.1.9"
}
}
}

View File

@ -1,8 +1,8 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="io.ionic.starterlen" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>lenderApp</name>
<description>An awesome Ionic/Cordova app.</description>
<author email="hi@ionicframework" href="http://ionicframework.com/">Ionic Framework Team</author>
<widget id="com.sineedge.pdglender" version="0.0.4" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>PD Genie</name>
<description>info@pdgenie.com</description>
<author email="info@pdgenie.com" href="https://pdgenie.com">PD Genie</author>
<content src="index.html" />
<access origin="*" />
<allow-intent href="http://*/*" />
@ -13,10 +13,12 @@
<allow-intent href="geo:*" />
<preference name="ScrollEnabled" value="false" />
<preference name="android-minSdkVersion" value="19" />
<preference name="android-targetSdkVersion" value="28" />
<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" />
<preference name="ShowSplashScreenSpinner" value="false" />
</widget>

View File

@ -103,6 +103,14 @@ module.exports = [
"clobbers": [
"localforage"
]
},
{
"file": "plugins/cordova-plugin-app-version/www/AppVersionPlugin.js",
"id": "cordova-plugin-app-version.AppVersionPlugin",
"pluginId": "cordova-plugin-app-version",
"clobbers": [
"cordova.getAppVersion"
]
}
];
module.exports.metadata =
@ -118,7 +126,8 @@ module.exports.metadata =
"cordova-plugin-whitelist": "1.3.3",
"uk.co.workingedge.phonegap.plugin.launchnavigator": "4.2.2",
"cordova-plugin-compat": "1.2.0",
"cordova-plugin-geolocation": "2.4.3"
"cordova-plugin-geolocation": "2.4.3",
"cordova-plugin-app-version": "0.1.9"
}
// BOTTOM OF METADATA
});

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -1,8 +1,8 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="io.ionic.starterlen" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>lenderApp</name>
<description>An awesome Ionic/Cordova app.</description>
<author email="hi@ionicframework" href="http://ionicframework.com/">Ionic Framework Team</author>
<widget id="com.sineedge.pdglender" version="0.0.4" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>PD Genie</name>
<description>info@pdgenie.com</description>
<author email="info@pdgenie.com" href="https://pdgenie.com">PD Genie</author>
<content src="index.html" />
<access origin="*" />
<allow-intent href="http://*/*" />
@ -13,10 +13,12 @@
<allow-intent href="geo:*" />
<preference name="ScrollEnabled" value="false" />
<preference name="android-minSdkVersion" value="19" />
<preference name="android-targetSdkVersion" value="28" />
<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" />
<preference name="ShowSplashScreenSpinner" value="false" />
</widget>

View File

@ -103,6 +103,14 @@ module.exports = [
"clobbers": [
"localforage"
]
},
{
"file": "plugins/cordova-plugin-app-version/www/AppVersionPlugin.js",
"id": "cordova-plugin-app-version.AppVersionPlugin",
"pluginId": "cordova-plugin-app-version",
"clobbers": [
"cordova.getAppVersion"
]
}
];
module.exports.metadata =
@ -118,7 +126,8 @@ module.exports.metadata =
"cordova-plugin-whitelist": "1.3.3",
"uk.co.workingedge.phonegap.plugin.launchnavigator": "4.2.2",
"cordova-plugin-compat": "1.2.0",
"cordova-plugin-geolocation": "2.4.3"
"cordova-plugin-geolocation": "2.4.3",
"cordova-plugin-app-version": "0.1.9"
}
// BOTTOM OF METADATA
});

View File

@ -38,6 +38,9 @@
"uk.co.workingedge.phonegap.plugin.launchnavigator": {
"OKHTTP_VERSION": "3.+",
"PACKAGE_NAME": "io.ionic.starterlen"
},
"cordova-plugin-app-version": {
"PACKAGE_NAME": "com.sineedge.pdglender"
}
},
"dependent_plugins": {
@ -48,4 +51,4 @@
"PACKAGE_NAME": "io.ionic.starterlen"
}
}
}
}

View File

@ -36,6 +36,9 @@
},
"cordova-plugin-geolocation": {
"PACKAGE_NAME": "io.ionic.starter"
},
"cordova-plugin-app-version": {
"PACKAGE_NAME": "io.ionic.starterlen"
}
},
"dependent_plugins": {
@ -43,4 +46,4 @@
"PACKAGE_NAME": "io.ionic.starter"
}
}
}
}

View File

@ -0,0 +1,42 @@
### 0.1.9
* Renamed Windows8 platform to Windows
### 0.1.7
* Add getPackageName feature (thanks to @gprasanth)
* Add getAppName feature (thanks to @mirko77)
* Fix for windows 8 (thanks to @deliriousrhino)
* Fix version number in plugin.xml file
### 0.1.6
* Split into two functions getAppVersion.getVersionNumber() and getAppVersion.getVersionCode() to return build number
* Fix a deprecation warning in iOS version
### 0.1.5
* iOS: Return version number but log and fall back to build number if it is nil (thanks to [Eddy Verbruggen](https://github.com/EddyVerbruggen))
### 0.1.4
* Return version number, not build number on iOS (thanks to http://www.humancopy.net)
* Support for Windows phone 8 (thanks to Cristi Badila / Gediminas Šaltenis)
* Support for AngularJS as well as jQuery (thanks to Matias Singers, [Red Ape Solutions](http://www.redapesolutions.com/))
### 0.1.3
* Fixes to Android for Corova 3 and above (thanks to AxoInsanit)
### 0.1.2
* Updated for Cordova 3 and above (thanks to Russell Keith-Magee [freakboy3742](https://github.com/freakboy3742)
### 0.1.1
* Improved README
* Bug fix for non-jQuery use
* Tidy plugin.xml
### 0.1.0
* First release

View File

@ -0,0 +1,20 @@
Copyright (c) 2013 White October
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -0,0 +1,71 @@
# Cordova AppVersion plugin
Reads the version of your app from the target build settings.
## Installation
### With cordova-cli
If you are using [cordova-cli](https://github.com/apache/cordova-cli), install
with:
cordova plugin add cordova-plugin-app-version
### With plugman
With a plain [plugman](https://github.com/apache/cordova-plugman), you should be
able to install with something like:
plugman --platform <ios|android> --project <directory> --plugin https://github.com/whiteoctober/cordova-plugin-app-version.git
### Manually in iOS
TODO: Write these instructions
### Manually in Android
TODO: Write these instructions
## Use from Javascript
If you are using jQuery, AngularJS, WinJS or any Promise/A library (Bluebird), promise style is supported. Use something like:
cordova.getAppVersion.getVersionNumber().then(function (version) {
$('.version').text(version);
});
If not, pass a callback function:
cordova.getAppVersion.getVersionNumber(function (version) {
alert(version);
});
In addition to the version number you can also retrieve other details about your application:
### getAppName
Returns the name of the app. E.g. "My Awesome App"
### getPackageName
Returns the package name of the app - the reversed domain name app identifier like com.example.myawesomeapp
### getVersionCode
Returns the build identifier of the app
### getVersionNumber
Returns the version number of the app
## Credits
Written by [Robert (Jamie) Munro](http://twitter.com/rjmunro) at
[White October](http://whiteoctober.co.uk/)
Various others have contributed fixes and new features. See the CHANGELOG.md for details.
Original code based on the following Stack Overflow posts:
* [iOS](http://stackoverflow.com/a/14713364/3408)
* [Android](http://stackoverflow.com/a/3637686/3408)

View File

@ -0,0 +1 @@
0.1.9

View File

@ -0,0 +1,54 @@
{
"_from": "cordova-plugin-app-version",
"_id": "cordova-plugin-app-version@0.1.9",
"_inBundle": false,
"_integrity": "sha1-nbBgeGMzenEEiTAuX1CpBPFEm9s=",
"_location": "/cordova-plugin-app-version",
"_phantomChildren": {},
"_requested": {
"type": "tag",
"registry": true,
"raw": "cordova-plugin-app-version",
"name": "cordova-plugin-app-version",
"escapedName": "cordova-plugin-app-version",
"rawSpec": "",
"saveSpec": null,
"fetchSpec": "latest"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/cordova-plugin-app-version/-/cordova-plugin-app-version-0.1.9.tgz",
"_shasum": "9db0607863337a710489302e5f50a904f1449bdb",
"_spec": "cordova-plugin-app-version",
"_where": "S:\\pd_office\\sineedgelenderapp",
"author": {
"name": "whiteoctober"
},
"bugs": {
"url": "https://github.com/whiteoctober/cordova-plugin-app-version/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Cordova plugin to return the version number of the current app",
"homepage": "https://github.com/whiteoctober/cordova-plugin-app-version#readme",
"keywords": [
"cordova",
"ecosystem:cordova",
"app",
"version",
"appversion",
"plugin"
],
"license": "MIT",
"name": "cordova-plugin-app-version",
"repository": {
"type": "git",
"url": "git+https://github.com/whiteoctober/cordova-plugin-app-version.git"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "0.1.9"
}

View File

@ -0,0 +1,79 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-app-version"
version="0.1.9">
<name>AppVersion</name>
<description>
This plugin will return the version of your App that you have set in
packaging it. I.e. it will always match the version in the app store.
</description>
<license>MIT</license>
<engines>
<!--
Cordova 2.8.0 is all I have tested on - it should work fine with earlier versions.
Please modify the below line, test, and submit a PR if it works for you.
-->
<engine name="cordova" version=">=3.0.0" />
</engines>
<js-module src="www/AppVersionPlugin.js">
<clobbers target="cordova.getAppVersion" />
</js-module>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="AppVersion">
<param name="android-package" value="uk.co.whiteoctober.cordova.AppVersion"/>
</feature>
</config-file>
<source-file src="src/android/AppVersion.java" target-dir="src/uk/co/whiteoctober/cordova" />
</platform>
<!-- blackberry10 -->
<platform name="blackberry10">
<dependency id="cordova-plugin-bb-app" />
<config-file target="www/config.xml" parent="/widget">
<feature name="AppVersion" value="AppVersion" />
</config-file>
<js-module src="www/blackberry10/AppVersionProxy.js" name="AppVersionProxy.js" >
<runs />
</js-module>
</platform>
<!-- ios -->
<platform name="ios">
<plugins-plist key="AppVersion" string="AppVersion" />
<config-file target="config.xml" parent="/*">
<feature name="AppVersion">
<param name="ios-package" value="AppVersion" />
</feature>
</config-file>
<header-file src="src/ios/AppVersion.h" />
<source-file src="src/ios/AppVersion.m" />
</platform>
<!-- windows8 -->
<platform name="windows">
<js-module src="src/windows/AppVersionProxy.js" name="AppVersionProxy">
<merges target=""/>
</js-module>
</platform>
<!-- wp8 -->
<platform name="wp8">
<config-file target="config.xml" parent="/*">
<feature name="AppVersion">
<param name="wp-package" value="AppVersion"/>
</feature>
</config-file>
<source-file src="src/wp8/AppVersion.cs" />
</platform>
</plugin>

View File

@ -0,0 +1,45 @@
package uk.co.whiteoctober.cordova;
import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.CallbackContext;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.pm.PackageManager;
public class AppVersion extends CordovaPlugin {
@Override
public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {
try {
if (action.equals("getAppName")) {
PackageManager packageManager = this.cordova.getActivity().getPackageManager();
ApplicationInfo app = packageManager.getApplicationInfo(this.cordova.getActivity().getPackageName(), 0);
callbackContext.success((String)packageManager.getApplicationLabel(app));
return true;
}
if (action.equals("getPackageName")) {
callbackContext.success(this.cordova.getActivity().getPackageName());
return true;
}
if (action.equals("getVersionNumber")) {
PackageManager packageManager = this.cordova.getActivity().getPackageManager();
callbackContext.success(packageManager.getPackageInfo(this.cordova.getActivity().getPackageName(), 0).versionName);
return true;
}
if (action.equals("getVersionCode")) {
PackageManager packageManager = this.cordova.getActivity().getPackageManager();
callbackContext.success(packageManager.getPackageInfo(this.cordova.getActivity().getPackageName(), 0).versionCode);
return true;
}
return false;
} catch (NameNotFoundException e) {
callbackContext.success("N/A");
return true;
}
}
}

View File

@ -0,0 +1,13 @@
#import <Cordova/CDVPlugin.h>
@interface AppVersion : CDVPlugin
- (void)getAppName:(CDVInvokedUrlCommand*)command;
- (void)getPackageName:(CDVInvokedUrlCommand*)command;
- (void)getVersionNumber:(CDVInvokedUrlCommand*)command;
- (void)getVersionCode:(CDVInvokedUrlCommand*)command;
@end

View File

@ -0,0 +1,47 @@
#import "AppVersion.h"
#import <Cordova/CDVPluginResult.h>
@implementation AppVersion
- (void)getAppName : (CDVInvokedUrlCommand *)command
{
NSString * callbackId = command.callbackId;
NSString * version =[[[NSBundle mainBundle]infoDictionary]objectForKey :@"CFBundleDisplayName"];
CDVPluginResult * pluginResult =[CDVPluginResult resultWithStatus : CDVCommandStatus_OK messageAsString : version];
[self.commandDelegate sendPluginResult : pluginResult callbackId : callbackId];
}
- (void)getPackageName:(CDVInvokedUrlCommand*)command
{
NSString* callbackId = command.callbackId;
NSString* packageName = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"];
CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:packageName];
[self.commandDelegate sendPluginResult:pluginResult callbackId:callbackId];
}
- (void)getVersionNumber:(CDVInvokedUrlCommand*)command
{
NSString* callbackId = command.callbackId;
NSString* version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
if (version == nil) {
NSLog(@"CFBundleShortVersionString was nil, attempting CFBundleVersion");
version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"];
if (version == nil) {
NSLog(@"CFBundleVersion was also nil, giving up");
// not calling error callback here to maintain backward compatibility
}
}
CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:version];
[self.commandDelegate sendPluginResult:pluginResult callbackId:callbackId];
}
- (void)getVersionCode:(CDVInvokedUrlCommand*)command
{
NSString* callbackId = command.callbackId;
NSString* version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"];
CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:version];
[self.commandDelegate sendPluginResult:pluginResult callbackId:callbackId];
}
@end

View File

@ -0,0 +1,33 @@
AppVersionProxy = {
getVersionNumber: function (successCallback, failCallback, args) {
var version = Windows.ApplicationModel.Package.current.id.version;
successCallback([version.major, version.minor, version.build, version.revision].join('.'));
},
getAppName: function (successCallback, failCallback, args) {
if(Windows.ApplicationModel.Package.current && Windows.ApplicationModel.Package.current.displayName){
var name = Windows.ApplicationModel.Package.current.displayName;
successCallback(name);
} else {
Windows.ApplicationModel.Package.current.installedLocation.getFileAsync("AppxManifest.xml").then(function (file) {
Windows.Data.Xml.Dom.XmlDocument.loadFromFileAsync(file).then(function (xdoc) {
var displayName = xdoc.getElementsByTagName("DisplayName");
if (displayName && displayName.length === 1) {
var name = displayName[0].innerText;
successCallback(name);
} else {
(failCallback || function(){})({ code: -1, message: "ERR_DISPLAY_NAME_NOT_FOUND" });
}
}, (failCallback || function(){}));
}, (failCallback || function(){}));
}
},
getPackageName: function (successCallback, failCallback, args) {
var name = Windows.ApplicationModel.Package.current.id.name;
successCallback(name);
},
getVersionCode: function (successCallback, failCallback, args) {
var build = Windows.ApplicationModel.Package.current.id.version.build;
successCallback(build);
}
};
cordova.commandProxy.add("AppVersion", AppVersionProxy);

View File

@ -0,0 +1,53 @@
using System;
using System.Reflection;
using System.Xml.Linq;
using Windows.ApplicationModel;
using WPCordovaClassLib.Cordova;
using WPCordovaClassLib.Cordova.Commands;
namespace Cordova.Extension.Commands
{
public class AppVersion : BaseCommand
{
public void getVersionNumber(string empty)
{
string version;
if (Environment.OSVersion.Version.Major <= 8)
{
// Package.Current.Id is NOT working in Windows Phone 8
// Workaround based on http://stackoverflow.com/questions/14371275/how-can-i-get-my-windows-store-apps-title-and-version-info
version = XDocument.Load("WMAppManifest.xml").Root.Element("App").Attribute("Version").Value;
}
else
{
version = Package.Current.Id.Version.ToString();
}
this.DispatchCommandResult(new PluginResult(PluginResult.Status.OK, version));
}
public void getAppName(string empty)
{
string name;
if (Environment.OSVersion.Version.Major <= 8)
{
//Windows.ApplicationModel.Package.Current.Id is NOT working in Windows Phone 8
//Workaround based on http://stackoverflow.com/questions/14371275/how-can-i-get-my-windows-store-apps-title-and-version-info
name = XDocument.Load("WMAppManifest.xml").Root.Element("App").Attribute("Title").Value;
}
else
{
name = Package.Current.Id.Name;
}
this.DispatchCommandResult(new PluginResult(PluginResult.Status.OK, name));
}
public void getPackageName(string empty)
{
string package = Assembly.GetExecutingAssembly().GetName().Name;
this.DispatchCommandResult(new PluginResult(PluginResult.Status.OK, package));
}
}
}

View File

@ -0,0 +1,65 @@
/*jslint indent: 2 */
/*global window, jQuery, angular, cordova */
"use strict";
// Returns a jQuery or AngularJS deferred object, or pass a success and fail callbacks if you don't want to use jQuery or AngularJS
var getPromisedCordovaExec = function (command, success, fail) {
var toReturn, deferred, injector, $q;
if (success === undefined) {
if (window.jQuery) {
deferred = jQuery.Deferred();
success = deferred.resolve;
fail = deferred.reject;
toReturn = deferred;
} else if (window.angular) {
injector = angular.injector(["ng"]);
$q = injector.get("$q");
deferred = $q.defer();
success = deferred.resolve;
fail = deferred.reject;
toReturn = deferred.promise;
} else if (window.when && window.when.promise) {
deferred = when.defer();
success = deferred.resolve;
fail = deferred.reject;
toReturn = deferred.promise;
} else if (window.Promise) {
toReturn = new Promise(function(c, e) {
success = c;
fail = e;
});
} else if (window.WinJS && window.WinJS.Promise) {
toReturn = new WinJS.Promise(function(c, e) {
success = c;
fail = e;
});
} else {
return console.error('AppVersion either needs a success callback, or jQuery/AngularJS/Promise/WinJS.Promise defined for using promises');
}
}
// 5th param is NOT optional. must be at least empty array
cordova.exec(success, fail, "AppVersion", command, []);
return toReturn;
};
var getAppVersion = function (success, fail) {
return getPromisedCordovaExec('getVersionNumber', success, fail);
};
getAppVersion.getAppName = function (success, fail) {
return getPromisedCordovaExec('getAppName', success, fail);
};
getAppVersion.getPackageName = function (success, fail) {
return getPromisedCordovaExec('getPackageName', success, fail);
};
getAppVersion.getVersionNumber = function (success, fail) {
return getPromisedCordovaExec('getVersionNumber', success, fail);
};
getAppVersion.getVersionCode = function (success, fail) {
return getPromisedCordovaExec('getVersionCode', success, fail);
};
module.exports = getAppVersion;

View File

@ -0,0 +1,18 @@
module.exports = {
getVersionNumber: function( success, fail ) {
if( !blackberry || !blackberry.app || !blackberry.app.version ) {
if( fail ) {
return fail();
} else {
return "";
}
}
if( success ) {
return success( blackberry.app.version );
}
return blackberry.app.version;
}
};
require("cordova/exec/proxy").add("AppVersion", module.exports);

View File

@ -106,5 +106,13 @@
},
"is_top_level": false,
"variables": {}
},
"cordova-plugin-app-version": {
"source": {
"type": "registry",
"id": "cordova-plugin-app-version"
},
"is_top_level": true,
"variables": {}
}
}

View File

@ -9,6 +9,7 @@ import { AwsServiceProvider } from '../providers/aws-service/aws-service';
import { CognitoServiceProvider } from '../providers/aws-service/cognito.service';
import { PasswordPage } from '../pages/password/password';
import { AuthPage } from '../pages/auth/auth';
import {AppVersion} from '@ionic-native/app-version'
@ -24,8 +25,9 @@ export class MyApp {
rootPage: any = LoginPage;
pages: Array<{title: string,icon:any, method: any}>;
protected app_version: string;
constructor(public platform: Platform, public statusBar: StatusBar, public splashScreen: SplashScreen,public aws:AwsServiceProvider,public shared:CognitoServiceProvider,public AWS:AwsServiceProvider,public alertCtrl:AlertController) {
constructor(public platform: Platform, public statusBar: StatusBar, public splashScreen: SplashScreen,public aws:AwsServiceProvider,public shared:CognitoServiceProvider,public AWS:AwsServiceProvider,public alertCtrl:AlertController,private appVersionProvide:AppVersion) {
this.initializeApp();
// used for an example of ngFor and navigation
@ -42,6 +44,10 @@ export class MyApp {
// Okay, so the platform is ready and our plugins are available.
// Here you can do any higher level native things you might need.
this.statusBar.styleDefault();
this.appVersionProvide.getVersionNumber().then(version_number=>{
this.app_version=version_number
},
err=>console.log(err))
if (this.platform.is('android')) {
this.statusBar.overlaysWebView(false);
this.statusBar.backgroundColorByHexString('#E00201');
@ -57,6 +63,7 @@ export class MyApp {
}, 1000);
});
})
this.platform.registerBackButtonAction(()=>{
if(this.nav.length()==1){
if(this.alertShown==false){

View File

@ -19,6 +19,9 @@
<ion-icon [name]="p.icon" item-left></ion-icon>
{{p.title}}
</button>
<ion-item>
<p>App Version: {{app_version}}</p>
</ion-item>
</ion-list>
</ion-content>
</ion-menu>

View File

@ -72,6 +72,7 @@ import { Camera } from '@ionic-native/camera';
import { Geolocation } from '@ionic-native/geolocation';
import {NgxMatSelectSearchModule} from 'ngx-mat-select-search'
import {AppVersion} from '@ionic-native/app-version'
@NgModule({
declarations: [
@ -151,7 +152,7 @@ import {NgxMatSelectSearchModule} from 'ngx-mat-select-search'
AwsServiceProvider,
QuestionCategoryProvider,
CameraProvider,Camera,
LoadingProvider,Geolocation
LoadingProvider,Geolocation,AppVersion
]
})
export class AppModule {}

View File

@ -10,7 +10,7 @@
<ion-content padding>
<ion-fab middle right>
<button ion-fab color="optblue"(click)="takePicture()"><ion-icon name="md-camera"></ion-icon></button>
<button mini ion-fab color="optblue"(click)="takePicture()"><ion-icon name="md-camera"></ion-icon></button>
</ion-fab>
<form [formGroup]="pdforms" >
<mat-card class="box">
@ -287,11 +287,11 @@
</div>
</mat-card>
<br/>
<mat-card fxLayout="row" fxLayoutWrap="wrap" formArrayName="items" >
<ion-row>
<h5>Additional Requirement</h5>
<h5>Credit Managers Specific Queries</h5>
<ion-col offset-1 col-3>
</ion-col>
@ -303,22 +303,43 @@
<div [formGroupName]="i">
<mat-form-field style="width: 100%">
<input matInput placeholder="Requirement" formControlName="add_requirement" type="text">
<input matInput placeholder="Queries" formControlName="add_requirement" type="text">
</mat-form-field>
</div>
<ion-buttons >
<ion-buttons end>
<a (click)="remove(i)">
<ion-icon name="md-trash" color="optblue" style="font-size: 22px;"></ion-icon></a> &nbsp;&nbsp;&nbsp;
<ion-icon name="md-trash" color="optblue" style="font-size: 22px;"></ion-icon></a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a (click)="addCoApplicant()" *ngIf="last">
<ion-icon color="optblue" name="md-add" style="font-size: 22px;"></ion-icon></a>
<ion-icon color="optblue" style="font-size: 24px" name="add-circle" style="font-size: 22px;"></ion-icon></a>
</ion-buttons>
<!-- </mat-card> -->
</div>
<br/>
</mat-card>
<mat-card>
<mat-card-header>
<mat-card-title>
<h5> Documents to be collected</h5>
</mat-card-title>
</mat-card-header>
<mat-card-content formArrayName="docs_to_be_collected">
<div *ngFor="let items of pdforms.get('docs_to_be_collected')['controls'];let i=index;let last=last" [formGroupName]="i">
<mat-form-field style="width: 100%">
<input matInput placeholder="Documents" formControlName="doc_name" type="text">
</mat-form-field>
<ion-buttons end>
<a (click)="remove_docs_collected(items,i)">
<ion-icon name="md-trash" color="optblue" style="font-size: 22px;"></ion-icon></a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a (click)="add_docs_collected()" *ngIf="last">
<ion-icon color="optblue" style="font-size: 24px" name="add-circle" style="font-size: 22px;"></ion-icon></a>
</ion-buttons>
</div>
</mat-card-content>
</mat-card>
<mat-card *ngIf="pddocdata.length !=0">
<ion-grid >

View File

@ -67,7 +67,7 @@ btnaccess:boolean = false;
constructor(public navCtrl: NavController, public navParams: NavParams,public fb:FormBuilder,public pddetails:PdtriggerProvider,public shared:CognitoServiceProvider,public aws:AwsServiceProvider,public camera:Camera,public toast:ToastProvider, public qustCat:QuestionCategoryProvider,public constant:ConstantsProvider) {
this.shared.refresh();
this.pddrops();
console.log(this.productabbr,this.lenderName);
this.pdforms = this.fb.group({
pd_branch_id:['',Validators.compose([Validators.required])],
@ -84,6 +84,7 @@ btnaccess:boolean = false;
// add3:[''],
items: this.fb.array([]),
docs_to_be_collected:this.fb.array([this.createDocumentstobeCollected()]),
//Applicant Info
applicant_title_name:[''],
mainappname:[''],
@ -107,8 +108,9 @@ btnaccess:boolean = false;
])
});
this.pddrops();
this.addCoApplicant();
}
ionViewDidLoad() {
@ -200,6 +202,10 @@ inWords(event){
this.branchList=res['records'].branch_details.filter(val=>val.isactive==1)
})
if(this.users.short_name == "IIB"){
this.pdforms.controls['proName'].setValue("3")
this.pdforms.controls['pdType'].setValue("1")
}
})
this.qustCat.getcommondrop('TITLES').subscribe(res=>{
@ -378,7 +384,7 @@ inWords(event){
if(this.pddocdata.length <= 10){
this.camera.getPicture({
quality:100,
quality:75,
destinationType: this.camera.DestinationType.DATA_URL,
targetWidth: 500,
targetHeight: 600,
@ -571,6 +577,9 @@ inWords(event){
formdata.append('pd_details',JSON.stringify(pdDetailsData));
formdata.append('pd_applicant_details',JSON.stringify(pd_applicant_details));
formdata.append('addtional_requirements',JSON.stringify(pddata.items));
if(pddata.docs_to_be_collected.length>0){
formdata.append('docs_to_be_collected',JSON.stringify(pddata.docs_to_be_collected))
}
formdata.append('pd_document_from_mobile',JSON.stringify(this.pddocdata));
console.log("Form",formdata);
this.pddetails.savepdDetails(formdata).subscribe(res=>
@ -612,4 +621,25 @@ inWords(event){
})
}
}
//documents collected functions
remove_docs_collected(i){
let control=<FormArray>this.pdforms.controls['docs_to_be_collected']
if(control.length == 1){
this.pdforms.controls['docs_to_be_collected'].reset();
}
else{
control.removeAt(i)
}
}
add_docs_collected(){
let control=<FormArray>this.pdforms.controls['docs_to_be_collected']
control.push(this.createDocumentstobeCollected())
}
createDocumentstobeCollected(){
return this.fb.group({
doc_name:['']
})
}
}

View File

@ -185,7 +185,7 @@
<ion-row>
<ion-col>
<h1>Additional Requirements</h1>
<h1>Credit Managers Specific Queries</h1>
</ion-col>
</ion-row>
<div *ngIf="addAccess;else noreqData;">
@ -197,10 +197,28 @@
</div>
<ng-template #noreqData>
<ion-col text-left>
<span><i class=""></i>&nbsp; No Additional Requirements</span>
<span><i class=""></i>&nbsp; No Credit Managers Specific Queries</span>
</ion-col>
</ng-template>
<hr/>
<ion-row>
<ion-col>
<h1>Documents to be collected&nbsp;&nbsp; <ion-icon name="md-camera"></ion-icon></h1>
</ion-col>
</ion-row>
<div *ngIf="docs_to_be_collected != '';else noreqData;">
<ion-row *ngFor="let req of docs_to_be_collected">
<ion-col>
{{req.doc_name}}
</ion-col>
</ion-row>
</div>
<ng-template #noreqData>
<ion-col text-left>
<span><i class=""></i>&nbsp; No Credit Managers Specific Queries</span>
</ion-col>
</ng-template>
<hr/>
<ion-row>
<ion-col>
<h1>Notes</h1>

View File

@ -23,6 +23,7 @@ export class PdAllocationPage {
pdFullDetails:any = [];
pdDetailLender:any = [];
addresses: any=[];
docs_to_be_collected: any='';
constructor(public navCtrl: NavController, public navParams: NavParams,public pddetails:PdtriggerProvider) {
this.pdFullDetails = this.navParams.get('pdDetails');
@ -71,6 +72,9 @@ pdDetailLender:any = [];
{
this.addAccess = false;
}
if(this.pdDetailLender.records.docs_to_be_collected.length != 0){
this.docs_to_be_collected=this.pdDetailLender.records.docs_to_be_collected
}
// console.log(this.docImage);

View File

@ -1,4 +1,4 @@
import { Injectable } from '@angular/core';
import { Injectable, Injector } from '@angular/core';
import {
HttpRequest,
HttpHandler,
@ -15,10 +15,11 @@ import { catchError, map, tap } from 'rxjs/operators';
import { HttpErrorResponse } from "@angular/common/http";
import { CognitoServiceProvider } from '../aws-service/cognito.service';
import { ConstantsProvider } from '../constants/constants';
@Injectable()
export class TokenInterceptor implements HttpInterceptor{
constructor(public shared:CognitoServiceProvider ) {
constructor(public injector:Injector ) {
}
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
@ -28,16 +29,23 @@ export class TokenInterceptor implements HttpInterceptor{
// }
// });
let token:any;
this.shared.refresh();
token = this.shared.getToken() || null;
let Authorization:string
const cognitoService=this.injector.get(CognitoServiceProvider)
cognitoService.refresh();
token=cognitoService.getToken() || null
token=token.getIdToken().getJwtToken();
const constantProvider=this.injector.get(ConstantsProvider)
Authorization=constantProvider.environment().authorization
// this.shared.refresh();
// token = this.shared.getToken() || null;
token = token.getIdToken().getJwtToken();
// token = token.getIdToken().getJwtToken();
//console.log(token);
let requests = request.clone({
headers:new HttpHeaders({
'Authorization': 'sparqvenba2018',
'Authorization': Authorization,
'Token':token,
'From':'2',

View File

@ -26,7 +26,7 @@ const vendor_poolData = {
ClientId: ""
}
// const sineedgeUserPool = new CognitoUserPool(sineedge_poolData);
const lenderUserPool = new CognitoUserPool(lender_poolData);
// const lenderUserPool = new CognitoUserPool(lender_poolData);
const sineedgedevUserpool = new CognitoUserPool(sineedgedev_poolData);
/**
@ -37,13 +37,18 @@ const lenderIdentity = "ap-south-1:ca22dabc-db59-4af5-9bb8-265f7ec95907";
const vendorIdenttiy = "ap-south-1:5ad3ce43-4260-4273-87b2-e6a377b8e874";
const currentDate = new Date().toJSON().slice(0,19).replace('T',' ');
let lenderUserPool
@Injectable()
export class AwsServiceProvider {
apiurl:any;
constructor(public http:HttpClient,public shared:CognitoServiceProvider,public con:ConstantsProvider) {
this.apiurl = con.apiurl();
this.apiurl = con.environment();
const lender_poolData = {
UserPoolId:this.apiurl.lenUserPoolId, // Username :SPARQ_LENDER_DEV
ClientId: this.apiurl.lenClientId // ClientName:LENDER_DEV_WEB
};
lenderUserPool = new CognitoUserPool(lender_poolData);
}
dologin(authenticationData) {
@ -183,7 +188,7 @@ apiurl:any;
// let request = new RequestOptions({headers:headers});
return this.http.post(this.apiurl+'getUsersDetails',roles);
return this.http.post(this.apiurl.url+'getUsersDetails',roles);
}
@ -194,6 +199,6 @@ apiurl:any;
let formdata = new FormData();
formdata.append('records',JSON.stringify(records));
return this.http.post(this.apiurl+'updateExistUser',formdata);
return this.http.post(this.apiurl.url+'updateExistUser',formdata);
}
}

View File

@ -12,6 +12,7 @@ import {
// import { environment } from '../../environments/environment';
import { BehaviorSubject,Observable,of } from 'rxjs';
import { ConstantsProvider } from '../constants/constants';
const sineedge_poolData = {
UserPoolId: "ap-south-1_y7dt3iEaX", //ap-south-1_qQ85yQZJO UserName :SPARQ_SINEEDGE_DEV
@ -30,7 +31,7 @@ const vendor_poolData = {
ClientId: ""
}
const sineedgeUserPool = new CognitoUserPool(sineedge_poolData);
const lenderUserPool = new CognitoUserPool(lender_poolData);
// const lenderUserPool = new CognitoUserPool(lender_poolData);
const sineedgedevUserpool = new CognitoUserPool(sineedgedev_poolData);
/**
@ -42,7 +43,7 @@ const vendorIdenttiy = "";
// serviceProvider
const apiurl = "http://ssa.sineedge.com/sparqapi/api/";
// const apiurl = "http://localhost/sparqapi/api/";
let lenderUserPool
@Injectable()
export class CognitoServiceProvider {
@ -61,13 +62,19 @@ export class CognitoServiceProvider {
// public cognitoCreds: AWS.CognitoIdentityCredentials;
isloggin:boolean = false;
apiUrl: any;
constructor() {
constructor(private constantProvider:ConstantsProvider) {
this.apiUrl=this.constantProvider.environment()
const lender_poolData = {
UserPoolId: this.apiUrl.lenUserPoolId, // Username :SPARQ_LENDER_DEV
ClientId: this.apiUrl.lenClientId // ClientName:LENDER_DEV_WEB
};
lenderUserPool = new CognitoUserPool(lender_poolData);
}
getCurrentUser() {
//console.log(lenderUserPool.getCurrentUser());

View File

@ -15,13 +15,44 @@ export class ConstantsProvider {
console.log('Hello ConstantsProvider Provider');
}
apiurl()
environment()
{
let testapiurl = 'https://ssa.sineedge.com/sparqtest/api/';
let devapiurl = 'https://ssa.sineedge.com/sparqapi/api/';
let localapiurl = 'https://192.168.0.9/sparqapi/api/';
let demo_pdgenie='https://demo.pdgenie.com/sparqtest/api/'
return demo_pdgenie;
// let testapiurl = 'https://ssa.sineedge.com/sparqtest/api/';
// let devapiurl = 'https://ssa.sineedge.com/sparqapi/api/';
// let localapiurl = 'https://192.168.0.9/sparqapi/api/';
// let demo_pdgenie='https://demo.pdgenie.com/sparqtest/api/'
// let production='https://pdgenie.com/sparqprod/api/'
let production={
url:'https://pdgenie.com/sparqprod/api/',
authorization:'TnAwuc64pVpcB9xf',
lenIdentityPoolId:"ap-south-1:ca22dabc-db59-4af5-9bb8-265f7ec95907",
lenUserPoolId: "ap-south-1_Kg227UJOD", // Username
lenClientId: "5485r5kbs563i1qinhb4mmsk9q", // ClientId for mobile
}
let development={
url:'https://demo.pdgenie.com/sparqapi/api/',
authorization:'sparqvenba2018',
lenIdentityPoolId:"ap-south-1:ca22dabc-db59-4af5-9bb8-265f7ec95907",
lenUserPoolId: "ap-south-1_hFiGyr1Gw", // Username
lenClientId: "38v9rpp1495v60e1gd14mj6rjr", // ClientId for mobile
}
let testing={
url:'https://demo.pdgenie.com/sparqtest/api/',
authorization:'sparqvenba2018',
lenIdentityPoolId:"ap-south-1:ca22dabc-db59-4af5-9bb8-265f7ec95907",
lenUserPoolId: "ap-south-1_hFiGyr1Gw", // Username
lenClientId: "38v9rpp1495v60e1gd14mj6rjr", // ClientName for Mobile
}
return production;
}
//For Searching Fields
searchValue(exist_data,value,option){

View File

@ -14,7 +14,8 @@ import {ConstantsProvider} from '../constants/constants';
export class PdtriggerProvider {
apiurl:any;
constructor(public http: HttpClient,public constants:ConstantsProvider) {
this.apiurl = constants.apiurl();
this.apiurl = constants.environment();
this.apiurl=this.apiurl.url
console.log('Hello PdtriggerProvider Provider');
}

View File

@ -13,7 +13,8 @@ export class QuestionCategoryProvider {
apiurl:any;
constructor(public http: HttpClient,public constant:ConstantsProvider) {
console.log('Hello QuestionCategoryProvider Provider');
this.apiurl = constant.apiurl();
this.apiurl = constant.environment();
this.apiurl=this.apiurl.url;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long