-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup Dokka to generate html docs and document most our external functions and properties #52
Merged
Merged
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
5fc3d65
Setup Dokka
maxme 180ae12
Fix gradle cache configuration issues with Dokka
maxme 14d5a19
Add documentation to DefaultAvatarImage, ImageRating and GravatarApi
maxme d437b27
Change Logger visibility to internal
maxme cf4a7f1
Add more documentation
maxme 691b7b5
Update README: explain how to generate the documentation
maxme 133d6e4
Remove unecessary dokka setup on global gradle file
maxme File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,6 @@ | |
.externalNativeBuild | ||
.cxx | ||
local.properties | ||
|
||
# Generated documentation | ||
docs/dokka |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,27 @@ | ||
package com.gravatar | ||
|
||
object GravatarConstants { | ||
// Gravatar image / avatar | ||
/** Gravatar image base URL */ | ||
const val GRAVATAR_IMAGE_BASE_URL = "https://www.gravatar.com/" | ||
|
||
/** Gravatar image host */ | ||
const val GRAVATAR_IMAGE_HOST = "www.gravatar.com" | ||
|
||
/** Gravatar image path */ | ||
const val GRAVATAR_IMAGE_PATH = "avatar" | ||
const val GRAVATAR_IMAGE_RAW_HOST = "gravatar.com" | ||
|
||
// Gravatar API | ||
/** Gravatar image base host */ | ||
const val GRAVATAR_IMAGE_BASE_HOST = "gravatar.com" | ||
|
||
/** Gravatar API base URL */ | ||
const val GRAVATAR_API_BASE_URL = "https://api.gravatar.com/v1/" | ||
|
||
// Minimum and maximum size of the avatar | ||
/** Minimum size of the avatar */ | ||
const val MINIMUM_AVATAR_SIZE = 1 | ||
|
||
/** Maximum size of the avatar */ | ||
const val MAXIMUM_AVATAR_SIZE = 2048 | ||
|
||
/** Range of the avatar size */ | ||
val AVATAR_SIZE_RANGE = MINIMUM_AVATAR_SIZE..MAXIMUM_AVATAR_SIZE | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
package com.gravatar | ||
|
||
object HttpResponseCode { | ||
// 4xx codes | ||
/** HTTP client timeout code */ | ||
const val HTTP_CLIENT_TIMEOUT = 408 | ||
|
||
// 5xx codes | ||
private const val HTTP_INTERNAL_ERROR = 500 | ||
private const val NETWORK_CONNECT_TIMEOUT_ERROR = 599 | ||
|
||
/** Server error codes (5xx) */ | ||
val SERVER_ERRORS = HTTP_INTERNAL_ERROR..NETWORK_CONNECT_TIMEOUT_ERROR | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ Why do we need this in the project build.gradle? We only want to apply it to the SDK module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And ultimately, every library module if/when we split the SDK in separate components. The only module where we won't need it is the test app.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a remainder of the configuration cache issues and workaround. I tried to move everything to the sub-module and it seems to work fine, so I'll move it there. We can change it later: when we add more modules or if it's still causing issues.