Skip to content

Commit 6ff4ac4

Browse files
committed
V3.1.0, javadoc fixes and styling, clean up
1 parent c8f7167 commit 6ff4ac4

File tree

12 files changed

+615
-34
lines changed

12 files changed

+615
-34
lines changed

DaoCore/build.gradle

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'signing'
44

55
group = 'org.greenrobot'
66
archivesBaseName = 'greendao'
7-
version = '3.1.0-SNAPSHOT'
7+
version = '3.1.0'
88
sourceCompatibility = 1.7
99
targetCompatibility = 1.7
1010

@@ -25,13 +25,20 @@ dependencies {
2525
}
2626

2727
javadoc {
28-
def srcApi = project(':greendao-api').file('src/main/java/')
29-
if (!srcApi.directory) throw new GradleScriptException("Not a directory: ${srcApi}", null)
3028
failOnError = false
3129
title = " greenDAO ${version} API"
3230
options.bottom = 'Available under the Apache License, Version 2.0 - <i>Copyright &#169; 2011-2016 <a href="http://greenrobot.org/">greenrobot.org</a>. All Rights Reserved.</i>'
33-
excludes = ['de/greenrobot/dao/internal', 'de/greenrobot/dao/Internal*']
34-
includes += srcApi.absolutePath
31+
32+
excludes = ['org/greenrobot/dao/internal', 'org/greenrobot/dao/Internal*']
33+
def srcApi = project(':greendao-api').file('src/main/java/')
34+
if (!srcApi.directory) throw new GradleScriptException("Not a directory: ${srcApi}", null)
35+
source += srcApi
36+
doLast {
37+
copy {
38+
from '../javadoc-style'
39+
into "build/docs/javadoc/"
40+
}
41+
}
3542
}
3643

3744
task javadocJar(type: Jar, dependsOn: javadoc) {

DaoCore/src/main/java/org/greenrobot/greendao/internal/FastCursor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ public double getDouble(int columnIndex) {
182182
return window.getDouble(position, columnIndex);
183183
}
184184

185+
@SuppressWarnings("deprecation")
185186
@Override
186187
public boolean isNull(int columnIndex) {
187188
return window.isNull(position, columnIndex);

DaoCore/src/main/java/org/greenrobot/greendao/rx/RxBase.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@
1616

1717
package org.greenrobot.greendao.rx;
1818

19-
import org.greenrobot.greendao.AbstractDao;
2019
import org.greenrobot.greendao.annotation.apihint.Experimental;
2120
import org.greenrobot.greendao.annotation.apihint.Internal;
2221

23-
import java.util.List;
2422
import java.util.concurrent.Callable;
2523

2624
import rx.Observable;
@@ -52,8 +50,6 @@ class RxBase {
5250

5351
/**
5452
* The default scheduler (or null) used for wrapping.
55-
*
56-
* @return
5753
*/
5854
@Experimental
5955
public Scheduler getScheduler() {

DaoExample/build.gradle

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,13 @@ buildscript {
55

66
dependencies {
77
classpath 'com.android.tools.build:gradle:2.1.2'
8-
classpath 'org.greenrobot:greendao-gradle-plugin:3.0.0'
8+
classpath 'org.greenrobot:greendao-gradle-plugin:3.1.0'
99
}
1010
}
1111

1212
apply plugin: 'org.greenrobot.greendao'
1313
apply plugin: 'com.android.application'
1414

15-
repositories {
16-
mavenCentral()
17-
}
18-
1915
android {
2016
buildToolsVersion rootProject.ext.buildToolsVersion
2117
compileSdkVersion rootProject.ext.compileSdkVersion

DaoGenerator/build.gradle

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'signing'
44

55
group = 'org.greenrobot'
66
archivesBaseName = 'greendao-generator'
7-
version = '3.1.0-SNAPSHOT'
7+
version = '3.1.0'
88
sourceCompatibility = 1.7
99

1010
repositories {
@@ -45,8 +45,14 @@ javadoc {
4545
failOnError = false
4646
title = "greenDAO Generator ${version} API"
4747
// Unfinished APIs:
48-
excludes = ['de/greenrobot/daogenerator/Query*']
48+
excludes = ['org/greenrobot/daogenerator/Query*']
4949
options.bottom = 'Available under the GPLv3 - <i>Copyright &#169; 2011-2016 <a href="http://greenrobot.org/">greenrobot.org</a>. All Rights Reserved.</i>'
50+
doLast {
51+
copy {
52+
from '../javadoc-style/'
53+
into "build/docs/javadoc/"
54+
}
55+
}
5056
}
5157

5258
task javadocJar(type: Jar, dependsOn: javadoc) {

greendao-api/build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apply plugin: 'java'
22

33
group = 'org.greenrobot'
4-
version = '3.1.0-SNAPSHOT'
4+
version = '3.1.0'
55

66
sourceCompatibility = 1.7
77
targetCompatibility = 1.7
@@ -10,7 +10,12 @@ javadoc {
1010
failOnError = false
1111
title = " greenDAO API ${version} API"
1212
options.bottom = 'Available under the Apache License, Version 2.0 - <i>Copyright &#169; 2011-2016 <a href="http://greenrobot.org/">greenrobot.org</a>. All Rights Reserved.</i>'
13-
excludes = ['de/greenrobot/dao/internal', 'de/greenrobot/dao/Internal*']
13+
doLast {
14+
copy {
15+
from '../javadoc-style'
16+
into "build/docs/javadoc/"
17+
}
18+
}
1419
}
1520

1621
task javadocJar(type: Jar, dependsOn: javadoc) {

javadoc-style/background.gif

2.26 KB
Loading

0 commit comments

Comments
 (0)