Skip to content

Commit

Permalink
rename fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrehan27 committed Sep 28, 2023
1 parent 5cdcf61 commit 15c7533
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import io.customer.messaginginapp.ModuleMessagingInApp
import io.customer.messaginginapp.type.InAppEventListener
import io.customer.messagingpush.MessagingPushModuleConfig
import io.customer.messagingpush.ModuleMessagingPushFCM
import io.customer.messagingpush.config.NotificationClickBehavior
import io.customer.messagingpush.config.PushClickBehavior
import io.customer.reactnative.sdk.constant.Keys
import io.customer.reactnative.sdk.extension.*
import io.customer.sdk.CustomerIO
Expand Down Expand Up @@ -100,10 +100,10 @@ object CustomerIOReactNativeInstance {
?.takeIfNotBlank()
?.let { value ->
val behavior = kotlin.runCatching {
enumValueOf<NotificationClickBehavior>(value)
enumValueOf<PushClickBehavior>(value)
}.getOrNull()
if (behavior != null) {
setNotificationClickBehavior(notificationOnClickBehavior = behavior)
setPushClickBehavior(pushClickBehavior = behavior)
}
}
}.build(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ internal object Keys {
const val AUTO_TRACK_PUSH_EVENTS = "autoTrackPushEvents"
const val BACKGROUND_QUEUE_MIN_NUMBER_OF_TASKS = "backgroundQueueMinNumberOfTasks"
const val BACKGROUND_QUEUE_SECONDS_DELAY = "backgroundQueueSecondsDelay"
const val PUSH_CLICK_BEHAVIOR = "androidPushClickBehavior"
const val PUSH_CLICK_BEHAVIOR = "pushClickBehaviorAndroid"
}

object PackageConfig {
Expand Down
6 changes: 3 additions & 3 deletions src/CustomerioConfig.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CioLogLevel, Region } from './CustomerioEnum';
import { AndroidPushClickBehavior } from './types';
import { PushClickBehaviorAndroid } from './types';

/**
* Configure package using CustomerioConfig
Expand All @@ -19,8 +19,8 @@ class CustomerioConfig {
autoTrackPushEvents: boolean = true;
backgroundQueueMinNumberOfTasks: number = 10;
backgroundQueueSecondsDelay: number = 30;
androidPushClickBehavior: AndroidPushClickBehavior =
AndroidPushClickBehavior.ActivityPreventRestart;
pushClickBehaviorAndroid: PushClickBehaviorAndroid =
PushClickBehaviorAndroid.ActivityPreventRestart;
}

class CustomerIOEnv {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export enum AndroidPushClickBehavior {
export enum PushClickBehaviorAndroid {
ResetTaskStack = 'RESET_TASK_STACK',
ActivityPreventRestart = 'ACTIVITY_PREVENT_RESTART',
ActivityNoFlags = 'ACTIVITY_NO_FLAGS',
Expand Down
2 changes: 1 addition & 1 deletion src/types/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './AndroidPushClickBehavior';
export * from './PushClickBehaviorAndroid';
export * from './PushPermissionOptions';
export * from './PushPermissionStatus';

0 comments on commit 15c7533

Please sign in to comment.