instruction
stringlengths
113
251
input
stringlengths
98
353
output
stringlengths
135
454k
text
stringlengths
443
454k
Provide the native Android implementation for `ViewerHelper.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: app/src/main/java/com/github/iielse/imageviewer/demo/business/ViewerHelper.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.github.iielse.imageviewer.demo.business import androidx.fragment.app.FragmentActivity import com.github.iielse.imageviewer.ImageViewerBuilder import com.github.iielse.imageviewer.ImageViewerDialogFragment import com.github.iielse.imageviewer.core.DataProvider import com.github.iielse.imageviewer....
<|turn>user Provide the native Android implementation for `ViewerHelper.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: app/src/main/java/com/github/iielse/imageviewer/demo/business/ViewerHelper.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<tur...
Implement the native Android class `CustomDomainFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/full/java/com/celzero/bravedns/ui/fragment/CustomDomainFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2021 RethinkDNS and its authors * * 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 applic...
<|turn>user Implement the native Android class `CustomDomainFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/full/java/com/celzero/bravedns/ui/fragment/CustomDomainFragment.kt Language: Kotlin Framework: AndroidX / Jetpa...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ConversationScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/diegoalvis/composechat/features/conversation/ConversationComponent.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.diegoalvis.composechat.features.conversation import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding impo...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ConversationScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/diegoalvis/composechat/features/conversation/ConversationCompon...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `BounceRoute`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: samples/user-interface/haptics/src/main/java/com/example/platform/ui/haptics/bounce/BounceRoute.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (C) 2022 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `BounceRoute`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: samples/user-interface/haptics/src/main/java/com/example/platform/ui/haptics/bounce/BounceRo...
Implement the native Android class `FirebaseStorageSource` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/fredrikbogg/android_chat_app/data/db/remote/FirebaseStorageSource.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.fredrikbogg.android_chat_app.data.db.remote import android.net.Uri import com.google.android.gms.tasks.Task import com.google.firebase.storage.FirebaseStorage // Task based class FirebaseStorageSource { private val storageInstance = FirebaseStorage.getInstance() fun uploadUserImage(user...
<|turn>user Implement the native Android class `FirebaseStorageSource` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/fredrikbogg/android_chat_app/data/db/remote/FirebaseStorageSource.kt Language: Kotlin Framework:...
Implement the native Android class `RecognitionAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: Android/HumanActivityRecognition/app/src/main/java/com/example/humanactivityrecognition/ui/RecognitionAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.mlapp.ui import android.content.Context import android.view.LayoutInflater import android.view.ViewGroup import androidx.recyclerview.widget.DiffUtil import androidx.recyclerview.widget.ListAdapter import androidx.recyclerview.widget.RecyclerView import com.example.mlapp.data.Recognition ...
<|turn>user Implement the native Android class `RecognitionAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: Android/HumanActivityRecognition/app/src/main/java/com/example/humanactivityrecognition/ui/RecognitionAdapter.kt Language...
Implement the native Android class `WordRepository` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: RoomWordSample/app/src/main/java/com/example/roomwordsample/WordRepository.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.roomwordsample import androidx.lifecycle.LiveData class WordRepository(private val wordDao: WordDao) { // Used the LiveData in order to notify the observer when the data changed val allWords : LiveData<List<Word>> = wordDao.getAlphabetizedWords() suspend fun insert(word: W...
<|turn>user Implement the native Android class `WordRepository` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: RoomWordSample/app/src/main/java/com/example/roomwordsample/WordRepository.kt Language: Kotlin Framework: AndroidX / Jetpack ...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ThemeSelector`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: legacy/demos/demo-shared/src/commonMain/kotlin/design/ThemeSelector.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package opensavvy.decouple.demo.theming import androidx.compose.runtime.Composable import opensavvy.decouple.core.atom.ActionButton import opensavvy.decouple.core.atom.Button import opensavvy.decouple.core.atom.Text import opensavvy.decouple.core.layout.Row import opensavvy.decouple.core.layout.Screen import...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ThemeSelector`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: legacy/demos/demo-shared/src/commonMain/kotlin/design/ThemeSelector.kt Language: Kotlin Fr...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `NavigationDrawerMain`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/example/jetpack_compose_all_in_one/ui/components/NavigationDrawerMain.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.jetpack_compose_all_in_one.ui.components import androidx.compose.foundation.ExperimentalFoundationApi import androidx.compose.foundation.basicMarquee import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMa...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `NavigationDrawerMain`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/example/jetpack_compose_all_in_one/ui/components/NavigationDr...
Implement the native Android class `for` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: library/src/main/kotlin/io/github/wax911/library/persistedquery/PersistedQueryHashCalculator.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.github.wax911.library.persistedquery import android.content.Context import io.github.wax911.library.annotation.processor.GraphProcessor import io.github.wax911.library.annotation.processor.contract.AbstractGraphProcessor import java.math.BigInteger import java.security.MessageDigest import java.ut...
<|turn>user Implement the native Android class `for` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: library/src/main/kotlin/io/github/wax911/library/persistedquery/PersistedQueryHashCalculator.kt Language: Kotlin Framework: AndroidX / J...
Implement the native Android class `RxActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/algorigo/pressuregoapp/RxActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.algorigo.pressuregoapp import android.Manifest import android.content.Intent import android.os.Bundle import android.util.Log import android.widget.Button import androidx.recyclerview.widget.RecyclerView import com.algorigo.algorigoble.BleManager import com.algorigo.library.rx.permission.Permissi...
<|turn>user Implement the native Android class `RxActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/algorigo/pressuregoapp/RxActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Corout...
Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `RouteShopListDialog` using Kotlinx Serialization.
Repository path: app/src/main/java/com/kcteam/features/addAttendence/RouteShopListDialog.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.demo.features.addAttendence import android.content.Context import android.os.Bundle import androidx.fragment.app.DialogFragment import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView import android.view.LayoutInflater import android.view.View impo...
<|turn>user Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `RouteShopListDialog` using Kotlinx Serialization. Context: Repository path: app/src/main/java/com/kcteam/features/addAttendence/RouteShopListDialog.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `Calendar`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/fabian/schengenvisacalculator/ui/screens/calendar/Calendar.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.fabian.schengenvisacalculator.ui.screens.calendar import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.mater...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `Calendar`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/fabian/schengenvisacalculator/ui/screens/calendar/Calendar.kt Language: K...
Implement the Android ViewModel `BaseViewModel` 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/ca/on/hojat/gamenews/core/BaseViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package ca.on.hojat.gamenews.core import androidx.lifecycle.ViewModel import ca.on.hojat.gamenews.core.events.Command import ca.on.hojat.gamenews.core.events.Route import kotlinx.coroutines.channels.Channel import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.receiveAsFlow abstract class BaseV...
<|turn>user Implement the Android ViewModel `BaseViewModel` 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/ca/on/hojat/gamenews/core/BaseViewModel.kt Language: Kotl...
Implement the native Android class `TestFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/kotlin/com/tommyfen/jetpackexercise/TestFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.tommyfen.jetpackexercise import android.os.Bundle import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import cn.tommyfen.jetpackexercise.databinding.FragmentTestBinding // TODO: Rename parameter arguments, choose names t...
<|turn>user Implement the native Android class `TestFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/kotlin/com/tommyfen/jetpackexercise/TestFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotli...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `CanvasWithTitle`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/smarttoolfactory/composecolorpicker/ui/CanvasWithTitle.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.smarttoolfactory.composecolorpicker.ui import androidx.compose.foundation.Canvas import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.wrapContentWidth import androidx.compose.material.Text import androidx.comp...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `CanvasWithTitle`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/smarttoolfactory/composecolorpicker/ui/CanvasWithTitle.kt Language...
Implement the Android ViewModel `ViewModelFactory` 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/rami/koroutinesdemo/presentation/di/ViewModelFactory.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.rami.koroutinesdemo.presentation.di import androidx.lifecycle.ViewModel import androidx.lifecycle.ViewModelProvider import javax.inject.Inject import javax.inject.Provider import javax.inject.Singleton @Singleton class ViewModelFactory @Inject constructor( private val creators: Map<Class<out...
<|turn>user Implement the Android ViewModel `ViewModelFactory` 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/rami/koroutinesdemo/presentation/di/ViewModelFacto...
Implement the native Android class `ApplicationsFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/kgurgul/cpuinfo/features/applications/ApplicationsFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2017 KG Soft * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
<|turn>user Implement the native Android class `ApplicationsFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/kgurgul/cpuinfo/features/applications/ApplicationsFragment.kt Language: Kotlin Framework: Android...
Implement the native Android class `DemoModeCodeEntryUiStateMachineImpl` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/shared/state-machine/ui/public/src/commonMain/kotlin/build/wallet/statemachine/demo/DemoModeCodeEntryUiStateMachineImpl.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package build.wallet.statemachine.demo import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember import androidx.compose.runtime.setValue import bui...
<|turn>user Implement the native Android class `DemoModeCodeEntryUiStateMachineImpl` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/shared/state-machine/ui/public/src/commonMain/kotlin/build/wallet/statemachine/demo/DemoModeCodeEntr...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `LicensesScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/sk/devprog/firmy/ui/screen/licenses/LicensesScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package sk.devprog.firmy.ui.screen.licenses import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx.compose.material.icons.Icons import androidx.compose.material.icons.automirrored.filled.ArrowBack import androidx.compose.material3.ExperimentalM...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `LicensesScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/sk/devprog/firmy/ui/screen/licenses/LicensesScreen.kt Language: Kotlin ...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `AboutPageUi`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/hwinzniej/musichelper/ui/AboutPageUi.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.hwinzniej.musichelper.ui import android.content.Intent import android.content.res.Resources import android.graphics.Bitmap import android.graphics.BitmapFactory import android.net.Uri import android.os.Environment import android.webkit.WebView import android.widget.Toast import androidx.activity....
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `AboutPageUi`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/hwinzniej/musichelper/ui/AboutPageUi.kt Language: Kotlin Framework: An...
Implement the native Android class `RNGestureHandlerButtonViewManager` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.swmansion.gesturehandler.react import android.annotation.SuppressLint import android.annotation.TargetApi import android.content.Context import android.content.res.ColorStateList import android.graphics.Color import android.graphics.drawable.Drawable import android.graphics.drawable.LayerDrawable...
<|turn>user Implement the native Android class `RNGestureHandlerButtonViewManager` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.kt Language: Ko...
Provide the native Android implementation for `PaintBrushArrowDown.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/PaintBrushArrowDown.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.konyaco.fluent.icons.filled 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.Filled.PaintBrushArrowDown: ImageVector get() { if (_paint...
<|turn>user Provide the native Android implementation for `PaintBrushArrowDown.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/PaintBrushArrowDown.kt Language: Kotlin Framework: AndroidX / Jetpack Com...
Implement the native Android class `GalleryPhotoEntity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/kirakishou/photoexchange/helper/database/entity/GalleryPhotoEntity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.kirakishou.photoexchange.helper.database.entity import androidx.room.ColumnInfo import androidx.room.Entity import androidx.room.PrimaryKey import com.kirakishou.photoexchange.helper.database.entity.GalleryPhotoEntity.Companion.TABLE_NAME @Entity(tableName = TABLE_NAME) class GalleryPhotoEntity(...
<|turn>user Implement the native Android class `GalleryPhotoEntity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/kirakishou/photoexchange/helper/database/entity/GalleryPhotoEntity.kt Language: Kotlin Framework: A...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `AppTheme`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: modules/theme/src/commonMain/kotlin/io/imrekaszab/eaplayers/theme/AppTheme.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.imrekaszab.eaplayers.theme import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.foundation.text.selection.LocalTextSelectionColors import androidx.compose.material3.ColorScheme import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.Lo...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `AppTheme`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: modules/theme/src/commonMain/kotlin/io/imrekaszab/eaplayers/theme/AppTheme.kt Language: Kotlin ...
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/me/ranko/autodark/ui/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package me.ranko.autodark.ui import android.content.Intent import android.content.res.ColorStateList import android.os.Bundle import android.view.View import android.view.WindowManager import androidx.databinding.DataBindingUtil import androidx.databinding.Observable import androidx.databinding.ObservableFie...
<|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/me/ranko/autodark/ui/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutin...
Implement the native Android class `ArticlesDatabase` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: data/src/main/java/com/ribsky/data/service/offline/article/ArticlesDatabase.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.ribsky.data.service.offline.article import androidx.room.Database import androidx.room.RoomDatabase import androidx.room.TypeConverters import com.ribsky.data.converters.Converters import com.ribsky.data.model.ArticleApiModel @TypeConverters(Converters::class) @Database(entities = [ArticleApiMod...
<|turn>user Implement the native Android class `ArticlesDatabase` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: data/src/main/java/com/ribsky/data/service/offline/article/ArticlesDatabase.kt Language: Kotlin Framework: AndroidX / Jetpa...
Implement the native Android class `SearchNewsResponse` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/flixterapp/Article.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.codepath.articlesearch import android.support.annotation.Keep import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable @Keep @Serializable data class SearchNewsResponse( @SerialName("response") val response: BaseResponse? ) @Keep @Serializable data class BaseResp...
<|turn>user Implement the native Android class `SearchNewsResponse` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/flixterapp/Article.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Corou...
Implement the native Android class `CustomInputDialog` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/udayy/android/utils/CustomInputDialog.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.udayy.android.utils import android.app.Activity import android.app.Dialog import android.graphics.Color import android.graphics.drawable.ColorDrawable import android.view.View import android.view.ViewGroup import android.view.Window import android.widget.Button import android.widget.EditText impo...
<|turn>user Implement the native Android class `CustomInputDialog` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/udayy/android/utils/CustomInputDialog.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Ko...
Implement the native Android class `CameraXCameraUseCase` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: core/camera/src/main/java/com/google/jetpackcamera/core/camera/CameraXCameraUseCase.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (C) 2023 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
<|turn>user Implement the native Android class `CameraXCameraUseCase` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: core/camera/src/main/java/com/google/jetpackcamera/core/camera/CameraXCameraUseCase.kt Language: Kotlin Framework: Andr...
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/herscher/swiftlydemo/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.herscher.swiftlydemo import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import com.herscher.swiftlydemo.specials.SpecialsListFragment class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceSta...
<|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/herscher/swiftlydemo/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coro...
Implement the native Android class `BackupPassphraseFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: android/app/src/main/java/com/algorand/android/ui/register/BackupPassphraseFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2022 Pera Wallet, LDA * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to i...
<|turn>user Implement the native Android class `BackupPassphraseFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: android/app/src/main/java/com/algorand/android/ui/register/BackupPassphraseFragment.kt Language: Kotlin Framework: ...
Implement the Android ViewModel `AutocompleteViewModelTest` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: paymentsheet/src/test/java/com/stripe/android/paymentsheet/addresselement/AutocompleteViewModelTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.stripe.android.paymentsheet.addresselement import android.app.Application import android.text.SpannableString import androidx.test.core.app.ApplicationProvider import com.google.common.truth.Truth.assertThat import com.stripe.android.paymentsheet.PaymentSheet import com.stripe.android.paymentshee...
<|turn>user Implement the Android ViewModel `AutocompleteViewModelTest` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: paymentsheet/src/test/java/com/stripe/android/paymentsheet/addr...
Implement the native Android class `KotlinFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: 2016-08-11-WebViewJavascriptInterafce/src/main/kotlin/tech/thdev/webviewjavascriptinterface/view/main/KotlinFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package tech.thdev.webviewjavascriptinterface.view.main import android.content.Context import android.os.Bundle import android.text.TextUtils import android.view.View import android.view.inputmethod.EditorInfo import android.view.inputmethod.InputMethodManager import android.webkit.WebSettings import android...
<|turn>user Implement the native Android class `KotlinFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: 2016-08-11-WebViewJavascriptInterafce/src/main/kotlin/tech/thdev/webviewjavascriptinterface/view/main/KotlinFragment.kt Langu...
Implement the native Android class `ConfigImpl` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/org/stepic/droid/configuration/ConfigImpl.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package org.stepic.droid.configuration import android.content.Context import com.google.gson.FieldNamingPolicy import com.google.gson.GsonBuilder import org.stepic.droid.di.AppSingleton import org.stepic.droid.web.Api import java.io.InputStreamReader import java.nio.charset.Charset import javax.inject.Inject...
<|turn>user Implement the native Android class `ConfigImpl` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/org/stepic/droid/configuration/ConfigImpl.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Co...
Provide the native Android implementation for `AnimatedTextFieldBadge.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: compose/src/main/java/dev/medzik/android/compose/ui/textfield/AnimatedTextFieldBadge.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package dev.medzik.android.compose.ui.textfield import androidx.compose.animation.animateColorAsState import androidx.compose.animation.animateContentSize import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.padding import androidx.compose.material3.MaterialTheme import and...
<|turn>user Provide the native Android implementation for `AnimatedTextFieldBadge.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: compose/src/main/java/dev/medzik/android/compose/ui/textfield/AnimatedTextFieldBadge.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / K...
Implement the native Android class `CommuFragmentBoard_hot` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/nbmlon/mushroomer/ui/commu/CommuFragmentBoard_hot.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.nbmlon.mushroomer.ui.commu import android.os.Bundle import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.viewModels import com.nbmlon.mushroomer.R import com.nbmlon.mushroomer.data.posts.PostsRepository impo...
<|turn>user Implement the native Android class `CommuFragmentBoard_hot` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/nbmlon/mushroomer/ui/commu/CommuFragmentBoard_hot.kt Language: Kotlin Framework: AndroidX / Jet...
Implement the native Android class `Settings` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/vitorpamplona/amethyst/model/Settings.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /** * Copyright (c) 2024 Vitor Pamplona * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to use, * copy, modify, ...
<|turn>user Implement the native Android class `Settings` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/vitorpamplona/amethyst/model/Settings.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coro...
Implement the native Android class `VerticalItemDecorator` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: kotlinknifer/src/main/java/com/devrapid/kotlinknifer/recyclerview/itemdecorator/VerticalItemDecorator.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.devrapid.kotlinknifer.recyclerview.itemdecorator import android.graphics.Rect import android.view.View import androidx.recyclerview.widget.RecyclerView class VerticalItemDecorator( private val topBottom: Int, private val leftRight: Int = topBottom, ) : RecyclerView.ItemDecoration() { ...
<|turn>user Implement the native Android class `VerticalItemDecorator` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: kotlinknifer/src/main/java/com/devrapid/kotlinknifer/recyclerview/itemdecorator/VerticalItemDecorator.kt Language: Kot...
Provide the native Android implementation for `ActivityExtension.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: util-ktx/lib-util-ktx/src/main/java/ru/surfstudio/android/utilktx/ktx/ui/activity/ActivityExtension.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (c) 2019-present, SurfStudio 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
<|turn>user Provide the native Android implementation for `ActivityExtension.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: util-ktx/lib-util-ktx/src/main/java/ru/surfstudio/android/utilktx/ktx/ui/activity/ActivityExtension.kt Language: Kotlin Framework: AndroidX / Jetpack C...
Implement the native Android class `TransferPinActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/satu/ui/activities/transfer/TransferPinActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.satu.ui.activities.transfer import android.content.Context import android.content.Intent import android.graphics.Typeface import android.os.Bundle import android.util.Log import android.view.View import android.widget.LinearLayout import android.widget.TextView import android.widget.Toast...
<|turn>user Implement the native Android class `TransferPinActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/satu/ui/activities/transfer/TransferPinActivity.kt Language: Kotlin Framework: AndroidX / ...
Provide the native Android implementation for `Scopus.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Scopus.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package compose.icons.simpleicons import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Butt import androidx.compose.ui.graphics.StrokeJoin.Miter import androidx.compose.u...
<|turn>user Provide the native Android implementation for `Scopus.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Scopus.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>mo...
Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: recruitment-fandom/app/src/main/java/gs/kar/rfandom/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package gs.kar.rfandom import android.databinding.ObservableArrayList import android.os.Bundle import android.support.v4.app.Fragment import android.support.v4.app.FragmentManager import android.support.v4.app.FragmentPagerAdapter import android.support.v7.app.AppCompatActivity import android.support.v7.widg...
<|turn>user Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: recruitment-fandom/app/src/main/java/gs/kar/rfandom/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Ko...
Provide the native Android implementation for `HomePortfolio.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: home/src/main/java/com/pyamsoft/tickertape/home/HomePortfolio.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2024 pyamsoft * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
<|turn>user Provide the native Android implementation for `HomePortfolio.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: home/src/main/java/com/pyamsoft/tickertape/home/HomePortfolio.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>m...
Implement the native Android class `TellerTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: teller-android/src/test/java/com/levibostian/teller/TellerTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.levibostian.teller import android.app.Application import android.content.Context import android.content.SharedPreferences import com.google.common.truth.Truth.assertThat import com.levibostian.teller.error.TellerLimitedFunctionalityException import com.levibostian.teller.util.ConstantsUtil import...
<|turn>user Implement the native Android class `TellerTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: teller-android/src/test/java/com/levibostian/teller/TellerTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin...
Implement the native Android class `TaskListFavoriteFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/comunidadedevspace/taskbeats/presentation/TaskListFavoriteFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.comunidadedevspace.taskbeats.presentation import android.os.Bundle import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.core.view.isVisible import androidx.fragment.app.viewModels import androidx.lifecycle....
<|turn>user Implement the native Android class `TaskListFavoriteFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/comunidadedevspace/taskbeats/presentation/TaskListFavoriteFragment.kt Language: Kotlin Framew...
Implement the native Android class `HomeActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/co/rahulchowdhury/addtothings/HomeActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.sanardev.instagramapijavatest import android.os.Bundle import androidx.appcompat.app.AppCompatActivity class HomeActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_home) ...
<|turn>user Implement the native Android class `HomeActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/co/rahulchowdhury/addtothings/HomeActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin...
Implement the native Android class `DialogActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/transcodium/wirepurse/DialogActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.transcodium.wirepurse import android.os.Bundle import android.os.PersistableBundle import android.view.ViewGroup import androidx.appcompat.app.AppCompatActivity import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Job import kotlin.coroutines.Co...
<|turn>user Implement the native Android class `DialogActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/transcodium/wirepurse/DialogActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `FavoriteAnimeScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: features/anime/src/main/java/com/doskoch/template/anime/screens/favorite/FavoriteAnimeScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.doskoch.template.anime.screens.favorite import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.navigationBarsPadding import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.si...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `FavoriteAnimeScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: features/anime/src/main/java/com/doskoch/template/anime/screens/favorite/FavoriteAni...
Implement the native Android class `PointerInputEventProcessorTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: compose/ui/ui/src/androidAndroidTest/kotlin/androidx/compose/ui/input/pointer/PointerInputEventProcessorTest.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 `PointerInputEventProcessorTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: compose/ui/ui/src/androidAndroidTest/kotlin/androidx/compose/ui/input/pointer/PointerInputEventProcessorTest....
Provide the native Android implementation for `SwitchPreference.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: 8vim/src/main/kotlin/inc/flide/vim8/datastore/ui/SwitchPreference.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package inc.flide.vim8.datastore.ui import androidx.annotation.DrawableRes import androidx.compose.foundation.selection.toggleable import androidx.compose.material3.Switch import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.ui.Modifier import androidx.c...
<|turn>user Provide the native Android implementation for `SwitchPreference.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: 8vim/src/main/kotlin/inc/flide/vim8/datastore/ui/SwitchPreference.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <...
Implement the native Android class `MoviePresenter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/android/thortechasia/popularmovie/ui/movie/MoviePresenter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package android.thortechasia.popularmovie.ui.movie import android.thortechasia.popularmovie.data.repository.MovieRepository import android.thortechasia.popularmovie.utils.scheduler.AppSchedulerProvider import android.thortechasia.popularmovie.utils.scheduler.SchedulerProvider import io.reactivex.android.sche...
<|turn>user Implement the native Android class `MoviePresenter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/android/thortechasia/popularmovie/ui/movie/MoviePresenter.kt Language: Kotlin Framework: AndroidX / Jetpack...
Implement the native Android class `FlagsLocalDataSource` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: BanknotesCatalogApp/src/main/java/com/pako2k/banknotescatalog/localsource/FlagsLocalDataSource.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.pako2k.banknotescatalog.localsource import android.content.res.AssetManager import android.graphics.BitmapFactory import androidx.compose.ui.graphics.ImageBitmap import androidx.compose.ui.graphics.asImageBitmap import kotlinx.coroutines.coroutineScope import java.io.IOException private const va...
<|turn>user Implement the native Android class `FlagsLocalDataSource` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: BanknotesCatalogApp/src/main/java/com/pako2k/banknotescatalog/localsource/FlagsLocalDataSource.kt Language: Kotlin Fram...
Implement the native Android class `Register` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: myhairdiary/app/src/main/java/com/example/myhairdiary/register/Register.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.myhairdiary.register import android.content.Intent import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import com.example.myhairdiary.MainActivity import com.example.myhairdiary.R import com.example.myhairdiary.designers.designer import com.example.myhairdiary.firedb....
<|turn>user Implement the native Android class `Register` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: myhairdiary/app/src/main/java/com/example/myhairdiary/register/Register.kt Language: Kotlin Framework: AndroidX / Jetpack Compose /...
Implement the native Android class `for` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/org/citruscircuits/viewer/fragments/team_details/TeamDetailsFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package org.citruscircuits.viewer.fragments.team_details import android.content.Context import android.os.Bundle import android.util.AttributeSet import android.util.Log import android.view.Gravity import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget...
<|turn>user Implement the native Android class `for` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/org/citruscircuits/viewer/fragments/team_details/TeamDetailsFragment.kt Language: Kotlin Framework: AndroidX / Jetpack...
Implement the native Android class `SizeVariant` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: core/ds_component/src/main/java/com/sabufung/app/ds/component/button/Button.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.sabufung.app.ds.component.button import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.width import androidx.compose.foundation.layout.wrapContentWidth import androidx.compose.runtime.Composable imp...
<|turn>user Implement the native Android class `SizeVariant` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: core/ds_component/src/main/java/com/sabufung/app/ds/component/button/Button.kt Language: Kotlin Framework: AndroidX / Jetpack Co...
Provide the native Android implementation for `LungsOff.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/LungsOff.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.woowla.compose.icon.collections.tabler.tabler.outline import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.St...
<|turn>user Provide the native Android implementation for `LungsOff.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/LungsOff.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotl...
Implement the native Android class `ShopRepository` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/restaurant/cleanArchitecture/data/repository/ShopRepository.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.restaurant.cleanArchitecture.data.repository import androidx.lifecycle.MutableLiveData import com.example.restaurant.cleanArchitecture.data.model.Root import com.example.restaurant.cleanArchitecture.data.remote.APIService import com.example.restaurant.cleanArchitecture.data.remote.Retro...
<|turn>user Implement the native Android class `ShopRepository` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/restaurant/cleanArchitecture/data/repository/ShopRepository.kt Language: Kotlin Framework: Andr...
Implement the native Android class `SocorroConfig` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: socorro/src/main/java/com/soumya/wwdablu/socorro/SocorroConfig.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.soumya.wwdablu.socorro import android.text.TextUtils class SocorroConfig { enum class SourceFileFrom { Assets, Raw, Resources } private var endPoint: String = "" private var codeResponseMap: HashMap<Int, String> = HashMap() private var delay: Int = 0...
<|turn>user Implement the native Android class `SocorroConfig` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: socorro/src/main/java/com/soumya/wwdablu/socorro/SocorroConfig.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kot...
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/honeybilly/cleanbrowser/App.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.honeybilly.cleanbrowser import android.app.Application import com.honeybilly.cleanbrowser.data.DaoMaster import com.honeybilly.cleanbrowser.data.DaoSession import com.honeybilly.cleanbrowser.data.WebViewOpenHelper /** * Created by liqi on 11:36. * * */ class App : Application() { private...
<|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/honeybilly/cleanbrowser/App.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <...
Implement the native Android class `URLSpanNoUnderline` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: linkable-text/src/main/java/com/github/fobid/linkabletext/widget/UrlSpanNoUnderline.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.github.fobid.linkabletext.widget import android.text.TextPaint import android.text.style.URLSpan internal class URLSpanNoUnderline( url: String ) : URLSpan(url) { override fun updateDrawState(ds: TextPaint) { super.updateDrawState(ds) ds.isUnderlineText = false } } `...
<|turn>user Implement the native Android class `URLSpanNoUnderline` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: linkable-text/src/main/java/com/github/fobid/linkabletext/widget/UrlSpanNoUnderline.kt Language: Kotlin Framework: Androi...
Implement the native Android class `Connectivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: crowdin/src/main/java/com/crowdin/platform/data/remote/Connectivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.crowdin.platform.data.remote import android.content.Context import android.net.ConnectivityManager import android.net.NetworkInfo internal class Connectivity private constructor() { companion object { fun isOnline(context: Context): Boolean { val info = getNetworkInfo(c...
<|turn>user Implement the native Android class `Connectivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: crowdin/src/main/java/com/crowdin/platform/data/remote/Connectivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose /...
Implement the native Android class `MainVM` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/kotlin/cz/covid19cz/erouska/ui/main/MainVM.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package cz.covid19cz.erouska.ui.main import androidx.hilt.lifecycle.ViewModelInject import androidx.lifecycle.Lifecycle import androidx.lifecycle.OnLifecycleEvent import arch.livedata.SafeMutableLiveData import com.google.firebase.auth.FirebaseAuth import cz.covid19cz.erouska.R import cz.covid19cz.erouska.ui...
<|turn>user Implement the native Android class `MainVM` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/kotlin/cz/covid19cz/erouska/ui/main/MainVM.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines...
Implement the Android ViewModel `BaseViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: client/src/androidMain/kotlin/com/oztechan/ccc/client/base/BaseViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (c) 2020 <NAME>. All rights reserved. */ package com.github.mustafaozhan.ccc.client.base import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import kotlinx.coroutines.CoroutineScope @Suppress("EmptyDefaultConstructor") actual open class BaseViewModel actual constru...
<|turn>user Implement the Android ViewModel `BaseViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: client/src/androidMain/kotlin/com/oztechan/ccc/client/base/BaseViewModel.kt...
Provide the native Android implementation for `Config.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: NotesFirebase(Kotlin)/app/src/main/java/com/example/notesfirebase/utlis/Config.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.notesfirebase.utlis import android.content.Context import androidx.appcompat.app.AlertDialog import com.example.notesfirebase.R import com.google.android.material.dialog.MaterialAlertDialogBuilder object Config { var dialog: AlertDialog? = null fun showDialog(context: Context) { ...
<|turn>user Provide the native Android implementation for `Config.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: NotesFirebase(Kotlin)/app/src/main/java/com/example/notesfirebase/utlis/Config.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|...
Implement the native Android class `RemoteAuthTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: wear/wear-phone-interactions/src/test/java/androidx/wear/phone/interactions/authentication/RemoteAuthTest.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 `RemoteAuthTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: wear/wear-phone-interactions/src/test/java/androidx/wear/phone/interactions/authentication/RemoteAuthTest.kt Language: Kotlin...
Provide the native Android implementation for `ClickTextInWebView.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: paymentsheet-example/src/androidTest/java/com/stripe/android/test/core/ui/ClickTextInWebView.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.stripe.android.test.core.ui import androidx.test.uiautomator.By import androidx.test.uiautomator.UiDevice import androidx.test.uiautomator.UiObject2 import androidx.test.uiautomator.Until private const val DefaultDelayInMillis = 5_000L private const val DefaultTimeoutInMillis = 10_000L internal...
<|turn>user Provide the native Android implementation for `ClickTextInWebView.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: paymentsheet-example/src/androidTest/java/com/stripe/android/test/core/ui/ClickTextInWebView.kt Language: Kotlin Framework: AndroidX / Jetpack Compose...
Provide the native Android implementation for `DialogFragmentExtensions.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: kirby/src/main/java/com/kosoku/kirby/extension/DialogFragmentExtensions.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.kosoku.kirby.extension import androidx.fragment.app.DialogFragment import androidx.fragment.app.Fragment import com.kosoku.kirby.fragment.KBYFragment import com.kosoku.kirby.fragment.NavigationFragment import timber.log.Timber /** * Extension on [DialogFragment] to get the fragment it was prese...
<|turn>user Provide the native Android implementation for `DialogFragmentExtensions.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: kirby/src/main/java/com/kosoku/kirby/extension/DialogFragmentExtensions.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Corou...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ResultScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/gaugustini/shiny/presentation/result/ResultScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.gaugustini.shiny.presentation.result import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Surface import androidx.com...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ResultScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/gaugustini/shiny/presentation/result/ResultScreen.kt Language: Kotlin...
Provide the native Android implementation for `ThemeFunctions.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: app/src/main/kotlin/com/citrus/theme/ThemeFunctions.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package substratum.theme.template import android.annotation.SuppressLint import android.app.Activity import android.content.Context import android.content.Intent import android.content.pm.PackageManager import android.content.pm.Signature import android.net.Uri import android.os.RemoteException import androi...
<|turn>user Provide the native Android implementation for `ThemeFunctions.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: app/src/main/kotlin/com/citrus/theme/ThemeFunctions.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>model ```k...
Provide the native Android implementation for `ClockArrowDownload.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/ClockArrowDownload.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.konyaco.fluent.icons.filled 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.Filled.ClockArrowDownload: ImageVector get() { if (_clockA...
<|turn>user Provide the native Android implementation for `ClockArrowDownload.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/ClockArrowDownload.kt Language: Kotlin Framework: AndroidX / Jetpack Compo...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `setDrawerLayoutMaterial3`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/example/tobechain/ui/component/ModalNavigationDrawer.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.tobechain.ui.component import android.util.Log import androidx.compose.foundation.layout.* import androidx.compose.material3.* import androidx.compose.runtime.Composable import androidx.compose.runtime.MutableState import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier i...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `setDrawerLayoutMaterial3`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/example/tobechain/ui/component/ModalNavigationDrawer.kt L...
Provide the native Android implementation for `ServiceUtil.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: feature/screencapture/src/main/java/com/lingshot/screencapture/util/ServiceUtil.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2023 Lingshot * * 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 ag...
<|turn>user Provide the native Android implementation for `ServiceUtil.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: feature/screencapture/src/main/java/com/lingshot/screencapture/util/ServiceUtil.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines...
Implement the Android ViewModel `OrderHistoryViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: SubShop/app/src/main/java/com/diekvoss/subshop/screens/history/OrderHistoryViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.diekvoss.subshop.screens.history import android.app.Application import androidx.lifecycle.AndroidViewModel import androidx.lifecycle.LiveData import com.diekvoss.subshop.OrderEntity import com.diekvoss.subshop.OrderRepository /** * @property repository local database * @property allOrders all ...
<|turn>user Implement the Android ViewModel `OrderHistoryViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: SubShop/app/src/main/java/com/diekvoss/subshop/screens/history/Orde...
Provide the native Android implementation for `applyImePadding.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: core/ui/src/androidMain/kotlin/ru/kyamshanov/mission/core/ui/extensions/applyImePadding.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package ru.kyamshanov.mission.core.ui.extensions import androidx.compose.foundation.layout.WindowInsets import androidx.compose.foundation.layout.imePadding import androidx.compose.foundation.layout.navigationBarsPadding import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation....
<|turn>user Provide the native Android implementation for `applyImePadding.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: core/ui/src/androidMain/kotlin/ru/kyamshanov/mission/core/ui/extensions/applyImePadding.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotli...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `LiquidScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/kotlin/io/xps/playground/ui/feature/liquidWidget/LiquidWidgetFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.xps.playground.ui.feature.liquidWidget import android.graphics.ColorMatrix import android.graphics.ColorMatrixColorFilter import android.graphics.RenderEffect import android.graphics.Shader import android.os.Build import android.os.Bundle import android.view.View import androidx.annotation.Require...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `LiquidScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/kotlin/io/xps/playground/ui/feature/liquidWidget/LiquidWidgetFragment.kt Langu...
Implement the native Android class `EditAssignmentActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: MzaziConnectApplication/app/src/main/java/sakigake/mzaziconnect/mzaziconnectapplication/ui/teacher/EditAssignmentActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package sakigake.mzaziconnect.mzaziconnectapplication.ui.teacher import android.app.DatePickerDialog import android.content.Intent import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.view.View import android.widget.AdapterView import android.widget.ArrayAdapter import andr...
<|turn>user Implement the native Android class `EditAssignmentActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: MzaziConnectApplication/app/src/main/java/sakigake/mzaziconnect/mzaziconnectapplication/ui/teacher/EditAssignmentActi...
Provide the native Android implementation for `ZipUtil.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: nativelogger/src/main/java/cn/jesse/nativelogger/util/ZipUtil.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package cn.jesse.nativelogger.util import android.text.TextUtils import cn.jesse.nativelogger.NLogger import java.io.* import java.nio.charset.Charset import java.util.zip.ZipEntry import java.util.zip.ZipOutputStream /** * 压缩工具 * * @author Jesse */ object ZipUtil { val SUFFIX_ZIP = ".zip" priva...
<|turn>user Provide the native Android implementation for `ZipUtil.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: nativelogger/src/main/java/cn/jesse/nativelogger/util/ZipUtil.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>model `...
Implement the native Android class `GeneratedProtocolBridgeTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: redwood-protocol-guest/src/commonTest/kotlin/app/cash/redwood/protocol/guest/GuestProtocolAdapterTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (C) 2022 Square, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
<|turn>user Implement the native Android class `GeneratedProtocolBridgeTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: redwood-protocol-guest/src/commonTest/kotlin/app/cash/redwood/protocol/guest/GuestProtocolAdapterTest.kt Languag...
Design a reactive Android Room DAO interface `ExpressionDao` in Kotlin. Provide reactive Coroutine Flow queries, upsert capabilities, and transaction safety.
Repository path: ground/src/main/java/com/google/android/ground/persistence/local/room/dao/TaskDao.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2024 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 Design a reactive Android Room DAO interface `ExpressionDao` in Kotlin. Provide reactive Coroutine Flow queries, upsert capabilities, and transaction safety. Context: Repository path: ground/src/main/java/com/google/android/ground/persistence/local/room/dao/TaskDao.kt Language: Kotlin Framework: AndroidX /...
Implement the native Android class `ImportOrderingRuleIdeaTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: ktlint-ruleset-standard/src/test/kotlin/com/pinterest/ktlint/ruleset/standard/importordering/ImportOrderingRuleIdeaTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.pinterest.ktlint.ruleset.standard.importordering import com.pinterest.ktlint.core.LintError import com.pinterest.ktlint.core.api.FeatureInAlphaState import com.pinterest.ktlint.ruleset.standard.ImportOrderingRule import com.pinterest.ktlint.test.EditorConfigOverride import com.pinterest.ktlint.te...
<|turn>user Implement the native Android class `ImportOrderingRuleIdeaTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: ktlint-ruleset-standard/src/test/kotlin/com/pinterest/ktlint/ruleset/standard/importordering/ImportOrderingRuleId...
Implement the native Android class `WeatherApplication` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/pl/krzysztof/drobek/wemple3/WeatherApplication.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 `WeatherApplication` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/pl/krzysztof/drobek/wemple3/WeatherApplication.kt Language: Kotlin Framework: AndroidX / Jetpack Compos...
Implement the native Android class `CreaturesListFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: cap11-api-backend/src/main/java/tech/salvatore/livro_android_kotlin_paulo_salvatore/view/creatures/CreaturesListFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package tech.salvatore.livro_android_kotlin_paulo_salvatore.view.creatures import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import androidx.fragment.app.viewModels import androidx.navigation.fragment.findN...
<|turn>user Implement the native Android class `CreaturesListFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: cap11-api-backend/src/main/java/tech/salvatore/livro_android_kotlin_paulo_salvatore/view/creatures/CreaturesListFragme...
Implement the native Android class `FishingSpotNavigatorImpl` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: presentation/fishingspot/src/main/java/com/qure/fishingspot/FishingSpotNavigatorImpl.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.qure.fishingspot import android.content.Context import android.content.Intent import com.qure.navigator.FishingSpotNavigator import javax.inject.Inject class FishingSpotNavigatorImpl @Inject constructor(): FishingSpotNavigator { override fun intent(context: Context): Intent { return...
<|turn>user Implement the native Android class `FishingSpotNavigatorImpl` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: presentation/fishingspot/src/main/java/com/qure/fishingspot/FishingSpotNavigatorImpl.kt Language: Kotlin Framework:...
Provide the native Android implementation for `UserCowboy.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: straight/src/commonMain/kotlin/me/localx/icons/straight/filled/UserCowboy.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package me.localx.icons.straight.filled import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Butt import androidx.compose.ui.graphics.StrokeJoin.Compa...
<|turn>user Provide the native Android implementation for `UserCowboy.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: straight/src/commonMain/kotlin/me/localx/icons/straight/filled/UserCowboy.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>...
Implement the native Android class `BluetoothService` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: library/src/rpiMain/kotlin/dev/bluefalcon/BluetoothService.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package dev.bluefalcon import android.bluetooth.BluetoothGattService actual class BluetoothService(val service: BluetoothGattService) { actual val name: String? get() = service.uuid.toString() actual val characteristics: List<BluetoothCharacteristic> get() = service.characteristics.m...
<|turn>user Implement the native Android class `BluetoothService` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: library/src/rpiMain/kotlin/dev/bluefalcon/BluetoothService.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotl...
Implement the native Android class `VideoStreamFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/kotlin/com/xiaocydx/sample/paging/complex/VideoStreamFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.xiaocydx.sample.paging.complex import android.os.Bundle import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.core.view.WindowInsetsCompat import androidx.core.view.updatePadding import androidx.fragment.app.Fragment impo...
<|turn>user Implement the native Android class `VideoStreamFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/kotlin/com/xiaocydx/sample/paging/complex/VideoStreamFragment.kt Language: Kotlin Framework: AndroidX / Jet...
Provide the native Android implementation for `FaceConfused.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: straight/src/commonMain/kotlin/me/localx/icons/straight/bold/FaceConfused.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package me.localx.icons.straight.bold import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Butt import androidx.compose.ui.graphics.StrokeJoin.Compani...
<|turn>user Provide the native Android implementation for `FaceConfused.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: straight/src/commonMain/kotlin/me/localx/icons/straight/bold/FaceConfused.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn...
Implement the native Android class `PreferenceTag` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: composeApp/src/commonMain/kotlin/dev/senk0n/moerisuto/preferences/model/Preference.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package dev.senk0n.moerisuto.preferences.model import dev.senk0n.moerisuto.core.className import dev.senk0n.moerisuto.core.classNameOf import kotlinx.coroutines.flow.StateFlow interface Preference { val tag: PreferenceTag get() = PreferenceTag(className) } data class PreferenceTag(val tag: String) int...
<|turn>user Implement the native Android class `PreferenceTag` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: composeApp/src/commonMain/kotlin/dev/senk0n/moerisuto/preferences/model/Preference.kt Language: Kotlin Framework: AndroidX / J...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `loginWebUI`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/hfut/schedule/ui/Activity/success/search/Search/LoginWeb/loginWebUI.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.hfut.schedule.ui.Activity.success.search.Search.LoginWeb import android.os.Handler import android.os.Looper import androidx.compose.animation.core.Spring import androidx.compose.animation.core.animateFloatAsState import androidx.compose.animation.core.spring import androidx.compose.foundation.cli...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `loginWebUI`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/hfut/schedule/ui/Activity/success/search/Search/LoginWeb/loginWebUI.kt ...
Implement the Android ViewModel `SendMemoViewModel` 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/app/odapplications/bitstashwallet/modules/send/submodules/memo/SendMemoViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package app.odapplications.bitstashwallet.modules.send.submodules.memo import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel class SendMemoViewModel : ViewModel(), SendMemoModule.IView { lateinit var delegate: SendMemoModule.IViewDelegate val maxLength = MutableLiveData<Int...
<|turn>user Implement the Android ViewModel `SendMemoViewModel` 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/app/odapplications/bitstashwallet/modules/send/submod...
Provide the native Android implementation for `BookPencil.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: linea/src/commonMain/kotlin/compose/icons/lineaicons/basic/BookPencil.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package compose.icons.lineaicons.basic 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.com...
<|turn>user Provide the native Android implementation for `BookPencil.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: linea/src/commonMain/kotlin/compose/icons/lineaicons/basic/BookPencil.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|t...
Implement the native Android class `MediaFilePickerActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: filepickerlibrary/src/main/java/com/nareshchocha/filepickerlibrary/ui/activitys/MediaFilePickerActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.nareshchocha.filepickerlibrary.ui.activitys import android.Manifest import android.app.Activity import android.content.Context import android.content.Intent import android.content.pm.PackageManager import android.net.Uri import android.os.Build import android.os.Bundle import androidx.activity.re...
<|turn>user Implement the native Android class `MediaFilePickerActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: filepickerlibrary/src/main/java/com/nareshchocha/filepickerlibrary/ui/activitys/MediaFilePickerActivity.kt Language:...
Provide the native Android implementation for `ApplicationComponent.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: app/src/main/java/com/danielvilha/luasapp/di/component/ApplicationComponent.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.danielvilha.luasapp.di.component import android.app.Application import com.danielvilha.luasapp.AppApplication import com.danielvilha.luasapp.data.remote.MiddlewareApi import com.danielvilha.luasapp.data.repository.MiddlewareRepository import com.danielvilha.luasapp.di.module.ApplicationModule imp...
<|turn>user Provide the native Android implementation for `ApplicationComponent.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: app/src/main/java/com/danielvilha/luasapp/di/component/ApplicationComponent.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Corou...
Implement the native Android class `SponsorsScreenRobot` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: core/testing/src/main/java/io/github/droidkaigi/confsched/testing/robot/SponsorsScreenRobot.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.github.droidkaigi.confsched.testing.robot import androidx.compose.ui.test.assertContentDescriptionEquals import androidx.compose.ui.test.assertIsDisplayed import androidx.compose.ui.test.filter import androidx.compose.ui.test.hasTestTag import androidx.compose.ui.test.hasText import androidx.compo...
<|turn>user Implement the native Android class `SponsorsScreenRobot` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: core/testing/src/main/java/io/github/droidkaigi/confsched/testing/robot/SponsorsScreenRobot.kt Language: Kotlin Framewor...
Implement the native Android class `RelatedFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/hal/kaiyan/ui/home/fragment/RelatedFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.hal.kaiyan.ui.home.fragment import android.annotation.SuppressLint import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.viewModels import androidx.lifecycle.lifecycleScope import androidx.recyclerview.widge...
<|turn>user Implement the native Android class `RelatedFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/hal/kaiyan/ui/home/fragment/RelatedFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose ...
Provide the native Android implementation for `ActivityExtensions.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: app/src/main/java/com/mkdev/zerotohero/extension/ActivityExtensions.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.d204.algo.ui.extension import android.app.Activity import android.content.Context import android.content.Intent import android.view.View import android.widget.Toast import androidx.fragment.app.Fragment import com.google.android.material.snackbar.Snackbar internal fun Activity.showSnackBar(view:...
<|turn>user Provide the native Android implementation for `ActivityExtensions.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: app/src/main/java/com/mkdev/zerotohero/extension/ActivityExtensions.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn...
Implement the native Android class `TvBriefModel` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/kotlin/taiwan/no1/app/mvp/models/tv/TvBriefModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package taiwan.no1.app.mvp.models.tv import android.os.Parcel import android.os.Parcelable import taiwan.no1.app.mvp.models.IVisitable import taiwan.no1.app.ui.adapter.viewholder.viewtype.IViewTypeFactory import java.util.* /** * * @author Jieyi * @since 2/5/17 */ data class TvBriefModel(val poster_...
<|turn>user Implement the native Android class `TvBriefModel` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/kotlin/taiwan/no1/app/mvp/models/tv/TvBriefModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotli...
Implement the native Android class `SettingsItemSwitchView` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/kotlin/app/luisramos/ler/ui/settings/SettingsItemSwitchView.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package app.luisramos.ler.ui.settings import android.content.Context import android.util.AttributeSet import android.view.Gravity import android.widget.TextView import androidx.core.view.isGone import androidx.core.view.isVisible import androidx.core.view.updatePadding import app.luisramos.ler.R import app.l...
<|turn>user Implement the native Android class `SettingsItemSwitchView` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/kotlin/app/luisramos/ler/ui/settings/SettingsItemSwitchView.kt Language: Kotlin Framework: AndroidX / Je...
Implement the native Android class `A` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: android-kotlin/android-extensions-idea/testData/android/parcel/checker/constructors.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package test import kotlinx.parcelize.Parcelize import android.os.Parcelable @Parcelize class A : Parcelable @Parcelize class B(val firstName: String, val secondName: String) : Parcelable @Parcelize class C(val firstName: String, <error descr="[PARCELABLE_CONSTRUCTOR_PARAMETER_SHOULD_BE_VAL_OR_VAR] 'Parce...
<|turn>user Implement the native Android class `A` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: android-kotlin/android-extensions-idea/testData/android/parcel/checker/constructors.kt Language: Kotlin Framework: AndroidX / Jetpack Comp...