One fix and updates for F-Droid. (#50)

Fixed password getter (crashes for old configs).
Changed publishing material for F-Droid.
Incremented version.
This commit is contained in:
Revertron 2023-10-29 14:42:37 +01:00 committed by GitHub
parent f4e1a75cfc
commit 8dfa2f638a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 12 additions and 6 deletions

View file

@ -10,8 +10,8 @@ android {
applicationId "eu.neilalexander.yggdrasil"
minSdkVersion 21
targetSdkVersion 33
versionCode 14
versionName "0.1-014"
versionCode 15
versionName "0.1-015"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

View file

@ -95,7 +95,7 @@ object ConfigurationProxy {
}
var multicastPassword: String
get() = (json.getJSONArray("MulticastInterfaces").get(0) as JSONObject).getString("Password")
get() = (json.getJSONArray("MulticastInterfaces").get(0) as JSONObject).optString("Password")
set(value) {
updateJSON { json ->
(json.getJSONArray("MulticastInterfaces").get(0) as JSONObject).put("Password", value)

View file

@ -127,7 +127,7 @@ class DnsActivity : AppCompatActivity() {
view.findViewById<ImageButton>(R.id.deletePeerButton).tag = i
view.findViewById<ImageButton>(R.id.deletePeerButton).setOnClickListener { button ->
val builder: AlertDialog.Builder = AlertDialog.Builder(this)
val builder: AlertDialog.Builder = AlertDialog.Builder(ContextThemeWrapper(this, R.style.Theme_MaterialComponents_DayNight_Dialog))
builder.setTitle(getString(R.string.dns_remove_title, server))
builder.setPositiveButton(getString(R.string.remove)) { dialog, _ ->
servers.removeAt(button.tag as Int)
@ -175,7 +175,7 @@ class DnsActivity : AppCompatActivity() {
}
}
view.setOnLongClickListener {
val builder: AlertDialog.Builder = AlertDialog.Builder(this)
val builder: AlertDialog.Builder = AlertDialog.Builder(ContextThemeWrapper(this, R.style.Theme_MaterialComponents_DayNight_Dialog))
builder.setTitle(getString(R.string.dns_server_info_dialog_title))
builder.setMessage("${infoPair.first}\n\n${infoPair.second}")
builder.setPositiveButton(getString(R.string.ok)) { dialog, _ ->

View file

@ -0,0 +1,3 @@
* Updated core Yggdrasil library to 0.5.1
* Updated UI to reflect changes in new version
* Fixed small bugs in UI

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 111 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Before After
Before After

View file

@ -0,0 +1,3 @@
* Обновлена библиотека Yggdrasil до 0.5.1
* Обновлен интерфейс в соответствии с новой версией библиотеки
* Сделаны небольшие исправления в интерфейсе

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 123 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Before After
Before After

@ -1 +1 @@
Subproject commit 7f9d4f3f6d06262e212a8dd101d51fda134332da
Subproject commit e5e8c84d7c1a030cf0da1076eb6d2e01d2b9c8c3