Skip to content

Commit

Permalink
Inject Robolectric version
Browse files Browse the repository at this point in the history
  • Loading branch information
MGaetan89 committed Apr 15, 2024
1 parent 3a5a36e commit 1396ed5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion _posts/2018-10-25-robolectric-4-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ android {
}
dependencies {
testImplementation 'org.robolectric:robolectric:{{ site.robolectric.version.current | escape }}'
testImplementation 'org.robolectric:robolectric:{{ robolectric.version.current }}'
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/automated-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The migration tool will make changes directly to source files in your codebase,
errorprone "com.google.errorprone:error_prone_core:2.3.2"
errorproneJavac "com.google.errorprone:javac:9+181-r4173-1"
errorprone "org.robolectric:errorprone:{{ site.robolectric.version.preview | escape }}"
errorprone "org.robolectric:errorprone:{{ robolectric.version.current }}"
}
afterEvaluate {
Expand Down
4 changes: 2 additions & 2 deletions docs/other-environments.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ hide:
In earlier versions you must specify the `constants` field which points to the `BuildConfig.class` generated by Gradle. Robolectric uses the constants in the class to compute the output paths used by Gradle when building your project. Without these values, Robolectric will not be able to find your merged manifest, resources, or assets. This will cease to work in the future so we strongly recommend migrating to the new API.

```groovy
testCompile "org.robolectric:robolectric:{{ site.robolectric.version.current | escape }}"
testCompile "org.robolectric:robolectric:{{ robolectric.version.current }}"
```

Annotate your test with the Robolectric test runner and configure Robolectric to find your resources.
Expand Down Expand Up @@ -43,7 +43,7 @@ Add the following to your pom.xml:
<dependency>
<groupId>org.robolectric</groupId>
<artifactId>robolectric</artifactId>
<version>{{ site.robolectric.version.current | escape }}</version>
<version>{{ robolectric.version.current }}</version>
<scope>test</scope>
</dependency>
```
Expand Down
5 changes: 2 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,13 @@ markdown_extensions:
- pymdownx.superfences

plugins:
- search:
- markdownextradata:
- redirects:
redirect_maps:
"activity-lifecycle.md": "androidx_test.md"
"custom-shadows.md": "extending.md"
"errorprone-refactorings.md": "automated-migration.md"
- search:

extra:
analytics:
Expand All @@ -64,8 +65,6 @@ extra:
robolectric:
version:
current: "4.12"
preview: "4.13-SNAPSHOT"
snapshot: "4.13-SNAPSHOT"
social:
- name: "GitHub Project"
icon: fontawesome/brands/github
Expand Down

0 comments on commit 1396ed5

Please sign in to comment.