@AutoService(value=SdkProvider.class) @Priority(value=-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
.
Modifier and Type | Class and Description |
---|---|
class |
DefaultSdkProvider.DefaultSdk
Represents an Android SDK stored at Maven Central.
|
Constructor and Description |
---|
DefaultSdkProvider(DependencyResolver dependencyResolver) |
Modifier and Type | Method and Description |
---|---|
Collection<Sdk> |
getSdks()
Returns the set of SDKs available to run tests against.
|
protected void |
populateSdks(TreeMap<Integer,Sdk> knownSdks) |
@Inject public DefaultSdkProvider(DependencyResolver dependencyResolver)
public Collection<Sdk> getSdks()
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.
getSdks
in interface SdkProvider