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

Move devToken inside the StreamVideo's companion object #895

Merged
merged 1 commit into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,6 @@ public abstract interface class io/getstream/video/android/core/StreamVideo : io
public abstract fun connectAsync (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public abstract fun createDevice (Lio/getstream/android/push/PushDevice;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public abstract fun deleteDevice (Lio/getstream/video/android/model/Device;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public fun devToken (Ljava/lang/String;)Ljava/lang/String;
public abstract fun getContext ()Landroid/content/Context;
public abstract fun getEdges (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public abstract fun getState ()Lio/getstream/video/android/core/ClientState;
Expand All @@ -745,6 +744,7 @@ public abstract interface class io/getstream/video/android/core/StreamVideo : io
}

public final class io/getstream/video/android/core/StreamVideo$Companion {
public final fun devToken (Ljava/lang/String;)Ljava/lang/String;
public final fun instance ()Lio/getstream/video/android/core/StreamVideo;
public final fun instanceOrNull ()Lio/getstream/video/android/core/StreamVideo;
public final fun isInstalled ()Z
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,14 +215,14 @@ public interface StreamVideo : NotificationHandler {
internalStreamVideo?.cleanup()
internalStreamVideo = null
}
}

/**
* Generate a developer token that can be used to connect users while the app is using a development environment.
*
* @param userId the desired id of the user to be connected.
*/
public fun devToken(userId: String): String = TokenUtils.devToken(userId)
/**
* Generate a developer token that can be used to connect users while the app is using a development environment.
*
* @param userId the desired id of the user to be connected.
*/
public fun devToken(userId: String): String = TokenUtils.devToken(userId)
}

public fun cleanup()
}
Expand Down
Loading