refactor: bump release to 3.0.0

Bump release to 3.0.0 for F-Droid tag referencing for auto update
This commit is contained in:
Zane Schepke 2023-09-16 10:46:30 -04:00
parent 7cb798a111
commit 1714618f0c
2 changed files with 4 additions and 5 deletions

View File

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

View File

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