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

Use custom flavor endpoints #5294

Merged
merged 3 commits into from
Oct 16, 2023
Merged

Use custom flavor endpoints #5294

merged 3 commits into from
Oct 16, 2023

Conversation

albin-mullvad
Copy link
Collaborator

@albin-mullvad albin-mullvad commented Oct 16, 2023

This PR aims to use custom flavor endpoints for development and testing.


This change is Reviewable

@albin-mullvad albin-mullvad added the Android Issues related to Android label Oct 16, 2023
@albin-mullvad albin-mullvad self-assigned this Oct 16, 2023
@albin-mullvad albin-mullvad requested a review from Pururun October 16, 2023 07:53
Copy link
Contributor

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

Reviewed 6 of 6 files at r1, 1 of 1 files at r2.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @albin-mullvad)


android/service/src/main/kotlin/net/mullvad/mullvadvpn/service/di/ApiEndpointModule.kt line 13 at r1 (raw file):

    single {
        if (BuildConfig.FLAVOR_infrastructure != "prod") {
            CustomApiEndpointConfiguration(BuildConfig.API_ENDPOINT, 443)

Just to make sure since this is a bit of a magic number:
Should we switch this number to either a build config or a defined constant? I guess this might be useful in the future.

Copy link
Contributor

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

Reviewed all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @albin-mullvad)

Copy link
Collaborator Author

@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: 5 of 7 files reviewed, all discussions resolved (waiting on @Pururun)


android/service/src/main/kotlin/net/mullvad/mullvadvpn/service/di/ApiEndpointModule.kt line 13 at r1 (raw file):

Previously, Pururun (Jonatan Rhodin) wrote…

Just to make sure since this is a bit of a magic number:
Should we switch this number to either a build config or a defined constant? I guess this might be useful in the future.

Add a constant!

@albin-mullvad
Copy link
Collaborator Author

Reviewable status: 5 of 7 files reviewed, all discussions resolved (waiting on @Pururun)

android/service/src/main/kotlin/net/mullvad/mullvadvpn/service/di/ApiEndpointModule.kt line 13 at r1 (raw file):
Previously, Pururun (Jonatan Rhodin) wrote…

Add a constant!

added* 😆

Copy link
Contributor

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

:lgtm:

Reviewed 2 of 2 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@albin-mullvad albin-mullvad force-pushed the use-custom-flavor-endpoints branch from acdbaa3 to 55099af Compare October 16, 2023 09:20
@albin-mullvad albin-mullvad merged commit f7b9c1b into main Oct 16, 2023
10 checks passed
@albin-mullvad albin-mullvad deleted the use-custom-flavor-endpoints branch October 16, 2023 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Issues related to Android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants