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
Modifier and TypeClassDescriptionclass
Represents an Android SDK stored at Maven Central. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetSdks()
Returns the set of SDKs available to run tests against.protected void
populateSdks
(TreeMap<Integer, Sdk> knownSdks)
-
Constructor Details
-
DefaultSdkProvider
-
-
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
-