From 6ff4ac48a04969ea282d59d0036b8f6b98a76161 Mon Sep 17 00:00:00 2001 From: Markus Date: Wed, 3 Aug 2016 21:42:25 +0200 Subject: [PATCH] V3.1.0, javadoc fixes and styling, clean up --- DaoCore/build.gradle | 17 +- .../greendao/internal/FastCursor.java | 1 + .../org/greenrobot/greendao/rx/RxBase.java | 4 - DaoExample/build.gradle | 6 +- DaoGenerator/build.gradle | 10 +- greendao-api/build.gradle | 9 +- javadoc-style/background.gif | Bin 0 -> 2313 bytes javadoc-style/stylesheet.css | 574 ++++++++++++++++++ settings.gradle | 3 +- tests/DaoTestEntityAnnotation/build.gradle | 7 +- .../src/main/AndroidManifest.xml | 2 +- .../entityannotation/TypesInInnerClass.java | 16 +- 12 files changed, 615 insertions(+), 34 deletions(-) create mode 100644 javadoc-style/background.gif create mode 100644 javadoc-style/stylesheet.css diff --git a/DaoCore/build.gradle b/DaoCore/build.gradle index 81387b808..38d6ee0c8 100644 --- a/DaoCore/build.gradle +++ b/DaoCore/build.gradle @@ -4,7 +4,7 @@ apply plugin: 'signing' group = 'org.greenrobot' archivesBaseName = 'greendao' -version = '3.1.0-SNAPSHOT' +version = '3.1.0' sourceCompatibility = 1.7 targetCompatibility = 1.7 @@ -25,13 +25,20 @@ dependencies { } javadoc { - def srcApi = project(':greendao-api').file('src/main/java/') - if (!srcApi.directory) throw new GradleScriptException("Not a directory: ${srcApi}", null) failOnError = false title = " greenDAO ${version} API" options.bottom = 'Available under the Apache License, Version 2.0 - Copyright © 2011-2016 greenrobot.org. All Rights Reserved.' - excludes = ['de/greenrobot/dao/internal', 'de/greenrobot/dao/Internal*'] - includes += srcApi.absolutePath + + excludes = ['org/greenrobot/dao/internal', 'org/greenrobot/dao/Internal*'] + def srcApi = project(':greendao-api').file('src/main/java/') + if (!srcApi.directory) throw new GradleScriptException("Not a directory: ${srcApi}", null) + source += srcApi + doLast { + copy { + from '../javadoc-style' + into "build/docs/javadoc/" + } + } } task javadocJar(type: Jar, dependsOn: javadoc) { diff --git a/DaoCore/src/main/java/org/greenrobot/greendao/internal/FastCursor.java b/DaoCore/src/main/java/org/greenrobot/greendao/internal/FastCursor.java index 344a5abee..bab191208 100644 --- a/DaoCore/src/main/java/org/greenrobot/greendao/internal/FastCursor.java +++ b/DaoCore/src/main/java/org/greenrobot/greendao/internal/FastCursor.java @@ -182,6 +182,7 @@ public double getDouble(int columnIndex) { return window.getDouble(position, columnIndex); } + @SuppressWarnings("deprecation") @Override public boolean isNull(int columnIndex) { return window.isNull(position, columnIndex); diff --git a/DaoCore/src/main/java/org/greenrobot/greendao/rx/RxBase.java b/DaoCore/src/main/java/org/greenrobot/greendao/rx/RxBase.java index 6a06041ab..47aa355c2 100644 --- a/DaoCore/src/main/java/org/greenrobot/greendao/rx/RxBase.java +++ b/DaoCore/src/main/java/org/greenrobot/greendao/rx/RxBase.java @@ -16,11 +16,9 @@ package org.greenrobot.greendao.rx; -import org.greenrobot.greendao.AbstractDao; import org.greenrobot.greendao.annotation.apihint.Experimental; import org.greenrobot.greendao.annotation.apihint.Internal; -import java.util.List; import java.util.concurrent.Callable; import rx.Observable; @@ -52,8 +50,6 @@ class RxBase { /** * The default scheduler (or null) used for wrapping. - * - * @return */ @Experimental public Scheduler getScheduler() { diff --git a/DaoExample/build.gradle b/DaoExample/build.gradle index bc06c341b..7f7e5b41c 100644 --- a/DaoExample/build.gradle +++ b/DaoExample/build.gradle @@ -5,17 +5,13 @@ buildscript { dependencies { classpath 'com.android.tools.build:gradle:2.1.2' - classpath 'org.greenrobot:greendao-gradle-plugin:3.0.0' + classpath 'org.greenrobot:greendao-gradle-plugin:3.1.0' } } apply plugin: 'org.greenrobot.greendao' apply plugin: 'com.android.application' -repositories { - mavenCentral() -} - android { buildToolsVersion rootProject.ext.buildToolsVersion compileSdkVersion rootProject.ext.compileSdkVersion diff --git a/DaoGenerator/build.gradle b/DaoGenerator/build.gradle index eb91e684a..7142bc737 100644 --- a/DaoGenerator/build.gradle +++ b/DaoGenerator/build.gradle @@ -4,7 +4,7 @@ apply plugin: 'signing' group = 'org.greenrobot' archivesBaseName = 'greendao-generator' -version = '3.1.0-SNAPSHOT' +version = '3.1.0' sourceCompatibility = 1.7 repositories { @@ -45,8 +45,14 @@ javadoc { failOnError = false title = "greenDAO Generator ${version} API" // Unfinished APIs: - excludes = ['de/greenrobot/daogenerator/Query*'] + excludes = ['org/greenrobot/daogenerator/Query*'] options.bottom = 'Available under the GPLv3 - Copyright © 2011-2016 greenrobot.org. All Rights Reserved.' + doLast { + copy { + from '../javadoc-style/' + into "build/docs/javadoc/" + } + } } task javadocJar(type: Jar, dependsOn: javadoc) { diff --git a/greendao-api/build.gradle b/greendao-api/build.gradle index 9d63fb8ad..b1b04cbe6 100644 --- a/greendao-api/build.gradle +++ b/greendao-api/build.gradle @@ -1,7 +1,7 @@ apply plugin: 'java' group = 'org.greenrobot' -version = '3.1.0-SNAPSHOT' +version = '3.1.0' sourceCompatibility = 1.7 targetCompatibility = 1.7 @@ -10,7 +10,12 @@ javadoc { failOnError = false title = " greenDAO API ${version} API" options.bottom = 'Available under the Apache License, Version 2.0 - Copyright © 2011-2016 greenrobot.org. All Rights Reserved.' - excludes = ['de/greenrobot/dao/internal', 'de/greenrobot/dao/Internal*'] + doLast { + copy { + from '../javadoc-style' + into "build/docs/javadoc/" + } + } } task javadocJar(type: Jar, dependsOn: javadoc) { diff --git a/javadoc-style/background.gif b/javadoc-style/background.gif new file mode 100644 index 0000000000000000000000000000000000000000..ec068a06a33ef106d7b41bce36211482ff9ccd68 GIT binary patch literal 2313 zcmV+k3HJ6!Nk%w1VKM-40OkMy00030|NldAJw$RoMRPw&c|%5YKudZ=M|D9`hD%wL~lJqZ9GnYMooQ1OnXF2c|%EeLP&H#L~cD-j80UCOHzeOQG-cP zfk;exL{^DSRESJfh)h$4OHqPJT$58;kWpEVP*;pkR*FtnicV97OInapTaZ#(k5N{M zPGFcUzJu~lvQJ!T4I@5V3=58m{?<)T4tVIW1CxKn_FXT(QiDlRfk;DaJXni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