Skip to content

Instantly share code, notes, and snippets.

View StrixG's full-sized avatar

Nikita Obrekht StrixG

View GitHub Profile
@StrixG
StrixG / AndroidUpdaterState.kt
Created February 10, 2025 18:31 — forked from tadfisher/AndroidUpdaterState.kt
In-app updates for Jetpack Compose
package com.mercury.app.updater
import android.app.Activity
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.ActivityResult
import androidx.activity.result.ActivityResultLauncher
import androidx.activity.result.IntentSenderRequest
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Stable
{
"request_id": "818cf539-5b38-4c0b-aeb4-47a4789fdb54",
"event": "question",
"type": "response",
"data": {
"datetime": "2025-04-01T07:29:05.780636+00:00",
"payload": {
"question_id": 405,
"question_text": "Вопрос",
"question_number": 3,