Skip to content

Sample minimum project with functional java and java 8 lambdas support

Notifications You must be signed in to change notification settings

alcarvalho/android-functional-java

Repository files navigation

Android Functional Java Sample

This is a sample project to try to include functional java library on Android apps with support for Java 8 lambdas.

It was created using a Mac OS X system, so there are somethings hard coded to it, i.e. it looks for Java home using /usr/libexec/java_home.

Config

You must set certain environment variables to make it work if you're not on Mac OS X:

  • JAVA8_HOME as path to Java 8
  • JAVA7_HOME as path to Java 7

Or you can set these using a local.properties file:

retrolambda.jdk=<path to Java 8>
retrolambda.oldJdk=<path to Java 7>

IntelliJ configuration on Mac OS X

The only way IntelliJ's Gradle import would not fail for me with this error, was by running this gist and restarting it.

About

Sample minimum project with functional java and java 8 lambdas support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages