Compare commits

..

4 Commits

Author SHA1 Message Date
Zane Schepke e395740c71 fix: create config not saving
Fixes bug where creating a config from scratch was failing to save

Closes #93 #96 #89
2024-01-19 20:52:11 -05:00
Zane Schepke d6ee36edc0 docs: add link to README 2024-01-14 12:06:29 -05:00
Zane Schepke e3fcf712d5 Merge branch 'main' of https://github.com/zaneschepke/wgtunnel 2024-01-08 19:07:10 -05:00
Zane Schepke 3339448424 fix: tunnel disable frozen
Fixes a bug where after toggling a tunnel so many times it would eventually get stuck in the on position. This was also impacting auto-tunneling reliability.

Fixes a bug where clicking the email button on the support page would not populate the "to" email field.

Fixes a bug where you could not save a tunnel without having configured DNS.

Added a dialog to prompt user if they are deleting a tunnel.

Added battery optimization disable request when first launching auto-tunneling.

Format to kotlinlang standards.
2024-01-08 18:42:30 -05:00
7 changed files with 20 additions and 14 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# fix hardcode changelog file name
body_path: ${{ github.workspace }}/fastlane/metadata/android/en-US/changelogs/33300.txt
body_path: ${{ github.workspace }}/fastlane/metadata/android/en-US/changelogs/33400.txt
tag_name: ${{ github.ref_name }}
name: Release ${{ github.ref_name }}
draft: false
+6
View File
@@ -67,6 +67,12 @@ and on while on different networks. This app was created to offer a free solutio
* Automatic service restart after reboot
* Battery preservation measures
## Docs (WIP)
Basic documentation of the feature and behaviors of this app can be found [here](https://zaneschepke.com/wgtunnel-docs/overview.html).
The repository for these docs can be found [here](https://github.com/zaneschepke/wgtunnel-docs).
## Building
```
@@ -206,11 +206,13 @@ constructor(
val peerList = buildPeerListFromProxyPeers()
val wgInterface = buildInterfaceListFromProxyInterface()
val config = Config.Builder().addPeers(peerList).setInterface(wgInterface).build()
val tunnelConfig =
_uiState.value.tunnel?.copy(
val tunnelConfig = when(uiState.value.tunnel) {
null -> TunnelConfig(name = _uiState.value.tunnelName, wgQuick = config.toWgQuickString())
else -> uiState.value.tunnel!!.copy(
name = _uiState.value.tunnelName,
wgQuick = config.toWgQuickString(),
)
}
updateTunnelConfig(tunnelConfig)
Result.Success(Event.Message.ConfigSaved)
} catch (e: Exception) {
@@ -69,11 +69,6 @@ fun WireguardAutoTunnelTheme(
window.navigationBarColor = Color.Transparent.toArgb()
WindowCompat.getInsetsController(window, window.decorView).isAppearanceLightStatusBars =
!darkTheme
WindowCompat.getInsetsController(
window,
window.decorView,
)
.isAppearanceLightNavigationBars = !darkTheme
}
}
+3 -3
View File
@@ -1,12 +1,12 @@
object Constants {
const val VERSION_NAME = "3.3.3"
const val VERSION_NAME = "3.3.4"
const val JVM_TARGET = "17"
const val VERSION_CODE = 33300
const val VERSION_CODE = 33400
const val TARGET_SDK = 34
const val MIN_SDK = 26
const val APP_ID = "com.zaneschepke.wireguardautotunnel"
const val APP_NAME = "wgtunnel"
const val COMPOSE_COMPILER_EXTENSION_VERSION = "1.5.7"
const val COMPOSE_COMPILER_EXTENSION_VERSION = "1.5.8"
const val STORE_PASS_VAR = "SIGNING_STORE_PASSWORD"
@@ -0,0 +1,3 @@
Enhancements:
- Fixed create config not saving
- Bumped versions
+3 -3
View File
@@ -15,7 +15,7 @@ hiltAndroid = "2.50"
hiltNavigationCompose = "1.1.0"
junit = "4.13.2"
kotlinx-serialization-json = "1.6.2"
lifecycle-runtime-compose = "2.6.2"
lifecycle-runtime-compose = "2.7.0"
material-icons-extended = "1.5.4"
material3 = "1.1.2"
navigationCompose = "2.7.6"
@@ -23,8 +23,8 @@ roomVersion = "2.6.1"
timber = "5.0.1"
tunnel = "1.0.20230706"
androidGradlePlugin = "8.2.1"
kotlin = "1.9.21"
ksp = "1.9.21-1.0.16"
kotlin = "1.9.22"
ksp = "1.9.22-1.0.16"
composeBom = "2023.10.01"
firebaseBom = "32.7.0"
compose = "1.5.4"