diff --git a/_posts/2018-10-25-robolectric-4-0.md b/_posts/2018-10-25-robolectric-4-0.md index 78fb49a40..e02222bbd 100644 --- a/_posts/2018-10-25-robolectric-4-0.md +++ b/_posts/2018-10-25-robolectric-4-0.md @@ -52,7 +52,7 @@ android { } dependencies { - testImplementation 'org.robolectric:robolectric:{{ site.robolectric.version.current | escape }}' + testImplementation 'org.robolectric:robolectric:{{ robolectric.version.current }}' } ``` diff --git a/docs/automated-migration.md b/docs/automated-migration.md index 0cae12e26..ae69f7274 100644 --- a/docs/automated-migration.md +++ b/docs/automated-migration.md @@ -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 { diff --git a/docs/other-environments.md b/docs/other-environments.md index 24eaea88e..525f0c1a7 100644 --- a/docs/other-environments.md +++ b/docs/other-environments.md @@ -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. @@ -43,7 +43,7 @@ Add the following to your pom.xml: org.robolectric robolectric - {{ site.robolectric.version.current | escape }} + {{ robolectric.version.current }} test ``` diff --git a/mkdocs.yml b/mkdocs.yml index 1444d1297..a7bda5db4 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -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: @@ -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