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 defaultSdkProvider
.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
All Methods Instance Methods Concrete Methods 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 Detail
-
DefaultSdkProvider
@Inject public DefaultSdkProvider(DependencyResolver dependencyResolver)
-
-
Method Detail
-
getSdks
public Collection<Sdk> 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
-
-