Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 19 commits into from
Nov 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
}