Merge branch 'dev' into strings-squashed

This commit is contained in:
alansley
2024-08-20 13:27:35 +10:00
72 changed files with 1924 additions and 1693 deletions

View File

@@ -33,6 +33,12 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
namespace 'org.session.libsession'
}
dependencies {

View File

@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="org.session.libsession" />
<manifest />

View File

@@ -3,10 +3,12 @@ package org.session.libsession.avatars
import com.bumptech.glide.load.Key
import java.security.MessageDigest
class PlaceholderAvatarPhoto(val hashString: String,
val displayName: String): Key {
data class PlaceholderAvatarPhoto(
val hashString: String,
val displayName: String?
) : Key {
override fun updateDiskCacheKey(messageDigest: MessageDigest) {
messageDigest.update(hashString.encodeToByteArray())
messageDigest.update(displayName.encodeToByteArray())
messageDigest.update(displayName?.encodeToByteArray() ?: byteArrayOf())
}
}

View File

@@ -1,7 +1,7 @@
package org.session.libsession.utilities
// Non-translatable strings for use with the UI
object StringSubstitutionConstants {
object NonTranslatableStringConstants {
const val APP_NAME = "Session"
const val ARBISCAN = "Arbiscan"
const val ARBITRUM = "Arbitrum"

View File

@@ -155,6 +155,7 @@
<string name="authenticateFailedTooManyAttempts">Too many failed authentication attempts. Please try again later.</string>
<string name="authenticateNotAccessed">Authentication could not be accessed.</string>
<string name="authenticateToOpen">Authenticate to open {app_name}.</string>
<string name="back">Back</string>
<string name="banDeleteAll">Ban and Delete All</string>
<string name="banErrorFailed">Ban failed</string>
<string name="banUnbanErrorFailed">Unban failed</string>