Package org.robolectric.plugins
Class DefaultSdkProvider
java.lang.Object
org.robolectric.plugins.DefaultSdkProvider
- All Implemented Interfaces:
SdkProvider
@AutoService(SdkProvider.class) @Priority(-2147483648) public class DefaultSdkProvider extends Object implements SdkProvider
Robolectric's default
SdkProvider
.
The list of SDKs is hard-coded. SDKs are obtained from the provided DependencyResolver
.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
DefaultSdkProvider.DefaultSdk
Represents an Android SDK stored at Maven Central. -
Constructor Summary
Constructors Constructor Description DefaultSdkProvider(DependencyResolver dependencyResolver)
-
Method Summary
Modifier and Type Method Description Collection<Sdk>
getSdks()
Returns the set of SDKs available to run tests against.protected void
populateSdks(TreeMap<Integer,Sdk> knownSdks)
-
Constructor Details
-
Method Details
-
populateSdks
-
getSdks
Description copied from interface:SdkProvider
Returns the set of SDKs available to run tests against. It's okay for the implementation to block briefly while building the list; the results will be cached.- Specified by:
getSdks
in interfaceSdkProvider
-