-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
13 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
...point/src/debug/kotlin/net/mullvad/mullvadvpn/lib/endpoint/ApiEndpointFromIntentHolder.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
package net.mullvad.mullvadvpn.lib.endpoint | ||
|
||
import android.content.Intent | ||
|
||
class ApiEndpointFromIntentHolder { | ||
var apiEndpointOverride: ApiEndpointOverride? = null | ||
private set | ||
|
||
fun handleIntent(intent: Intent) { | ||
apiEndpointOverride = intent.getApiEndpointConfigurationExtras() | ||
fun setApiEndpointOverride(apiEndpointOverride: ApiEndpointOverride?) { | ||
this.apiEndpointOverride = apiEndpointOverride | ||
} | ||
} |
5 changes: 2 additions & 3 deletions
5
...int/src/release/kotlin/net/mullvad/mullvadvpn/lib/endpoint/ApiEndpointFromIntentHolder.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
package net.mullvad.mullvadvpn.lib.endpoint | ||
|
||
import android.content.Intent | ||
|
||
// Overridding the API endpoint is not supported in release builds | ||
class ApiEndpointFromIntentHolder { | ||
val apiEndpointOverride: ApiEndpointOverride? = null | ||
|
||
fun handleIntent(intent: Intent) { | ||
@Suppress("UnusedParameter") | ||
fun setApiEndpointOverride(apiEndpointOverride: ApiEndpointOverride?) { | ||
// No-op | ||
} | ||
} |