Update AGP and a few essential dependencies (#1017)

pull/1710/head
SessionHero01 1 month ago committed by GitHub
parent 3ba50dae3f
commit 3e7c025161
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -37,7 +37,6 @@ def getGitHash = { ->
} }
android { android {
compileSdkVersion androidCompileSdkVersion
namespace 'network.loki.messenger' namespace 'network.loki.messenger'
useLibrary 'org.apache.http.legacy' useLibrary 'org.apache.http.legacy'
@ -79,6 +78,7 @@ android {
versionCode canonicalVersionCode * postFixSize versionCode canonicalVersionCode * postFixSize
versionName canonicalVersionName versionName canonicalVersionName
compileSdk androidCompileSdkVersion
minSdkVersion androidMinimumSdkVersion minSdkVersion androidMinimumSdkVersion
targetSdkVersion androidTargetSdkVersion targetSdkVersion androidTargetSdkVersion

@ -21,8 +21,8 @@ buildscript {
// List plugins AND their versions here, but don't apply. This allows you to use the plugin // List plugins AND their versions here, but don't apply. This allows you to use the plugin
// in your module without specifying the version. // in your module without specifying the version.
plugins { plugins {
id 'com.android.application' version '8.5.1' apply false id 'com.android.application' version "$gradlePluginVersion" apply false
id 'com.android.library' version '8.5.1' apply false id 'com.android.library' version "$gradlePluginVersion" apply false
id 'org.jetbrains.kotlin.android' version "$kotlinVersion" apply false id 'org.jetbrains.kotlin.android' version "$kotlinVersion" apply false
id 'org.jetbrains.kotlin.plugin.serialization' version "$kotlinVersion" apply false id 'org.jetbrains.kotlin.plugin.serialization' version "$kotlinVersion" apply false
id 'org.jetbrains.kotlin.plugin.compose' version "$kotlinVersion" apply false id 'org.jetbrains.kotlin.plugin.compose' version "$kotlinVersion" apply false

@ -5,9 +5,9 @@ plugins {
android { android {
namespace 'org.session.content_descriptions' namespace 'org.session.content_descriptions'
compileSdk androidCompileSdkVersion
defaultConfig { defaultConfig {
compileSdk androidCompileSdkVersion
minSdk androidMinimumSdkVersion minSdk androidMinimumSdkVersion
targetSdkVersion androidCompileSdkVersion targetSdkVersion androidCompileSdkVersion
@ -22,11 +22,11 @@ android {
} }
} }
compileOptions { compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_11
} }
kotlinOptions { kotlinOptions {
jvmTarget = '1.8' jvmTarget = '11'
} }
} }

@ -12,14 +12,12 @@
# org.gradle.parallel=true # org.gradle.parallel=true
#Mon Jun 26 09:56:43 AEST 2023 #Mon Jun 26 09:56:43 AEST 2023
android.enableJetifier=true android.enableJetifier=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
org.gradle.jvmargs=-Xmx3096M -Dkotlin.daemon.jvm.options\="-Xmx3096M" org.gradle.jvmargs=-Xmx3096M -Dkotlin.daemon.jvm.options\="-Xmx3096M"
gradlePluginVersion=8.5.2 gradlePluginVersion=8.9.0
googleServicesVersion=4.3.12 googleServicesVersion=4.3.12
kotlinVersion=2.0.0 kotlinVersion=2.1.10
kspVersion=2.0.0-1.0.23 kspVersion=2.1.10-1.0.31
navVersion=2.8.0-beta05 navVersion=2.8.0-beta05
android.useAndroidX=true android.useAndroidX=true
appcompatVersion=1.6.1 appcompatVersion=1.6.1
@ -27,7 +25,7 @@ coreVersion=1.13.1
coroutinesVersion=1.6.4 coroutinesVersion=1.6.4
curve25519Version=0.6.0 curve25519Version=0.6.0
jetpackHiltVersion=1.2.0 jetpackHiltVersion=1.2.0
daggerHiltVersion=2.51.1 daggerHiltVersion=2.55
androidxHiltVersion = 1.2.0 androidxHiltVersion = 1.2.0
glideVersion=4.16.0 glideVersion=4.16.0
jacksonDatabindVersion=2.9.8 jacksonDatabindVersion=2.9.8

@ -1,5 +1,5 @@
#Thu Nov 09 11:27:58 AEDT 2023 #Thu Nov 09 11:27:58 AEDT 2023
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

@ -5,9 +5,9 @@ plugins {
android { android {
namespace 'network.loki.messenger.libsession_util' namespace 'network.loki.messenger.libsession_util'
compileSdkVersion androidCompileSdkVersion
defaultConfig { defaultConfig {
compileSdk androidCompileSdkVersion
minSdkVersion androidMinimumSdkVersion minSdkVersion androidMinimumSdkVersion
targetSdkVersion androidCompileSdkVersion targetSdkVersion androidCompileSdkVersion

@ -8,9 +8,8 @@ plugins {
} }
android { android {
compileSdkVersion androidCompileSdkVersion
defaultConfig { defaultConfig {
compileSdk androidCompileSdkVersion
minSdkVersion androidMinimumSdkVersion minSdkVersion androidMinimumSdkVersion
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@ -35,12 +34,12 @@ android {
} }
compileOptions { compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_11
} }
kotlinOptions { kotlinOptions {
jvmTarget = '1.8' jvmTarget = '11'
} }
namespace 'org.session.libsession' namespace 'org.session.libsession'

@ -248,7 +248,7 @@ object SnodeAPI {
val validationCount = 3 val validationCount = 3
val accountIDByteCount = 33 val accountIDByteCount = 33
// Hash the ONS name using BLAKE2b // Hash the ONS name using BLAKE2b
val onsName = onsName.toLowerCase(Locale.US) val onsName = onsName.lowercase(Locale.US)
val nameAsData = onsName.toByteArray() val nameAsData = onsName.toByteArray()
val nameHash = ByteArray(GenericHash.BYTES) val nameHash = ByteArray(GenericHash.BYTES)
if (!sodium.cryptoGenericHash(nameHash, nameHash.size, nameAsData, nameAsData.size.toLong())) { if (!sodium.cryptoGenericHash(nameHash, nameHash.size, nameAsData, nameAsData.size.toLong())) {

@ -17,7 +17,7 @@ internal fun Request.getHeadersForOnionRequest(): Map<String, Any> {
for (name in headers.names()) { for (name in headers.names()) {
val value = headers[name] val value = headers[name]
if (value != null) { if (value != null) {
if (value.toLowerCase(Locale.US) == "true" || value.toLowerCase(Locale.US) == "false") { if (value.lowercase(Locale.US) == "true" || value.lowercase(Locale.US) == "false") {
result[name] = value.toBoolean() result[name] = value.toBoolean()
} else if (value.toIntOrNull() != null) { } else if (value.toIntOrNull() != null) {
result[name] = value.toInt() result[name] = value.toInt()

@ -14,7 +14,7 @@ import java.util.regex.Matcher
import java.util.regex.Pattern import java.util.regex.Pattern
class Address private constructor(address: String) : Parcelable, Comparable<Address?> { class Address private constructor(address: String) : Parcelable, Comparable<Address?> {
private val address: String = address.toLowerCase() private val address: String = address.lowercase()
constructor(`in`: Parcel) : this(`in`.readString()!!) {} constructor(`in`: Parcel) : this(`in`.readString()!!) {}

@ -4,19 +4,18 @@ plugins {
} }
android { android {
compileSdkVersion androidCompileSdkVersion
defaultConfig { defaultConfig {
compileSdk androidCompileSdkVersion
minSdkVersion androidMinimumSdkVersion minSdkVersion androidMinimumSdkVersion
} }
compileOptions { compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_11
} }
kotlinOptions { kotlinOptions {
jvmTarget = '1.8' jvmTarget = '11'
} }
namespace 'org.session.libsignal' namespace 'org.session.libsignal'
} }

Loading…
Cancel
Save