diff --git a/build.gradle b/build.gradle index 90ad279f..acdc0c56 100644 --- a/build.gradle +++ b/build.gradle @@ -59,7 +59,7 @@ android { minSdkVersion 24 targetSdkVersion 31 } - + useLibrary 'org.apache.http.legacy' } diff --git a/src/com/connectsdk/DefaultPlatform.java b/src/com/connectsdk/DefaultPlatform.java deleted file mode 100644 index 7f16d4fd..00000000 --- a/src/com/connectsdk/DefaultPlatform.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.connectsdk; - -import java.util.HashMap; - -public class DefaultPlatform { - public DefaultPlatform() { - } - - public static HashMap getDeviceServiceMap() { - HashMap devicesList = new HashMap(); - devicesList.put("com.connectsdk.service.WebOSTVService", "com.connectsdk.discovery.provider.SSDPDiscoveryProvider"); - devicesList.put("com.connectsdk.service.NetcastTVService", "com.connectsdk.discovery.provider.SSDPDiscoveryProvider"); - devicesList.put("com.connectsdk.service.DLNAService", "com.connectsdk.discovery.provider.SSDPDiscoveryProvider"); - devicesList.put("com.connectsdk.service.DIALService", "com.connectsdk.discovery.provider.SSDPDiscoveryProvider"); - devicesList.put("com.connectsdk.service.RokuService", "com.connectsdk.discovery.provider.SSDPDiscoveryProvider"); - devicesList.put("com.connectsdk.service.AirPlayService", "com.connectsdk.discovery.provider.ZeroconfDiscoveryProvider"); - return devicesList; - } - -} diff --git a/test/src/com/connectsdk/discovery/provider/SSDPDiscoveryProviderTest.java b/test/src/com/connectsdk/discovery/provider/SSDPDiscoveryProviderTest.java old mode 100755 new mode 100644 diff --git a/test/src/com/connectsdk/service/sessions/WebOSWebAppSessionTest.java b/test/src/com/connectsdk/service/sessions/WebOSWebAppSessionTest.java index 87e5046b..3bc53460 100644 --- a/test/src/com/connectsdk/service/sessions/WebOSWebAppSessionTest.java +++ b/test/src/com/connectsdk/service/sessions/WebOSWebAppSessionTest.java @@ -45,7 +45,7 @@ import org.robolectric.RobolectricTestRunner; import org.robolectric.annotation.Config; -import android.support.annotation.NonNull; +import androidx.annotation.NonNull; @RunWith(RobolectricTestRunner.class) @Config(manifest=Config.NONE)