Skip to content
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

Add link to donation page on app drawer #11870

Merged
merged 1 commit into from
Jan 27, 2025
Merged

Add link to donation page on app drawer #11870

merged 1 commit into from
Jan 27, 2025

Conversation

theScrabi
Copy link
Member

@theScrabi theScrabi commented Jan 2, 2025

At 38c3 we discussed how we could make the request for donations more visible. We discussed multiple models. Ultimately we could not agree on a good solution to actually ask the user for donations.
However, we all agreed that donations should be more visible than just show up in the about screen.

This will add the link for donations to the app drawer. When clicking it will open the donation page of the NewPipe website.

@github-actions github-actions bot added the size/small PRs with less than 50 changed lines label Jan 2, 2025
AudricV
AudricV previously requested changes Jan 2, 2025
app/src/main/java/org/schabi/newpipe/MainActivity.java Outdated Show resolved Hide resolved
@AudricV AudricV changed the title add donation link to app drawer Add link to donation page on app drawer Jan 2, 2025
@AudricV AudricV added the template missing The bug/feature template is missing (e.g. the used app does not support issue templates) label Jan 2, 2025
@Profpatsch
Copy link
Contributor

I switched over to the ShareUtils call, and also added a small fun toast message when the user clicks the button (that displays for a short amount of time).

image

@Profpatsch Profpatsch marked this pull request as ready for review January 21, 2025 17:56
@ShareASmile ShareASmile added the feature request Issue is related to a feature in the app label Jan 21, 2025
@Stypox
Copy link
Member

Stypox commented Jan 21, 2025

Shouldn't you do "openInBrowser" instead of "openInApp"?

@Profpatsch
Copy link
Contributor

Done

Stypox
Stypox previously requested changes Jan 25, 2025
app/src/main/res/values-de/strings.xml Outdated Show resolved Hide resolved
@Profpatsch
Copy link
Contributor

I removed the toast because people thought it is confusing. I do think something like the toast could be more encouraging :)

@Profpatsch Profpatsch requested review from AudricV and Stypox January 27, 2025 12:30
This creates a donation link that leads to our donation page on the
NewPipe website.
@Profpatsch Profpatsch dismissed stale reviews from Stypox and AudricV January 27, 2025 12:57

addresse

@Profpatsch
Copy link
Contributor

Okay, so now sonar is broken and that blocks the PR

@Profpatsch
Copy link
Contributor

Ah no, apparently somebody has to review again

@Profpatsch Profpatsch merged commit ebf3008 into dev Jan 27, 2025
4 of 5 checks passed
@robcle
Copy link

robcle commented Jan 27, 2025

As a user I would like to have the option to turn this off completely. Maybe some users donate already and do not want to see the button every time they open the app.

@Stypox
Copy link
Member

Stypox commented Jan 27, 2025

The button is at the bottom of the drawer, it's not in the way. Why would you want to disable it? @robcle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Issue is related to a feature in the app size/small PRs with less than 50 changed lines template missing The bug/feature template is missing (e.g. the used app does not support issue templates)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants