mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Relocate android specific dependency (#7387)
This commit is contained in:
@@ -64,6 +64,8 @@ import forge.interfaces.IDeviceAdapter;
|
||||
import forge.util.FileUtil;
|
||||
import forge.util.ThreadUtil;
|
||||
import org.apache.commons.lang3.tuple.Pair;
|
||||
import org.jupnp.DefaultUpnpServiceConfiguration;
|
||||
import org.jupnp.android.AndroidUpnpServiceConfiguration;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
@@ -618,6 +620,11 @@ public class Main extends AndroidApplication {
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DefaultUpnpServiceConfiguration getUpnpPlatformService() {
|
||||
return new AndroidUpnpServiceConfiguration();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isConnectedToInternet() {
|
||||
//if it can't determine Internet connection within two seconds, assume not connected
|
||||
|
||||
Reference in New Issue
Block a user