Skip to content

Commit

Permalink
feat(unvired-cordova-sdk): add method to get log file path (#3222)
Browse files Browse the repository at this point in the history
* feat(unvired-cordova-sdk): support login via email

* fix(unvired-cordova-sdk): return typed promise object for user settings

* fix(unvired-cordova-sdk): change return type to string for guid()

* doc(unvired-cordova-sdk): doc update

* doc(unvired-cordova-sdk): update doc

* feat(unvired-cordova-sdk): add support for metadata JSON

* doc(unvired-cordova-sdk): update doc

* doc(unvired-cordova-sdk): update doc

* feat(unvired-cordova-sdk): add methods to get and set log level

* fix(unvired-cordova-sdk): update the return type for getLog()

* feat(unvired-cordova-sdk): return platform name

* feat(unvired-cordova-sdk): add method to get log file path

* feat(unvired-cordova-sdk): test push notifications

* fix(unvired-cordova-sdk): define return for logRead
  • Loading branch information
srinidhirao authored and danielsogl committed Nov 19, 2019
1 parent 01bfa5c commit f4b03bc
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion src/@ionic-native/plugins/unvired-cordova-sdk/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,11 @@ export class LogResult extends UnviredResult {
data: LogLevel;
}

export class LogDataResult extends UnviredResult {
type: ResultType;
data: string;
}

export class NotifResult extends UnviredResult {
type: NotificationListenerType;
}
Expand Down Expand Up @@ -564,7 +569,7 @@ export class UnviredCordovaSDK extends IonicNativePlugin {
* Returns the contents of the log file as a string.
*/
@Cordova()
logRead(): Promise<any> {
logRead(): Promise<LogDataResult> {
return;
}

Expand Down Expand Up @@ -600,6 +605,14 @@ export class UnviredCordovaSDK extends IonicNativePlugin {
return;
}

/**
* Returns the path of the log file.
*/
@Cordova()
getLogFilePath(): Promise<string> {
return;
}

/**
* Set the log level of the app.
* @param logLevel The log level to set
Expand Down Expand Up @@ -1282,4 +1295,13 @@ export class UnviredCordovaSDK extends IonicNativePlugin {
platform(): Promise<string> {
return;
}

/**
* Mobile Platform only.
* Test whether push notifications can be received on the device
*/
@Cordova()
testPushNotification(): Promise<any> {
return;
}
}

0 comments on commit f4b03bc

Please sign in to comment.