fix: correct Java types and remove unused import in SDKManager

- Replace Kotlin-style bool/string with Java boolean/String
- Remove unused kotlinx.serialization.json.Json import

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-03 22:02:36 +08:00
parent c9fe482c8c
commit c0509da0fc

View File

@@ -44,8 +44,6 @@ import org.json.JSONObject;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import kotlinx.serialization.json.Json;
public class SDKManager { public class SDKManager {
private final static Handler handler = new Handler(Looper.getMainLooper()); private final static Handler handler = new Handler(Looper.getMainLooper());
@@ -562,7 +560,7 @@ public class SDKManager {
} }
} }
public static void SetDNSIPsEnable(bool enable) { public static void SetDNSIPsEnable(boolean enable) {
SDKAPI.enableDoh(enable); SDKAPI.enableDoh(enable);
if(enable) { if(enable) {
SDKAPI.setHttpDnsIps(new String[]{ SDKAPI.setHttpDnsIps(new String[]{
@@ -571,7 +569,7 @@ public class SDKManager {
}); });
} }
else{ else{
SDKAPI.setHttpDnsIps(new string[0]); SDKAPI.setHttpDnsIps(new String[0]);
} }
} }
} }