Skip to content

Commit 5e24c36

Browse files
committed
source and javadoc jar
1 parent 5d9c8de commit 5e24c36

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

canvasgl/build.gradle

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ android {
2828
defaultConfig {
2929
minSdkVersion 14
3030
targetSdkVersion 25
31-
versionCode 102011
32-
versionName "1.2.1.1"
31+
versionCode 102012
32+
versionName "1.2.1.2"
3333
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
3434
}
3535
buildTypes {
3636
release {
37-
minifyEnabled true
37+
minifyEnabled false
3838
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
3939
}
4040
}
@@ -53,3 +53,29 @@ dependencies {
5353
compile 'com.android.support:appcompat-v7:25.3.1'
5454
testCompile 'junit:junit:4.12'
5555
}
56+
57+
58+
// build a jar with source files
59+
task sourcesJar(type: Jar) {
60+
from android.sourceSets.main.java.srcDirs
61+
classifier = 'sources'
62+
}
63+
64+
task javadoc(type: Javadoc) {
65+
failOnError false
66+
source = android.sourceSets.main.java.sourceFiles
67+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
68+
classpath += configurations.compile
69+
}
70+
71+
// build a jar with javadoc
72+
task javadocJar(type: Jar, dependsOn: javadoc) {
73+
classifier = 'javadoc'
74+
from javadoc.destinationDir
75+
}
76+
77+
78+
artifacts {
79+
archives sourcesJar
80+
archives javadocJar
81+
}

canvasgl/src/main/java/com/chillingvan/canvasgl/glview/GLView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ protected void onSizeChanged(int w, int h, int oldw, int oldh) {
117117
}
118118
}
119119

120-
interface OnSizeChangeCallback {
120+
public interface OnSizeChangeCallback {
121121
void onSizeChange(int w, int h, int oldw, int oldh);
122122
}
123123

0 commit comments

Comments
 (0)