cordova-plugin-unvired-universal-sdk 1.0.5 → 1.0.8
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 +1 -1
- package/plugin.xml +1 -13
- package/www/kernel.js +38345 -1239
- package/aar/README.md +0 -3
- package/aar/Unvired_Kernel_Android.aar +0 -0
- package/aar/Unvired_Kernel_HTML5_Android.aar +0 -0
- package/src/android/build.gradle +0 -35
- package/src/android/xml/provider_paths.xml +0 -21
- package/src/browser/UnviredPluginProxy.js +0 -2430
- package/src/browser/bootstrap.min.js +0 -17
- package/src/browser/codemirror.js +0 -9755
- package/src/browser/jquery-3.2.1.js +0 -10253
- package/src/browser/sql-wasm.wasm +0 -0
- package/src/browser/sql.js +0 -203
- package/src/browser/src_index_worker_js.unvired-db-worker.js +0 -231
- package/src/browser/unvired-db-worker.js +0 -166
- package/src/browser/vendors-node_modules_comlink_dist_esm_comlink_mjs.unvired-db-worker.js +0 -22
- package/src/ios/AttachmentPlugin.h +0 -21
- package/src/ios/AttachmentPlugin.m +0 -180
- package/src/ios/DataStructureHelper.h +0 -28
- package/src/ios/DataStructureHelper.m +0 -188
- package/src/ios/IOSAuthPlugin.h +0 -14
- package/src/ios/IOSAuthPlugin.m +0 -13
- package/src/ios/IOSDatabasePlugin.h +0 -28
- package/src/ios/IOSDatabasePlugin.m +0 -253
- package/src/ios/IOSFWSettingsPlugin.h +0 -65
- package/src/ios/IOSFWSettingsPlugin.m +0 -363
- package/src/ios/IOSLoggerPlugin.h +0 -34
- package/src/ios/IOSLoggerPlugin.m +0 -198
- package/src/ios/IOSLoginPlugin.h +0 -29
- package/src/ios/IOSLoginPlugin.m +0 -480
- package/src/ios/IOSProxyPlugin.h +0 -21
- package/src/ios/IOSProxyPlugin.m +0 -172
- package/src/ios/IOSSyncEnginePlugin.h +0 -54
- package/src/ios/IOSSyncEnginePlugin.m +0 -847
- package/src/ios/PluginConstants.h +0 -195
- package/src/ios/PluginHelper.h +0 -29
- package/src/ios/PluginHelper.m +0 -74
- package/src/ios/SyncHTML5Response.h +0 -50
- package/src/ios/SyncHTML5Response.m +0 -68
- package/www/applicationMeta/applicationMetadataParser.ts +0 -285
- package/www/applicationMeta/fieldConstants.ts +0 -92
- package/www/attachment/attachmentHelper.ts +0 -326
- package/www/attachment/attachmentQHelper.ts +0 -158
- package/www/attachment/attachmentService.ts +0 -259
- package/www/authenticationService.ts +0 -751
- package/www/database/appDatabaseManager.ts +0 -54
- package/www/database/databaseManager.ts +0 -616
- package/www/helper/dbCreateTablesManager.ts +0 -354
- package/www/helper/frameworkHelper.ts +0 -127
- package/www/helper/frameworkSettingsManager.ts +0 -287
- package/www/helper/getMessageTimerManager.ts +0 -81
- package/www/helper/httpConnection.ts +0 -1051
- package/www/helper/logger.ts +0 -312
- package/www/helper/notificationListnerHelper.ts +0 -56
- package/www/helper/passcodeGenerator.ts +0 -61
- package/www/helper/reconciler.ts +0 -1062
- package/www/helper/serverResponseHandler.ts +0 -677
- package/www/helper/serviceConstants.ts +0 -254
- package/www/helper/settingsHelper.ts +0 -386
- package/www/helper/status.ts +0 -83
- package/www/helper/syncInputDataManager.ts +0 -205
- package/www/helper/unviredAccount.ts +0 -104
- package/www/helper/unviredAccountManager.ts +0 -120
- package/www/helper/urlService.ts +0 -43
- package/www/helper/userSettingsManager.ts +0 -172
- package/www/helper/utils.ts +0 -110
- package/www/inbox/downloadMessageService.ts +0 -270
- package/www/inbox/inboxHelper.ts +0 -132
- package/www/inbox/inboxService.ts +0 -223
- package/www/outbox/outboxAttachmentManager.ts +0 -152
- package/www/outbox/outboxHelper.ts +0 -67
- package/www/outbox/outboxService.ts +0 -519
- package/www/subtract.ts +0 -5
- package/www/sum.ts +0 -4
- package/www/syncEngine.ts +0 -687
package/src/ios/IOSAuthPlugin.h
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// IOSAuthPlugin.h
|
|
3
|
-
// HTML5_KERNEL_iOS
|
|
4
|
-
//
|
|
5
|
-
// Created by Srinidhi Anand Rao on 03/10/12.
|
|
6
|
-
// Copyright (c) 2012 Unvired Software India Pvt. Ltd. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <UIKit/UIKit.h>
|
|
10
|
-
#import <Cordova/CDV.h>
|
|
11
|
-
|
|
12
|
-
@interface IOSAuthPlugin : CDVPlugin
|
|
13
|
-
|
|
14
|
-
@end
|
package/src/ios/IOSAuthPlugin.m
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// IOSAuthPlugin.m
|
|
3
|
-
// HTML5_KERNEL_iOS
|
|
4
|
-
//
|
|
5
|
-
// Created by Srinidhi Anand Rao on 03/10/12.
|
|
6
|
-
// Copyright (c) 2012 Unvired Software India Pvt. Ltd. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import "IOSAuthPlugin.h"
|
|
10
|
-
|
|
11
|
-
@implementation IOSAuthPlugin
|
|
12
|
-
|
|
13
|
-
@end
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// IOSDatabasePlugin.h
|
|
3
|
-
// HTML5_KERNEL_iOS
|
|
4
|
-
//
|
|
5
|
-
// Created by Srinidhi Anand Rao on 03/10/12.
|
|
6
|
-
// Copyright (c) 2012 Unvired Software India Pvt. Ltd. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <UIKit/UIKit.h>
|
|
10
|
-
#import <Cordova/CDV.h>
|
|
11
|
-
|
|
12
|
-
@interface IOSDatabasePlugin : CDVPlugin
|
|
13
|
-
|
|
14
|
-
/*
|
|
15
|
-
* INSERT_BE action...
|
|
16
|
-
* Takes an array of Business Entities.Retrive each array item(Header,items).Convert each header and each items to
|
|
17
|
-
* JSDatastructure and insertOrUpdateBasedOnGID and return Header LID...
|
|
18
|
-
*/
|
|
19
|
-
- (void)insert:(CDVInvokedUrlCommand *)command;
|
|
20
|
-
- (void)insertOrUpdate:(CDVInvokedUrlCommand *)command;
|
|
21
|
-
- (void)select:(CDVInvokedUrlCommand *)command;
|
|
22
|
-
- (void)deleteRecord:(CDVInvokedUrlCommand *)command;
|
|
23
|
-
- (void)update:(CDVInvokedUrlCommand *)command;
|
|
24
|
-
- (void)executeQuery:(CDVInvokedUrlCommand *)command;
|
|
25
|
-
- (void)pullDb;
|
|
26
|
-
- (void)pushDb;
|
|
27
|
-
|
|
28
|
-
@end
|
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// IOSDatabasePlugin.m
|
|
3
|
-
// HTML5_KERNEL_iOS
|
|
4
|
-
//
|
|
5
|
-
// Created by Srinidhi Anand Rao on 03/10/12.
|
|
6
|
-
// Copyright (c) 2012 Unvired Software India Pvt. Ltd. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import "IOSDatabasePlugin.h"
|
|
10
|
-
#import "PluginConstants.h"
|
|
11
|
-
#import "IDataManager.h"
|
|
12
|
-
#import "DataStructure.h"
|
|
13
|
-
#import "DataStructure.h"
|
|
14
|
-
#import "Logger.h"
|
|
15
|
-
#import "DataStructureHelper.h"
|
|
16
|
-
#import "ApplicationManager.h"
|
|
17
|
-
#import "ISyncResponse.h"
|
|
18
|
-
#import "PluginHelper.h"
|
|
19
|
-
#import "FrameworkHelper.h"
|
|
20
|
-
|
|
21
|
-
@implementation IOSDatabasePlugin
|
|
22
|
-
|
|
23
|
-
- (void)insert:(CDVInvokedUrlCommand *)command {
|
|
24
|
-
[self.commandDelegate runInBackground: ^{
|
|
25
|
-
CDVPluginResult *pluginResult = nil;
|
|
26
|
-
NSError *error = NULL;
|
|
27
|
-
// Fetch TableName and WhereClause from the command.
|
|
28
|
-
NSDictionary *dataObjects = [command.arguments objectAtIndex:0];
|
|
29
|
-
NSString *tableName = dataObjects[TABLE_NAME];
|
|
30
|
-
NSMutableDictionary *fieldObject = dataObjects[FIELDS];
|
|
31
|
-
|
|
32
|
-
// Add Object Status and Sync Status, LID
|
|
33
|
-
// Preserve the LID sent by the client.
|
|
34
|
-
// Set the LID only if LID is not set
|
|
35
|
-
if (fieldObject[CUSTOM_FIELD_LID] == nil && fieldObject[FIELD_LID] == nil) {
|
|
36
|
-
fieldObject[FIELD_LID] = [FrameworkHelper getRandomWord];
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
fieldObject[FIELD_OBJECT_STATUS] = @(OBJECT_STATUS_ADD);
|
|
40
|
-
fieldObject[FIELD_SYNC_STATUS] = @(SYNC_STATUS_NONE);
|
|
41
|
-
|
|
42
|
-
id <IDataManager> applicationManager = [[ApplicationManager sharedInstance] getDataManagerWithError:&error];
|
|
43
|
-
BOOL result = [applicationManager insertJSON:tableName JSONObject:fieldObject error:&error];
|
|
44
|
-
|
|
45
|
-
if (result) {
|
|
46
|
-
[PluginHelper sendListenerCallback:self.commandDelegate callbackId:command.callbackId type:success_result data:nil message:@"" error:@"" errorDetail:@""];
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
|
|
50
|
-
[Logger loggerWithlog:LEVEL_ERROR
|
|
51
|
-
ClassName:[self class]
|
|
52
|
-
MethodName:NSStringFromSelector(_cmd)
|
|
53
|
-
msg:[NSString stringWithFormat:@"Caught Exception while Insert. Exception: %@", [error localizedDescription]]];
|
|
54
|
-
|
|
55
|
-
[PluginHelper sendListenerCallback:self.commandDelegate callbackId:command.callbackId type:error_result data:nil message:@"" error:[error localizedDescription] errorDetail:@""];
|
|
56
|
-
}
|
|
57
|
-
}];
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
- (void)insertOrUpdate:(CDVInvokedUrlCommand *)command {
|
|
61
|
-
[self.commandDelegate runInBackground: ^{
|
|
62
|
-
CDVPluginResult *pluginResult = nil;
|
|
63
|
-
NSError *error = NULL;
|
|
64
|
-
// Fetch TableName and WhereClause from the command.
|
|
65
|
-
NSDictionary *dataObjects = [command.arguments objectAtIndex:0];
|
|
66
|
-
NSString *tableName = dataObjects[TABLE_NAME];
|
|
67
|
-
NSMutableDictionary *fieldObject = dataObjects[FIELDS];
|
|
68
|
-
|
|
69
|
-
// Add Object Status and Sync Status, LID
|
|
70
|
-
// Preserve the LID sent by the client.
|
|
71
|
-
// Set the LID only if LID is not set
|
|
72
|
-
if (fieldObject[CUSTOM_FIELD_LID] == nil && fieldObject[FIELD_LID] == nil) {
|
|
73
|
-
fieldObject[FIELD_LID] = [FrameworkHelper getRandomWord];
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
id <IDataManager> applicationManager = [[ApplicationManager sharedInstance] getDataManagerWithError:&error];
|
|
77
|
-
DataStructure *dataStructure = [DataStructureHelper getDataStructureFromJSON:dataObjects];
|
|
78
|
-
DataStructure *duplicateDataStructure = [applicationManager checkDuplicateGID:dataStructure error:&error];
|
|
79
|
-
|
|
80
|
-
if (error == nil) {
|
|
81
|
-
|
|
82
|
-
if (!duplicateDataStructure) {
|
|
83
|
-
BOOL status = [applicationManager insert:dataStructure error:&error];
|
|
84
|
-
if (status) {
|
|
85
|
-
[PluginHelper sendListenerCallback:self.commandDelegate
|
|
86
|
-
callbackId:command.callbackId
|
|
87
|
-
type:success_result
|
|
88
|
-
data:nil
|
|
89
|
-
message:@""
|
|
90
|
-
error:@""
|
|
91
|
-
errorDetail:@""];
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
[PluginHelper sendListenerCallback:self.commandDelegate
|
|
95
|
-
callbackId:command.callbackId
|
|
96
|
-
type:error_result
|
|
97
|
-
data:nil
|
|
98
|
-
message:@""
|
|
99
|
-
error:[error localizedDescription]
|
|
100
|
-
errorDetail:@""];
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
else {
|
|
104
|
-
// The DataStructure may have a new LID. The update function is based on LID.
|
|
105
|
-
// We want the DataStructure to update an existing one.
|
|
106
|
-
[dataStructure setLid:[duplicateDataStructure getLid]];
|
|
107
|
-
BOOL status = [applicationManager update:dataStructure error:&error];
|
|
108
|
-
if (status) {
|
|
109
|
-
[PluginHelper sendListenerCallback:self.commandDelegate
|
|
110
|
-
callbackId:command.callbackId
|
|
111
|
-
type:success_result
|
|
112
|
-
data:nil
|
|
113
|
-
message:@""
|
|
114
|
-
error:@""
|
|
115
|
-
errorDetail:@""];
|
|
116
|
-
}
|
|
117
|
-
else {
|
|
118
|
-
[PluginHelper sendListenerCallback:self.commandDelegate
|
|
119
|
-
callbackId:command.callbackId
|
|
120
|
-
type:error_result
|
|
121
|
-
data:nil
|
|
122
|
-
message:@""
|
|
123
|
-
error:[error localizedDescription]
|
|
124
|
-
errorDetail:@""];
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}];
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
- (void)select:(CDVInvokedUrlCommand *)command {
|
|
132
|
-
[self.commandDelegate runInBackground: ^{
|
|
133
|
-
CDVPluginResult *pluginResult = nil;
|
|
134
|
-
NSError *error = NULL;
|
|
135
|
-
// Fetch TableName and WhereClause from the command.
|
|
136
|
-
NSDictionary *dataObjects = [command.arguments objectAtIndex:0];
|
|
137
|
-
NSString *tableName = dataObjects[TABLE_NAME];
|
|
138
|
-
NSString *whereClause = dataObjects[WHERE_CLAUSE];
|
|
139
|
-
|
|
140
|
-
id <IDataManager> applicationManager = [[ApplicationManager sharedInstance] getDataManagerWithError:&error];
|
|
141
|
-
NSArray *JSONDataStructureArray = [applicationManager getJSON:tableName whereClause:whereClause error:&error];
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
if (error == nil) {
|
|
145
|
-
[PluginHelper sendListenerCallback:self.commandDelegate callbackId:command.callbackId type:success_result data:JSONDataStructureArray message:@"" error:@"" errorDetail:@""];
|
|
146
|
-
}
|
|
147
|
-
else {
|
|
148
|
-
[Logger loggerWithlog:LEVEL_ERROR
|
|
149
|
-
ClassName:[self class]
|
|
150
|
-
MethodName:NSStringFromSelector(_cmd)
|
|
151
|
-
msg:[NSString stringWithFormat:@"Caught Exception while Select. Exception: %@", [error localizedDescription]]];
|
|
152
|
-
[PluginHelper sendListenerCallback:self.commandDelegate callbackId:command.callbackId type:error_result data:JSONDataStructureArray message:@"" error:[error localizedDescription] errorDetail:@""];
|
|
153
|
-
}
|
|
154
|
-
}];
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
- (void)deleteRecord:(CDVInvokedUrlCommand *)command {
|
|
158
|
-
[self.commandDelegate runInBackground: ^{
|
|
159
|
-
CDVPluginResult *pluginResult = nil;
|
|
160
|
-
|
|
161
|
-
NSError *error = NULL;
|
|
162
|
-
|
|
163
|
-
NSDictionary *dataObjects = [command.arguments objectAtIndex:0];
|
|
164
|
-
|
|
165
|
-
// Get the Dictionary containing Table Name and Where Clause
|
|
166
|
-
NSString *tableName = dataObjects[TABLE_NAME];
|
|
167
|
-
NSString *whereClause = dataObjects[WHERE_CLAUSE];
|
|
168
|
-
|
|
169
|
-
id <IDataManager> applicationManager = [[ApplicationManager sharedInstance] getDataManagerWithError:&error];
|
|
170
|
-
BOOL isSuccess = [applicationManager delete:tableName
|
|
171
|
-
whereClause:[applicationManager getWhereClauseString:whereClause]
|
|
172
|
-
error:&error];
|
|
173
|
-
if (isSuccess) {
|
|
174
|
-
[PluginHelper sendListenerCallback:self.commandDelegate callbackId:command.callbackId type:success_result data:nil message:@"" error:@"" errorDetail:@""];
|
|
175
|
-
}
|
|
176
|
-
else {
|
|
177
|
-
|
|
178
|
-
[Logger loggerWithlog:LEVEL_ERROR
|
|
179
|
-
ClassName:[self class]
|
|
180
|
-
MethodName:NSStringFromSelector(_cmd)
|
|
181
|
-
msg:[NSString stringWithFormat:@"Caught Exception while Parsing Json Data. Exception: %@", [error localizedDescription]]];
|
|
182
|
-
|
|
183
|
-
[PluginHelper sendListenerCallback:self.commandDelegate callbackId:command.callbackId type:error_result data:nil message:@"" error:[error localizedDescription] errorDetail:@""];
|
|
184
|
-
}
|
|
185
|
-
}];
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
- (void)update:(CDVInvokedUrlCommand *)command {
|
|
189
|
-
[self.commandDelegate runInBackground: ^{
|
|
190
|
-
CDVPluginResult *pluginResult = nil;
|
|
191
|
-
NSError *error = NULL;
|
|
192
|
-
// Fetch TableName and WhereClause from the command.
|
|
193
|
-
NSDictionary *dataObjects = [command.arguments objectAtIndex:0];
|
|
194
|
-
NSString *tableName = dataObjects[TABLE_NAME];
|
|
195
|
-
NSDictionary *fieldObject = dataObjects[FIELDS];
|
|
196
|
-
NSString *whereClause = dataObjects[WHERE_CLAUSE];
|
|
197
|
-
|
|
198
|
-
id <IDataManager> applicationManager = [[ApplicationManager sharedInstance] getDataManagerWithError:&error];
|
|
199
|
-
BOOL result = [applicationManager updateJSON:tableName JSONObject:fieldObject whereClause:whereClause error:&error];
|
|
200
|
-
if (result) {
|
|
201
|
-
[PluginHelper sendListenerCallback:self.commandDelegate callbackId:command.callbackId type:success_result data:nil message:@"" error:@"" errorDetail:@""];
|
|
202
|
-
}
|
|
203
|
-
else {
|
|
204
|
-
[Logger loggerWithlog:LEVEL_ERROR
|
|
205
|
-
ClassName:[self class]
|
|
206
|
-
MethodName:NSStringFromSelector(_cmd)
|
|
207
|
-
msg:[NSString stringWithFormat:@"Caught Exception while Update. Exception: %@", [error localizedDescription]]];
|
|
208
|
-
|
|
209
|
-
[PluginHelper sendListenerCallback:self.commandDelegate callbackId:command.callbackId type:error_result data:nil message:@"" error:[error localizedDescription] errorDetail:@""];
|
|
210
|
-
}
|
|
211
|
-
}];
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
- (void)executeQuery:(CDVInvokedUrlCommand *)command {
|
|
215
|
-
[self.commandDelegate runInBackground: ^{
|
|
216
|
-
CDVPluginResult *pluginResult = nil;
|
|
217
|
-
NSError *error = NULL;
|
|
218
|
-
NSString *query = [command.arguments objectAtIndex:0];
|
|
219
|
-
|
|
220
|
-
// Get the Data Structures Corresponding to the Table Name and Where Clausae
|
|
221
|
-
id <IDataManager> applicationManager = [[ApplicationManager sharedInstance] getDataManagerWithError:&error];
|
|
222
|
-
Cursor *cursor = [applicationManager executeQuery:query error:&error];
|
|
223
|
-
NSArray *dataStructures = [applicationManager getJSONDataStructuresFromCursor:cursor];
|
|
224
|
-
|
|
225
|
-
if (error == nil) {
|
|
226
|
-
// Get the Lid of the DataStructure at Index 0
|
|
227
|
-
if (dataStructures != nil) {
|
|
228
|
-
[PluginHelper sendListenerCallback:self.commandDelegate callbackId:command.callbackId type:success_result data:dataStructures message:@"" error:@"" errorDetail:@""];
|
|
229
|
-
}
|
|
230
|
-
else {
|
|
231
|
-
[PluginHelper sendListenerCallback:self.commandDelegate callbackId:command.callbackId type:success_result data:@[] message:@"" error:@"" errorDetail:@""];
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
else {
|
|
235
|
-
[Logger loggerWithlog:LEVEL_ERROR
|
|
236
|
-
ClassName:[self class]
|
|
237
|
-
MethodName:NSStringFromSelector(_cmd)
|
|
238
|
-
msg:[NSString stringWithFormat:@"Caught Exception while Parsing Json Data. Exception: %@", [error localizedDescription]]];
|
|
239
|
-
|
|
240
|
-
[PluginHelper sendListenerCallback:self.commandDelegate callbackId:command.callbackId type:error_result data:nil message:@"" error:[error localizedDescription] errorDetail:@""];
|
|
241
|
-
}
|
|
242
|
-
}];
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
- (void)pullDb {
|
|
246
|
-
#warning TODO : Need to check. If it is necessory, then implement.
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
- (void)pushDb {
|
|
250
|
-
#warning TODO : Need to check. If it is necessory, then implement.
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
@end
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// IOSFWSettingsPlugin.h
|
|
3
|
-
// HTML5_KERNEL_iOS
|
|
4
|
-
//
|
|
5
|
-
// Created by Srinidhi Anand Rao on 03/10/12.
|
|
6
|
-
// Copyright (c) 2012 Unvired Software India Pvt. Ltd. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <UIKit/UIKit.h>
|
|
10
|
-
#import <Cordova/CDV.h>
|
|
11
|
-
#import "ServerLookUpManager.h"
|
|
12
|
-
|
|
13
|
-
@interface IOSFWSettingsPlugin : CDVPlugin <ServerLookUpDelegate>
|
|
14
|
-
|
|
15
|
-
- (void)startSettingActivity:(CDVInvokedUrlCommand *)command;
|
|
16
|
-
|
|
17
|
-
- (void)userSettings:(CDVInvokedUrlCommand *)command;
|
|
18
|
-
|
|
19
|
-
- (void)clearData:(CDVInvokedUrlCommand *)command;
|
|
20
|
-
|
|
21
|
-
- (void)updateSystemCredentials:(CDVInvokedUrlCommand *)command;
|
|
22
|
-
|
|
23
|
-
- (void)getSystemCredentials:(CDVInvokedUrlCommand *)command;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
Returns version numbers.
|
|
27
|
-
|
|
28
|
-
{
|
|
29
|
-
"appVersion": "1.0",
|
|
30
|
-
"appBuildNumber": "1234",
|
|
31
|
-
"appRevisionNumber": "4567"
|
|
32
|
-
|
|
33
|
-
"SDKVersion": "3.2",
|
|
34
|
-
"SDKBuildNumber": "8767",
|
|
35
|
-
"SDKRevisionNumber": "6947"
|
|
36
|
-
}
|
|
37
|
-
*/
|
|
38
|
-
- (void)getVersionNumbers:(CDVInvokedUrlCommand *)command;
|
|
39
|
-
|
|
40
|
-
- (void)encrypt:(CDVInvokedUrlCommand *)command;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
Input: { "LID" : "ABC21" }
|
|
44
|
-
|
|
45
|
-
Returns: Array of InfoMessage Objects:
|
|
46
|
-
{
|
|
47
|
-
"type": "8000",
|
|
48
|
-
"category": "FAILURE",
|
|
49
|
-
"message": "Reason code must be specified."
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
*/
|
|
53
|
-
- (void)getInfoMessages:(CDVInvokedUrlCommand *)command;
|
|
54
|
-
|
|
55
|
-
- (void)platform:(CDVInvokedUrlCommand *)command;
|
|
56
|
-
|
|
57
|
-
- (void)testPushNotification:(CDVInvokedUrlCommand *)command;
|
|
58
|
-
|
|
59
|
-
- (void)startDiscoveryService:(CDVInvokedUrlCommand *)command;
|
|
60
|
-
|
|
61
|
-
- (void)encrypt:(CDVInvokedUrlCommand *)command;
|
|
62
|
-
|
|
63
|
-
- (void)decrypt:(CDVInvokedUrlCommand *)command;
|
|
64
|
-
|
|
65
|
-
@end
|