From 6d5578f163237601787bbed627e861785954091c Mon Sep 17 00:00:00 2001 From: "marcin.cebo" Date: Mon, 24 Feb 2025 12:05:42 +0100 Subject: [PATCH] Deprecated grant method in Java API. --- .../src/main/java/com/pubnub/api/java/PubNub.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pubnub-gson/pubnub-gson-api/src/main/java/com/pubnub/api/java/PubNub.kt b/pubnub-gson/pubnub-gson-api/src/main/java/com/pubnub/api/java/PubNub.kt index a44fe6da6..676d6f5c5 100644 --- a/pubnub-gson/pubnub-gson-api/src/main/java/com/pubnub/api/java/PubNub.kt +++ b/pubnub-gson/pubnub-gson-api/src/main/java/com/pubnub/api/java/PubNub.kt @@ -257,6 +257,13 @@ interface PubNub : EventEmitter, StatusEmitter { * - Channel level privileges are based on a combination of `subscribeKey` and `channel` name. * - User level privileges are based on the combination of `subscribeKey`, `channel`, and `auth_key`. */ + @Deprecated( + level = DeprecationLevel.WARNING, + message = "This function is deprecated. Use the grantToken(ttl)", + replaceWith = ReplaceWith( + "grantToken(ttl)" + ) + ) fun grant(): Grant /**