JakeWharton / DiskLruCache

Java implementation of a Disk-based LRU cache which specifically targets Android compatibility.
http://jakewharton.github.io/DiskLruCache
Apache License 2.0
5.79k stars 1.18k forks source link

Should target Java 1.5 for pre-Gingerbread compatibility #4

Closed candrews closed 12 years ago

candrews commented 12 years ago

In your pom.xml, you should target Java 1.5 (instead of 1.6) to ensure compatibility with pre-Gingerbread versions of Android. For example, methods such as http://docs.oracle.com/javase/6/docs/api/java/lang/String.html#isEmpty%28%29 are not available until Android 2.3.

JakeWharton commented 12 years ago

Done on dev. Releasing soon.