Package org.robolectric.plugins
Class DefaultSdkPicker
- java.lang.Object
-
- org.robolectric.plugins.DefaultSdkPicker
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultSdkPicker(SdkCollection sdkCollection, String enabledSdks)
DefaultSdkPicker(SdkCollection sdkCollection, Properties systemProperties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<Sdk>
configuredSdks(Config config, UsesSdk usesSdk)
protected int
decodeSdk(int value, int defaultSdk, int appMinSdk, int appTargetSdk, int appMaxSdk)
protected static Set<Sdk>
enumerateEnabledSdks(SdkCollection sdkCollection, String enabledSdksString)
protected Set<Sdk>
sdkRange(int minSdk, int maxSdk)
List<Sdk>
selectSdks(ConfigurationStrategy.Configuration configuration, UsesSdk usesSdk)
Enumerate the SDKs to be used for this test.
-
-
-
Constructor Detail
-
DefaultSdkPicker
@Inject public DefaultSdkPicker(@Nonnull SdkCollection sdkCollection, Properties systemProperties)
-
DefaultSdkPicker
protected DefaultSdkPicker(@Nonnull SdkCollection sdkCollection, String enabledSdks)
-
-
Method Detail
-
selectSdks
@Nonnull public List<Sdk> selectSdks(ConfigurationStrategy.Configuration configuration, UsesSdk usesSdk)
Enumerate the SDKs to be used for this test.- Specified by:
selectSdks
in interfaceSdkPicker
- Parameters:
configuration
- a collection of configuration objects, includingConfig
usesSdk
- theUsesSdk
for the test- Returns:
- the list of candidate
Sdk
s. - Since:
- 3.9
-
enumerateEnabledSdks
@Nullable protected static Set<Sdk> enumerateEnabledSdks(SdkCollection sdkCollection, String enabledSdksString)
-
decodeSdk
protected int decodeSdk(int value, int defaultSdk, int appMinSdk, int appTargetSdk, int appMaxSdk)
-
-