fix: Update client type constant for Android in context management

- Renamed ClientTypeSDK to ClientTypeAndroid for clarity and consistency in client type definitions.
- Updated SupportedClientTypes map to reflect the change in client type naming.
This commit is contained in:
Max 2025-05-09 12:14:41 +08:00
parent dc54d17f2b
commit eb89272048

View file

@ -59,8 +59,8 @@ const (
// ClientTypeWeb is the client type for Web (Default UI) // ClientTypeWeb is the client type for Web (Default UI)
ClientTypeWeb = "web" ClientTypeWeb = "web"
// ClientTypeSDK is the client type for SDK // ClientTypeAndroid is the client type for Android
ClientTypeSDK = "android" ClientTypeAndroid = "android"
// ClientTypeIOS is the client type for IOS // ClientTypeIOS is the client type for IOS
ClientTypeIOS = "ios" ClientTypeIOS = "ios"
@ -82,7 +82,7 @@ const (
var SupportedClientTypes = map[string]bool{ var SupportedClientTypes = map[string]bool{
ClientTypeAgent: true, ClientTypeAgent: true,
ClientTypeWeb: true, ClientTypeWeb: true,
ClientTypeSDK: true, ClientTypeAndroid: true,
ClientTypeIOS: true, ClientTypeIOS: true,
ClientTypeJSSDK: true, ClientTypeJSSDK: true,
ClientTypeMacOS: true, ClientTypeMacOS: true,