instruction
stringlengths
113
251
input
stringlengths
98
353
output
stringlengths
135
454k
text
stringlengths
443
454k
Implement the native Android class `SplashActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/guiying712/demo/SplashActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.pedrorau.flawlesspoetrade import androidx.appcompat.app.AppCompatActivity import android.os.Bundle class SplashActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_splash) ...
<|turn>user Implement the native Android class `SplashActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/guiying712/demo/SplashActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Corou...
Implement the native Android class `IntroductionLottieAnimationBaseFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: appintro/src/main/java/com/hb/introduction/IntroductionLottieAnimationBaseFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.hb.introduction import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.view.animation.Animation import android.widget.ImageView import android.widget.TextView import androidx.annotation.ColorInt import androidx.annotation....
<|turn>user Implement the native Android class `IntroductionLottieAnimationBaseFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: appintro/src/main/java/com/hb/introduction/IntroductionLottieAnimationBaseFragment.kt Language: Kotl...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `RichText`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: richtext/src/main/java/com/keykat/richtext/CustomRichTextScope.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.keykat.richtext import androidx.compose.foundation.background import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.wrapContentSize import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compo...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `RichText`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: richtext/src/main/java/com/keykat/richtext/CustomRichTextScope.kt Language: Kotlin Framework: A...
Implement the native Android class `QRCodeAnalyzer` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/shaf/composescanner/QRCodeAnalyzer.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.shaf.composescanner import androidx.camera.core.ExperimentalGetImage import androidx.camera.core.ImageAnalysis import androidx.camera.core.ImageProxy import com.google.mlkit.vision.barcode.BarcodeScanning import com.google.mlkit.vision.barcode.common.Barcode import com.google.mlkit.vision.common.I...
<|turn>user Implement the native Android class `QRCodeAnalyzer` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/shaf/composescanner/QRCodeAnalyzer.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin C...
Implement the native Android class `ScScannerActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: android/app/src/main/kotlin/com/v2ray/ang/ui/ScScannerActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.v2ray.ang.ui import android.Manifest import android.content.* import com.tbruyelle.rxpermissions.RxPermissions import com.v2ray.ang.R import com.v2ray.ang.util.AngConfigManager import android.os.Bundle import androidx.activity.result.contract.ActivityResultContracts import com.v2ray.ang.extension...
<|turn>user Implement the native Android class `ScScannerActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: android/app/src/main/kotlin/com/v2ray/ang/ui/ScScannerActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose /...
Implement the native Android class `AddCharacterActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/vitordmoraes/thecompanion/ui/addChar/AddCharacterActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.vitordmoraes.thecompanion.ui.addChar import android.content.Context import android.content.Intent import android.content.res.Resources import android.os.Bundle import android.widget.ArrayAdapter import android.widget.Toast import androidx.appcompat.app.AppCompatActivity import com.vitordmoraes.th...
<|turn>user Implement the native Android class `AddCharacterActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/vitordmoraes/thecompanion/ui/addChar/AddCharacterActivity.kt Language: Kotlin Framework: AndroidX...
Implement the native Android class `DatabaseModel` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: pluto-plugins/plugins/rooms-database/lib/src/main/java/com/pluto/plugins/rooms/db/internal/DataModels.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.pluto.plugins.rooms.db.internal import android.os.Parcelable import androidx.annotation.DrawableRes import androidx.annotation.Keep import androidx.room.RoomDatabase import com.pluto.plugins.rooms.db.R import com.pluto.utilities.list.ListItem import kotlinx.parcelize.Parcelize @Keep internal dat...
<|turn>user Implement the native Android class `DatabaseModel` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: pluto-plugins/plugins/rooms-database/lib/src/main/java/com/pluto/plugins/rooms/db/internal/DataModels.kt Language: Kotlin Fram...
Implement the native Android class `FragmentViewLifecycleTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: fragment/fragment/src/androidTest/java/androidx/fragment/app/FragmentViewLifecycleTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
<|turn>user Implement the native Android class `FragmentViewLifecycleTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: fragment/fragment/src/androidTest/java/androidx/fragment/app/FragmentViewLifecycleTest.kt Language: Kotlin Framewo...
Provide the native Android implementation for `CameraPreviewImpl.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: libraries/easy-camera/src/main/kotlin/easy/camera/CameraPreviewImpl.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package easy.camera import android.view.GestureDetector import android.view.MotionEvent import android.view.ViewGroup import androidx.camera.core.ZoomState import androidx.camera.view.PreviewView import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose...
<|turn>user Provide the native Android implementation for `CameraPreviewImpl.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: libraries/easy-camera/src/main/kotlin/easy/camera/CameraPreviewImpl.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|...
Provide the native Android implementation for `PackageInfoCompat.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: compat/src/main/kotlin/dev/sanmer/hidden/compat/PackageInfoCompat.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package dev.sanmer.hidden.compat import android.content.pm.ApplicationInfo import android.content.pm.PackageInfo import android.content.pm.PackageInfoHidden import dev.rikka.tools.refine.Refine object PackageInfoCompat { val PackageInfo.isOverlayPackage get() = Refine.unsafeCast<PackageInfoHidde...
<|turn>user Provide the native Android implementation for `PackageInfoCompat.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: compat/src/main/kotlin/dev/sanmer/hidden/compat/PackageInfoCompat.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> ...
Implement the native Android class `ShakeDetector` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: uxmobile/src/main/java/sk/uxtweak/uxmobile/ui/ShakeDetector.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package sk.uxtweak.uxmobile.ui import android.hardware.Sensor import android.hardware.SensorEvent import android.hardware.SensorEventListener import android.hardware.SensorManager import kotlin.math.sqrt class ShakeDetector : SensorEventListener { private var listener: OnShakeListener? = null privat...
<|turn>user Implement the native Android class `ShakeDetector` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: uxmobile/src/main/java/sk/uxtweak/uxmobile/ui/ShakeDetector.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `HomeScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/beeglobaladmin/meditationuiwithcompose/ui/theme/HomeScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.beeglobaladmin.meditationuiwithcompose.ui.theme import androidx.compose.foundation.* import androidx.compose.foundation.layout.* import androidx.compose.foundation.lazy.LazyRow import androidx.compose.material.Icon import androidx.compose.material.MaterialTheme import androidx.compose.material.Te...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `HomeScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/beeglobaladmin/meditationuiwithcompose/ui/theme/HomeScreen.kt Language:...
Implement the native Android class `MainItemViewHolder` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: Wechat_chatroom_helper_android/app/src/main/kotlin/com/zdy/project/wechat_chatroom_helper/wechat/plugins/hook/adapter/MainItemViewHolder.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.zdy.project.wechat_chatroom_helper.wechat.plugins.hook.adapter import android.view.ViewGroup import android.widget.ImageView import android.widget.TextView class MainItemViewHolder(val itemView: ViewGroup) { val containerView: ViewGroup = itemView.getChildAt(0) as ViewGroup val avatarCo...
<|turn>user Implement the native Android class `MainItemViewHolder` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: Wechat_chatroom_helper_android/app/src/main/kotlin/com/zdy/project/wechat_chatroom_helper/wechat/plugins/hook/adapter/Mai...
Implement the native Android class `DecryptClipboardListener` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: ime/android/src/main/kotlin/studio/lunabee/onesafe/ime/DecryptClipboardListener.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (c) 2023 Lunabee Studio * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
<|turn>user Implement the native Android class `DecryptClipboardListener` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: ime/android/src/main/kotlin/studio/lunabee/onesafe/ime/DecryptClipboardListener.kt Language: Kotlin Framework: Andr...
Implement the native Android class `PokemonListFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: feature/feature_pokemon_list/src/main/java/com/serj113/pokedex/feature/pokemonlist/ui/PokemonListFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.serj113.pokedex.feature.pokemonlist.ui import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.compose.runtime.collectAsState import androidx.compose.runtime.getValue import androidx.compose.ui.platform.ComposeView import ...
<|turn>user Implement the native Android class `PokemonListFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: feature/feature_pokemon_list/src/main/java/com/serj113/pokedex/feature/pokemonlist/ui/PokemonListFragment.kt Language: K...
Provide the native Android implementation for `MountItemTestHelper.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: litho-it/src/main/java/com/facebook/litho/MountItemTestHelper.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (c) Meta Platforms, Inc. and affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
<|turn>user Provide the native Android implementation for `MountItemTestHelper.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: litho-it/src/main/java/com/facebook/litho/MountItemTestHelper.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `PhoneConfirm`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/getcode/view/login/PhoneConfirm.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.getcode.view.login import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.WindowInsets import androidx.compose.foundation.layout.fillMaxSize import androidx.comp...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `PhoneConfirm`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/getcode/view/login/PhoneConfirm.kt Language: Kotlin Framework: Androi...
Provide the native Android implementation for `Umbrella.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: cupertino-icons-extended/src/commonMain/kotlin/io/github/alexzhirkevich/cupertino/icons/outlined/Umbrella.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.github.alexzhirkevich.cupertino.icons.filled import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Butt import androidx.compose.ui.graphics....
<|turn>user Provide the native Android implementation for `Umbrella.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: cupertino-icons-extended/src/commonMain/kotlin/io/github/alexzhirkevich/cupertino/icons/outlined/Umbrella.kt Language: Kotlin Framework: AndroidX / Jetpack Comp...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `NetCityActivity`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/s16/febraury/Screens/Network/NetCityActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.s16.febraury.Screens.Network import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.layout.* import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items import androidx.compose.foundation.shape...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `NetCityActivity`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/s16/febraury/Screens/Network/NetCityActivity.kt Language: Kotlin F...
Implement the native Android class `App` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/longdo/api3/App.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.longdo.api3 import android.app.Application import android.webkit.WebView import com.longdo.map3.BuildConfig class App : Application() { override fun onCreate() { super.onCreate() setupWebView() } private fun setupWebView() { WebView.setWebContentsDebuggingEn...
<|turn>user Implement the native Android class `App` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/longdo/api3/App.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>model ...
Implement the native Android class `ListSelectionRecyclerViewAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: 11-using-fragments-to-expand-ui/projects/starter/ListMaker/app/src/main/java/com/raywenderlich/listmaker/ui/main/ListSelectionRecyclerViewAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.trios2024amdj.listmaker.ui.main import android.view.LayoutInflater import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import com.trios2024amdj.listmaker.databinding.ListSelectionViewHolderBinding import com.trios2024amdj.listmaker.models.TaskList class ListSelectionRe...
<|turn>user Implement the native Android class `ListSelectionRecyclerViewAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: 11-using-fragments-to-expand-ui/projects/starter/ListMaker/app/src/main/java/com/raywenderlich/listmaker/ui...
Implement the native Android class `IdlingResourceRegistryTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: compose/ui/ui-test-junit4/src/androidAndroidTest/kotlin/androidx/compose/ui/test/junit4/IdlingResourceRegistryTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
<|turn>user Implement the native Android class `IdlingResourceRegistryTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: compose/ui/ui-test-junit4/src/androidAndroidTest/kotlin/androidx/compose/ui/test/junit4/IdlingResourceRegistryTes...
Implement the Android ViewModel `AddItemOrderViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: app/src/main/java/com/udc/apptfg/viewmodel/orders/AddItemOrderViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.udc.apptfg.viewmodel.orders import android.graphics.Bitmap import android.graphics.BitmapFactory import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import com.google.firebase.auth.FirebaseAuth import com.google.firebase.firestore.FirebaseFirestore import com.google.fire...
<|turn>user Implement the Android ViewModel `AddItemOrderViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: app/src/main/java/com/udc/apptfg/viewmodel/orders/AddItemOrderViewM...
Implement the native Android class `VideoModule` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/gggames/hourglass/features/video/VideoModule.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.gggames.hourglass.features.video import android.content.Context import com.gggames.hourglass.core.di.AppContext import com.google.android.exoplayer2.ExoPlayerFactory import com.google.android.exoplayer2.SimpleExoPlayer import dagger.Module import dagger.Provides @Module class VideoModule { ...
<|turn>user Implement the native Android class `VideoModule` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/gggames/hourglass/features/video/VideoModule.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / K...
Implement the native Android class `IconSwitcherImpl` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: common/sdk/settings/impl/src/androidMain/kotlin/io/chefbook/sdk/settings/impl/data/platform/IconSwitcherImpl.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.chefbook.sdk.settings.impl.data.platform import android.content.ComponentName import android.content.Context import android.content.pm.PackageManager import io.chefbook.sdk.settings.api.external.domain.entities.AppIcon internal class IconSwitcherImpl( private val context: Context, ) : IconSwitc...
<|turn>user Implement the native Android class `IconSwitcherImpl` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: common/sdk/settings/impl/src/androidMain/kotlin/io/chefbook/sdk/settings/impl/data/platform/IconSwitcherImpl.kt Language: K...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `WaterSupplierScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/byteteam/bluesense/core/presentation/views/store/water_supplier/WaterSupplierScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.byteteam.bluesense.core.presentation.views.store.water_supplier import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items import androidx.compose.material3.Circul...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `WaterSupplierScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/byteteam/bluesense/core/presentation/views/store/water_supplie...
Implement the native Android class `LoginPresenter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/dagan/lior/crypto_currency_market_price/login/presenter/LoginPresenter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.dagan.lior.crypto_currency_market_price.login.presenter import android.content.Context import android.content.Intent import android.widget.Toast import androidx.annotation.NonNull import com.google.firebase.auth.FirebaseUser import com.dagan.lior.crypto_currency_market_price.bitcoinpricemainscree...
<|turn>user Implement the native Android class `LoginPresenter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/dagan/lior/crypto_currency_market_price/login/presenter/LoginPresenter.kt Language: Kotlin Framework: A...
Provide the native Android implementation for `BorderCornerIos.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/BorderCornerIos.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.woowla.compose.icon.collections.tabler.tabler.outline import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Round import androidx.compose.u...
<|turn>user Provide the native Android implementation for `BorderCornerIos.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/BorderCornerIos.kt Language: Kotlin Framework: AndroidX / Jetpack ...
Provide the native Android implementation for `Utils.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: packages/nativescript-masonkit/src-native/mason-android/masonkit/src/main/java/org/nativescript/mason/masonkit/Utils.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package org.nativescript.mason.masonkit import android.util.Log val LengthPercentageZeroSize = Size<LengthPercentage>(LengthPercentage.Zero, LengthPercentage.Zero) val LengthPercentageAutoZeroSize = Size<LengthPercentageAuto>(LengthPercentageAuto.Zero, LengthPercentageAuto.Zero) val zeroSize = Size(0F,...
<|turn>user Provide the native Android implementation for `Utils.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: packages/nativescript-masonkit/src-native/mason-android/masonkit/src/main/java/org/nativescript/mason/masonkit/Utils.kt Language: Kotlin Framework: AndroidX / Jetp...
Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/bluetoothversion1/android/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.bluetoothversion1.android import android.Manifest import android.app.Activity import android.bluetooth.BluetoothAdapter import android.bluetooth.BluetoothDevice import android.bluetooth.BluetoothSocket import android.content.BroadcastReceiver import android.content.Context import android.content....
<|turn>user Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/bluetoothversion1/android/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin...
Implement the native Android class `MyDatabaseHelper` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: finish/src/main/java/org/tensorflow/lite/examples/classification/MyDatabaseHelper.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package org.tensorflow.lite.examples.classification import android.content.Context import android.database.sqlite.SQLiteDatabase import android.database.sqlite.SQLiteOpenHelper import android.widget.Toast class MyDatabaseHelper(var context:Context,name:String,version:Int):SQLiteOpenHelper(context,name,null,...
<|turn>user Implement the native Android class `MyDatabaseHelper` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: finish/src/main/java/org/tensorflow/lite/examples/classification/MyDatabaseHelper.kt Language: Kotlin Framework: AndroidX /...
Implement the native Android class `FragmentOne` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: Kotlin/P39_a.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.three import android.os.Bundle import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.ArrayAdapter import android.widget.ListView class FragmentOne : Fragment() { lateinit var view1: View...
<|turn>user Implement the native Android class `FragmentOne` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: Kotlin/P39_a.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>model ```kotlin package...
Implement the native Android class `VertexArray` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: doflib/src/main/java/no/danielzeller/doflib/opengl/VertexArray.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package no.danielzeller.blurbehindlib.opengl import android.opengl.GLES20.* import java.nio.ByteBuffer import java.nio.ByteOrder import java.nio.FloatBuffer private const val BYTES_PER_FLOAT = 4 class VertexArray(vertexData: FloatArray) { private val floatBuffer: FloatBuffer = ByteBuffer ...
<|turn>user Implement the native Android class `VertexArray` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: doflib/src/main/java/no/danielzeller/doflib/opengl/VertexArray.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotli...
Implement the native Android class `App` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/dev/marcosfarias/pokedex/App.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package dev.marcosfarias.pokedex import android.app.Application import android.content.Context import androidx.room.Room import dev.marcosfarias.pokedex.database.AppDatabase class App : Application() { companion object { var context: Context? = null var database: AppDatabase? = null ...
<|turn>user Implement the native Android class `App` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/dev/marcosfarias/pokedex/App.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|tu...
Implement the native Android class `OrdersAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: SovrinAgentApp/app/src/main/java/com/luxoft/supplychain/sovrinagentapp/ui/model/OrdersAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software *...
<|turn>user Implement the native Android class `OrdersAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: SovrinAgentApp/app/src/main/java/com/luxoft/supplychain/sovrinagentapp/ui/model/OrdersAdapter.kt Language: Kotlin Framework: A...
Provide the native Android implementation for `WebClientFactory.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: modules/module-content/src/main/java/com/bbgo/module_content/webclient/WebClientFactory.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.cxz.wanandroid.webclient import android.webkit.WebViewClient /** * @author guoyikai * @date 2023/11/24 * @desc WebClientFactory */ object WebClientFactory { val JIAN_SHU = "https://www.jianshu.com" fun create(url: String): WebViewClient { return when { url.start...
<|turn>user Provide the native Android implementation for `WebClientFactory.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: modules/module-content/src/main/java/com/bbgo/module_content/webclient/WebClientFactory.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotl...
Implement the native Android class `DanmakuContextMenuDialogFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/moe/feng/danmaqua/ui/main/DanmakuContextMenuDialogFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package moe.feng.danmaqua.ui.main import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.core.os.bundleOf import kotlinx.android.synthetic.main.main_danmaku_context_menu_dialog_layout.* import moe.feng.common.eventshelper.of import m...
<|turn>user Implement the native Android class `DanmakuContextMenuDialogFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/moe/feng/danmaqua/ui/main/DanmakuContextMenuDialogFragment.kt Language: Kotlin Framework:...
Implement the native Android class `FavoriteGamesFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/developerkurt/gamedatabase/ui/FavoriteGamesFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.developerkurt.gamedatabase.ui import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.viewModels import androidx.lifecycle.lifecycleScope import androidx.navigation.findNavController import com.developerkurt.g...
<|turn>user Implement the native Android class `FavoriteGamesFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/developerkurt/gamedatabase/ui/FavoriteGamesFragment.kt Language: Kotlin Framework: AndroidX / Je...
Implement the native Android class `BottomLayoutTextView` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/kotlin/com/cyb3rko/pazzword/fragments/analyzefragment/BottomLayoutTextView.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (c) 2023 Cyb3rKo * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
<|turn>user Implement the native Android class `BottomLayoutTextView` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/kotlin/com/cyb3rko/pazzword/fragments/analyzefragment/BottomLayoutTextView.kt Language: Kotlin Framework: ...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `PasswordTextField`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/dkaera/mash/ui/onboarding/widgets/Password.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.crazy.musicdrops.ui.util import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.text.KeyboardActions import androidx.compose.foundation.text.KeyboardOptions import androidx.compose.material.* import androidx.compose.material.icons.Icons import androidx.compose.m...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `PasswordTextField`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/dkaera/mash/ui/onboarding/widgets/Password.kt Language: Kotlin F...
Implement the Android ViewModel `SingleShootViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: feature/tasks/src/main/kotlin/com/ngapps/phototime/feature/tasks/SingleShootViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2024 NGApps Dev (https://github.com/ngapp-dev). All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE...
<|turn>user Implement the Android ViewModel `SingleShootViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: feature/tasks/src/main/kotlin/com/ngapps/phototime/feature/tasks/Sin...
Provide the native Android implementation for `DownwardProperties.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: knee-compiler-plugin/src/main/kotlin/DownwardProperties.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.deepmedia.tools.knee.plugin.compiler import com.squareup.kotlinpoet.KModifier import io.deepmedia.tools.knee.plugin.compiler.codegen.CodegenProperty import io.deepmedia.tools.knee.plugin.compiler.codegen.KneeCodegen import io.deepmedia.tools.knee.plugin.compiler.context.KneeContext import io.deepm...
<|turn>user Provide the native Android implementation for `DownwardProperties.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: knee-compiler-plugin/src/main/kotlin/DownwardProperties.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>mo...
Implement the native Android class `CardListAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: card/src/main/java/com/adyen/checkout/card/internal/ui/view/CardListAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (c) 2019 <NAME>. * * This file is open source and available under the MIT license. See the LICENSE file for more info. * * Created by arman on 28/5/2019. */ package com.adyen.checkout.card.internal.ui.view import android.view.LayoutInflater import android.view.ViewGroup import androidx.r...
<|turn>user Implement the native Android class `CardListAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: card/src/main/java/com/adyen/checkout/card/internal/ui/view/CardListAdapter.kt Language: Kotlin Framework: AndroidX / Jetpac...
Implement the native Android class `SetupTOTPCognitoActionsTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: aws-auth-cognito/src/test/java/com/amplifyframework/auth/cognito/actions/SetupTOTPCognitoActionsTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the ...
<|turn>user Implement the native Android class `SetupTOTPCognitoActionsTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: aws-auth-cognito/src/test/java/com/amplifyframework/auth/cognito/actions/SetupTOTPCognitoActionsTest.kt Language...
Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/wordle_and/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.wordle_and import android.content.Intent import android.os.Bundle import android.text.Spanned import android.view.View import android.widget.Button import android.widget.EditText import android.widget.TextView import android.widget.Toast import androidx.appcompat.app.AppCompatActivity imp...
<|turn>user Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/wordle_and/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Corout...
Implement the Android ViewModel `OrchestratedDocumentViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: lib/src/main/java/com/smileidentity/viewmodel/document/OrchestratedDocumentViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.smileidentity.viewmodel.document import android.os.Parcelable import androidx.annotation.StringRes import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.smileidentity.R import com.smileidentity.SmileID import com.smileidentity.SmileIDCrashReporting import com.smi...
<|turn>user Implement the Android ViewModel `OrchestratedDocumentViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: lib/src/main/java/com/smileidentity/viewmodel/document/Orch...
Implement the native Android class `BaseActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: presentation/base/src/main/java/com/ihorvitruk/telegramclient/presentation/base/BaseActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.ihorvitruk.telegramclient.presentation.base import android.support.v7.app.AppCompatActivity import java.util.* abstract class BaseActivity : AppCompatActivity() { private val viewModelStack: Stack<BaseViewModel<*>> = Stack() protected fun <VM : BaseViewModel<*>> replaceView(view: BaseV...
<|turn>user Implement the native Android class `BaseActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: presentation/base/src/main/java/com/ihorvitruk/telegramclient/presentation/base/BaseActivity.kt Language: Kotlin Framework: And...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `RequestScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: Android/app/src/main/java/ipn/mx/androidkleene/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package ipn.mx.androidkleene import android.content.Intent import android.net.Uri import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.activity.enableEdgeToEdge import androidx.compose.foundation.layout.* import androidx.compose.found...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `RequestScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: Android/app/src/main/java/ipn/mx/androidkleene/MainActivity.kt Language: Kotlin Framework:...
Implement the Android ViewModel `SyncDeviceConnectedViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: sync/sync-impl/src/main/java/com/duckduckgo/sync/impl/ui/setup/SyncDeviceConnectedViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (c) 2023 DuckDuckGo * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
<|turn>user Implement the Android ViewModel `SyncDeviceConnectedViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: sync/sync-impl/src/main/java/com/duckduckgo/sync/impl/ui/set...
Implement the native Android class `UserListAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: Project 21 - OurGithubContributions/app/src/main/java/com/example/ourgithubcontributions/ui/adapter/UserListAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.ourgithubcontributions.ui.adapter import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import androidx.recyclerview.widget.RecyclerView import com.barryzhang.tcontributionsview.TContributionsView i...
<|turn>user Implement the native Android class `UserListAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: Project 21 - OurGithubContributions/app/src/main/java/com/example/ourgithubcontributions/ui/adapter/UserListAdapter.kt Langu...
Implement the native Android class `VariableIconFontSkikoImpl` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: core/src/skikoMain/kotlin/dev/tclement/fonticons/VariableIconFont.skiko.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2024 T. Clément (@tclement0922) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
<|turn>user Implement the native Android class `VariableIconFontSkikoImpl` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: core/src/skikoMain/kotlin/dev/tclement/fonticons/VariableIconFont.skiko.kt Language: Kotlin Framework: AndroidX / ...
Implement the native Android class `FcrMainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/io/agora/education/setting/FcrMainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.agora.education.setting import android.Manifest import android.annotation.SuppressLint import android.content.Context import android.content.Intent import android.content.pm.ActivityInfo import android.content.pm.PackageManager import android.os.Bundle import android.os.Handler import android.os.I...
<|turn>user Implement the native Android class `FcrMainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/io/agora/education/setting/FcrMainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kot...
Implement the Android ViewModel `SharedViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: app-aqi/src/main/java/com/android/app_aqi/SharedViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.android.app_aqi import androidx.lifecycle.LiveData import androidx.lifecycle.ViewModel import com.android.app_aqi.model.AqiModel import com.android.app_aqi.model.SiteModel import com.android.app_aqi.repository.AqiRepository import com.android.app_aqi.repository.AqiRepositoryImpl class SharedView...
<|turn>user Implement the Android ViewModel `SharedViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: app-aqi/src/main/java/com/android/app_aqi/SharedViewModel.kt Language: Ko...
Implement the native Android class `CellUniverseInfoItemTests` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: ui/src/sharedTest/kotlin/com/alexvanyo/composelife/ui/info/CellUniverseInfoItemTests.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2022 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
<|turn>user Implement the native Android class `CellUniverseInfoItemTests` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: ui/src/sharedTest/kotlin/com/alexvanyo/composelife/ui/info/CellUniverseInfoItemTests.kt Language: Kotlin Framework...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `LunchTrayScreenTopBar`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/example/lunchtray/LunchTrayScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (C) 2023 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `LunchTrayScreenTopBar`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/example/lunchtray/LunchTrayScreen.kt Language: Kotlin Framew...
Provide the native Android implementation for `NetKAppVerifyManager.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: netk_app/src/main/java/com/mozhimen/netk/app/verify/NetKAppVerifyManager.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.mozhimen.netk.app.verify import android.text.TextUtils import android.util.Log import com.mozhimen.basick.utilk.android.util.UtilKLogWrapper import com.mozhimen.basick.lintk.optins.OApiInit_InApplication import com.mozhimen.basick.utilk.commons.IUtilK import com.mozhimen.basick.utilk.java.io.Util...
<|turn>user Provide the native Android implementation for `NetKAppVerifyManager.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: netk_app/src/main/java/com/mozhimen/netk/app/verify/NetKAppVerifyManager.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutin...
Implement the native Android class `AlbumPreviewActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: rximagepicker_support/src/main/java/com/qingmei2/rximagepicker_extension/ui/AlbumPreviewActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2017 Zhihu Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
<|turn>user Implement the native Android class `AlbumPreviewActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: rximagepicker_support/src/main/java/com/qingmei2/rximagepicker_extension/ui/AlbumPreviewActivity.kt Language: Kotlin Fr...
Provide the native Android implementation for `Constants.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: app/src/main/java/com/makaota/mammamskitchenmanager/utils/Constants.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.makaota.mammamskitchenmanager.utils import android.app.Activity import android.content.Intent import android.net.Uri import android.provider.MediaStore import android.webkit.MimeTypeMap object Constants { const val USER_MANAGER_ID = "user_manager_id" const val BASE_URL = "https://fcm.goo...
<|turn>user Provide the native Android implementation for `Constants.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: app/src/main/java/com/makaota/mammamskitchenmanager/utils/Constants.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn...
Provide the native Android implementation for `PullRefreshIndicatorTransform.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: app/src/main/java/androidx/compose/material3/pullrefresh/PullRefreshIndicatorTransform.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2022 The Android Open Source Project * Copyright 2023 Bamboo Apps * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
<|turn>user Provide the native Android implementation for `PullRefreshIndicatorTransform.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: app/src/main/java/androidx/compose/material3/pullrefresh/PullRefreshIndicatorTransform.kt Language: Kotlin Framework: AndroidX / Jetpack Co...
Provide the native Android implementation for `AppCompatActivityExtension.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: libraries/android/src/main/java/com/raxdenstudios/commons/ext/AppCompatActivityExtension.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.raxdenstudios.commons.android.ext import androidx.appcompat.app.AppCompatActivity import androidx.appcompat.widget.Toolbar fun AppCompatActivity.setupToolbar( toolbar: Toolbar, titleEnabled: Boolean = false ): Toolbar = toolbar.also { setSupportActionBar(toolbar) supportActionBar...
<|turn>user Provide the native Android implementation for `AppCompatActivityExtension.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: libraries/android/src/main/java/com/raxdenstudios/commons/ext/AppCompatActivityExtension.kt Language: Kotlin Framework: AndroidX / Jetpack Com...
Provide the native Android implementation for `GoodsView.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: shared/src/commonMain/kotlin/org/mixdrinks/ui/details/goods/GoodsView.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package org.mixdrinks.ui.details.goods import androidx.compose.foundation.Image import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.S...
<|turn>user Provide the native Android implementation for `GoodsView.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: shared/src/commonMain/kotlin/org/mixdrinks/ui/details/goods/GoodsView.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|tu...
Provide the native Android implementation for `ImageDefaults.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: ui/src/main/java/com/pyamsoft/pydroid/ui/defaults/ImageDefaults.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.pyamsoft.pydroid.ui.defaults import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.dp /** Default values for Icons */ public object ImageDefaults { /** Default size unit */ public val LargeSize: Dp = 80.dp /** Default size unit */ public val DefaultSize: Dp = 56.dp /** ...
<|turn>user Provide the native Android implementation for `ImageDefaults.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: ui/src/main/java/com/pyamsoft/pydroid/ui/defaults/ImageDefaults.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn...
Implement the Android ViewModel `MainViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: app/src/main/java/com/xiang/ssg/main/MainViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.xiang.ssg.main import android.app.Application import android.content.pm.PackageManager import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.xiang.ssg.getApplicationInfoCompat import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.flow.Mutab...
<|turn>user Implement the Android ViewModel `MainViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: app/src/main/java/com/xiang/ssg/main/MainViewModel.kt Language: Kotlin Fram...
Provide the native Android implementation for `UtilKPackageManager.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: basick/src/main/java/com/mozhimen/basick/utilk/android/content/UtilKPackageManager.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.mozhimen.kotlin.utilk.android.content import android.annotation.SuppressLint import android.content.ComponentName import android.content.Context import android.content.Intent import android.content.pm.ActivityInfo import android.content.pm.ApplicationInfo import android.content.pm.PackageInfo imp...
<|turn>user Provide the native Android implementation for `UtilKPackageManager.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: basick/src/main/java/com/mozhimen/basick/utilk/android/content/UtilKPackageManager.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin...
Implement the Android ViewModel `ItemEntryViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: app/src/main/java/com/ClassicaMusic/inventory/ui/item/ItemEntryViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (C) 2022 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
<|turn>user Implement the Android ViewModel `ItemEntryViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: app/src/main/java/com/ClassicaMusic/inventory/ui/item/ItemEntryViewMod...
Implement the native Android class `ErrorDetailBackend` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: collector/src/main/java/com/bitmovin/analytics/features/errordetails/ErrorDetailBackend.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.bitmovin.analytics.features.errordetails import android.content.Context import com.bitmovin.analytics.CollectorConfig import com.bitmovin.analytics.features.httprequesttracking.HttpRequest import com.bitmovin.analytics.utils.DataSerializer import com.bitmovin.analytics.utils.HttpClient import com...
<|turn>user Implement the native Android class `ErrorDetailBackend` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: collector/src/main/java/com/bitmovin/analytics/features/errordetails/ErrorDetailBackend.kt Language: Kotlin Framework: An...
Implement the Android ViewModel `NavUIControllerViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: navui/src/main/java/com/hutchins/navui/core/NavUIControllerViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /******************************************************************************* * Copyright 2019 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software * and associated documentation files (the "Software"), to deal in the Software without * restriction, ...
<|turn>user Implement the Android ViewModel `NavUIControllerViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: navui/src/main/java/com/hutchins/navui/core/NavUIControllerViewM...
Implement the native Android class `BitmapGenerator` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/me/seebrock3r/elevationtester/widget/BitmapGenerator.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package me.seebrock3r.elevationtester.widget import android.content.Context import android.graphics.Bitmap import android.renderscript.Allocation import android.renderscript.RenderScript import kotlinx.coroutines.experimental.CommonPool import kotlinx.coroutines.experimental.Deferred import kotlinx.coroutine...
<|turn>user Implement the native Android class `BitmapGenerator` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/me/seebrock3r/elevationtester/widget/BitmapGenerator.kt Language: Kotlin Framework: AndroidX / Jetpack Com...
Implement the native Android class `SettingsTrackingController` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsTrackingController.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package eu.kanade.tachiyomi.ui.setting import android.app.Activity import androidx.preference.Preference import androidx.preference.PreferenceGroup import androidx.preference.PreferenceScreen import eu.kanade.tachiyomi.data.preference.PreferenceKeys as Keys import eu.kanade.tachiyomi.data.track.TrackManager ...
<|turn>user Implement the native Android class `SettingsTrackingController` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsTrackingController.kt Language: Kotlin Framework: Androi...
Implement the native Android class `DefaultEglRenderer` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: amazon-chime-sdk/src/main/java/com/amazonaws/services/chime/sdk/meetings/internal/video/gl/DefaultEglRenderer.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ package com.amazonaws.services.chime.sdk.meetings.internal.video.gl import android.graphics.Matrix import android.graphics.SurfaceTexture import android.opengl.EGL14 import android.opengl.GLES...
<|turn>user Implement the native Android class `DefaultEglRenderer` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: amazon-chime-sdk/src/main/java/com/amazonaws/services/chime/sdk/meetings/internal/video/gl/DefaultEglRenderer.kt Language...
Implement the native Android class `LazyListMeasureResult` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/LazyListMeasureResult.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
<|turn>user Implement the native Android class `LazyListMeasureResult` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/LazyListMeasureResult.kt Language...
Implement the native Android class `DeferredSetupIntentJsonParser` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: payments-core/src/main/java/com/stripe/android/model/parsers/DeferredSetupIntentJsonParser.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.stripe.android.model.parsers import androidx.annotation.RestrictTo import com.stripe.android.core.model.StripeJsonUtils.optString import com.stripe.android.core.model.parsers.ModelJsonParser import com.stripe.android.core.model.parsers.ModelJsonParser.Companion.jsonArrayToList import com.stripe.a...
<|turn>user Implement the native Android class `DeferredSetupIntentJsonParser` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: payments-core/src/main/java/com/stripe/android/model/parsers/DeferredSetupIntentJsonParser.kt Language: Kotlin...
Implement the native Android class `PublicChatChannel` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/vitorpamplona/amethyst/model/Channel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.vitorpamplona.amethyst.model import androidx.compose.runtime.Stable import androidx.lifecycle.LiveData import com.vitorpamplona.amethyst.service.NostrSingleChannelDataSource import com.vitorpamplona.amethyst.service.checkNotInMainThread import com.vitorpamplona.amethyst.service.model.ATag import ...
<|turn>user Implement the native Android class `PublicChatChannel` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/vitorpamplona/amethyst/model/Channel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kot...
Implement the native Android class `MapFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/net/voussoir/trkpt/MapFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * MapFragment.kt * Implements the MapFragment fragment * A MapFragment displays a map using osmdroid as well as the controls to start / stop a recording * * This file is part of * TRACKBOOK - Movement Recorder for Android * * Copyright (c) 2016-22 - Y20K.org * Licensed under the MIT-License * htt...
<|turn>user Implement the native Android class `MapFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/net/voussoir/trkpt/MapFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<t...
Implement the native Android class `used` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: screenmanager/dm/screenmanager-displaymask/src/main/java/com/microsoft/device/dualscreen/ScreenManagerProvider.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ package com.microsoft.device.dualscreen import android.app.Application import java.lang.IllegalStateException /** * Utility class used to initialize and retrieve [SurfaceDuoScreenManager] object. */ o...
<|turn>user Implement the native Android class `used` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: screenmanager/dm/screenmanager-displaymask/src/main/java/com/microsoft/device/dualscreen/ScreenManagerProvider.kt Language: Kotlin Fram...
Implement the native Android class `BaseTokenManager` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/io/horizontalsystems/bankwallet/core/managers/BaseTokenManager.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.deus.wallet.core.managers import io.deus.wallet.core.ICoinManager import io.deus.wallet.core.ILocalStorage import io.horizontalsystems.marketkit.models.BlockchainType import io.horizontalsystems.marketkit.models.Token import io.horizontalsystems.marketkit.models.TokenQuery import io.horizontalsyst...
<|turn>user Implement the native Android class `BaseTokenManager` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/io/horizontalsystems/bankwallet/core/managers/BaseTokenManager.kt Language: Kotlin Framework: AndroidX / ...
Provide the native Android implementation for `SendView.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: demo-app/src/main/java/cash/z/ecc/android/sdk/demoapp/ui/screen/send/view/SendView.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package cash.z.ecc.android.sdk.demoapp.ui.screen.send.view import androidx.compose.foundation.horizontalScroll import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Space...
<|turn>user Provide the native Android implementation for `SendView.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: demo-app/src/main/java/cash/z/ecc/android/sdk/demoapp/ui/screen/send/view/SendView.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines...
Implement the Android ViewModel `TriviaPlayViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: app/src/main/java/com/yeahush/quickquest/ui/trivia/TriviaPlayViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.yeahush.quickquest.ui.trivia import android.os.CountDownTimer import android.os.Handler import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.Transformations import androidx.lifecycle.ViewModel import com.yeahush.quickquest.data.local.prefs.AppPref...
<|turn>user Implement the Android ViewModel `TriviaPlayViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: app/src/main/java/com/yeahush/quickquest/ui/trivia/TriviaPlayViewMode...
Provide the native Android implementation for `RxRatingBar.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: rxbinding-kotlin/src/main/kotlin/com/jakewharton/rxbinding2/widget/RxRatingBar.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.jakewharton.rxbinding2.widget import android.widget.RatingBar import io.reactivex.Observable import io.reactivex.functions.Consumer /** * Create an observable of the rating changes on `view`. * * *Warning:* The created observable keeps a strong reference to `view`. Unsubscribe * to free this...
<|turn>user Provide the native Android implementation for `RxRatingBar.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: rxbinding-kotlin/src/main/kotlin/com/jakewharton/rxbinding2/widget/RxRatingBar.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<...
Implement the native Android class `DatabaseModule` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: data/src/main/java/com/ravnnerdery/data/di/DatabaseModule.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.ravnnerdery.data.di import android.content.Context import androidx.room.Room import com.ravnnerdery.data.database.DatabaseDao import com.ravnnerdery.data.database.DbWrapper import com.ravnnerdery.data.database.DbWrapperImpl import com.ravnnerdery.data.database.MessagesDatabase import dagger.Modul...
<|turn>user Implement the native Android class `DatabaseModule` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: data/src/main/java/com/ravnnerdery/data/di/DatabaseModule.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin ...
Implement the native Android class `RecipeModel` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/reciepe_app_kt/domain/model/Recipe.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package xyz.teamgravity.composerecipeapp.model import android.os.Parcelable import kotlinx.parcelize.Parcelize @Parcelize data class RecipeModel( val id: Int? = null, val title: String? = null, val publisher: String? = null, val featuredImage: String? = null, val rating: Int? = 0, v...
<|turn>user Implement the native Android class `RecipeModel` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/reciepe_app_kt/domain/model/Recipe.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kot...
Implement the native Android class `IntroActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/ir/mahdi/circulars/IntroActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package ir.mahdi.circulars import android.content.Context import android.content.Intent import android.os.Bundle import android.view.ViewGroup.LayoutParams.WRAP_CONTENT import android.view.Window import android.view.WindowManager import android.widget.ImageView import android.widget.LinearLayout import andro...
<|turn>user Implement the native Android class `IntroActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/ir/mahdi/circulars/IntroActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutin...
Implement the Android ViewModel `ForecastViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: app/src/main/java/com/example/androiddevchallenge/models/ForecastViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2021 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
<|turn>user Implement the Android ViewModel `ForecastViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: app/src/main/java/com/example/androiddevchallenge/models/ForecastViewMo...
Implement the native Android class `RxHttpGenerator` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: rxhttp-compiler/src/main/java/com/rxhttp/compiler/ksp/RxHttpGenerator.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.rxhttp.compiler.ksp import com.google.devtools.ksp.KspExperimental import com.google.devtools.ksp.processing.CodeGenerator import com.google.devtools.ksp.processing.Dependencies import com.google.devtools.ksp.processing.KSPLogger import com.google.devtools.ksp.symbol.KSFile import com.rxhttp.comp...
<|turn>user Implement the native Android class `RxHttpGenerator` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: rxhttp-compiler/src/main/java/com/rxhttp/compiler/ksp/RxHttpGenerator.kt Language: Kotlin Framework: AndroidX / Jetpack Comp...
Implement the native Android class `RetrofitModule` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: retrofit2/src/main/java/com/rui/retrofit2/module/RetrofitModule.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (C) 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
<|turn>user Implement the native Android class `RetrofitModule` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: retrofit2/src/main/java/com/rui/retrofit2/module/RetrofitModule.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / K...
Implement the native Android class `SelectDevicesFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/jsom/dentgame/SelectDevicesFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.jsom.dentgame import android.Manifest import android.R import android.bluetooth.BluetoothManager import android.content.Context import android.content.pm.PackageManager import android.os.Build import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view...
<|turn>user Implement the native Android class `SelectDevicesFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/jsom/dentgame/SelectDevicesFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / ...
Implement the native Android class `UserPreferences` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/satu/data/local/UserPreferences.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.satu.data.local import android.content.Context import androidx.datastore.core.DataStore import androidx.datastore.preferences.core.Preferences import androidx.datastore.preferences.core.edit import androidx.datastore.preferences.core.stringPreferencesKey import androidx.datastore.preferen...
<|turn>user Implement the native Android class `UserPreferences` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/satu/data/local/UserPreferences.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Ko...
Provide the native Android implementation for `ErrorHandler.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: app/src/main/kotlin/com/fpliu/newton/video/player/sample/ErrorHandler.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.fpliu.newton.video.player.sample import android.text.TextUtils import com.fpliu.newton.log.Logger import com.fpliu.newton.util.appContext import com.umeng.analytics.MobclickAgent object ErrorHandler { private val TAG = ErrorHandler::class.java.simpleName fun onError(e: Throwable, extra...
<|turn>user Provide the native Android implementation for `ErrorHandler.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: app/src/main/kotlin/com/fpliu/newton/video/player/sample/ErrorHandler.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <...
Design a reactive Android Room DAO interface `MutationDao` in Kotlin. Provide reactive Coroutine Flow queries, upsert capabilities, and transaction safety.
Repository path: offix/src/main/java/org/aerogear/offix/persistence/MutationDao.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package org.aerogear.offix.persistence import android.arch.persistence.room.* @Dao interface MutationDao { @Insert(onConflict = OnConflictStrategy.REPLACE) fun insertMutation(mutation: Mutation): Long @Delete fun deleteMutation(mutation: Mutation) @Query("SELECT * FROM MutationOffline...
<|turn>user Design a reactive Android Room DAO interface `MutationDao` in Kotlin. Provide reactive Coroutine Flow queries, upsert capabilities, and transaction safety. Context: Repository path: offix/src/main/java/org/aerogear/offix/persistence/MutationDao.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Ko...
Provide the native Android implementation for `About.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: feature/about/view/implementation/src/main/kotlin/com/savvasdalkitsis/uhuruphotos/feature/about/view/implementation/ui/About.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* Copyright 2023 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwar...
<|turn>user Provide the native Android implementation for `About.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: feature/about/view/implementation/src/main/kotlin/com/savvasdalkitsis/uhuruphotos/feature/about/view/implementation/ui/About.kt Language: Kotlin Framework: Android...
Implement the native Android class `BroadCastFinishedDialog` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/malibin/morse/presentation/viewer/BroadCastFinishedDialog.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.malibin.morse.presentation.viewer import android.app.Dialog import android.content.Context import android.os.Bundle import com.malibin.morse.R import com.malibin.morse.databinding.DialogBroadcastFinishBinding /** * Created By Malibin * on 2월 05, 2021 */ class BroadCastFinishedDialog(context:...
<|turn>user Implement the native Android class `BroadCastFinishedDialog` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/malibin/morse/presentation/viewer/BroadCastFinishedDialog.kt Language: Kotlin Framework: Andro...
Implement the native Android class `CyaneaDelegateImplV24` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: library/src/main/java/com/jaredrummler/cyanea/delegate/CyaneaDelegateImplV24.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (C) 2018 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
<|turn>user Implement the native Android class `CyaneaDelegateImplV24` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: library/src/main/java/com/jaredrummler/cyanea/delegate/CyaneaDelegateImplV24.kt Language: Kotlin Framework: AndroidX /...
Implement the native Android class `SplashFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/daya/taha/presentation/splash/SplashFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.daya.taha.presentation.splash import android.os.Bundle import android.view.View import androidx.fragment.app.Fragment import androidx.fragment.app.viewModels import androidx.lifecycle.lifecycleScope import androidx.navigation.fragment.findNavController import com.daya.shared.taha.data.Resource im...
<|turn>user Implement the native Android class `SplashFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/daya/taha/presentation/splash/SplashFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose ...
Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: samples/tictactoe/app/src/main/java/com/squareup/sample/mainactivity/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2017 Square Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
<|turn>user Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: samples/tictactoe/app/src/main/java/com/squareup/sample/mainactivity/MainActivity.kt Language: Kotlin Framework: AndroidX / Jet...
Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `BottomNavItem` using Kotlinx Serialization.
Repository path: app/src/main/java/com/samkt/filmio/navigation/BottomNavItems.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.samkt.filmio.navigation import androidx.annotation.DrawableRes import com.samkt.filmio.R data class BottomNavItem( val label: String, val screen: Screens, @DrawableRes val unselectedIcon: Int, @DrawableRes val selectedIcon: Int ) val navigationItems = listOf( BottomNavItem( ...
<|turn>user Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `BottomNavItem` using Kotlinx Serialization. Context: Repository path: app/src/main/java/com/samkt/filmio/navigation/BottomNavItems.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|...
Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `TwoPaneAdapter` using Kotlinx Serialization.
Repository path: navigation/integration-tests/testapp/src/main/java/androidx/navigation/testapp/TwoPaneAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2021 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
<|turn>user Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `TwoPaneAdapter` using Kotlinx Serialization. Context: Repository path: navigation/integration-tests/testapp/src/main/java/androidx/navigation/testapp/TwoPaneAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack...
Implement the native Android class `OpenTokPlugin` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: android/src/main/kotlin/com/vonage/tutorial/opentok/opentok_flutter_samples/OpenTokPlugin.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.vonage.tutorial.opentok.opentok_flutter_samples import android.os.Handler import android.os.Looper import androidx.annotation.NonNull import com.pcnc2000.flutter_open_tok_video_chat.archiving.Archiving import com.pcnc2000.flutter_open_tok_video_chat.archiving.ArchivingFactory import io.flutter.em...
<|turn>user Implement the native Android class `OpenTokPlugin` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: android/src/main/kotlin/com/vonage/tutorial/opentok/opentok_flutter_samples/OpenTokPlugin.kt Language: Kotlin Framework: Andro...
Implement the native Android class `RecomposeHighlighterElement` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: compose/recomposehighlighter/src/main/java/com/example/android/compose/recomposehighlighter/RecomposeHighlighter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2022 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
<|turn>user Implement the native Android class `RecomposeHighlighterElement` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: compose/recomposehighlighter/src/main/java/com/example/android/compose/recomposehighlighter/RecomposeHighlighter...
Implement the native Android class `InstallmentChooserFragmentTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: sdk/src/androidTest/java/co/omise/android/ui/InstallmentChooserFragmentTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package co.omise.android.ui import androidx.test.core.app.ActivityScenario import androidx.test.espresso.Espresso.onView import androidx.test.espresso.action.ViewActions.click import androidx.test.espresso.assertion.ViewAssertions.matches import androidx.test.espresso.matcher.ViewMatchers.hasDescendant impor...
<|turn>user Implement the native Android class `InstallmentChooserFragmentTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: sdk/src/androidTest/java/co/omise/android/ui/InstallmentChooserFragmentTest.kt Language: Kotlin Framework: An...
Implement the native Android class `SoundClassifier` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: lite/examples/sound_classification/android/app/src/main/java/org/tensorflow/lite/examples/soundclassifier/SoundClassifier.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2020 The TensorFlow Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Un...
<|turn>user Implement the native Android class `SoundClassifier` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: lite/examples/sound_classification/android/app/src/main/java/org/tensorflow/lite/examples/soundclassifier/SoundClassifier.kt...