Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to bintray #3

Merged
merged 6 commits into from
Sep 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.markdown → README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,8 @@ See GraphView-Demos for examples.
<a href="https://github.com/jjoe64/GraphView-Demos">https://github.com/jjoe64/GraphView-Demos<br/>
<a href="http://www.jjoe64.com/p/graphview-library.html">View GraphView page http://www.jjoe64.com/p/graphview-library.html</a>

<h2>Publish it to bintray</h2>

```shell
$ ./gradlew assemble publishToMavenLocal bintrayUpload -PbintrayUser=FIXME -PbintrayKey=FIXME -PdryRun=false
```
81 changes: 21 additions & 60 deletions WordPressGraphView/build.gradle
Original file line number Diff line number Diff line change
@@ -1,83 +1,44 @@
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.novoda:bintray-release:0.5.0'
}
}

apply plugin: 'com.android.library'
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'com.novoda.bintray-release' // must be applied after your artifact generating plugin (eg. java / com.android.library)

repositories {
jcenter()
}

android {
publishNonDefault true

compileSdkVersion 19
buildToolsVersion "21.1.2"
buildToolsVersion "25.0.3"

defaultConfig {
versionName "3.4.0"
versionName "3.4.1"
versionCode 1
minSdkVersion 8
targetSdkVersion 19
}
}

signing {
required {
has("release") && project.properties.containsKey("signing.keyId") && project.properties.containsKey("signing.secretKeyRingFile")
}
sign configurations.archives
}


version android.defaultConfig.versionName
group = "org.wordpress"
archivesBaseName = "graphview"

// http://central.sonatype.org/pages/gradle.html

uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: project.properties.ossrhUsername, password: project.properties.ossrhPassword)
}

snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: project.properties.ossrhUsername, password: project.properties.ossrhPassword)
}

pom.project {
name 'GraphView'
packaging 'aar'
description 'Android Graph Library for creating zoomable and scrollable line and bar graphs.'
url 'https://github.com/wordpress-mobile/GraphView'
scm {
connection 'scm:git:https://github.com/wordpress-mobile/GraphView.git'
developerConnection 'scm:git:https://github.com/wordpress-mobile/GraphView.git'
url 'https://github.com/wordpress-mobile/GraphView'
}

licenses {
license {
name 'The GPLv2 License'
url 'https://www.gnu.org/licenses/old-licenses/gpl-2.0.html'
}
}

developers {
developer {
id 'daniloercoli'
name 'Danilo Ercoli'
email '[email protected]'
}
}
}
}
}
publish {
artifactId = 'graphview'
userOrg = 'wordpress-mobile'
groupId = 'org.wordpress'
uploadName = 'graphview'
description = 'Android library for programmatic visual diagram creation'
publishVersion = android.defaultConfig.versionName
licences = ['LGPL-3.0']
website = 'https://github.com/wordpress-mobile/GraphView'
dryRun = 'false'
autoPublish = 'true'
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@

package com.jjoe64.graphview;

import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.List;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
Expand All @@ -40,9 +36,15 @@
import com.jjoe64.graphview.GraphViewSeries.GraphViewSeriesStyle;
import com.jjoe64.graphview.compatible.ScaleGestureDetector;

import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.List;

/**
* GraphView is a Android View for creating zoomable and scrollable graphs.
* This is the abstract base class for all graphs. Extend this class and implement {@link #drawSeries(Canvas, GraphViewDataInterface[], float, float, float, double, double, double, double, float)} to display a custom graph.
* This is the abstract base class for all graphs. Extend this class and implement {@link #drawSeries(Canvas,
* GraphViewDataInterface[], float, float, float, double, double, double, double, float, GraphViewSeriesStyle)}
* to display a custom graph.
* Use {@link LineGraphView} for creating a line chart.
*
* @author jjoe64 - jonas gehring - http://www.jjoe64.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void addGraphView(GraphView graphView) {
/**
* add one data to current data
* @param value the new data to append
* @param scrollToEnd true => graphview will scroll to the end (maxX)
* @param scrollToEnd true: graphview will scroll to the end (maxX)
* @deprecated please use {@link #appendData(GraphViewDataInterface, boolean, int)} to avoid memory overflow
*/
@Deprecated
Expand All @@ -116,7 +116,7 @@ public void appendData(GraphViewDataInterface value, boolean scrollToEnd) {
/**
* add one data to current data
* @param value the new data to append
* @param scrollToEnd true => graphview will scroll to the end (maxX)
* @param scrollToEnd true: graphview will scroll to the end (maxX)
* @param maxDataCount if max data count is reached, the oldest data value will be lost
*/
public void appendData(GraphViewDataInterface value, boolean scrollToEnd, int maxDataCount) {
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip