arcgis-maps-sdk-kotlin-samples icon indicating copy to clipboard operation
arcgis-maps-sdk-kotlin-samples copied to clipboard

Missing examples for testing

Open padmalcom opened this issue 2 years ago • 2 comments

Hi, we are currently writing unit/integration tests for our android app using your SDK. We fail during the setup of unit tests so an example how to setup your environment to do unit tests would be a nice addition to your samples.

padmalcom avatar Jun 07 '23 13:06 padmalcom

Hi, @padmalcom . So how did you fix tests? Created some wrappers for arcgis classes?

eugene-rsi-europe avatar May 10 '24 06:05 eugene-rsi-europe

For those who are still looking for solution. Need to add just one extra dependency to build.gradle:

implementation libs.arcgis.maps.kotlin
implementation(platform(libs.arcgis.maps.kotlin.toolkit.bom)) //this one

And how it looks like inside .toml file

[versions]
arcgis-maps-kotlin = "200.3.0"
[libraries]
arcgis-maps-kotlin = { group = "com.esri", name = "arcgis-maps-kotlin", version.ref = "arcgis-maps-kotlin" }
arcgis-maps-kotlin-toolkit-bom = { group = "com.esri", name = "arcgis-maps-kotlin-toolkit-bom", version.ref = "arcgis-maps-kotlin"}

eugene-rsi-europe avatar Jun 20 '24 11:06 eugene-rsi-europe