-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
124 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,10 +14,12 @@ | |
* limitations under the License. | ||
*/ | ||
|
||
apply plugin: 'com.android.library' | ||
apply plugin: 'com.github.dcendents.android-maven' | ||
apply plugin: 'com.jfrog.bintray' | ||
apply plugin: 'jacoco-android' | ||
plugins { | ||
id 'com.android.library' | ||
id 'com.dicedmelon.gradle.jacoco-android' | ||
id 'maven-publish' | ||
id 'signing' | ||
} | ||
|
||
class AttrMarkdown extends DefaultTask { | ||
|
||
|
@@ -59,8 +61,6 @@ android { | |
compileSdkVersion theCompileSdkVersion | ||
|
||
defaultConfig { | ||
versionCode theVersionCode | ||
versionName theVersionName | ||
minSdkVersion theMinSdkVersion | ||
targetSdkVersion theTargetSdkVersion | ||
testApplicationId "com.androidplot.test" | ||
|
@@ -70,14 +70,13 @@ android { | |
unitTests.all { | ||
jacoco { | ||
includeNoLocationClasses = true | ||
jacoco.excludes = ['jdk.internal.*'] | ||
} | ||
} | ||
} | ||
|
||
/** | ||
* TODO: enable and address lint issues. | ||
*/ | ||
lintOptions { | ||
// TODO: enable and address lint issues. | ||
abortOnError false | ||
} | ||
} | ||
|
@@ -90,15 +89,12 @@ def gitUrl = 'https://github.com/halfhp/androidplot.git' | |
|
||
dependencies { | ||
|
||
implementation 'com.halfhp.fig:figlib:1.0.7' | ||
implementation 'com.halfhp.fig:figlib:1.0.11' | ||
implementation 'com.android.support:support-annotations:28.0.0' | ||
testImplementation "org.mockito:mockito-core:3.0.0" | ||
testImplementation group: 'junit', name: 'junit', version: '4.12' | ||
testImplementation "org.robolectric:robolectric:4.2.1" | ||
|
||
// temp fix for: | ||
// https://github.com/robolectric/robolectric/issues/1932 | ||
testImplementation 'org.khronos:opengl-api:gl1.1-android-2.1_r1' | ||
testImplementation "org.mockito:mockito-core:3.9.0" | ||
testImplementation group: 'junit', name: 'junit', version: '4.13.2' | ||
testImplementation "org.robolectric:robolectric:4.5.1" | ||
} | ||
|
||
task javadoc(type: Javadoc) { | ||
|
@@ -123,63 +119,70 @@ task sourcesJar(type: Jar) { | |
from android.sourceSets.main.java.srcDirs | ||
} | ||
|
||
install { | ||
repositories.mavenInstaller { | ||
pom { | ||
project { | ||
packaging 'aar' | ||
name 'Androidplot Core Library' | ||
description = "Androidplot is a library for creating dynamic and static charts within your Android application." | ||
url siteUrl | ||
licenses { | ||
license { | ||
name 'The Apache Software License, Version 2.0' | ||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
developers { | ||
developer { | ||
id 'halfhp' | ||
name 'Nick Fellows' | ||
email '[email protected]' | ||
} | ||
} | ||
scm { | ||
connection gitUrl | ||
developerConnection gitUrl | ||
url siteUrl | ||
javadoc { | ||
options.overview = "src/main/java/overview.html" | ||
} | ||
|
||
afterEvaluate { | ||
publishing { | ||
repositories { | ||
maven { | ||
name = "Maven Central" | ||
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" | ||
credentials { | ||
username = System.getenv("OSSRH_ACTOR") | ||
password = System.getenv("OSSRH_TOKEN") | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
bintray { | ||
|
||
// these environment vars must be set when deploying to bintray. | ||
// note: BINTRAY_PASSWORD is actually the api key, but naming it 'password' | ||
// tells the CI environment to obfuscate the value in public logs. | ||
user = System.getenv('BINTRAY_USER') | ||
key = System.getenv('BINTRAY_PASSWORD') | ||
|
||
publications { | ||
release(MavenPublication) { | ||
|
||
from components.release | ||
|
||
// You can then customize attributes of the publication as shown below. | ||
groupId = 'com.androidplot' | ||
artifactId = 'androidplot' | ||
version = theVersionName | ||
|
||
pom { | ||
packaging 'aar' | ||
name = 'Androidplot' | ||
description = "Configure any object from XML." | ||
url = gitUrl | ||
licenses { | ||
license { | ||
name = 'The Apache Software License, Version 2.0' | ||
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
developers { | ||
developer { | ||
id = 'halfhp' | ||
name = 'Nick Fellows' | ||
email = '[email protected]' | ||
} | ||
} | ||
scm { | ||
connection = gitUrl | ||
developerConnection = gitUrl | ||
url = gitUrl | ||
|
||
configurations = ['archives'] | ||
pkg { | ||
version { | ||
name = theVersionName | ||
} | ||
} | ||
} | ||
} | ||
repo = "androidplot" | ||
name = "com.androidplot:androidplot-core" | ||
issueTrackerUrl = "https://github.com/halfhp/androidplot/issues" | ||
websiteUrl = siteUrl | ||
vcsUrl = gitUrl | ||
licenses = ["Apache-2.0"] | ||
} | ||
} | ||
|
||
javadoc { | ||
options.overview = "src/main/java/overview.html" | ||
afterEvaluate { | ||
signing { | ||
def signingKey = System.getenv("SIGNING_KEY") | ||
def signingPassword = System.getenv("SIGNING_PASSWORD") | ||
useInMemoryPgpKeys(signingKey, signingPassword) | ||
sign publishing.publications.release | ||
} | ||
} | ||
|
||
artifacts { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
androidplot-core/src/main/java/com/androidplot/pie/PieLegendItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
androidplot-core/src/main/java/com/androidplot/util/FastNumber.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
androidplot-core/src/main/java/com/androidplot/xy/FixedSizeEditableXYSeries.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
androidplot-core/src/main/java/com/androidplot/xy/XYLegendItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.