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

Bump robolectric dependency to 4.8.2 #984

Closed
wants to merge 8 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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.gradle
local.properties
.DS_Store

**build
captures

Expand All @@ -16,6 +17,7 @@ buck-out
**/BUCK

buildSrc/bintray.properties
buildSrc/secring.gpg

# Bazel
bazel-*
Expand Down
11 changes: 8 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@
* Add configuration cleanCacheDir to conditionally delete the cache directory or
just the existing dependency rules files

### Version 0.54.0
### Version 0.54.0
* Stop using /tmp for Android Lint gen-rule and use buck-out tmp instead

### Version 0.54.1
### Version 0.54.1
* Clean up leftover tmp file for Android Lint genrule

### Version 0.54.2
### Version 0.54.2
* Signing certificate is invalid, replacement release with new signature.
* No other code changes

### Version 0.54.3
* Added support for Android API 32, 33, and 34
* Bumped robolectric dependency to 4.8.2
* Bumped pre-instrumented version to i4
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ 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"),
API_34("14", "10818077");

private final String androidVersion;
private final String frameworkSdkBuildVersion;
Expand Down Expand Up @@ -173,6 +176,12 @@ static API from(String apiLevel) {
return API_30;
case "31":
return API_31;
case "32":
return API_32;
case "33":
return API_33;
case "34":
return API_34;
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
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def test = [
junit : "junit:junit:4.13.2",
kotlinTest : "org.jetbrains.kotlin:kotlin-test-junit:${versions.kotlin}",
mockito : "org.mockito:mockito-core:3.8.0",
robolectric : "org.robolectric:robolectric:4.7.3",
robolectric : "org.robolectric:robolectric:4.8.2",
scalaTest : "org.scalatest:scalatest_sjs1_2.13:3.2.0",
scalaTestJunit: "org.scalatestplus:junit-4-12_2.13:3.2.2.0",
testExt : "androidx.test.ext:junit:1.1.2-rc01",
Expand Down
Loading