diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..a6809b5 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,5 @@ +## 0.9.9 + +* Downscale source images that are too big to load +* Fix shading outside crop area on some API levels +* Add option to always show crop handles diff --git a/gradle.properties b/gradle.properties index 5acf01c..c1d8d31 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,9 @@ -VERSION = 0.9.8 -VERSION_CODE = 1 \ No newline at end of file +VERSION=0.9.9 +VERSION_CODE=1 + +signing.keyId=63A46540 +signing.secretKeyRingFile=/Users/James/.gnupg/secring.gpg +signing.password=*secret* + +sonatypeUsername=jdamcd +sonatypePassword=*secret* \ No newline at end of file diff --git a/lib/build.gradle b/lib/build.gradle index 7a855de..a90635c 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -1,5 +1,6 @@ apply plugin: 'android-library' apply plugin: 'maven' +apply plugin: 'signing' archivesBaseName = 'android-crop' @@ -24,19 +25,38 @@ dependencies { androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.0' } +configurations { + archives { + extendsFrom configurations.default + } +} + +signing { + required { has("release") && gradle.taskGraph.hasTask("uploadArchives") } + sign configurations.archives +} + uploadArchives { + configuration = configurations.archives + repositories { mavenDeployer { - repository(url: 'http://maven.int.s-cloud.net/content/repositories/releases') + beforeDeployment { + MavenDeployment deployment -> signing.signPom(deployment) + } + + repository(url: 'https://oss.sonatype.org/service/local/staging/deploy/maven2') { + authentication(userName: sonatypeUsername, password: sonatypePassword) + } pom.project { - name 'android-crop' + name 'Android Crop' packaging 'aar' - description 'A simple Activity for cropping images' + description 'An Android library that provides an image cropping Activity' url 'https://github.com/jdamcd/android-crop' scm { - url 'https://github.com/jdamcd/android-crop' + url 'scm:git@github.com:jdamcd/android-crop.git' connection 'scm:git@github.com:jdamcd/android-crop.git' developerConnection 'scm:git@github.com:jdamcd/android-crop.git' } @@ -57,6 +77,7 @@ uploadArchives { developer { id 'jdamcd' name 'Jamie McDonald' + email 'mcdonald@soundcloud.com' } } }