Skip to content
This repository has been archived by the owner on May 20, 2019. It is now read-only.

App 2.1.2 failes to build on f-droid #12

Closed
ghost opened this issue Jan 5, 2015 · 1 comment
Closed

App 2.1.2 failes to build on f-droid #12

ghost opened this issue Jan 5, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 5, 2015

Hi,

currently the app in version 2.1.2 failes to build on f-droid with that message:

CacheCleaner:compileReleaseJava/home/vagrant/build/com.frozendevs.cache.cleaner/CacheCleaner/src/main/java/com/frozendevs/cache/cleaner/model/adapter/AppsListAdapter.java:44: error: diamond operator is not supported in -source 1.6
        mItems = new ArrayList<>();
                               ^
  (use -source 7 or higher to enable diamond operator)

The following patch (which is currently applied to f-droid) of the shipped gradle.build fixes this:

diff --git a/CacheCleaner/build.gradle b/CacheCleaner/build.gradle
index e629920..a8ac4e4 100644
--- a/CacheCleaner/build.gradle
+++ b/CacheCleaner/build.gradle
@@ -15,6 +15,11 @@ repositories {
 android {
     compileSdkVersion 21
     buildToolsVersion "21.1.2"
+
+    compileOptions {
+           sourceCompatibility JavaVersion.VERSION_1_7
+           targetCompatibility JavaVersion.VERSION_1_7
+    }
 }

 dependencies {
@lubo
Copy link
Member

lubo commented Jan 5, 2015

Hello, @RealRancor. Thank you for reporting the problem. Fixed in 8eda91a.

@lubo lubo closed this as completed Jan 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant