diff --git a/README.md b/README.md
index 49207a8..76f5cd0 100644
--- a/README.md
+++ b/README.md
@@ -8,4 +8,7 @@ The application for connecting to Yggdrasil network on Android.
Once connected, you can access yggdrasil public services, as the application has peered automatically to default peers within the application.
-
\ No newline at end of file
+
+
+New builds and updates here:
+https://t.me/yggdrasil_android
diff --git a/app/build.gradle b/app/build.gradle
index 21ed139..173378b 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -3,13 +3,13 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
- compileSdkVersion 30
+ compileSdkVersion 29
defaultConfig {
applicationId "io.github.chronosx88.yggdrasil"
minSdkVersion 15
- targetSdkVersion 30
- versionCode 6
- versionName "1.6"
+ targetSdkVersion 29
+ versionCode 18
+ versionName "1.7"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
setProperty("archivesBaseName", project.getParent().name+"-"+versionName)
}
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 81ef2dd..9f24941 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -32,6 +32,12 @@
android:label="@string/title_activity_dns_list"
android:theme="@style/AppTheme.NoActionBar"
android:screenOrientation="portrait"/>
+
(R.id.nodeInfoList)
+ val nodeInfoList = listOf(NodeInfo("IP address", ipv6Address!!), NodeInfo("Encryption Public Key", encryptionPublicKey!!), NodeInfo("Signing Public Key", signingPublicKey!!));
+ var adapter = CopyInfoAdapter(this, nodeInfoList)
+ nodeInfoListView.adapter = adapter
+ }
+
+}
\ No newline at end of file
diff --git a/app/src/main/java/io/github/chronosx88/yggdrasil/DNSListActivity.kt b/app/src/main/java/io/github/chronosx88/yggdrasil/DNSListActivity.kt
index 7baa89c..8a464b2 100644
--- a/app/src/main/java/io/github/chronosx88/yggdrasil/DNSListActivity.kt
+++ b/app/src/main/java/io/github/chronosx88/yggdrasil/DNSListActivity.kt
@@ -59,11 +59,11 @@ class DNSListActivity : AppCompatActivity() {
try {
for (d in cd) {
- var ping = ping(d.address, 53)
+ var ping = ping(d.address.hostAddress, 53)
d.ping = ping
}
for (dns in allDNS) {
- var ping = ping(dns.address, 53)
+ var ping = ping(dns.address.hostAddress, 53)
dns.ping = ping
runOnUiThread(
Runnable
@@ -110,7 +110,7 @@ class DNSListActivity : AppCompatActivity() {
thread(start = true) {
var di = DNSInfo(InetAddress.getByName("["+ip+"]"), ccp, "User DNS")
try {
- var ping = ping(di.address, 53)
+ var ping = ping(di.address.hostAddress, 53)
di.ping = ping
} catch(e: Throwable){
di.ping = Int.MAX_VALUE
@@ -127,7 +127,7 @@ class DNSListActivity : AppCompatActivity() {
override fun onCreateOptionsMenu(menu: Menu): Boolean {
// Inflate the menu; this adds items to the action bar if it is present.
- menuInflater.inflate(R.menu.save, menu)
+ menuInflater.inflate(R.menu.save_dns, menu)
val item = menu.findItem(R.id.saveItem) as MenuItem
item.setActionView(R.layout.menu_save)
val saveButton = item
diff --git a/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt b/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt
index 0e28871..ef59fe1 100644
--- a/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt
+++ b/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt
@@ -107,19 +107,21 @@ class MainActivity : AppCompatActivity() {
)
val adapter = PeerInfoListAdapter(this, currentPeers.sortedWith(compareBy { it.ping }))
peersListView.adapter = adapter
+
+ if (adapter.count > 10) {
+ val item = adapter.getView(0, null, peersListView)
+ item.measure(0, 0)
+ val params = LinearLayout.LayoutParams(
+ LinearLayout.LayoutParams.MATCH_PARENT,
+ (10 * item.measuredHeight).toInt()
+ )
+ peersListView.layoutParams = params
+ }
+
if(isStarted && this.currentPeers.isEmpty()) {
updatePeers()
}
- val copyAddressButton = findViewById