Skip to content

Conversation

Ant1r
Copy link
Contributor

@Ant1r Ant1r commented Jul 1, 2025

These small changes clear errors of javadoc task, which then successfully generates the javadoc pages.

Copy link
Contributor

@joebowbeer joebowbeer left a 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.*;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What else is imported?

Copy link
Contributor Author

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)
Copy link
Contributor

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?

Copy link
Contributor Author

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...).

Copy link
Contributor

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:

failOnError = false // TODO: fix javadoc issues

Copy link
Contributor Author

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

@joebowbeer joebowbeer self-requested a review July 4, 2025 00:03
@Ant1r
Copy link
Contributor Author

Ant1r commented Jul 15, 2025

superseded by #152

@Ant1r Ant1r closed this Jul 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants