This repository has been archived by the owner on Jul 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved UI look and feel with various enhancements. Fixed bug where VPN was stopping after a while due to lib errors that can be ignored. Added splash screen activity better initial application data and state while splash is showing. Added analytics screen for alpha to present users with options to send anonymous analytics. Added skeleton of android/lib ci workflow.
- Loading branch information
1 parent
f27ed04
commit f40bbdf
Showing
49 changed files
with
1,006 additions
and
780 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
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
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
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
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
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
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
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,20 +1,23 @@ | ||
package net.nymtech.nymvpn.data.model | ||
|
||
import net.nymtech.nymvpn.BuildConfig | ||
import net.nymtech.nymvpn.ui.theme.Theme | ||
import net.nymtech.vpn.model.VpnMode | ||
|
||
data class Settings( | ||
val theme: Theme = Theme.default(), | ||
val vpnMode: VpnMode = VpnMode.default(), | ||
val autoStartEnabled: Boolean = AUTO_START_DEFAULT, | ||
val errorReportingEnabled: Boolean = BuildConfig.OPT_IN_REPORTING, | ||
val errorReportingEnabled: Boolean = REPORTING_DEFAULT, | ||
val analyticsEnabled: Boolean = REPORTING_DEFAULT, | ||
val firstHopSelectionEnabled: Boolean = FIRST_HOP_SELECTION_DEFAULT, | ||
val loggedIn: Boolean = LOGGED_IN_DEFAULT, | ||
val isAnalyticsShown: Boolean = ANALYTICS_SHOWN_DEFAULT, | ||
) { | ||
companion object { | ||
const val FIRST_HOP_SELECTION_DEFAULT = false | ||
const val AUTO_START_DEFAULT = false | ||
const val LOGGED_IN_DEFAULT = false | ||
const val REPORTING_DEFAULT = false | ||
const val ANALYTICS_SHOWN_DEFAULT = false | ||
} | ||
} |
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
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,13 +1,12 @@ | ||
package net.nymtech.nymvpn.ui | ||
|
||
import net.nymtech.nymvpn.ui.theme.Theme | ||
import net.nymtech.nymvpn.data.model.Settings | ||
import net.nymtech.vpn.model.VpnState | ||
|
||
data class AppUiState( | ||
val loading: Boolean = true, | ||
val theme: Theme = Theme.AUTOMATIC, | ||
val loggedIn: Boolean = false, | ||
val snackbarMessage: String = "", | ||
val snackbarMessageConsumed: Boolean = true, | ||
val vpnState: VpnState = VpnState.Down, | ||
val settings: Settings = Settings(), | ||
) |
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
Oops, something went wrong.