cordova-plugin-mserviceinterface-2.0 1.0.31 → 1.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cordova-plugin-mserviceinterface-2.0",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "description": "This plugin establishes the connection to the native interface and performs the requested task.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/plugin.xml CHANGED
@@ -2,7 +2,7 @@
2
2
  <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
3
3
  xmlns:android="http://schemas.android.com/apk/res/android"
4
4
  id="cordova-plugin-mserviceinterface-2.0"
5
- version="1.0.31">
5
+ version="1.0.32">
6
6
  <name>mserviceinterface-2.0</name>
7
7
  <description>This plugin establishes the connection to the native interface and performs the requested task.</description>
8
8
  <author>selfservit@gmail.com</author>
@@ -387,6 +387,7 @@
387
387
 
388
388
  - (void)GetFileList:(CDVInvokedUrlCommand *)command {
389
389
  BOOL isDir;
390
+ NSString *resultString = @"";
390
391
  NSMutableDictionary * dict = [[command arguments] objectAtIndex:0];
391
392
  NSString *directory = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)[0];
392
393
  NSString *contentsPath = [NSString stringWithFormat:@"%@/%@", directory, dict[@"filePath"]];
@@ -396,11 +397,17 @@
396
397
  [contenstMutableArray removeObject:@".DS_Store"];
397
398
  }
398
399
  for(int index = 0; index < [contenstMutableArray count]; index++) {
399
- if ([[NSFileManager defaultManager] fileExistsAtPath:[contentsPath stringByAppendingPathComponent:contenstMutableArray[index]] isDirectory:&isDir] && isDir) {
400
- [contenstMutableArray removeObject:contenstMutableArray[index]];
400
+ if ([[NSFileManager defaultManager] fileExistsAtPath:[contentsPath stringByAppendingPathComponent:contenstMutableArray[index]] isDirectory:&isDir] && !isDir) {
401
+ if ([resultString isEqualToString:@""]) {
402
+ resultString = [resultString stringByAppendingString:contenstMutableArray[index]];
403
+ }
404
+ else {
405
+ resultString = [resultString stringByAppendingString:@"|"];
406
+ resultString = [resultString stringByAppendingString:contenstMutableArray[index]];
407
+ }
401
408
  }
402
409
  }
403
- CDVPluginResult *result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsArray:contenstMutableArray];
410
+ CDVPluginResult *result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:resultString];
404
411
  [self.commandDelegate sendPluginResult:result callbackId:command.callbackId];
405
412
  }
406
413
 
package/package.json.bak DELETED
@@ -1,28 +0,0 @@
1
- {
2
- "name": "cordova-plugin-mserviceinterface-2.0",
3
- "version": "1.0.30",
4
- "description": "This plugin establishes the connection to the native interface and performs the requested task.",
5
- "main": "index.js",
6
- "scripts": {
7
- "test": "test"
8
- },
9
- "repository": {
10
- "type": "git",
11
- "url": "git+https://github.com/selfservit/cordova-plugin-mserviceinterface-2.0.git"
12
- },
13
- "keywords": [
14
- "mserviceinterface-2.0"
15
- ],
16
- "author": "selfservit@gmail.com",
17
- "license": "ISC",
18
- "bugs": {
19
- "url": "https://github.com/selfservit/cordova-plugin-mserviceinterface-2.0/issues"
20
- },
21
- "homepage": "https://github.com/selfservit/cordova-plugin-mserviceinterface-2.0#readme",
22
- "engines": [
23
- {
24
- "name": "cordova",
25
- "version": ">=5.0.0"
26
- }
27
- ]
28
- }
package/plugin.xml.bak DELETED
@@ -1,154 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
3
- xmlns:android="http://schemas.android.com/apk/res/android"
4
- id="cordova-plugin-mserviceinterface-2.0"
5
- version="1.0.30">
6
- <name>mserviceinterface-2.0</name>
7
- <description>This plugin establishes the connection to the native interface and performs the requested task.</description>
8
- <author>selfservit@gmail.com</author>
9
- <engines>
10
- <engine name="cordova" version=">=5.0.0" />
11
- </engines>
12
- <keywords>mserviceinterface-2.0</keywords>
13
- <license>Apache 2.0 License</license>
14
- <repo></repo>
15
- <issue></issue>
16
- <asset src="www/mInterface.js" target="js/mInterface.js"/>
17
- <js-module src="www/mInterface.js" name="mInterface">
18
- <clobbers target="mInterface" />
19
- </js-module>
20
- <platform name="android">
21
- <framework src="src/android/doubleogradle.gradle" custom="true" type="gradleReference"/>
22
- <framework src="com.google.android.gms:play-services:11.0.+" />
23
- <framework src="com.google.android.gms:play-services-location:11.0.+" />
24
- <framework src="com.android.support:support-v4:26.0.1" />
25
- <framework src="com.google.zxing:core:3.2.1" />
26
- <framework src="com.journeyapps:zxing-android-embedded:3.2.0@aar" />
27
- <edit-config xmlns:android="http://schemas.android.com/apk/res/android" file="AndroidManifest.xml" mode="merge" target="/manifest/application">
28
- <application android:networkSecurityConfig="@xml/network_security_config" />
29
- <application android:requestLegacyExternalStorage="true" />
30
- </edit-config>
31
- <config-file target="res/xml/config.xml" parent="/*">
32
- <feature name="mInterface" >
33
- <param name="android-package" value="com.selfservit.util.mInterface"/>
34
- </feature>
35
- </config-file>
36
- <config-file target="AndroidManifest.xml" parent="/manifest">
37
- <uses-feature android:name="android.hardware.camera" android:required="true" />
38
- <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
39
- <uses-permission android:name="android.permission.INTERNET" />
40
- <uses-permission android:name="android.permission.CAMERA" />
41
- <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
42
- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
43
- <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
44
- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
45
- <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
46
- <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
47
- <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
48
- <uses-permission android:name="android.permission.READ_PHONE_STATE" />
49
- <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
50
- </config-file>
51
- <config-file target="AndroidManifest.xml" parent="/manifest/application">
52
- <service android:name="com.selfservit.util.mInterfaceService" android:foregroundServiceType="location" android:enabled="true" android:exported="true"/>
53
- <service
54
- android:name="com.selfservit.util.backgroundNotification"
55
- android:permission="android.permission.BIND_JOB_SERVICE"
56
- android:exported="false">
57
- <intent-filter>
58
- <action android:name="com.onesignal.NotificationExtender" />
59
- </intent-filter>
60
- </service>
61
- <receiver android:name="com.selfservit.util.mInterfaceReceiver" android:enabled="true" android:exported="true">
62
- <intent-filter>
63
- <action android:name="android.intent.action.BOOT_COMPLETED"/>
64
- <action android:name="com.example.checkservice" />
65
- </intent-filter>
66
- </receiver>
67
- <provider android:name="com.selfservit.util.FileProvider" android:authorities="${applicationId}.provider" android:exported="false" android:grantUriPermissions="true">
68
- <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/opener_paths" />
69
- </provider>
70
- </config-file>
71
- <source-file src="src/android/mInterfaceService.java" target-dir="src/com/selfservit/util/" />
72
- <source-file src="src/android/backgroundNotification.java" target-dir="src/com/selfservit/util/" />
73
- <source-file src="src/android/mInterfaceReceiver.java" target-dir="src/com/selfservit/util/" />
74
- <source-file src="src/android/mInterface.java" target-dir="src/com/selfservit/util/" />
75
- <source-file src="src/android/mInterfaceUtil.java" target-dir="src/com/selfservit/util/" />
76
- <source-file src="src/android/CallbackProgressDialog.java" target-dir="src/com/selfservit/util/" />
77
- <source-file src="src/android/FileProvider.java" target-dir="src/com/selfservit/util/" />
78
- <source-file src="src/android/res/xml/opener_paths.xml" target-dir="res/xml" />
79
- <source-file src="src/android/res/xml/network_security_config.xml" target-dir="res/xml" />
80
- </platform>
81
- <platform name="ios">
82
- <config-file target="*-Info.plist" parent="NSCameraUsageDescription">
83
- <string>Equipcare wants to access your camera and gallery to attach the images for service reports and photo proofs.</string>
84
- </config-file>
85
-
86
- <config-file target="*-Info.plist" parent="NSPhotoLibraryUsageDescription">
87
- <string>Equipcare wants to access your camera and gallery to attach the images for service reports and photo proofs.</string>
88
- </config-file>
89
- <preference name="CAMERA_USAGE_DESCRIPTION" default="Allow use camera from your device" />
90
- <preference name="PHOTOLIBRARY_USAGE_DESCRIPTION" default="Allow access your photos from gallery" />
91
- <config-file target="config.xml" parent="/widget">
92
- <feature name="mInterface">
93
- <param name="ios-package" value="mInterface" />
94
- </feature>
95
- </config-file>
96
- <header-file src="src/ios/mInterface.h"/>
97
- <source-file src="src/ios/mInterface.m"/>
98
- <header-file src="src/ios/InternetConnection.h"/>
99
- <source-file src="src/ios/InternetConnection.m"/>
100
- <header-file src="src/ios/XMLConverter.h"/>
101
- <source-file src="src/ios/XMLConverter.m"/>
102
- <header-file src="src/ios/UICKeyChainStore.h" />
103
- <source-file src="src/ios/UICKeyChainStore.m" />
104
- <source-file src="src/ios/SSZipArchive.h" />
105
- <source-file src="src/ios/SSZipArchive.m" />
106
- <header-file src="src/ios/SSZipCommon.h" />
107
- <header-file src="src/ios/ZipArchive.h" />
108
- <source-file src="src/ios/minizip/crypt.c" />
109
- <header-file src="src/ios/minizip/crypt.h" />
110
- <source-file src="src/ios/minizip/ioapi_buf.c" />
111
- <header-file src="src/ios/minizip/ioapi_buf.h" />
112
- <source-file src="src/ios/minizip/ioapi_mem.c" />
113
- <header-file src="src/ios/minizip/ioapi_mem.h" />
114
- <source-file src="src/ios/minizip/ioapi.c" />
115
- <header-file src="src/ios/minizip/ioapi.h" />
116
- <source-file src="src/ios/minizip/minishared.c" />
117
- <header-file src="src/ios/minizip/minishared.h" />
118
- <source-file src="src/ios/minizip/unzip.c" />
119
- <header-file src="src/ios/minizip/unzip.h" />
120
- <source-file src="src/ios/minizip/zip.c" />
121
- <header-file src="src/ios/minizip/zip.h" />
122
- <source-file src="src/ios/aes/aes_ni.c" />
123
- <header-file src="src/ios/aes/aes_ni.h" />
124
- <header-file src="src/ios/aes/aes.h" />
125
- <source-file src="src/ios/aes/aescrypt.c" />
126
- <source-file src="src/ios/aes/aeskey.c" />
127
- <header-file src="src/ios/aes/aesopt.h" />
128
- <source-file src="src/ios/aes/aestab.c" />
129
- <header-file src="src/ios/aes/aestab.h" />
130
- <header-file src="src/ios/aes/brg_endian.h" />
131
- <header-file src="src/ios/aes/brg_types.h" />
132
- <source-file src="src/ios/aes/fileenc.c" />
133
- <header-file src="src/ios/aes/fileenc.h" />
134
- <source-file src="src/ios/aes/hmac.c" />
135
- <header-file src="src/ios/aes/hmac.h" />
136
- <source-file src="src/ios/aes/prng.c" />
137
- <header-file src="src/ios/aes/prng.h" />
138
- <source-file src="src/ios/aes/pwd2key.c" />
139
- <header-file src="src/ios/aes/pwd2key.h" />
140
- <source-file src="src/ios/aes/sha1.c" />
141
- <header-file src="src/ios/aes/sha1.h" />
142
- <framework src="MapKit.framework" />
143
- <framework src="Foundation.framework" />
144
- <framework src="SystemConfiguration.framework" />
145
- <framework src="CoreFoundation.framework" />
146
- <framework src="CoreTelephony.framework" />
147
- <framework src="UIKit.framework" />
148
- <framework src="CFNetwork.framework" />
149
- <framework src="AssetsLibrary.framework" />
150
- <framework src="AVFoundation.framework" />
151
- <framework src="libz.dylib" />
152
- <framework src="Security.framework" />
153
- </platform>
154
- </plugin>