Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing API versions for Roboelectric #972

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ enum API {
API_28("9", "4913185-2"),
API_29("10", "5803371"),
API_30("11", "6757853"),
API_31("12", "7732740");
API_31("12", "7732740"),
API_32("12.1", "8229987"),
API_33("13", "9030017");

private final String androidVersion;
private final String frameworkSdkBuildVersion;
Expand Down Expand Up @@ -173,6 +175,10 @@ static API from(String apiLevel) {
return API_30;
case "31":
return API_31;
case "32":
return API_32;
case "33":
return API_33;
default:
throw new IllegalStateException("Unknown Robolectric API Level: " + apiLevel);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class TestExtension {
* Hardcoded in Robolectric
* https://github.com/robolectric/robolectric/blob/master/robolectric/src/main/java/org/robolectric/plugins/DefaultSdkProvider.java#L50
*/
public String robolectricPreinstrumentedVersion = "i3";
public String robolectricPreinstrumentedVersion = "i4";

/** Enable generation of espresso test rules. */
public boolean espresso = false;
Expand Down