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))