From 1714618f0c237d69fd94197730c96d3cf5af377a Mon Sep 17 00:00:00 2001 From: Zane Schepke Date: Sat, 16 Sep 2023 10:46:30 -0400 Subject: [PATCH] refactor: bump release to 3.0.0 Bump release to 3.0.0 for F-Droid tag referencing for auto update --- app/build.gradle.kts | 4 ++-- .../wireguardautotunnel/ui/screens/main/MainViewModel.kt | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 7bbc2ab..044109e 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -14,8 +14,8 @@ android { applicationId = "com.zaneschepke.wireguardautotunnel" minSdk = 26 targetSdk = 34 - versionCode = 25000 - versionName = "2.5.0" + versionCode = 30000 + versionName = "3.0.0" multiDexEnabled = true diff --git a/app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/screens/main/MainViewModel.kt b/app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/screens/main/MainViewModel.kt index fa28c47..aab12fe 100644 --- a/app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/screens/main/MainViewModel.kt +++ b/app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/screens/main/MainViewModel.kt @@ -96,9 +96,8 @@ class MainViewModel @Inject constructor(private val application : Application, fun onTunnelQrResult(result : String) { viewModelScope.launch(Dispatchers.IO) { - if(result.contains(application.resources.getString(R.string.config_validation))) { - val tunnelConfig = - TunnelConfig(name = NumberUtils.generateRandomTunnelName(), wgQuick = result) + if(result.contains(application.resources.getString(R.string.config_validation))) { + val tunnelConfig = TunnelConfig(name = NumberUtils.generateRandomTunnelName(), wgQuick = result) saveTunnel(tunnelConfig) } else { showSnackBarMessage(application.resources.getString(R.string.barcode_error))