mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 15:36:38 +01:00
Updates all dependencies
This commit is contained in:
@@ -89,14 +89,14 @@ object PushDistributorHandler : PushDistributorActions {
|
|||||||
|
|
||||||
override fun saveDistributor(distributor: String) {
|
override fun saveDistributor(distributor: String) {
|
||||||
unifiedPush.saveDistributor(appContext(), distributor)
|
unifiedPush.saveDistributor(appContext(), distributor)
|
||||||
unifiedPush.registerApp(appContext())
|
unifiedPush.register(appContext())
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun removeSavedDistributor() {
|
override fun removeSavedDistributor() {
|
||||||
unifiedPush.safeRemoveDistributor(appContext())
|
unifiedPush.removeDistributor(appContext())
|
||||||
}
|
}
|
||||||
|
|
||||||
fun forceRemoveDistributor(context: Context) {
|
fun forceRemoveDistributor(context: Context) {
|
||||||
unifiedPush.forceRemoveDistributor(context)
|
UnifiedPush.removeDistributor(context)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,7 +34,10 @@ import com.vitorpamplona.quartz.nip59Giftwrap.wraps.GiftWrapEvent
|
|||||||
import kotlinx.coroutines.CancellationException
|
import kotlinx.coroutines.CancellationException
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
|
import org.unifiedpush.android.connector.FailedReason
|
||||||
import org.unifiedpush.android.connector.MessagingReceiver
|
import org.unifiedpush.android.connector.MessagingReceiver
|
||||||
|
import org.unifiedpush.android.connector.data.PushEndpoint
|
||||||
|
import org.unifiedpush.android.connector.data.PushMessage
|
||||||
|
|
||||||
class PushMessageReceiver : MessagingReceiver() {
|
class PushMessageReceiver : MessagingReceiver() {
|
||||||
companion object {
|
companion object {
|
||||||
@@ -48,10 +51,10 @@ class PushMessageReceiver : MessagingReceiver() {
|
|||||||
|
|
||||||
override fun onMessage(
|
override fun onMessage(
|
||||||
context: Context,
|
context: Context,
|
||||||
message: ByteArray,
|
message: PushMessage,
|
||||||
instance: String,
|
instance: String,
|
||||||
) {
|
) {
|
||||||
val messageStr = message.decodeToString()
|
val messageStr = message.content.decodeToString()
|
||||||
Log.d(TAG, "New message $messageStr for Instance: $instance")
|
Log.d(TAG, "New message $messageStr for Instance: $instance")
|
||||||
scope.launch {
|
scope.launch {
|
||||||
try {
|
try {
|
||||||
@@ -81,10 +84,10 @@ class PushMessageReceiver : MessagingReceiver() {
|
|||||||
|
|
||||||
override fun onNewEndpoint(
|
override fun onNewEndpoint(
|
||||||
context: Context,
|
context: Context,
|
||||||
endpoint: String,
|
endpoint: PushEndpoint,
|
||||||
instance: String,
|
instance: String,
|
||||||
) {
|
) {
|
||||||
val sanitizedEndpoint = if (endpoint.endsWith("?up=1")) endpoint.dropLast(5) else endpoint
|
val sanitizedEndpoint = if (endpoint.url.endsWith("?up=1")) endpoint.url.dropLast(5) else endpoint.url
|
||||||
if (sanitizedEndpoint != pushHandler.getSavedEndpoint()) {
|
if (sanitizedEndpoint != pushHandler.getSavedEndpoint()) {
|
||||||
Log.d(TAG, "New endpoint provided:- $endpoint for Instance: $instance ${pushHandler.getSavedEndpoint()} $sanitizedEndpoint")
|
Log.d(TAG, "New endpoint provided:- $endpoint for Instance: $instance ${pushHandler.getSavedEndpoint()} $sanitizedEndpoint")
|
||||||
pushHandler.setEndpoint(sanitizedEndpoint)
|
pushHandler.setEndpoint(sanitizedEndpoint)
|
||||||
@@ -102,6 +105,7 @@ class PushMessageReceiver : MessagingReceiver() {
|
|||||||
|
|
||||||
override fun onRegistrationFailed(
|
override fun onRegistrationFailed(
|
||||||
context: Context,
|
context: Context,
|
||||||
|
reason: FailedReason,
|
||||||
instance: String,
|
instance: String,
|
||||||
) {
|
) {
|
||||||
Log.d(TAG, "Registration failed for Instance: $instance")
|
Log.d(TAG, "Registration failed for Instance: $instance")
|
||||||
|
|||||||
@@ -67,11 +67,6 @@ class PipVideoActivity : ComponentActivity() {
|
|||||||
super.finish()
|
super.finish()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onBackPressed() {
|
|
||||||
super.onBackPressed()
|
|
||||||
finishAndRemoveTask()
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun onUserLeaveHint() {
|
override fun onUserLeaveHint() {
|
||||||
super.onUserLeaveHint()
|
super.onUserLeaveHint()
|
||||||
finishAndRemoveTask()
|
finishAndRemoveTask()
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ class MediaCompressorTest {
|
|||||||
)
|
)
|
||||||
|
|
||||||
// Verify
|
// Verify
|
||||||
verify(exactly = 0) { VideoCompressor.start(any(), any(), any(), any(), any(), any(), any()) }
|
verify(exactly = 0) { VideoCompressor.start(any(), any(), any(), any(), any(), any()) }
|
||||||
coVerify(exactly = 0) { Compressor.compress(any(), any(), any(), any()) }
|
coVerify(exactly = 0) { Compressor.compress(any(), any(), any(), any()) }
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -102,7 +102,7 @@ class MediaCompressorTest {
|
|||||||
)
|
)
|
||||||
|
|
||||||
// Verify
|
// Verify
|
||||||
verify(exactly = 0) { VideoCompressor.start(any(), any(), any(), any(), any(), any(), any()) }
|
verify(exactly = 0) { VideoCompressor.start(any(), any(), any(), any(), any(), any()) }
|
||||||
coVerify(exactly = 0) { Compressor.compress(any(), any(), any(), any()) }
|
coVerify(exactly = 0) { Compressor.compress(any(), any(), any(), any()) }
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -115,7 +115,7 @@ class MediaCompressorTest {
|
|||||||
val uri = mockk<Uri>()
|
val uri = mockk<Uri>()
|
||||||
val contentType = "video"
|
val contentType = "video"
|
||||||
|
|
||||||
every { VideoCompressor.start(any(), any(), any(), any(), any(), any(), any()) } returns Unit
|
every { VideoCompressor.start(any(), any(), any(), any(), any(), any()) } returns Unit
|
||||||
|
|
||||||
// Execution
|
// Execution
|
||||||
MediaCompressor().compress(
|
MediaCompressor().compress(
|
||||||
@@ -126,7 +126,7 @@ class MediaCompressorTest {
|
|||||||
)
|
)
|
||||||
|
|
||||||
// Verify
|
// Verify
|
||||||
verify(exactly = 1) { VideoCompressor.start(any(), any(), any(), any(), any(), any(), any()) }
|
verify(exactly = 1) { VideoCompressor.start(any(), any(), any(), any(), any(), any()) }
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
@@ -2,56 +2,56 @@
|
|||||||
accompanistAdaptive = "0.37.3"
|
accompanistAdaptive = "0.37.3"
|
||||||
activityCompose = "1.10.1"
|
activityCompose = "1.10.1"
|
||||||
agp = "8.11.0"
|
agp = "8.11.0"
|
||||||
android-compileSdk = "35"
|
android-compileSdk = "36"
|
||||||
android-minSdk = "26"
|
android-minSdk = "26"
|
||||||
android-targetSdk = "35"
|
android-targetSdk = "36"
|
||||||
androidKotlinGeohash = "b481c6a64e"
|
androidKotlinGeohash = "b481c6a64e"
|
||||||
androidxJunit = "1.2.1"
|
androidxJunit = "1.2.1"
|
||||||
appcompat = "1.7.0"
|
appcompat = "1.7.1"
|
||||||
audiowaveform = "1.1.1"
|
audiowaveform = "1.1.2"
|
||||||
benchmark = "1.3.4"
|
benchmark = "1.3.4"
|
||||||
benchmarkJunit4 = "1.3.4"
|
benchmarkJunit4 = "1.3.4"
|
||||||
biometricKtx = "1.2.0-alpha05"
|
biometricKtx = "1.2.0-alpha05"
|
||||||
coil = "3.2.0"
|
coil = "3.2.0"
|
||||||
composeBom = "2025.05.00"
|
composeBom = "2025.06.01"
|
||||||
coreKtx = "1.16.0"
|
coreKtx = "1.16.0"
|
||||||
espressoCore = "3.6.1"
|
espressoCore = "3.6.1"
|
||||||
firebaseBom = "33.13.0"
|
firebaseBom = "33.16.0"
|
||||||
fragmentKtx = "1.8.6"
|
fragmentKtx = "1.8.8"
|
||||||
gms = "4.4.2"
|
gms = "4.4.3"
|
||||||
jacksonModuleKotlin = "2.19.0"
|
jacksonModuleKotlin = "2.19.1"
|
||||||
jna = "5.17.0"
|
jna = "5.17.0"
|
||||||
jtorctl = "0.4.5.7"
|
jtorctl = "0.4.5.7"
|
||||||
junit = "4.13.2"
|
junit = "4.13.2"
|
||||||
kotlin = "2.1.0"
|
kotlin = "2.2.0"
|
||||||
kotlinxCollectionsImmutable = "0.4.0"
|
kotlinxCollectionsImmutable = "0.4.0"
|
||||||
kotlinxSerialization = "1.8.1"
|
kotlinxSerialization = "1.9.0"
|
||||||
kotlinxSerializationPlugin = "2.0.0"
|
kotlinxSerializationPlugin = "2.2.0"
|
||||||
languageId = "17.0.6"
|
languageId = "17.0.6"
|
||||||
lazysodiumAndroid = "5.1.0"
|
lazysodiumAndroid = "5.2.0"
|
||||||
lifecycleRuntimeKtx = "2.9.0"
|
lifecycleRuntimeKtx = "2.9.1"
|
||||||
lightcompressor = "1.3.2"
|
lightcompressor = "1.3.3"
|
||||||
markdown = "e1151c8"
|
markdown = "e1151c8"
|
||||||
media3 = "1.7.1"
|
media3 = "1.7.1"
|
||||||
mockk = "1.14.2"
|
mockk = "1.14.4"
|
||||||
kotlinx-coroutines-test = "1.10.2"
|
kotlinx-coroutines-test = "1.10.2"
|
||||||
navigationCompose = "2.9.0"
|
navigationCompose = "2.9.0"
|
||||||
okhttp = "5.0.0-alpha.14"
|
okhttp = "5.0.0-alpha.17"
|
||||||
runner = "1.6.2"
|
runner = "1.6.2"
|
||||||
rfc3986 = "0.1.2"
|
rfc3986 = "0.1.2"
|
||||||
secp256k1KmpJniAndroid = "0.17.3"
|
secp256k1KmpJniAndroid = "0.18.0"
|
||||||
securityCryptoKtx = "1.1.0-alpha07"
|
securityCryptoKtx = "1.1.0-beta01"
|
||||||
spotless = "6.25.0"
|
spotless = "7.0.4"
|
||||||
torAndroid = "0.4.8.12"
|
torAndroid = "0.4.8.16.2"
|
||||||
translate = "17.0.3"
|
translate = "17.0.3"
|
||||||
unifiedpush = "2.3.1"
|
unifiedpush = "3.0.10"
|
||||||
urlDetector = "0.1.23"
|
urlDetector = "0.1.23"
|
||||||
vico-charts = "2.1.2"
|
vico-charts = "2.1.3"
|
||||||
zelory = "3.0.1"
|
zelory = "3.0.1"
|
||||||
zoomable = "2.7.0"
|
zoomable = "2.8.1"
|
||||||
zxing = "3.5.3"
|
zxing = "3.5.3"
|
||||||
zxingAndroidEmbedded = "4.3.0"
|
zxingAndroidEmbedded = "4.3.0"
|
||||||
windowCoreAndroid = "1.3.0"
|
windowCoreAndroid = "1.4.0"
|
||||||
androidxCamera = "1.4.2"
|
androidxCamera = "1.4.2"
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
|
|||||||
Reference in New Issue
Block a user