Closed ianthetechie closed 10 months ago
Regular gradle builds should work fine (they run on CI). After setting your values you should be able to run the sample app with the green play button in Android Studio.
Please feel free to provide a PR if you would like to improve some of the lint warnings or improve the README or CONTRIBUTING :).
Right; I was able to infer that gradle test
works via the CI workflows, and the sample app works, but I just can't run gradle build
or gradle check
as there are lint failures. Is gradle test
what we're supposed to run locally when developing the library?
Gradle test runs unit tests, you can use this command locally for testing. We should definitely improve this project to improve linter errors, but you can ignore linter errors on the command-line when you run ./gradlew build -x lint
.
The default Android Studio build does work without any special configuration.
That said, PRs welcome ;)
PR sent! Thanks for your patience and entertaining my relatively dumb questions as I've never been much of a Java developer and I find gradle itself to be at least as complex as most of the applications developed with it 😂
Maplibre Navigation SDK version: 3.0.0 (main branch)
Steps to trigger behavior
developer-config.xml
gradle build
orgradle check
Expected behavior
Successful build.
Actual behavior
Lint fails. The initial errors are about missing permissions in the android manifest, which should probably be fixed. A subsequent build complains about missing telemetry providers (which should be missing!).
Applying the above diff allows it to proceed to the next lint stage and it finds 3151 of them 😂
I think we probably need to do one or more of the following, but don't know the history of the project, hence opening an issue rather than a PR straightaway.
CONTRIBUTING.md
?) how to build the project, and that thebuild
andcheck
tasks will not work. I tracked down a comment in the GitHub actions config: https://github.com/maplibre/maplibre-navigation-android/blob/019810eb9765bf98bf4bddce3c9e8d8e10a63531/.github/workflows/ci-tests.yml#L19 but that's only because I knew exactly what I was looking for.