Ship with Java 8 bytecode #3003
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Description
Ship with Java 8 bytecode
bug,feature,new API(s),SEMVER, etc.)Goal
Unblock us from taking advantage of some Java 8 language features #2787 (comment)
Worth mentioning that currently
mapbox-javaadds it implicitly from Retrofit mapbox/mapbox-java#1127 https://github.com/square/retrofit/blob/master/CHANGELOG.md#version-270-2019-12-09 https://cashapp.github.io/2019-02-05/okhttp-3-13-requires-android-5 Refs. mapbox/mapbox-java#1095 mapbox/mapbox-java#1127 and #2684Also added recently to the UI SDK
mapbox-navigation-android/libnavigation-ui/build.gradle
Lines 48 to 51 in 7435256
Implementation
Add
compileOptions { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 }to all modules and
to root's
build.gradlefile undersubprojects.Testing
SNAPSHOTupstream dependencies if needed) through testapp/demo app and run all activities to avoid regressionsChecklist
CHANGELOGincluding this PRcc @mapbox/navigation-android