From a9442abfee2fbb11c123bad17429479998904a13 Mon Sep 17 00:00:00 2001 From: jinliu9508 Date: Fri, 22 Nov 2024 14:03:50 -0500 Subject: [PATCH] Fix a typo in addUserJwtInvalidatedListener --- .../com/onesignal/sdktest/application/MainApplication.java | 2 +- .../main/java/com/onesignal/IUserJwtInvalidatedListener.kt | 2 +- .../onesignal/core/src/main/java/com/onesignal/OneSignal.kt | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Examples/OneSignalDemo/app/src/main/java/com/onesignal/sdktest/application/MainApplication.java b/Examples/OneSignalDemo/app/src/main/java/com/onesignal/sdktest/application/MainApplication.java index 37d0b6c542..06d70bfe09 100644 --- a/Examples/OneSignalDemo/app/src/main/java/com/onesignal/sdktest/application/MainApplication.java +++ b/Examples/OneSignalDemo/app/src/main/java/com/onesignal/sdktest/application/MainApplication.java @@ -141,7 +141,7 @@ public void onUserStateChange(@NonNull UserChangedState state) { } }); - OneSignal.addUserJwtInvalidatedListner(new IUserJwtInvalidatedListener() { + OneSignal.addUserJwtInvalidatedListener(new IUserJwtInvalidatedListener() { @Override public void onUserJwtInvalidated(@NonNull UserJwtInvalidatedEvent event) { Log.v(Tag.LOG_TAG, "onUserJwtInvalidated fired with ID:" + event.getExternalId()); diff --git a/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/IUserJwtInvalidatedListener.kt b/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/IUserJwtInvalidatedListener.kt index 46d43ea292..07ff05e84b 100644 --- a/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/IUserJwtInvalidatedListener.kt +++ b/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/IUserJwtInvalidatedListener.kt @@ -1,7 +1,7 @@ package com.onesignal /** - * Implement this interface and provide an instance to [OneSignal.addUserJwtInvalidatedListner] + * Implement this interface and provide an instance to [OneSignal.addUserJwtInvalidatedListener] * in order to receive control when the JWT for the current user is invalidated. * * @see [User JWT Invalidated Event | OneSignal Docs](https://documentation.onesignal.com/docs/identity-verification) diff --git a/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/OneSignal.kt b/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/OneSignal.kt index ec686a9d10..2d9c14cf32 100644 --- a/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/OneSignal.kt +++ b/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/OneSignal.kt @@ -201,12 +201,12 @@ object OneSignal { } @JvmStatic - fun addUserJwtInvalidatedListner(listener: IUserJwtInvalidatedListener) { + fun addUserJwtInvalidatedListener(listener: IUserJwtInvalidatedListener) { oneSignal.addUserJwtInvalidatedListener(listener) } @JvmStatic - fun removeUserJwtInvalidatedListner(listener: IUserJwtInvalidatedListener) { + fun removeUserJwtInvalidatedListener(listener: IUserJwtInvalidatedListener) { oneSignal.removeUserJwtInvalidatedListener(listener) }