Skip to content
Open
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
6 changes: 2 additions & 4 deletions .agents/skills/android-maps-testing/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ description: >-
Critical User Journeys (CUJs), Modern Android Development (MAD) modularity (< 200-300 lines per file,
never storing GoogleMap in ViewModels), and the Zero-Mock Reality Gap gate.
license: Apache-2.0
compatibility: Requires an Android project with compileSdk 34+ and Java 11+ bytecode target. Uses maps-testing-robolectric 1.0.0-rc01+, maps-testing-golden 1.0.0-rc01+, and maps-testing-visual 1.0.0-rc01+.
compatibility: Requires an Android project with compileSdk 34+ and Java 11+ bytecode target. Uses maps-testing-robolectric, maps-testing-golden, and maps-testing-visual 1.0.0-rc01+. # x-release-please-version
metadata:
version: "1.3"
author: Google Maps Platform DevRel
Expand Down Expand Up @@ -141,10 +141,9 @@ JVM execution without devices? fidelity asser

### Using Gradle Version Catalog (`gradle/libs.versions.toml`)

<!-- x-release-please-start-version -->
```toml
[versions]
mapsTesting = "1.0.0-rc01"
mapsTesting = "1.0.0-rc01" # x-release-please-version
robolectric = "4.17"
truth = "1.4.5"

Expand All @@ -155,7 +154,6 @@ maps-testing-visual = { module = "com.google.maps.android:maps-testing-visual",
robolectric = { module = "org.robolectric:robolectric", version.ref = "robolectric" }
truth = { module = "com.google.truth:truth", version.ref = "truth" }
```
<!-- x-release-please-end -->

```kotlin
dependencies {
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/maps-golden-testing/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: >-
assertMatchesGolden() / assertMatchesGoldenBlocking(), baseline recording (-Dmaps.golden.record=true),
and automatic _actual.png and _diff.png failure diagnostic artifacts.
license: Apache-2.0
compatibility: Requires compileSdk 34+, Java 11+ bytecode target, and com.google.maps.android:maps-testing-golden:1.0.0-rc01+.
compatibility: Requires compileSdk 34+, Java 11+ bytecode target, and com.google.maps.android:maps-testing-golden:1.0.0-rc01+. # x-release-please-version
metadata:
version: "1.3"
author: Google Maps Platform DevRel
Expand Down
6 changes: 2 additions & 4 deletions .agents/skills/maps-robolectric-testing/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: >-
(findMapView / requireMapView), android-maps-utils marker clustering, or domain assertions
using either Google Truth (assertThat(map)) or Kotlin Power-Assert (assertMap / assertMarker / assertGeo).
license: Apache-2.0
compatibility: Requires compileSdk 34+, Java 11+ bytecode target, Robolectric 4.14+, and com.google.maps.android:maps-testing-robolectric:1.0.0-rc01+.
compatibility: Requires compileSdk 34+, Java 11+ bytecode target, Robolectric 4.14+, and com.google.maps.android:maps-testing-robolectric:1.0.0-rc01+. # x-release-please-version
metadata:
version: "1.3"
author: Google Maps Platform DevRel
Expand All @@ -26,16 +26,14 @@ For the full multi-tier toolkit overview, see [`../android-maps-testing/SKILL.md

## 1. Setup & Dependencies

<!-- x-release-please-start-version -->
```kotlin
dependencies {
testImplementation("com.google.maps.android:maps-testing-robolectric:1.0.0-rc01")
testImplementation("com.google.maps.android:maps-testing-robolectric:1.0.0-rc01") // x-release-please-version
testImplementation("org.robolectric:robolectric:4.17")
// Optional if using Google Truth subjects instead of Kotlin Power-Assert:
testImplementation("com.google.truth:truth:1.4.5")
}
```
<!-- x-release-please-end -->

Annotate your test class with:
```kotlin
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/maps-visual-testing/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: >-
verifyScreenshotWithGoldenFallback, or drive UI interactions via natural-language prompts
(executeNaturalLanguageAction).
license: Apache-2.0
compatibility: Requires compileSdk 34+, Java 11+ bytecode target, an Android emulator or device, and com.google.maps.android:maps-testing-visual:1.0.0-rc01+.
compatibility: Requires compileSdk 34+, Java 11+ bytecode target, an Android emulator or device, and com.google.maps.android:maps-testing-visual:1.0.0-rc01+. # x-release-please-version
metadata:
version: "1.3"
author: Google Maps Platform DevRel
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,9 @@ JVM execution without devices? fidelity asser

Add the desired artifacts to your `gradle/libs.versions.toml`:

<!-- x-release-please-start-version -->
```toml
[versions]
mapsTesting = "1.0.0-rc01"
mapsTesting = "1.0.0-rc01" # x-release-please-version
robolectric = "4.17"
truth = "1.4.5"

Expand All @@ -82,7 +81,6 @@ maps-testing-visual = { module = "com.google.maps.android:maps-testing-visual",
robolectric = { module = "org.robolectric:robolectric", version.ref = "robolectric" }
truth = { module = "com.google.truth:truth", version.ref = "truth" }
```
<!-- x-release-please-end -->

Then reference them in your module's `build.gradle.kts`:

Expand Down
8 changes: 2 additions & 6 deletions robolectric-testing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ High-fidelity Robolectric shadows and testing utilities for the Google Maps SDK

### 1. Declare Dependencies in `gradle/libs.versions.toml` (Recommended)

<!-- x-release-please-start-version -->
```toml
[versions]
mapsTesting = "1.0.0-rc01"
mapsTesting = "1.0.0-rc01" # x-release-please-version
kotlin = "2.1.20"
robolectric = "4.17"
truth = "1.4.5"
Expand All @@ -36,7 +35,6 @@ truth = { module = "com.google.truth:truth", version.ref = "truth" }
[plugins]
kotlin-power-assert = { id = "org.jetbrains.kotlin.plugin.power-assert", version.ref = "kotlin" }
```
<!-- x-release-please-end -->

### 2. Configure Your Module's `build.gradle.kts`

Expand Down Expand Up @@ -84,17 +82,15 @@ dependencies {
<details>
<summary><b>Without Version Catalog (Direct Coordinates)</b></summary>

<!-- x-release-please-start-version -->
```kotlin
dependencies {
testImplementation("com.google.maps.android:maps-testing-robolectric:1.0.0-rc01")
testImplementation("com.google.maps.android:maps-testing-robolectric:1.0.0-rc01") // x-release-please-version
testImplementation("org.robolectric:robolectric:4.17")

// Optional: include only if using Google Truth subjects instead of Kotlin Power-Assert
testImplementation("com.google.truth:truth:1.4.5")
}
```
<!-- x-release-please-end -->

</details>

Expand Down
Loading