Skip to content

Commit

Permalink
Version 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavpandey committed Aug 10, 2017
1 parent b84fc1d commit e2c4129
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 31 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)

---
Expand All @@ -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'
}
```

Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions bintray.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ bintray {
key = properties.getProperty("bintray.key")

configurations = ['archives']
archivesBaseName = mavenArtifactId

pkg {
repo = bintrayRepo
Expand All @@ -23,8 +24,11 @@ bintray {
publish = true
publicDownloadNumbers = true

githubRepo = githubUrl

version {
name = mavenVersion
desc = versionDesc
released = new Date()

gpg {
Expand Down
6 changes: 4 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -54,7 +56,7 @@ ext {
licenseDistribution = 'repo'
allLicenses = ["Apache-2.0"]

versionCode = 3
versionCode = 4

buildTools = '26.0.1'
minSdk = 14
Expand Down
1 change: 1 addition & 0 deletions dynamic-engine/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
2 changes: 0 additions & 2 deletions dynamic-engine/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
xmlns:tools="http://schemas.android.com/tools"
package="com.pranavpandey.android.dynamic.engine">

<uses-sdk android:minSdkVersion="9" />

<!-- Permissions used by the foreground app monitor. -->
<uses-permission android:name="android.permission.GET_TASKS"
android:maxSdkVersion="19" />
Expand Down
36 changes: 16 additions & 20 deletions maven.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
apply plugin: 'com.github.dcendents.android-maven'

group = mavenGroup

install {
repositories.mavenInstaller {
pom.project {
Expand Down Expand Up @@ -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
}
}

0 comments on commit e2c4129

Please sign in to comment.