From e2c41291112e708bb1c053b86f0369836cf6241e Mon Sep 17 00:00:00 2001 From: Pranav Pandey Date: Thu, 10 Aug 2017 10:47:53 +0530 Subject: [PATCH] Version 0.4.0 --- README.md | 11 +++---- bintray.gradle | 4 +++ build.gradle | 6 ++-- dynamic-engine/build.gradle | 1 + dynamic-engine/src/main/AndroidManifest.xml | 2 -- maven.gradle | 36 +++++++++------------ 6 files changed, 29 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 4c34a18..d92f713 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,9 @@ A collection of tasks to monitor various events including call, lock, headset, charging, dock and foreground app via service on Android 9+ (Gingerbread or above) devices. +> Since v0.4.0, it uses [26.x.x support libraries](https://developer.android.com/topic/libraries/support-library/revisions.html#26-0-0) +so, minimum SDK will be Android 14+ (ICS or above). + --- ## Contents @@ -19,7 +22,6 @@ foreground app via service on Android 9+ (Gingerbread or above) devices. - [Monitor foreground app](https://github.com/pranavpandey/dynamic-engine#monitor-foreground-app) - [Monitor package state](https://github.com/pranavpandey/dynamic-engine#monitor-package-state) - [Events priority](https://github.com/pranavpandey/dynamic-engine#events-priority) - - [Dependency](https://github.com/pranavpandey/dynamic-engine#dependency) - [License](https://github.com/pranavpandey/dynamic-engine#license) --- @@ -30,7 +32,7 @@ It can be installed by adding the following dependency to your `build.gradle` fi ```groovy dependencies { - compile 'com.pranavpandey.android:dynamic-engine:0.3.0' + compile 'com.pranavpandey.android:dynamic-engine:0.4.0' } ``` @@ -269,11 +271,6 @@ public abstract class DynamicEngine { } ``` -### Dependency - -This library depends on the [Dynamic Utils](https://github.com/pranavpandey/dynamic-utils) so, its -functions can be used to perform other operations. - --- ## License diff --git a/bintray.gradle b/bintray.gradle index 763d5e0..5e5e723 100644 --- a/bintray.gradle +++ b/bintray.gradle @@ -11,6 +11,7 @@ bintray { key = properties.getProperty("bintray.key") configurations = ['archives'] + archivesBaseName = mavenArtifactId pkg { repo = bintrayRepo @@ -23,8 +24,11 @@ bintray { publish = true publicDownloadNumbers = true + githubRepo = githubUrl + version { name = mavenVersion + desc = versionDesc released = new Date() gpg { diff --git a/build.gradle b/build.gradle index 10ca48e..48b95f5 100644 --- a/build.gradle +++ b/build.gradle @@ -39,8 +39,10 @@ ext { gitUrl = 'https://github.com/pranavpandey/dynamic-engine' issueUrl = 'https://github.com/pranavpandey/dynamic-engine/issues' + githubUrl = 'pranavpandey/dynamic-engine' + mavenGroup = 'com.pranavpandey.android' - mavenVersion = '0.3.0' + mavenVersion = '0.4.0' mavenInceptionYear = 2017 mavenArtifactId = 'dynamic-engine' bintrayRepo = 'android' @@ -54,7 +56,7 @@ ext { licenseDistribution = 'repo' allLicenses = ["Apache-2.0"] - versionCode = 3 + versionCode = 4 buildTools = '26.0.1' minSdk = 14 diff --git a/dynamic-engine/build.gradle b/dynamic-engine/build.gradle index eb6dcd5..1e786a1 100644 --- a/dynamic-engine/build.gradle +++ b/dynamic-engine/build.gradle @@ -25,6 +25,7 @@ android { dependencies { api "com.pranavpandey.android:dynamic-utils:$mavenVersion" + implementation "com.android.support:support-compat:$androidSupport" } if (project.rootProject.file('local.properties').exists()) { diff --git a/dynamic-engine/src/main/AndroidManifest.xml b/dynamic-engine/src/main/AndroidManifest.xml index 8824638..96b3e4e 100644 --- a/dynamic-engine/src/main/AndroidManifest.xml +++ b/dynamic-engine/src/main/AndroidManifest.xml @@ -20,8 +20,6 @@ xmlns:tools="http://schemas.android.com/tools" package="com.pranavpandey.android.dynamic.engine"> - - diff --git a/maven.gradle b/maven.gradle index 3d3c23b..e93e172 100644 --- a/maven.gradle +++ b/maven.gradle @@ -1,5 +1,7 @@ apply plugin: 'com.github.dcendents.android-maven' +group = mavenGroup + install { repositories.mavenInstaller { pom.project { @@ -37,34 +39,28 @@ install { } } - task javadocs(type: Javadoc) { - source = android.sourceSets.main.java.srcDirs - ext.androidJar = "${android.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar" - classpath += files(ext.androidJar) - - failOnError = false - } - - task javadocsJar(type: Jar, dependsOn: javadocs) { - classifier = 'javadoc' - from javadocs.destinationDir - } - task sourcesJar(type: Jar) { - classifier = 'sources' from android.sourceSets.main.java.srcDirs + classifier = 'sources' } - if (JavaVersion.current().isJava8Compatible()) { - allprojects { - tasks.withType(Javadoc) { - options.addStringOption('Xdoclint:none', '-quiet') - } + task javadoc(type: Javadoc) { + failOnError = false + source = android.sourceSets.main.java.srcDirs + classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) + + if (JavaVersion.current().isJava8Compatible()) { + options.addStringOption('Xdoclint:none', '-quiet') } } + task javadocJar(type: Jar, dependsOn: javadoc) { + classifier = 'javadoc' + from javadoc.destinationDir + } + artifacts { archives sourcesJar - archives javadocsJar + archives javadocJar } } \ No newline at end of file