Skip to content
This repository has been archived by the owner on Sep 2, 2020. It is now read-only.

Commit

Permalink
Adds javadoc tasks for gradle.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Poll committed Apr 29, 2014
1 parent 5a51e4c commit 2f14f93
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
10 changes: 10 additions & 0 deletions Bolts/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,13 @@ android {
}
}
}

android.libraryVariants.all { variant ->
task("generateBolts${variant.name.capitalize()}Javadoc", type: Javadoc) {
description "Generates Javadoc for $variant.name."
source = variant.javaCompile.source
ext.androidJar = "${android.plugin.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar"
classpath = files(variant.javaCompile.classpath.files) + files(ext.androidJar)
exclude '**/com/bolts/**'
}
}
10 changes: 5 additions & 5 deletions Bolts/src/bolts/AppLinkNavigation.java
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,9 @@ public static Task<NavigationResult> navigateInBackground(Context context,
* Navigates to an {@link bolts.AppLink} for the given destination using the App Link resolution
* strategy specified.
*
* @param context the Context from which the navigation should be performed.
* @param destination the destination URL for the App Link.
* @param resolver the resolver to use for fetching App Link metadata.
* @param context the Context from which the navigation should be performed.
* @param destinationUrl the destination URL for the App Link.
* @param resolver the resolver to use for fetching App Link metadata.
* @return the {@link bolts.AppLinkNavigation.NavigationResult} performed by navigating.
*/
public static Task<NavigationResult> navigateInBackground(Context context,
Expand Down Expand Up @@ -406,8 +406,8 @@ public static Task<NavigationResult> navigateInBackground(Context context,
* Navigates to an {@link bolts.AppLink} for the given destination using the default
* App Link resolution strategy.
*
* @param context the Context from which the navigation should be performed.
* @param destination the destination URL for the App Link.
* @param context the Context from which the navigation should be performed.
* @param destinationUrl the destination URL for the App Link.
* @return the {@link bolts.AppLinkNavigation.NavigationResult} performed by navigating.
*/
public static Task<NavigationResult> navigateInBackground(Context context,
Expand Down

0 comments on commit 2f14f93

Please sign in to comment.