Skip to content
This repository has been archived by the owner on Oct 1, 2022. It is now read-only.

Frameworks & Java8

Andreas Eberle edited this page Jul 18, 2018 · 2 revisions

Because we are currently supporting Android down to version 4.0.3 (API level 15), special care has to be taken when using Java8 features in the subprojects included in the Android build. This includes the following projects:

  • go.graphics
  • go.graphics.android
  • jsettlers.common
  • jsettlers.graphics
  • jsettlers.logic
  • jsettlers.main.android
  • jsettlers.network

In order to still be able to use Java8 style streams, we use the Streamsupport library.

Streamsupport

The streamsupport library offers the Java8 streams for non-Java8 users. However, as the library cannot change the API of the used Java version, the methods cannot always be used in the absolut same way. Therefore, I highly recommend to have a look at the Streamsupport "documentation".