-
Notifications
You must be signed in to change notification settings - Fork 93
fix javadoc generation #130
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
Conversation
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.
Questions.
import java.io.IOException; | ||
|
||
import org.puredata.android.service.R; | ||
import org.puredata.android.service.*; |
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.
What else is imported?
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.
I'm not pretending I fully understand this, but I think the problem comes from R
is not defined at the moment javadoc runs. So replacing org.puredata.android.service.R
with org.puredata.android.service.*
fixes the javadoc issue (that's a hack I found on the net when I tried to fix this).
|
||
PendingIntent pi = PendingIntent.getActivity(getApplicationContext(), 0, intent, PendingIntent.FLAG_IMMUTABLE); | ||
return new NotificationCompat.Builder(PdService.this, TAG) | ||
return new Notification.Builder(PdService.this, TAG) |
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.
What compatibility with old versions is being lost by this change?
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.
there again, my comprehension is limited...
All I know is javadoc runs successfully with this change, and apps are running normally.
But I believe this Notification thing needs more love anyway (actually I don't see the notification on devices...).
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.
By the way, here's where the javadoc errors are ignored in CI:
pd-for-android/PdCore/build.gradle
Line 109 in 395ff52
failOnError = false // TODO: fix javadoc issues |
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.
Of course!
Here I can run locally with failOnError = true
superseded by #152 |
These small changes clear errors of javadoc task, which then successfully generates the javadoc pages.