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:
@@ -44,8 +44,6 @@ import org.json.JSONObject;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import kotlinx.serialization.json.Json;
|
||||
|
||||
public class SDKManager {
|
||||
|
||||
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);
|
||||
if(enable) {
|
||||
SDKAPI.setHttpDnsIps(new String[]{
|
||||
@@ -571,7 +569,7 @@ public class SDKManager {
|
||||
});
|
||||
}
|
||||
else{
|
||||
SDKAPI.setHttpDnsIps(new string[0]);
|
||||
SDKAPI.setHttpDnsIps(new String[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user