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
docs: ParselyTracker comments to Javadoc style #71
Conversation
* To make sure all of the queued events are flushed to Parse.ly's servers, | ||
* call this method in your main activity's `onDestroy()` method. |
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.
@ParaskP7 just FYI - moving this PR to draft for now. I see other open source projects do share |
Even though it might not be completely neccessary as the SDK is open source, other open source libraries do share generated javadoc.jar files so we follow this convention.
👋 @wzieba !
Seems logical to me, thanks and yes, let's better share a PS: Let me know when you make this PR ready for review so I can take a look. |
Dokka, API documentation engine, needs more metaspace space than the default Gradle value (384m). Increasing it to 2g as suggested by authors.
@@ -11,6 +11,7 @@ | |||
# The setting is particularly useful for tweaking memory settings. | |||
# Default value: -Xmx10248m -XX:MaxPermSize=256m | |||
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 | |||
org.gradle.jvmargs=-XX:MaxMetaspaceSize=2g |
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.
More on that: Kotlin/dokka#1405 (comment)
👍 @ParaskP7 the PR is now ready for review 🙂 |
7be7ebd
to
389186d
Compare
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.
👋 @wzieba !
I have reviewed and tested this PR as per the instructions, everything works as expected, good Javadoc job here, kudos! 🌟 ❤️ 🌟
* | ||
* @param queue The list of event dictionaries to serialize | ||
* @param events The list of event dictionaries to serialize |
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.
Praise (❤️): Nice catch! 🥇
*/ | ||
//TODO: docs about where we get this UUID from and how. |
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.
Praise (❤️): Nicely done so as to not expose the TODO
to be part of the documentation. 🥇
@@ -26,6 +26,7 @@ android { | |||
publishing { |
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.
Question (❓): I wonder whether we should migrate to publish-to-s3-gradle-plugin at some point and use the com.automattic.android.publish-to-s3
plugin instead, just like it is done for the rest of our libraries. 🤔
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 good question! When working on publishing of this library, I was considering our S3 instance but I decided to go with Maven Central because:
- Risk delegation
We delegate the risk of "out of service" incidents. If, by some reason, our S3 instance would go down, we would block building apps that use Parse.ly SDK.mavenCentral
can possibly go down as well, but then it won't be just Parse.ly SDK, but rather vast majority of every dependency clients' projects have 🙂
Other, less important reasons but still:
- Trust
MavenCentral is well known and trusted service for everyone working with Maven/Gradle projects. - Repository already included
ThemavenCentral
repository is already included in many projects, there's no reason to ask users to add a new repository. - Costs
(guessing) We possibly save costs of our S3 instance (less traffic).
I hope that this argumentation to use Maven Central makes sense!
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 all makes sense to me, thanks for the reply and for considering using the com.automattic.android.publish-to-s3
already @wzieba ! 🙇
Closes #51
Description
This PR updates convention of code comments from Doxygen (dropped in 1bb51a3) with Javadoc. The main benefit is convenience for library users in terms of viewing documentation for highlighted code. See here:
Not sharingjavadoc.jar
I decided to not uploadSee #71 (comment)javadoc.jar
as part of the artifact during the release because the source code of the SDK is open, so IDE will get comments directly from the source.How to test
parsely-3.0.8-javadoc.jar
index.html
exist, and has comments. No need to check the content details.