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

Remove the use of intent provider for request vpn permission #6592

Closed

Conversation

Pururun
Copy link
Contributor

@Pururun Pururun commented Aug 9, 2024


This change is Reviewable

@Pururun Pururun added the Android Issues related to Android label Aug 9, 2024
@Pururun Pururun requested a review from albin-mullvad August 9, 2024 13:47
Copy link

linear bot commented Aug 9, 2024

@Pururun Pururun force-pushed the use-deeplink-to-do-vpnpermission-intent-droid-1110 branch from 44c019d to 2c6bba6 Compare August 9, 2024 14:14
@Pururun Pururun force-pushed the use-deeplink-to-do-vpnpermission-intent-droid-1110 branch 2 times, most recently from 5006f13 to 5a59129 Compare August 15, 2024 08:35
Copy link
Collaborator

@albin-mullvad albin-mullvad left a comment

Choose a reason for hiding this comment

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

Reviewed 7 of 7 files at r1, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @Pururun)


android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/MainActivity.kt line 101 at r1 (raw file):

    }

    override fun onNewIntent(intent: Intent) {

Does removing this not impact how we use intents for tests? Might be good to rebase and ensure mockapi tests are passing locally and in GH actions


android/app/src/main/kotlin/net/mullvad/mullvadvpn/viewmodel/ChangelogViewModel.kt line 1 at r1 (raw file):

package net.mullvad.mullvadvpn.viewmodel

What's the reason for keeping this VM and not including the last remaining function into the AppVM?


android/app/src/main/kotlin/net/mullvad/mullvadvpn/viewmodel/MullvadAppViewModel.kt line 1 at r1 (raw file):

package net.mullvad.mullvadvpn.viewmodel

I have a vague memory of us discussing having an AppVM and deciding against it, but I can't recall any details. Does that sound familiar and in that case have the circumstances changed? 🤔

Copy link
Contributor Author

@Pururun Pururun left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @albin-mullvad)


android/app/src/main/kotlin/net/mullvad/mullvadvpn/viewmodel/ChangelogViewModel.kt line 1 at r1 (raw file):

Previously, albin-mullvad wrote…

What's the reason for keeping this VM and not including the last remaining function into the AppVM?

Previously this viewmodel was used by both MullvadApp and ChangelogDialog, now it is only used by the ChangelogDialog. So it has no connection to MullvadApp anymore.


android/app/src/main/kotlin/net/mullvad/mullvadvpn/viewmodel/MullvadAppViewModel.kt line 1 at r1 (raw file):

Previously, albin-mullvad wrote…

I have a vague memory of us discussing having an AppVM and deciding against it, but I can't recall any details. Does that sound familiar and in that case have the circumstances changed? 🤔

I think that is true. And I have kept NoDaemonViewModel for this reason. Just thought it was unnecessary to add a new view model to do connect but maybe that is fine?

@Pururun Pururun force-pushed the use-deeplink-to-do-vpnpermission-intent-droid-1110 branch from 5a59129 to a293fc5 Compare August 20, 2024 07:06
Copy link
Contributor Author

@Pururun Pururun left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @albin-mullvad)


android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/MainActivity.kt line 101 at r1 (raw file):

Previously, albin-mullvad wrote…

Does removing this not impact how we use intents for tests? Might be good to rebase and ensure mockapi tests are passing locally and in GH actions

Good suggestion! Seems to work fine.

Copy link
Collaborator

@albin-mullvad albin-mullvad left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @Pururun)


android/app/src/main/kotlin/net/mullvad/mullvadvpn/viewmodel/ChangelogViewModel.kt line 1 at r1 (raw file):

Previously, Pururun (Jonatan Rhodin) wrote…

Previously this viewmodel was used by both MullvadApp and ChangelogDialog, now it is only used by the ChangelogDialog. So it has no connection to MullvadApp anymore.

I'm a bit confused by the split since most changelog logic is part of the AppVM. I think it's easiest to continue this discussion outside of the PR review.

@Pururun Pururun added the On hold Means the PR is paused for some reason. No need to review it for now label Aug 23, 2024
@Pururun Pururun force-pushed the use-deeplink-to-do-vpnpermission-intent-droid-1110 branch 2 times, most recently from d3b22d0 to a0cc830 Compare September 6, 2024 08:17
@Pururun Pururun removed the On hold Means the PR is paused for some reason. No need to review it for now label Sep 6, 2024
@Pururun Pururun force-pushed the use-deeplink-to-do-vpnpermission-intent-droid-1110 branch from a0cc830 to af52714 Compare September 6, 2024 14:19
@Pururun Pururun force-pushed the use-deeplink-to-do-vpnpermission-intent-droid-1110 branch from af52714 to bef3c80 Compare September 9, 2024 06:06
@Rawa Rawa added the On hold Means the PR is paused for some reason. No need to review it for now label Sep 16, 2024
@Pururun
Copy link
Contributor Author

Pururun commented Oct 1, 2024

Closing this since we will probably remove the changelog dialog in the future and that would have pretty big impact on this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Issues related to Android On hold Means the PR is paused for some reason. No need to review it for now
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants