Skip to content

Enabled the use of non-transitive R classes. #15041

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

Closed

Conversation

eeshanjamal
Copy link
Contributor

  • Tests not needed.
  • Do check my TODO comments when reviewing the pull request.

Signed-off-by: Eeshan Jamal <eeshan.jamal@gmail.com>
@@ -16,7 +16,8 @@ enum class QuickPermissionType(
val iconId: Int,
val textId: Int
) {
NONE(R.drawable.ic_unknown, R.string.unknown),
//TODO: R.string.unknown resource referenced from osmdroid library. Ideally it should be part of this app resource.
NONE(R.drawable.ic_unknown, org.osmdroid.library.R.string.unknown),
Copy link
Member

@tobiasKaminsky tobiasKaminsky Jun 25, 2025

Choose a reason for hiding this comment

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

Hm. Maybe it better to create the string then within our values.xml?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah! I was actually thinking to add one in values.xml but I was not sure about localization handling. Does it automatically handled by Transifex once added?

primaryColor =
colorUtil.getNullSafeColorWithFallbackRes(capability.serverColor, R.color.colorPrimary)
colorUtil.getNullSafeColorWithFallbackRes(capability.serverColor, com.blikoon.qrcodescanner.R.color.colorPrimary)
Copy link
Member

Choose a reason for hiding this comment

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

Fallback should then be our primary color:
values.xml -> primary

Copy link
Member

Choose a reason for hiding this comment

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

Nice catch!

Copy link
Collaborator

Choose a reason for hiding this comment

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

See com.owncloud.android.R.color.primary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Noted! Let me replace it.

@ZetaTom
Copy link
Collaborator

ZetaTom commented Jun 25, 2025

Dear @eeshanjamal, thank you for taking care of the migration to use non-transitive R classes throughout our app. So far these changes look good. Tobias and I have added some comments which we would like you to address.

Due to our security policies, we do not allow our CI tests to run on forks of our repositories. As a result the Analysis step of our pipeline will always fail in this pull request, which one can also see in the actions log.

In order to resolve this issue, we would like to invite you to our GitHub organisation. This will enable you to reopen this pull request and open future ones directly from branches within the relevant repositories. Please let us know if this is OK for you.

@eeshanjamal
Copy link
Contributor Author

@ZetaTom Yeah! sure, It's fine. Would be bit easier for me as well to manage the branching & pull request. Thanks 👍

@tobiasKaminsky
Copy link
Member

@ZetaTom Yeah! sure, It's fine. Would be bit easier for me as well to manage the branching & pull request. Thanks 👍

I added you to our team. You will soon receive an invitation.

@eeshanjamal
Copy link
Contributor Author

Closing this pull request and going to create another one from upstream repo along with the additional changes.

Copy link

github-actions bot commented Jul 5, 2025

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants