instruction
stringlengths
113
251
input
stringlengths
98
353
output
stringlengths
135
454k
text
stringlengths
443
454k
Provide the native Android implementation for `CrashGrabber.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: lib/src/main/java/io/ashkay/crashgrabber/api/CrashGrabber.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.ashkay.crashgrabber.api import android.content.Context import android.content.Intent import android.content.pm.ShortcutInfo import android.content.pm.ShortcutManager import android.graphics.drawable.Icon import android.os.Build import android.util.Log import androidx.core.content.getSystemService ...
<|turn>user Provide the native Android implementation for `CrashGrabber.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: lib/src/main/java/io/ashkay/crashgrabber/api/CrashGrabber.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>model ...
Provide the native Android implementation for `Basic.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: compiler-plugin-ksp/src/main/kotlin/com/ing/zkflow/processors/serialization/hierarchy/types/Basic.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.ing.zkflow.processors.serialization.hierarchy.types import com.google.devtools.ksp.symbol.KSTypeReference import com.ing.zkflow.processors.serialization.hierarchy.SerializingHierarchy import com.ing.zkflow.serialization.serializer.WrappedFixedLengthKSerializerWithDefault import com.ing.zkflow.tra...
<|turn>user Provide the native Android implementation for `Basic.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: compiler-plugin-ksp/src/main/kotlin/com/ing/zkflow/processors/serialization/hierarchy/types/Basic.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotli...
Implement the native Android class `EditActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/fuelrecords/EditActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.fuelrecords import android.content.Context import android.content.Intent import android.content.SharedPreferences import android.os.Bundle import android.view.View import android.widget.AdapterView import android.widget.ArrayAdapter import androidx.appcompat.app.AppCompatActivity import a...
<|turn>user Implement the native Android class `EditActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/fuelrecords/EditActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Corou...
Implement the native Android class `CustomDimens` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: Code/core/presentation/designsystem/src/main/java/com/istudio/core/presentation/designsystem/dimen/CustomDimens.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.istudio.core.presentation.designsystem.dimen import androidx.compose.material3.windowsizeclass.WindowSizeClass import androidx.compose.material3.windowsizeclass.WindowWidthSizeClass import androidx.compose.runtime.staticCompositionLocalOf import com.istudio.core.presentation.designsystem.dimen.sc...
<|turn>user Implement the native Android class `CustomDimens` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: Code/core/presentation/designsystem/src/main/java/com/istudio/core/presentation/designsystem/dimen/CustomDimens.kt Language: Ko...
Implement the Android ViewModel `SettingsViewModel` 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/mcard/domain/viewModels/basic/other/SettingsViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.mcard.domain.viewModels.basic.other import androidx.lifecycle.LifecycleOwner import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import com.example.mcard.R import com.example.mcard.domain.models.basic.other.SettingsModel import com.example.mcard.repository.di.AppC...
<|turn>user Implement the Android ViewModel `SettingsViewModel` 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/mcard/domain/viewModels/basic/other/Setti...
Provide the native Android implementation for `BaseAdapterCallBack.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: app/src/main/java/com/example/project_music/adapters/base_adapters/BaseAdapterCallBack.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.project_music.adapters.base_adapters import android.view.View interface BaseAdapterCallBack<T> { fun onItemClick(model: T, view: View) fun onLongClick(model: T, view: View) } ```
<|turn>user Provide the native Android implementation for `BaseAdapterCallBack.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: app/src/main/java/com/example/project_music/adapters/base_adapters/BaseAdapterCallBack.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Ko...
Implement the native Android class `MakeReservationFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/libbit/MakeReservationFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.libbit import android.R import android.app.AlertDialog import android.app.DatePickerDialog import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.ArrayAdapter import android.widget.Spinner import android.wid...
<|turn>user Implement the native Android class `MakeReservationFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/libbit/MakeReservationFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compo...
Provide the native Android implementation for `VehicleModule.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: feature/core/src/main/kotlin/com/masselis/tpmsadvanced/core/feature/ioc/VehicleModule.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.masselis.tpmsadvanced.core.feature.ioc import com.masselis.tpmsadvanced.core.feature.usecase.VehicleStateFlowUseCase import com.masselis.tpmsadvanced.data.car.model.Vehicle import dagger.Module import dagger.Provides import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.SupervisorJob...
<|turn>user Provide the native Android implementation for `VehicleModule.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: feature/core/src/main/kotlin/com/masselis/tpmsadvanced/core/feature/ioc/VehicleModule.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Co...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `backgroundGradient`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: android-core/designsystem/src/main/kotlin/com/thomaskioko/tvmaniac/compose/theme/Colors.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.thomaskioko.tvmaniac.compose.theme import androidx.compose.material3.MaterialTheme import androidx.compose.runtime.Composable import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.compositeOver import androidx.compose.ui.graphics.luminance import kotlin.math.max import kot...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `backgroundGradient`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: android-core/designsystem/src/main/kotlin/com/thomaskioko/tvmaniac/compose/theme/Colo...
Implement the Android ViewModel `ViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: sample/src/commonMain/kotlin/com/dokar/sonner/sample/ViewModelSample.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") package com.dokar.sonner.sample import androidx.compose.foundation.background import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.ExperimentalLayoutApi impor...
<|turn>user Implement the Android ViewModel `ViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: sample/src/commonMain/kotlin/com/dokar/sonner/sample/ViewModelSample.kt Languag...
Implement the native Android class `VerticalPagerTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: pager/src/androidTest/java/com/google/accompanist/pager/VerticalPagerTest.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 native Android class `VerticalPagerTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: pager/src/androidTest/java/com/google/accompanist/pager/VerticalPagerTest.kt Language: Kotlin Framework: AndroidX / Jetpac...
Implement the Android ViewModel `NotificationPermissionViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: example/shared/src/androidMain/kotlin/com/splendo/kaluga/example/shared/viewmodel/permissions/NotificationPermissionViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* Copyright 2023 Splendo Consulting B.V. The Netherlands 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 require...
<|turn>user Implement the Android ViewModel `NotificationPermissionViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: example/shared/src/androidMain/kotlin/com/splendo/kaluga/...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `TabHeader`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/axondragonscale/wallmatic/ui/common/TabHeader.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.axondragonscale.wallmatic.ui.common import android.content.res.Configuration import androidx.compose.foundation.background import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.com...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `TabHeader`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/axondragonscale/wallmatic/ui/common/TabHeader.kt Language: Kotlin Framew...
Provide the native Android implementation for `StarEdit.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/regular/StarEdit.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.konyaco.fluent.icons.regular import androidx.compose.ui.graphics.vector.ImageVector import com.konyaco.fluent.icons.Icons import com.konyaco.fluent.icons.fluentIcon import com.konyaco.fluent.icons.fluentPath public val Icons.Regular.StarEdit: ImageVector get() { if (_starEdit != nu...
<|turn>user Provide the native Android implementation for `StarEdit.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/regular/StarEdit.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Corouti...
Implement the native Android class `ActivityShopListFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/tekfoods/features/activities/presentation/ActivityShopListFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.bengaldetergentfsm.features.activities.presentation import android.content.Context import android.os.Bundle import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView import android.text.TextUtils import android.view.LayoutInflater import android.view...
<|turn>user Implement the native Android class `ActivityShopListFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/tekfoods/features/activities/presentation/ActivityShopListFragment.kt Language: Kotlin Framew...
Implement the native Android class `UgcDetailAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/funs/eye/ui/community/commend/detail/UgcDetailAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.funs.eye.ui.community.commend.detail import android.view.View import android.view.ViewGroup import android.widget.FrameLayout import android.widget.ImageView import android.widget.LinearLayout import android.widget.TextView import androidx.recyclerview.widget.RecyclerView import androidx.viewpage...
<|turn>user Implement the native Android class `UgcDetailAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/funs/eye/ui/community/commend/detail/UgcDetailAdapter.kt Language: Kotlin Framework: AndroidX / Jetpa...
Implement the native Android class `JsInteractionActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/android_study/android/webview/interaction/js_call_android/JsInteractionActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.android_study.android.webview.interaction.js_call_android import android.os.Bundle import com.example.android_study.R import com.example.android_study._base.BaseActivity import kotlinx.android.synthetic.main.activity_android_webview_interaction_js_call.* class JsInteractionActivity : Bas...
<|turn>user Implement the native Android class `JsInteractionActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/android_study/android/webview/interaction/js_call_android/JsInteractionActivity.kt Langu...
Implement the native Android class `AddCollectionRepo` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/kcteam/features/shopdetail/presentation/api/addcollection/AddCollectionRepo.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.breezefsmparas.features.shopdetail.presentation.api.addcollection import android.content.Context import android.net.Uri import android.text.TextUtils import com.breezefsmparas.app.FileUtils import com.breezefsmparas.base.BaseResponse import com.breezefsmparas.features.dashboard.presentation.Dashb...
<|turn>user Implement the native Android class `AddCollectionRepo` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/kcteam/features/shopdetail/presentation/api/addcollection/AddCollectionRepo.kt Language: Kotlin Fram...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `MonetColorItem`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/hfut/schedule/ui/Activity/success/cube/Settings/Monet/MonetColorItem.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.hfut.schedule.ui.ComposeUI.Settings.Monet import android.annotation.SuppressLint import androidx.compose.animation.AnimatedVisibility import androidx.compose.animation.expandVertically import androidx.compose.animation.fadeIn import androidx.compose.animation.fadeOut import androidx.compose.anima...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `MonetColorItem`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/hfut/schedule/ui/Activity/success/cube/Settings/Monet/MonetColorIte...
Implement the native Android class `HolderMessageTo` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/id/dtprsty/chatttoy/main/adapter/HolderMessageTo.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package id.dtprsty.chatttoy.main.adapter import android.view.View import androidx.recyclerview.widget.RecyclerView import com.bumptech.glide.Glide import com.bumptech.glide.request.RequestOptions import id.dtprsty.chatttoy.R import id.dtprsty.chatttoy.data.Message import id.dtprsty.chatttoy.data.UserInfo imp...
<|turn>user Implement the native Android class `HolderMessageTo` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/id/dtprsty/chatttoy/main/adapter/HolderMessageTo.kt Language: Kotlin Framework: AndroidX / Jetpack Compose...
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/readbeard/openbrewery/app/App.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.readbeard.openbrewery.app import android.app.Application import dagger.hilt.android.HiltAndroidApp import timber.log.Timber @HiltAndroidApp class App : Application() { override fun onCreate() { super.onCreate() if (BuildConfig.DEBUG) { Timber.plant(Timber.DebugTre...
<|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/readbeard/openbrewery/app/App.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>...
Provide the native Android implementation for `DataStore.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: network/src/main/java/androidx/essentials/network/DataStore.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package androidx.essentials.network import androidx.datastore.core.DataStore import androidx.datastore.preferences.core.* import androidx.lifecycle.MediatorLiveData import androidx.lifecycle.asLiveData import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.flow.map import kotlinx.coroutines.launc...
<|turn>user Provide the native Android implementation for `DataStore.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: network/src/main/java/androidx/essentials/network/DataStore.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>model `...
Provide the native Android implementation for `LocalARAdapter.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: newcall_library/src/main/java/com/cmcc/newcalllib/adapter/ar/local/LocalARAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (c) 2022 China Mobile Communications Group Co.,Ltd. All rights reserved. * * Licensed under the XXXX License, Version X.X (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://xxxxxxx/licenses/LICENSE-X.X...
<|turn>user Provide the native Android implementation for `LocalARAdapter.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: newcall_library/src/main/java/com/cmcc/newcalllib/adapter/ar/local/LocalARAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Corou...
Design a reactive Android Room DAO interface `BaseDao` in Kotlin. Provide reactive Coroutine Flow queries, upsert capabilities, and transaction safety.
Repository path: app/src/main/java/com/meuus90/imagesearch/model/data/source/local/BaseDao.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.meuus90.daumbooksearch.model.data.source.local import androidx.room.Delete import androidx.room.Insert import androidx.room.OnConflictStrategy import androidx.room.Update interface BaseDao<T> { @Insert(onConflict = OnConflictStrategy.REPLACE) suspend fun insert(vararg obj: T) @Inser...
<|turn>user Design a reactive Android Room DAO interface `BaseDao` in Kotlin. Provide reactive Coroutine Flow queries, upsert capabilities, and transaction safety. Context: Repository path: app/src/main/java/com/meuus90/imagesearch/model/data/source/local/BaseDao.kt Language: Kotlin Framework: AndroidX / Jetpack Compo...
Implement the native Android class `ElectionsFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/android/politicalpreparedness/election/ElectionsFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.android.politicalpreparedness.election import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import androidx.navigation.fragment.findNavController import com.example.android.politicalprepare...
<|turn>user Implement the native Android class `ElectionsFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/android/politicalpreparedness/election/ElectionsFragment.kt Language: Kotlin Framework: Andr...
Provide the native Android implementation for `PlaylistFixtures.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: media/src/test/kotlin/fr/nihilus/music/media/playlists/PlaylistFixtures.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2022 Thibault Seisel * * 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 Provide the native Android implementation for `PlaylistFixtures.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: media/src/test/kotlin/fr/nihilus/music/media/playlists/PlaylistFixtures.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<tu...
Provide the native Android implementation for `PlaylistFixtures.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: media/src/test/kotlin/fr/nihilus/music/media/playlists/PlaylistFixtures.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2022 Thibault Seisel * * 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 Provide the native Android implementation for `PlaylistFixtures.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: media/src/test/kotlin/fr/nihilus/music/media/playlists/PlaylistFixtures.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<tu...
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/scnr/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.scnr import android.os.Bundle import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentActivity import androidx.lifecycle.ViewModelProvider import androidx.viewpager2.adapter.FragmentStateAdapter import androidx.viewpager2.widget.ViewPager2 import com.scnr.ui.CameraXFragment 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/scnr/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|...
Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: sample/androidApp/src/main/java/com/attafitamim/kabin/sample/android/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.attafitamim.kabin.sample.android import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import com.attafitamim.kabin.core.database.KabinDatabaseConfiguration import com.attafitamim.kabin.local.Playground class MainActivity : AppCompatActivity() { private val playground: Pl...
<|turn>user Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: sample/androidApp/src/main/java/com/attafitamim/kabin/sample/android/MainActivity.kt Language: Kotlin Framework: AndroidX / Jet...
Implement the native Android class `LayoutVariables` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: constraintlayout/compose/src/main/java/androidx/constraintlayout/compose/ConstraintSetParser.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 Implement the native Android class `LayoutVariables` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: constraintlayout/compose/src/main/java/androidx/constraintlayout/compose/ConstraintSetParser.kt Language: Kotlin Framework: ...
Implement the native Android class `GrapheneClientConfigBuilder` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: src/main/java/graphene/rpc/Clients.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package graphene.rpc import graphene.app.API import graphene.app.APIType import graphene.extension.info import graphene.serializers.GRAPHENE_JSON_PLATFORM_SERIALIZER import io.ktor.client.* import io.ktor.client.engine.cio.* import io.ktor.client.plugins.contentnegotiation.* import io.ktor.client.plugins.web...
<|turn>user Implement the native Android class `GrapheneClientConfigBuilder` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: src/main/java/graphene/rpc/Clients.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `DownloadFeature`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: libraries/splitfeature/src/main/java/com/lgdevs/splitfeature/DownloadFeature.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.lgdevs.splitfeature import android.util.Log import androidx.compose.foundation.layout.* import androidx.compose.material.AlertDialog import androidx.compose.material.CircularProgressIndicator import androidx.compose.material.Text import androidx.compose.runtime.* import androidx.compose.runtime.s...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `DownloadFeature`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: libraries/splitfeature/src/main/java/com/lgdevs/splitfeature/DownloadFeature.kt Language...
Design a reactive Android Room DAO interface `GiveawayDao` in Kotlin. Provide reactive Coroutine Flow queries, upsert capabilities, and transaction safety.
Repository path: app/src/main/java/ru/iddqdpwn/vkonkurse/local/db/dao/GiveawayDao.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package ru.iddqdpwn.vkonkurse.local.db.dao import androidx.lifecycle.LiveData import androidx.room.* import ru.iddqdpwn.vkonkurse.local.db.model.Giveaway @Dao interface GiveawayDao { @Insert(onConflict = OnConflictStrategy.REPLACE) fun insert(giveaway: Giveaway) @Delete fun delete(giveaway:...
<|turn>user Design a reactive Android Room DAO interface `GiveawayDao` in Kotlin. Provide reactive Coroutine Flow queries, upsert capabilities, and transaction safety. Context: Repository path: app/src/main/java/ru/iddqdpwn/vkonkurse/local/db/dao/GiveawayDao.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / ...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `FilterSelector`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/kotlin/com/dot/gallery/feature_node/presentation/edit/components/filters/FilterSelector.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.dot.gallery.feature_node.presentation.edit.components.filters import androidx.compose.animation.animateColorAsState import androidx.compose.animation.core.animateDpAsState import androidx.compose.foundation.Image import androidx.compose.foundation.border import androidx.compose.foundation.clickab...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `FilterSelector`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/kotlin/com/dot/gallery/feature_node/presentation/edit/components/filters/Fil...
Implement the native Android class `VideosRepo` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/gms/app/repo/videos/VideosRepo.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.gms.app.repo.videos import android.util.Log import com.gms.app.data.storage.local.PreferencesHelper import com.gms.app.data.storage.local.db.AppDao import com.gms.app.data.storage.remote.model.auth.CountryModel import com.gms.app.data.storage.remote.model.auth.GenderModel import com.gms.app.data....
<|turn>user Implement the native Android class `VideosRepo` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/gms/app/repo/videos/VideosRepo.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutine...
Implement the native Android class `NodeListActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/io/wookey/wallet/feature/setting/NodeListActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.wookey.wallet.feature.setting import android.app.Activity import android.arch.lifecycle.Observer import android.arch.lifecycle.ViewModelProviders import android.content.Intent import android.net.Uri import android.os.Bundle import android.support.v4.content.ContextCompat import android.support.v7....
<|turn>user Implement the native Android class `NodeListActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/io/wookey/wallet/feature/setting/NodeListActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compo...
Provide the native Android implementation for `CpuUtils.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: android/fedmlsdk/src/main/java/ai/fedml/edge/utils/CpuUtils.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package ai.fedml.edge.utils import android.os.Build import android.text.TextUtils import java.io.BufferedReader import java.io.IOException import java.io.InputStreamReader import java.io.RandomAccessFile object CpuUtil { private var mProcStatFile: RandomAccessFile? = null private var mAppStatFile: R...
<|turn>user Provide the native Android implementation for `CpuUtils.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: android/fedmlsdk/src/main/java/ai/fedml/edge/utils/CpuUtils.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>model ``...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `AppDesktopPreview`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: composeApp/src/desktopMain/kotlin/main.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin import androidx.compose.desktop.ui.tooling.preview.Preview import androidx.compose.runtime.Composable import androidx.compose.ui.window.Window import androidx.compose.ui.window.application fun main() = application { Window(onCloseRequest = ::exitApplication, title = "kotlin-multiplatform") { App(...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `AppDesktopPreview`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: composeApp/src/desktopMain/kotlin/main.kt Language: Kotlin Framework: AndroidX / Jetpa...
Implement the native Android class `FirebaseUsersRepository` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/alexbezhan/instagram/data/firebase/FirebaseUsersRepository.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.app.instagram.data.firebase import android.net.Uri import androidx.lifecycle.LiveData import com.app.instagram.common.Event import com.app.instagram.common.EventBus import com.app.instagram.common.task import com.app.instagram.common.toUnit import com.app.instagram.data.UsersRepository import com...
<|turn>user Implement the native Android class `FirebaseUsersRepository` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/alexbezhan/instagram/data/firebase/FirebaseUsersRepository.kt Language: Kotlin Framework: Andr...
Implement the native Android class `FirebaseUsersRepository` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/alexbezhan/instagram/data/firebase/FirebaseUsersRepository.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.app.instagram.data.firebase import android.net.Uri import androidx.lifecycle.LiveData import com.app.instagram.common.Event import com.app.instagram.common.EventBus import com.app.instagram.common.task import com.app.instagram.common.toUnit import com.app.instagram.data.UsersRepository import com...
<|turn>user Implement the native Android class `FirebaseUsersRepository` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/alexbezhan/instagram/data/firebase/FirebaseUsersRepository.kt Language: Kotlin Framework: Andr...
Implement the native Android class `LikeMsgAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/cn/cqautotest/sunnybeach/ui/adapter/msg/LikeMsgAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package cn.cqautotest.sunnybeach.ui.adapter.msg import android.annotation.SuppressLint import android.view.ViewGroup import androidx.core.text.parseAsHtml import androidx.paging.PagingDataAdapter import androidx.recyclerview.widget.RecyclerView import cn.cqautotest.sunnybeach.databinding.LikeMsgListItemBindi...
<|turn>user Implement the native Android class `LikeMsgAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/cn/cqautotest/sunnybeach/ui/adapter/msg/LikeMsgAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Co...
Implement the Android ViewModel `CharacterDetailViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: ui/src/main/java/com/mpapps/marvelcompose/ui/views/character/viewmodel/CharacterDetailViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.mpapps.marvelcompose.ui.views.character.viewmodel import android.net.Uri import androidx.lifecycle.viewModelScope import com.google.gson.Gson import com.mpapps.marvelcompose.domain.model.Characters import com.mpapps.marvelcompose.domain.usecase.GetComicFromCharacterUseCase import com.mpapps.marve...
<|turn>user Implement the Android ViewModel `CharacterDetailViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: ui/src/main/java/com/mpapps/marvelcompose/ui/views/character/vie...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `AsyncImage`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: zoomimage-compose-sketch/src/main/java/com/github/panpf/zoomimage/compose/sketch/internal/AsyncImage.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.github.panpf.sketch.compose import androidx.compose.runtime.Composable import androidx.compose.runtime.NonRestartableComposable import androidx.compose.runtime.Stable import androidx.compose.runtime.remember import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx....
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `AsyncImage`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: zoomimage-compose-sketch/src/main/java/com/github/panpf/zoomimage/compose/sketch/internal/Asy...
Implement the Android ViewModel `HoneViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: android-compose/inventory-app/app/src/main/java/com/example/inventory/ui/home/HomeViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.notas.inventory import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.notas.inventory.data.Item import com.notas.inventory.data.ItemsRepository import kotlinx.coroutines.flow.SharingStarted import kotlinx.coroutines.flow.StateFlow import kotlinx.coroutines.flow.m...
<|turn>user Implement the Android ViewModel `HoneViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: android-compose/inventory-app/app/src/main/java/com/example/inventory/ui/ho...
Implement the native Android class `SplashScreen` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/adematici/covidturkey/activity/SplashScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.adematici.covidturkey.activity import android.content.Intent import android.os.Build import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.os.Handler import android.os.Looper import android.view.WindowInsets import android.view.WindowManager import com.adematici....
<|turn>user Implement the native Android class `SplashScreen` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/adematici/covidturkey/activity/SplashScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / K...
Provide the native Android implementation for `KotlinExt.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: common/src/main/java/com/edgeverse/wallet/common/utils/KotlinExt.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.edgeverse.wallet.common.utils import android.net.Uri import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Deferred import kotlinx.coroutines.async import java.io.InputStream import java.math.BigDecimal import java.math.BigInteger import java.util.concurrent.TimeUnit private val PER...
<|turn>user Provide the native Android implementation for `KotlinExt.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: common/src/main/java/com/edgeverse/wallet/common/utils/KotlinExt.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>mo...
Implement the native Android class `NetworksFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/me/stanis/apps/minwos/ui/fragments/networks/NetworksFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2020 Google LLC * * 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 by applicable law or ...
<|turn>user Implement the native Android class `NetworksFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/me/stanis/apps/minwos/ui/fragments/networks/NetworksFragment.kt Language: Kotlin Framework: AndroidX / Je...
Implement the native Android class `AddBillingRepo` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/kcteam/features/billing/api/AddBillingRepo.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.keshavindustryfsm.features.billing.api import android.content.Context import android.net.Uri import com.fasterxml.jackson.databind.ObjectMapper import com.keshavindustryfsm.app.FileUtils import com.keshavindustryfsm.base.BaseResponse import com.keshavindustryfsm.features.billing.model.AddBillingI...
<|turn>user Implement the native Android class `AddBillingRepo` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/kcteam/features/billing/api/AddBillingRepo.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / ...
Implement the native Android class `ScrapDialog` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: AOS/RunWithMe/app/src/main/java/com/ssafy/runwithme/view/recommend/ScrapDialog.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.ssafy.runwithme.view.recommend import android.app.Dialog import android.content.Context import android.graphics.Color import android.graphics.drawable.ColorDrawable import android.os.Bundle import android.view.LayoutInflater import android.view.View import androidx.databinding.DataBindingUtil imp...
<|turn>user Implement the native Android class `ScrapDialog` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: AOS/RunWithMe/app/src/main/java/com/ssafy/runwithme/view/recommend/ScrapDialog.kt Language: Kotlin Framework: AndroidX / Jetpack...
Implement the native Android class `PeopleDetailAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: vector/src/main/java/im/vector/directory/people/detail/PeopleDetailAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package im.vector.directory.people.detail import android.content.Context import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import androidx.recyclerview.widget.RecyclerView import im.vector.Matrix import im.vector.R import im.vector.direct...
<|turn>user Implement the native Android class `PeopleDetailAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: vector/src/main/java/im/vector/directory/people/detail/PeopleDetailAdapter.kt Language: Kotlin Framework: AndroidX / Jet...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `NoteScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: feature/note/src/main/java/com/teamwiney/notecollection/NoteScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.teamwiney.notecollection import androidx.activity.compose.BackHandler import androidx.compose.foundation.BorderStroke import androidx.compose.foundation.background import androidx.compose.foundation.border import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arra...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `NoteScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: feature/note/src/main/java/com/teamwiney/notecollection/NoteScreen.kt Language: Kotlin Framew...
Implement the native Android class `NotificationHelper` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/nerd/tuxmobil/fahrplan/congress/notifications/NotificationHelper.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package nerd.tuxmobil.fahrplan.congress.notifications import android.app.Notification import android.app.NotificationChannel import android.app.NotificationManager import android.app.PendingIntent import android.content.Context import android.content.ContextWrapper import android.net.Uri import android.os.Bu...
<|turn>user Implement the native Android class `NotificationHelper` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/nerd/tuxmobil/fahrplan/congress/notifications/NotificationHelper.kt Language: Kotlin Framework: Android...
Implement the native Android class `TypographyActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: catalog/src/main/java/net/pixiv/charcoal/android/catalog/typography/TypographyActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package net.pixiv.charcoal.android.catalog.typography import android.content.Context import android.content.Intent import android.os.Bundle import android.view.MenuItem import androidx.appcompat.app.AppCompatActivity import com.wada811.viewbinding.viewBinding import net.pixiv.charcoal.android.catalog.R impor...
<|turn>user Implement the native Android class `TypographyActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: catalog/src/main/java/net/pixiv/charcoal/android/catalog/typography/TypographyActivity.kt Language: Kotlin Framework: And...
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/prafullm/jetcomposer/screens/Home.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.prafullm.jetcomposer.screens import androidx.compose.animation.ExperimentalAnimationApi import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.layout.* import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.fou...
<|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/prafullm/jetcomposer/screens/Home.kt Language: Kotlin Framework: Androi...
Implement the Android ViewModel `ProjectsViewModel` 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/de/cleema/android/projects/list/ProjectsViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Created by Kumpels and Friends on 2022-12-15 * Copyright © 2022 Kumpels and Friends. All rights reserved. */ package de.cleema.android.projects.list import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import dagger.hilt.android.lifecycle.HiltViewModel import de.cleema.androi...
<|turn>user Implement the Android ViewModel `ProjectsViewModel` 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/de/cleema/android/projects/list/ProjectsViewModel.kt ...
Implement the Android ViewModel `RedeemViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: feature-staking-impl/src/main/java/jp/co/soramitsu/feature_staking_impl/presentation/staking/redeem/RedeemViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package jp.co.soramitsu.feature_staking_impl.presentation.staking.redeem import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.viewModelScope import jp.co.soramitsu.common.R import jp.co.soramitsu.common.address.AddressIconGenerator import jp.co.soramitsu.comm...
<|turn>user Implement the Android ViewModel `RedeemViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: feature-staking-impl/src/main/java/jp/co/soramitsu/feature_staking_impl/p...
Implement the native Android class `RootActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/agritracker/plus/RootActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.agritracker.plus import android.content.Intent import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import com.google.firebase.auth.FirebaseAuth import com.google.firebase.auth.FirebaseUser /// Root of all AppCompatActivities where all general stuff goes class RootActivity : ...
<|turn>user Implement the native Android class `RootActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/agritracker/plus/RootActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutin...
Implement the native Android class `StaticTextSelectionParams` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/text/modifiers/SelectionController.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
<|turn>user Implement the native Android class `StaticTextSelectionParams` 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/text/modifiers/SelectionController...
Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: Android/Intermediate/Concurrency/code/HelloConcurrency2/app/src/main/java/com/example/helloconcurrency2/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.helloconcurrency2 import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.util.Log import kotlinx.coroutines.async import kotlinx.coroutines.delay import kotlinx.coroutines.runBlocking const val LOG = "android-coroutines" class MainActivity : AppCompatAc...
<|turn>user Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: Android/Intermediate/Concurrency/code/HelloConcurrency2/app/src/main/java/com/example/helloconcurrency2/MainActivity.kt Languag...
Provide the native Android implementation for `TextHelper.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: app/src/main/kotlin/com/mgaetan89/showsrage/helper/TextHelper.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.mgaetan89.showsrage.helper import android.support.v4.app.Fragment import android.view.View import android.widget.TextView import java.util.* fun String?.hasText() = !this.isNullOrBlank() && !"N/A".equals(this, true) fun setText(fragment: Fragment, textView: TextView, text: String?, label: Int, ...
<|turn>user Provide the native Android implementation for `TextHelper.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: app/src/main/kotlin/com/mgaetan89/showsrage/helper/TextHelper.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>mode...
Implement the native Android class `MobileAppNavigator` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/kotlin/com/flixclusive/mobile/MobileAppNavigator.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.flixclusive.mobile import androidx.navigation.NavController import androidx.navigation.NavDestination import com.flixclusive.core.ui.common.navigation.RepositorySearchScreenNavigator import com.flixclusive.core.ui.common.navigation.UpdateDialogNavigator import com.flixclusive.feature.mobile.about...
<|turn>user Implement the native Android class `MobileAppNavigator` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/kotlin/com/flixclusive/mobile/MobileAppNavigator.kt Language: Kotlin Framework: AndroidX / Jetpack Compose /...
Implement the native Android class `NetworkIssue` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: mobikulOC/src/main/java/webkul/opencart/mobikul/helper/NetworkIssue.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package webkul.opencart.mobikul.helper import android.content.Context import webkul.opencart.mobikul.utils.SweetAlertBox class NetworkIssue { companion object { fun getNetworkIssue(message: String, mContext: Context) { SweetAlertBox.instance.retryNetWorkCall(context = mContext) ...
<|turn>user Implement the native Android class `NetworkIssue` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: mobikulOC/src/main/java/webkul/opencart/mobikul/helper/NetworkIssue.kt Language: Kotlin Framework: AndroidX / Jetpack Compose /...
Implement the native Android class `BaseSheet` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: android/library/presentation/src/main/kotlin/com/bael/dads/library/presentation/sheet/BaseSheet.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin @file:Suppress("UNCHECKED_CAST") package com.bael.dads.library.presentation.sheet import android.app.Dialog import android.content.DialogInterface import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.view.ViewGroup.LayoutParams.MAT...
<|turn>user Implement the native Android class `BaseSheet` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: android/library/presentation/src/main/kotlin/com/bael/dads/library/presentation/sheet/BaseSheet.kt Language: Kotlin Framework: And...
Implement the native Android class `ListUpdateCapture` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: paging/runtime/src/androidTest/java/androidx/paging/AsyncPagingDataDifferTest.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 `ListUpdateCapture` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: paging/runtime/src/androidTest/java/androidx/paging/AsyncPagingDataDifferTest.kt Language: Kotlin Framework: AndroidX / Je...
Provide the native Android implementation for `WebViewUtils.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: common/src/main/java/com/ishow/common/utils/WebViewUtils.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (C) 2016 The yuhaiyang Android 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 r...
<|turn>user Provide the native Android implementation for `WebViewUtils.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: common/src/main/java/com/ishow/common/utils/WebViewUtils.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>model `...
Implement the native Android class `CreatingCodec` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: common/src/commonMain/kotlin/dev/zwander/common/util/Storage.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE", "EXPOSED_PARAMETER_TYPE") package dev.zwander.common.util import dev.zwander.common.data.HistoricalSnapshot import dev.zwander.common.model.MainModel import dev.zwander.common.model.adapters.CellDataRoot import dev.zwander.common.model.adapters.Client...
<|turn>user Implement the native Android class `CreatingCodec` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: common/src/commonMain/kotlin/dev/zwander/common/util/Storage.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotli...
Implement the native Android class `BaseDialogConfig` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: dialog/src/main/java/com/angcyo/dialog/BaseDialogConfig.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.angcyo.dialog import android.app.Dialog import android.content.Context import android.view.View import com.angcyo.library.L import com.angcyo.widget.DslViewHolder import com.angcyo.widget.base.clickIt /** * * Email:<EMAIL> * @author angcyo * @date 2019/05/11 * Copyright (c) 2019 ShenZhen O&...
<|turn>user Implement the native Android class `BaseDialogConfig` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: dialog/src/main/java/com/angcyo/dialog/BaseDialogConfig.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin ...
Implement the native Android class `holds` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: Jetsnack/app/src/main/java/com/example/jetsnack/model/Filter.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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
<|turn>user Implement the native Android class `holds` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: Jetsnack/app/src/main/java/com/example/jetsnack/model/Filter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Corout...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `DoorCard`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/dev/maxsiomin/testdoorscameras/presentation/door_screen/DoorCard.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package dev.maxsiomin.testdoorscameras.presentation.door_screen import android.annotation.SuppressLint import androidx.compose.animation.core.MutableTransitionState import androidx.compose.animation.core.animateFloat import androidx.compose.animation.core.tween import androidx.compose.animation.core.updateTr...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `DoorCard`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/dev/maxsiomin/testdoorscameras/presentation/door_screen/DoorCard.kt Language:...
Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: examples/kotlin/hello_world/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.envoyproxy.envoymobile.helloenvoykotlin import android.app.Activity import android.os.Bundle import android.os.Handler import android.os.HandlerThread import android.support.v7.widget.DividerItemDecoration import android.support.v7.widget.LinearLayoutManager import android.support.v7.widget.Recycl...
<|turn>user Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: examples/kotlin/hello_world/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <...
Implement the native Android class `DatabaseModule` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/wisal/android/todocompose/di/DatabaseModule.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.wisal.android.todocompose.di import android.content.Context import androidx.compose.runtime.remember import androidx.room.Room import com.wisal.android.todocompose.data.source.TasksDao import com.wisal.android.todocompose.data.source.ToDoDatabase import dagger.Module import dagger.Provides import...
<|turn>user Implement the native Android class `DatabaseModule` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/wisal/android/todocompose/di/DatabaseModule.kt Language: Kotlin Framework: AndroidX / Jetpack Compose /...
Implement the native Android class `DailyAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/liuxing/daily/adapter/DailySearchAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.liuxing.daily.adapter import android.content.Context import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.core.content.ContextCompat import androidx.preference.PreferenceManager import androidx.recyclerview.widget.RecyclerView import com.google...
<|turn>user Implement the native Android class `DailyAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/liuxing/daily/adapter/DailySearchAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotl...
Implement the native Android class `Material3IssueRegistry` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: compose/ui/ui-graphics-lint/src/main/java/androidx/compose/ui/graphics/lint/UiGraphicsIssueRegistry.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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
<|turn>user Implement the native Android class `Material3IssueRegistry` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: compose/ui/ui-graphics-lint/src/main/java/androidx/compose/ui/graphics/lint/UiGraphicsIssueRegistry.kt Language: Kotl...
Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `Navigation` using Kotlinx Serialization.
Repository path: app/src/main/kotlin/org/jdc/template/ui/navigation/MainNav.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package org.jdc.template.ui.navigation import android.content.Context import androidx.navigation.NavGraph import androidx.navigation.createGraph import androidx.navigation.fragment.NavHostFragment import org.jdc.template.ux.about.AboutFragment import org.jdc.template.ux.about.AboutRoute import org.jdc.templa...
<|turn>user Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `Navigation` using Kotlinx Serialization. Context: Repository path: app/src/main/kotlin/org/jdc/template/ui/navigation/MainNav.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|t...
Implement the native Android class `EditorVisualTransformation` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: src/main/kotlin/ui/editor/EditorVisualTransformation.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package ui.editor import androidx.compose.ui.text.AnnotatedString import androidx.compose.ui.text.input.OffsetMapping import androidx.compose.ui.text.input.TransformedText import androidx.compose.ui.text.input.VisualTransformation import domain.model.SyntaxHighlightConfigModel import domain.model.SyntaxHighl...
<|turn>user Implement the native Android class `EditorVisualTransformation` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: src/main/kotlin/ui/editor/EditorVisualTransformation.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / ...
Implement the Android ViewModel `MainActivityViewModel` 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/peripheral/bledevice/ui/main/MainActivityViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.peripheral.bledevice.ui.main import android.bluetooth.BluetoothDevice import android.bluetooth.le.ScanResult import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.setValue import androidx.lifecycle.ViewModel import androidx.lifecyc...
<|turn>user Implement the Android ViewModel `MainActivityViewModel` 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/peripheral/bledevice/ui/main/MainActivityView...
Implement the native Android class `ProfileSettingsFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/linc/inphoto/ui/profilesettings/ProfileSettingsFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.linc.inphoto.ui.profilesettings import android.os.Bundle import android.view.Gravity import android.view.View import androidx.core.widget.doOnTextChanged import androidx.fragment.app.activityViewModels import androidx.fragment.app.viewModels import androidx.transition.Fade import androidx.transit...
<|turn>user Implement the native Android class `ProfileSettingsFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/linc/inphoto/ui/profilesettings/ProfileSettingsFragment.kt Language: Kotlin Framework: Android...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ForgotPasswordScreenPreview`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/fjjukic/furniture4you/ui/auth/ForgotPasswordScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.fjjukic.furniture4you.ui.auth import androidx.compose.foundation.background import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.width import androidx.comp...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ForgotPasswordScreenPreview`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/fjjukic/furniture4you/ui/auth/ForgotPasswordScreen.kt ...
Implement the native Android class `NetLock` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: dcache/src/main/java/dora/http/DoraHttp.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package dora.http import android.app.Activity import androidx.fragment.app.Fragment import dora.http.coroutine.ContextContinuation import dora.http.coroutine.DoraCoroutineContext import dora.http.exception.DoraHttpException import dora.http.rx.RxTransformer import io.reactivex.Observable import io.reactivex....
<|turn>user Implement the native Android class `NetLock` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: dcache/src/main/java/dora/http/DoraHttp.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>...
Implement the Android ViewModel `RootMovieViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: tv/src/main/java/com/aastudio/sarollahi/moviebox/views/fragments/RootMovieViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (C) 2021 <NAME> * All rights reserved. */ package com.aastudio.sarollahi.moviebox.views.fragments import android.app.Application import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import com.aastudio.sarollahi.api.model.Movie import com.aastudio.sarollahi.api.rep...
<|turn>user Implement the Android ViewModel `RootMovieViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: tv/src/main/java/com/aastudio/sarollahi/moviebox/views/fragments/RootM...
Implement the native Android class `CityWeatherFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/vicky7230/sunny/ui/weather/city/CityWeatherFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.sandoval.bogosunny.ui.weather.city import android.annotation.SuppressLint import android.content.Context import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.appcompat.widget.AppCompatTextView import androidx.lifecycle....
<|turn>user Implement the native Android class `CityWeatherFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/vicky7230/sunny/ui/weather/city/CityWeatherFragment.kt Language: Kotlin Framework: AndroidX / Jetp...
Implement the native Android class `PolylineAnnotationActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/mapbox/maps/testapp/examples/markersandcallouts/PolylineAnnotationActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.mapbox.maps.testapp.examples.markersandcallouts import android.graphics.Color import android.os.Bundle import android.widget.Toast import androidx.appcompat.app.AppCompatActivity import androidx.lifecycle.lifecycleScope import com.mapbox.geojson.FeatureCollection import com.mapbox.geojson.Point i...
<|turn>user Implement the native Android class `PolylineAnnotationActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/mapbox/maps/testapp/examples/markersandcallouts/PolylineAnnotationActivity.kt Language: Kot...
Implement the native Android class `ScrollState` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: baselibrary/src/main/kotlin/com/huawen/baselibrary/views/bannerother/banner/ScrollState.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.huawen.baselibrary.views.bannerother.banner import androidx.recyclerview.widget.RecyclerView /** * 滑动状态 * @author Lollipop */ enum class ScrollState(val value: Int) { /** * RecyclerView目前不在滚动。 * The RecyclerView is not currently scrolling. */ IDLE(RecyclerView.SCROLL_...
<|turn>user Implement the native Android class `ScrollState` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: baselibrary/src/main/kotlin/com/huawen/baselibrary/views/bannerother/banner/ScrollState.kt Language: Kotlin Framework: AndroidX ...
Implement the native Android class `ViewMembersActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/familygallery/view/ViewMembersActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.familygallery.view import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import com.example.familygallery.R class ViewMembersActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) se...
<|turn>user Implement the native Android class `ViewMembersActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/familygallery/view/ViewMembersActivity.kt Language: Kotlin Framework: AndroidX / Jetpack C...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ComposableConnectedDeviceActionCard`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: components/info/impl/src/main/java/com/flipperdevices/info/impl/compose/elements/ComposableConnectedDeviceActionCard.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.flipperdevices.info.impl.compose.elements import androidx.compose.runtime.Composable import androidx.compose.runtime.collectAsState import androidx.compose.runtime.getValue import androidx.compose.ui.Modifier import androidx.lifecycle.viewmodel.compose.viewModel import com.flipperdevices.core.ui....
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ComposableConnectedDeviceActionCard`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: components/info/impl/src/main/java/com/flipperdevices/info/impl/comp...
Implement the native Android class `PermissionActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: androidbasic/app/src/main/java/com/yunjaena/androidbasic/PermissionActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.yunjaena.androidbasic import android.content.pm.PackageManager import android.os.Bundle import android.util.Log import androidx.appcompat.app.AppCompatActivity import androidx.core.app.ActivityCompat import androidx.core.content.ContextCompat import kotlinx.android.synthetic.main.activity_permiss...
<|turn>user Implement the native Android class `PermissionActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: androidbasic/app/src/main/java/com/yunjaena/androidbasic/PermissionActivity.kt Language: Kotlin Framework: AndroidX / Jet...
Implement the native Android class `PermissionActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: androidbasic/app/src/main/java/com/yunjaena/androidbasic/PermissionActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.yunjaena.androidbasic import android.content.pm.PackageManager import android.os.Bundle import android.util.Log import androidx.appcompat.app.AppCompatActivity import androidx.core.app.ActivityCompat import androidx.core.content.ContextCompat import kotlinx.android.synthetic.main.activity_permiss...
<|turn>user Implement the native Android class `PermissionActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: androidbasic/app/src/main/java/com/yunjaena/androidbasic/PermissionActivity.kt Language: Kotlin Framework: AndroidX / Jet...
Provide the native Android implementation for `Photo.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: tabler-icons/src/commonMain/kotlin/compose/icons/tablericons/Photo.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package compose.icons.tablericons import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap import androidx.compose....
<|turn>user Provide the native Android implementation for `Photo.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: tabler-icons/src/commonMain/kotlin/compose/icons/tablericons/Photo.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>mode...
Implement the native Android class `Model` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: phoenix-shared/src/commonMain/kotlin/fr.acinq.phoenix/controllers/init/RestoreWallet.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package fr.acinq.phoenix.controllers.init import fr.acinq.phoenix.controllers.MVI import fr.acinq.phoenix.utils.MnemonicLanguage object RestoreWallet { sealed class Model : MVI.Model() { object Ready : Model() data class FilteredWordlist( val uuid: String, val p...
<|turn>user Implement the native Android class `Model` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: phoenix-shared/src/commonMain/kotlin/fr.acinq.phoenix/controllers/init/RestoreWallet.kt Language: Kotlin Framework: AndroidX / Jetpack...
Implement the native Android class `PassiveMonitoringUpdate` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: health/health-services-client/src/main/java/androidx/health/services/client/data/PassiveMonitoringUpdate.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (C) 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 requi...
<|turn>user Implement the native Android class `PassiveMonitoringUpdate` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: health/health-services-client/src/main/java/androidx/health/services/client/data/PassiveMonitoringUpdate.kt Language...
Implement the native Android class `PassiveMonitoringUpdate` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: health/health-services-client/src/main/java/androidx/health/services/client/data/PassiveMonitoringUpdate.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (C) 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 requi...
<|turn>user Implement the native Android class `PassiveMonitoringUpdate` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: health/health-services-client/src/main/java/androidx/health/services/client/data/PassiveMonitoringUpdate.kt Language...
Provide the native Android implementation for `Type.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: app/src/main/java/br/com/aline/alcoolOugasolina/ui/theme/Type.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package br.com.aline.alcoolOugasolina.ui.theme import androidx.compose.material3.Typography import androidx.compose.ui.text.TextStyle import androidx.compose.ui.text.font.Font import androidx.compose.ui.text.font.FontFamily import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.unit.sp im...
<|turn>user Provide the native Android implementation for `Type.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: app/src/main/java/br/com/aline/alcoolOugasolina/ui/theme/Type.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>model ```k...
Design a reactive Android Room DAO interface `GradeSummaryDao` in Kotlin. Provide reactive Coroutine Flow queries, upsert capabilities, and transaction safety.
Repository path: app/src/main/java/io/github/wulkanowy/data/db/dao/GradeSummaryDao.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.github.wulkanowy.data.db.dao import androidx.room.Dao import androidx.room.Delete import androidx.room.Insert import androidx.room.Query import io.github.wulkanowy.data.db.entities.GradeSummary import io.reactivex.Maybe import javax.inject.Singleton @Singleton @Dao interface GradeSummaryDao { ...
<|turn>user Design a reactive Android Room DAO interface `GradeSummaryDao` in Kotlin. Provide reactive Coroutine Flow queries, upsert capabilities, and transaction safety. Context: Repository path: app/src/main/java/io/github/wulkanowy/data/db/dao/GradeSummaryDao.kt Language: Kotlin Framework: AndroidX / Jetpack Compo...
Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: flutter_expo_map/android/app/src/main/kotlin/com/example/flutter_expo_map/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.flutter_expo_map import androidx.annotation.NonNull; import io.flutter.embedding.android.FlutterActivity import io.flutter.embedding.engine.FlutterEngine import io.flutter.plugins.GeneratedPluginRegistrant class MainActivity: FlutterActivity() { override fun configureFlutterEngine(@N...
<|turn>user Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: flutter_expo_map/android/app/src/main/kotlin/com/example/flutter_expo_map/MainActivity.kt Language: Kotlin Framework: AndroidX ...
Implement the native Android class `BackupCreateService` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupCreateService.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package eu.kanade.tachiyomi.data.backup import android.app.Service import android.content.Context import android.content.Intent import android.net.Uri import android.os.IBinder import android.os.PowerManager import androidx.core.content.ContextCompat import androidx.core.net.toUri import com.hippo.unifile.Un...
<|turn>user Implement the native Android class `BackupCreateService` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupCreateService.kt Language: Kotlin Framework: AndroidX / Jetpack ...
Implement the native Android class `GroupSection` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: src/jvmMain/kotlin/layouts/ui/sections/GroupSection.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package layouts.ui.sections import androidx.compose.foundation.ExperimentalFoundationApi import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.* import androidx.compose.foundation.lazy.Lazy...
<|turn>user Implement the native Android class `GroupSection` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: src/jvmMain/kotlin/layouts/ui/sections/GroupSection.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutin...
Provide the native Android implementation for `PickLanguageScreen.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: client_end_user/shared/src/commonMain/kotlin/presentation/pickLanguage/PickLanguageScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package presentation.pickLanguage import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundati...
<|turn>user Provide the native Android implementation for `PickLanguageScreen.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: client_end_user/shared/src/commonMain/kotlin/presentation/pickLanguage/PickLanguageScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / ...
Implement the native Android class `SongPlayerActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/android/musicplayer/presentation/songplayer/SongPlayerActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.android.musicplayer.presentation.songplayer import android.content.Context import android.content.Intent import android.os.Bundle import android.util.Log import android.widget.SeekBar import androidx.core.content.ContextCompat import androidx.lifecycle.Observer import coil.api.load import com.and...
<|turn>user Implement the native Android class `SongPlayerActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/android/musicplayer/presentation/songplayer/SongPlayerActivity.kt Language: Kotlin Framework: Andro...
Implement the native Android class `TrailingCommaOnDeclarationSiteRule` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: ktlint-ruleset-standard/src/main/kotlin/com/pinterest/ktlint/ruleset/standard/rules/TrailingCommaOnDeclarationSiteRule.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.pinterest.ktlint.ruleset.standard.rules import com.pinterest.ktlint.rule.engine.core.api.ElementType import com.pinterest.ktlint.rule.engine.core.api.ElementType.ARROW import com.pinterest.ktlint.rule.engine.core.api.ElementType.CLASS import com.pinterest.ktlint.rule.engine.core.api.ElementType.C...
<|turn>user Implement the native Android class `TrailingCommaOnDeclarationSiteRule` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: ktlint-ruleset-standard/src/main/kotlin/com/pinterest/ktlint/ruleset/standard/rules/TrailingCommaOnDeclar...
Implement the native Android class `BookChangeActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/bvm/ui/book/BookChangeActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.bvm.ui.book import android.icu.text.SimpleDateFormat import android.os.Build import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.text.Editable import android.view.MenuItem import android.widget.Toast import androidx.annotation.RequiresApi import android...
<|turn>user Implement the native Android class `BookChangeActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/bvm/ui/book/BookChangeActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / ...