Skip to content

Commit

Permalink
Merge branch 'release/1.3.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
G00fY2 committed Apr 8, 2019
2 parents 0508965 + 5f04889 commit cefc422
Show file tree
Hide file tree
Showing 10 changed files with 52 additions and 71 deletions.
4 changes: 1 addition & 3 deletions build.gradle
Expand Up @@ -5,16 +5,14 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.4'
}
}

allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}

Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Expand Up @@ -15,3 +15,4 @@ org.gradle.jvmargs=-Xmx1536m
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
android.enableR8=true
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
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-4.10.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.3.1-all.zip
2 changes: 2 additions & 0 deletions sample/.gitignore
@@ -1 +1,3 @@
/build
/debug
/release
6 changes: 3 additions & 3 deletions sample/build.gradle
Expand Up @@ -5,17 +5,17 @@ apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.g00fy2.versioncomparesample"
applicationId 'com.g00fy2.versioncomparesample'
minSdkVersion 14
targetSdkVersion 28
versionCode 1
versionName "1.0"
versionName '1.0'
}
buildTypes {
release {
shrinkResources true
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
sourceSets {
Expand Down
7 changes: 7 additions & 0 deletions sample/lint.xml
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<lint>
<issue id="HardcodedText" severity="ignore"/>
<issue id="GoogleAppIndexingWarning" severity="ignore"/>
<issue id="Autofill" severity="ignore"/>
<issue id="AllowBackup" severity="ignore"/>
</lint>
23 changes: 8 additions & 15 deletions versioncompare/build.gradle
@@ -1,13 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'jacoco-android'

android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 14
consumerProguardFiles 'proguard-rules.pro'
}
}
apply plugin: 'java-library'
apply plugin: 'jacoco'

dependencies {
compileOnly 'com.google.code.findbugs:jsr305:3.0.2' // only required at compile time
Expand All @@ -16,13 +8,14 @@ dependencies {
}

jacoco {
toolVersion = "0.8.3"
toolVersion = '0.8.3'
}

jacocoAndroidUnitTestReport {
csv.enabled false
html.enabled true
xml.enabled true
jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
}
}

apply from: 'deploy.gradle'
77 changes: 29 additions & 48 deletions versioncompare/deploy.gradle
Expand Up @@ -4,89 +4,70 @@ ext {

publishedGroupId = 'com.g00fy2'
libraryName = 'versioncompare'
artifact = 'versioncompare'

libraryDescription = 'Lightweight library to compare version strings.'

siteUrl = 'https://github.com/G00fY2/version-compare'
issueUrl = 'https://github.com/G00fY2/version-compare/issues'
gitUrl = 'https://github.com/G00fY2/version-compare.git'

libraryVersion = '1.3.1'
libraryVersion = '1.3.2'

developerId = 'g00fy2'
developerName = 'Thomas Wirth'
developerEmail = 't.wirth@appcom-interactive.de'

licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
licenseUrl = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
}

// Maven
apply plugin: 'com.github.dcendents.android-maven'

android.libraryVariants.all { variant ->
def name = variant.buildType.name.capitalize()
def task = project.tasks.create "jar${name}", Jar
task.dependsOn variant.javaCompiler
task.from variant.javaCompiler.destinationDir
task.exclude '**/BuildConfig.class'
task.exclude '**/R.class'
task.exclude '**/R$*.class'
artifacts.add('archives', task)
}
apply plugin: 'maven-publish'

task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}

task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
archiveClassifier = 'sources'
from sourceSets.main.allJava
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
task javadocJar(type: Jar) {
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}

artifacts {
archives javadocJar
archives sourcesJar
}

install {
repositories.mavenInstaller {
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = libraryName
groupId = publishedGroupId
version = libraryVersion

pom {
project {
packaging 'aar'
groupId publishedGroupId
artifactId artifact
from components.java
artifact sourcesJar
artifact javadocJar

name libraryName
description libraryDescription
url siteUrl
pom {
name = libraryName
description = libraryDescription
url = siteUrl

licenses {
license {
name licenseName
url licenseUrl
name = licenseName
url = licenseUrl
}
}
developers {
developer {
id developerId
name developerName
email developerEmail
id = developerId
name = developerName
email = developerEmail
}
}
scm {
connection gitUrl
developerConnection gitUrl
url siteUrl
connection = gitUrl
developerConnection = gitUrl
url = siteUrl
}
}
}
Expand All @@ -113,7 +94,7 @@ bintray {
name = bintrayName
desc = libraryDescription
websiteUrl = siteUrl
issueTrackerUrl= issueUrl
issueTrackerUrl = issueUrl
vcsUrl = gitUrl
licenses = allLicenses
publicDownloadNumbers = true
Expand Down
1 change: 0 additions & 1 deletion versioncompare/src/main/AndroidManifest.xml

This file was deleted.

File renamed without changes.

0 comments on commit cefc422

Please sign in to comment.