Skip to content

Commit

Permalink
Gradle plugin 7.0.0-alpha05
Browse files Browse the repository at this point in the history
Gradle wrapper 6.8-bin.
Add version footer in javadoc.
  • Loading branch information
pranavpandey committed Jan 28, 2021
1 parent f39680c commit cedcbe1
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:7.0.0-alpha04'
classpath 'com.android.tools.build:gradle:7.0.0-alpha05'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5'
}
}
Expand All @@ -53,7 +53,7 @@ ext {
versionDesc = 'A collection of tasks to monitor various events including call, lock, ' +
'headset, charging, dock and foreground app via service on Android 4.0 (API 14) ' +
'and above devices.'
referenceTitle = 'Dynamic Engine Reference'
referenceTitle = 'Dynamic Engine API reference'

siteUrl = 'https://github.com/pranavpandey/dynamic-engine'
gitUrl = 'https://github.com/pranavpandey/dynamic-engine'
Expand Down
9 changes: 5 additions & 4 deletions dynamic-engine/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ task generateJavadoc() {
project.afterEvaluate {
android.libraryVariants.all { variant ->
def task = project.tasks.create("generate${variant.name.capitalize()}Javadoc", Javadoc) {
title "${referenceTitle} (${project.android.defaultConfig.versionName})"
title "${referenceTitle}"
description "Generates Javadoc for $variant.name."
destinationDir = new File(destinationDir, variant.baseName)

source = variant.sourceSets.collect { it.java.sourceFiles }.inject { m, i -> m + i }
doFirst {
Expand All @@ -67,11 +68,11 @@ project.afterEvaluate {
options.addStringOption('Xdoclint:none', '-quiet')
}

options.windowTitle = "${referenceTitle} (${project.android.defaultConfig.versionName})"
options.memberLevel = JavadocMemberLevel.PROTECTED
options.windowTitle = "${referenceTitle}"
options.footer = "<h5>${project.android.defaultConfig.versionName}</h5>"
options.links('http://docs.oracle.com/javase/8/docs/api')
options.links('https://developer.android.com/reference')
options.author = false
options.memberLevel = JavadocMemberLevel.PROTECTED

failOnError false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@
* Service to monitor various system events to provide event specific functionality in the app.
* <p>Extend this service and implement the interface methods to monitor the different events.
*
* <p><p>Package must be granted {@link android.Manifest.permission_group#PHONE}
* <p>Package must be granted {@link android.Manifest.permission_group#PHONE}
* permission to listen call events on API 23 and above devices.
*
* <p><p>Package must be granted {@link android.Manifest.permission#PACKAGE_USAGE_STATS}
* <p>Package must be granted {@link android.Manifest.permission#PACKAGE_USAGE_STATS}
* permission to detect the foreground app on API 21 and above devices.
*/
@TargetApi(Build.VERSION_CODES.LOLLIPOP_MR1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* Broadcast receiver to listen call events. It has been already added in the manifest and
* should be registered dynamically at the runtime.
*
* <p><p>Package must be granted {@link android.Manifest.permission_group#PHONE}
* <p>Package must be granted {@link android.Manifest.permission_group#PHONE}
* permission to listen call events on API 23 and above devices.
*/
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
/**
* A {@link DynamicTask} to monitor foreground to provide app specific functionality.
*
* <p><p>Package must be granted {@link android.Manifest.permission#PACKAGE_USAGE_STATS}
* <p>Package must be granted {@link android.Manifest.permission#PACKAGE_USAGE_STATS}
* permission to detect the foreground app on API 21 and above devices.
*/
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
Expand Down Expand Up @@ -91,7 +91,7 @@ public class DynamicAppMonitor extends DynamicTask<Void, DynamicAppInfo, Void> {
/**
* UsageStatsManager to detect foreground package on API 21 and above devices.
*
* <p><p>Package must be granted {@link android.Manifest.permission#PACKAGE_USAGE_STATS}
* <p>Package must be granted {@link android.Manifest.permission#PACKAGE_USAGE_STATS}
* permission to detect foreground app on API 21 and above devices.
*/
private UsageStatsManager mUsageStatsManager;
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu Mar 12 18:25:16 IST 2020
#Fri Jan 29 03:26:28 IST 2021
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https://services.gradle.org/distributions/gradle-6.8-rc-1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip

0 comments on commit cedcbe1

Please sign in to comment.