instruction
stringlengths
113
251
input
stringlengths
98
353
output
stringlengths
135
454k
text
stringlengths
443
454k
Implement the native Android class `GridViewFilterActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/cv4j/app/activity/GridViewFilterActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.cv4j.app.activity import android.content.res.Resources import android.graphics.BitmapFactory import android.os.Bundle import androidx.recyclerview.widget.GridLayoutManager import androidx.recyclerview.widget.RecyclerView import com.cv4j.app.R import com.cv4j.app.adapter.GridViewFilterAdapter impo...
<|turn>user Implement the native Android class `GridViewFilterActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/cv4j/app/activity/GridViewFilterActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Comp...
Provide the native Android implementation for `BookFont.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/BookFont.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package me.localx.icons.rounded.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.Companio...
<|turn>user Provide the native Android implementation for `BookFont.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/BookFont.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>...
Implement the native Android class `ImageGenerationHelper` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: codelabs/image_generation_basic/android/start/app/src/main/java/com/google/mediapipe/examples/imagegeneration/ImageGenerationHelper.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.google.mediapipe.examples.imagegeneration import android.content.Context import android.graphics.Bitmap import android.graphics.Canvas import android.graphics.Color import android.graphics.Paint import com.google.mediapipe.framework.image.BitmapExtractor import com.google.mediapipe.framework.imag...
<|turn>user Implement the native Android class `ImageGenerationHelper` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: codelabs/image_generation_basic/android/start/app/src/main/java/com/google/mediapipe/examples/imagegeneration/ImageGen...
Implement the native Android class `PixabayImagePagingSource` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: core/network/src/main/java/com/wei/picquest/core/network/pagingsource/PixabayImagePagingSource.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.wei.picquest.core.network.pagingsource import androidx.paging.PagingSource import androidx.paging.PagingState import com.wei.picquest.core.network.PqNetworkDataSource import com.wei.picquest.core.network.model.NetworkImageDetail class PixabayImagePagingSource( private val pqNetworkDataSource...
<|turn>user Implement the native Android class `PixabayImagePagingSource` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: core/network/src/main/java/com/wei/picquest/core/network/pagingsource/PixabayImagePagingSource.kt Language: Kotlin ...
Provide the native Android implementation for `ImageGlobe.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/ImageGlobe.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.ImageGlobe: ImageVector get() { if (_imageGlobe != ...
<|turn>user Provide the native Android implementation for `ImageGlobe.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/ImageGlobe.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coro...
Implement the native Android class `FakeTrackListRepository` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: feature_book_details/src/androidTest/java/com/allsoftdroid/feature/book_details/presentation/utils/FakeTrackListRepository.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.allsoftdroid.feature.book_details.presentation.utils import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import com.allsoftdroid.feature.book_details.data.model.TrackFormat import com.allsoftdroid.feature.book_details.domain.model.AudioBookTrackDomainModel import com.alls...
<|turn>user Implement the native Android class `FakeTrackListRepository` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: feature_book_details/src/androidTest/java/com/allsoftdroid/feature/book_details/presentation/utils/FakeTrackListRepo...
Implement the native Android class `RatesDatabase` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/shannan/converter/data/source/local/RatesDatabase.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (C) 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
<|turn>user Implement the native Android class `RatesDatabase` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/shannan/converter/data/source/local/RatesDatabase.kt Language: Kotlin Framework: AndroidX / Jetpack Comp...
Implement the native Android class `AndroidFontTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: compose/ui/ui-text/src/androidAndroidTest/kotlin/androidx/compose/ui/text/font/AndroidFontTest.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 `AndroidFontTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: compose/ui/ui-text/src/androidAndroidTest/kotlin/androidx/compose/ui/text/font/AndroidFontTest.kt Language: Kotlin Framework...
Implement the native Android class `ImageEditorIntentBuilder` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: ananas/src/main/java/iamutkarshtiwari/github/io/ananas/editimage/ImageEditorIntentBuilder.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package iamutkarshtiwari.github.io.ananas.editimage import android.content.Context import android.content.Intent class ImageEditorIntentBuilder @JvmOverloads constructor(private val context: Context, private val sourcePath: String?, ...
<|turn>user Implement the native Android class `ImageEditorIntentBuilder` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: ananas/src/main/java/iamutkarshtiwari/github/io/ananas/editimage/ImageEditorIntentBuilder.kt Language: Kotlin Frame...
Implement the native Android class `AppPropItemView` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/kotlin/com/absinthe/libchecker/features/applist/detail/ui/view/AppPropItemView.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.absinthe.libchecker.view.detail import android.content.Context import android.util.TypedValue import android.view.ContextThemeWrapper import android.view.ViewGroup import android.widget.ImageView import androidx.appcompat.widget.AppCompatImageButton import androidx.appcompat.widget.AppCompatTextV...
<|turn>user Implement the native Android class `AppPropItemView` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/kotlin/com/absinthe/libchecker/features/applist/detail/ui/view/AppPropItemView.kt Language: Kotlin Framework: A...
Implement the native Android class `Block` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: sdk/src/main/java/app/knock/client/KnockFeed.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package app.knock.client import android.util.Log import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import org.phoenixframework.Channel import org.phoenixframework.Message import org.phoenixframework.Socket import java.time.ZonedDateTime @JsonIg...
<|turn>user Implement the native Android class `Block` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: sdk/src/main/java/app/knock/client/KnockFeed.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|tu...
Implement the native Android class `TasksContainerScreen` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: admin/app/src/main/java/com/yazan98/groupyadmin/screens/TasksContainerScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.yazan98.groupyadmin.screens import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import com.yazan98.groupyadmin.R class TasksContainerScreen : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) se...
<|turn>user Implement the native Android class `TasksContainerScreen` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: admin/app/src/main/java/com/yazan98/groupyadmin/screens/TasksContainerScreen.kt Language: Kotlin Framework: AndroidX / ...
Implement the native Android class `dependency` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: koin-projects/koin-androidx-viewmodel/src/main/java/org/koin/androidx/viewmodel/compat/ViewModelCompat.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2017-2018 the original author or 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
<|turn>user Implement the native Android class `dependency` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: koin-projects/koin-androidx-viewmodel/src/main/java/org/koin/androidx/viewmodel/compat/ViewModelCompat.kt Language: Kotlin Framew...
Implement the native Android class `PushNotificationFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: play-services-core/src/main/kotlin/org/microg/gms/ui/PushNotificationFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * SPDX-FileCopyrightText: 2020, microG Project Team * SPDX-License-Identifier: Apache-2.0 */ package org.microg.gms.ui import android.os.Bundle import android.view.* import androidx.fragment.app.Fragment import androidx.lifecycle.lifecycleScope import androidx.navigation.fragment.findNavController impo...
<|turn>user Implement the native Android class `PushNotificationFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: play-services-core/src/main/kotlin/org/microg/gms/ui/PushNotificationFragment.kt Language: Kotlin Framework: Androi...
Implement the native Android class `TaskDetailActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/ncs/o2/UI/Tasks/TaskPage/TaskDetailActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.ncs.o2.UI.Tasks.TaskPage import android.content.Intent import android.content.IntentFilter import android.net.ConnectivityManager import android.os.Bundle import android.os.Handler import android.os.Looper import androidx.activity.viewModels import androidx.appcompat.app.AppCompatActivity import ...
<|turn>user Implement the native Android class `TaskDetailActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/ncs/o2/UI/Tasks/TaskPage/TaskDetailActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compo...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `MyApp`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/example/androiddevchallenge/MainActivity.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 Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `MyApp`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/example/androiddevchallenge/MainActivity.kt Language: Kotlin Framework: Andr...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `IndividualProductUpdatePage`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/example/belindas_closet/screen/IndividualProductUpdate.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.belindas_closet.screen import androidx.compose.foundation.Image import androidx.compose.foundation.border import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.lay...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `IndividualProductUpdatePage`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/example/belindas_closet/screen/IndividualProductUpdate...
Implement the native Android class `UserRegister` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/tiptime/UserRegister.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.tiptime import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.setValue import androidx.compose.ui.semantics.SemanticsProperties.Password import androidx.lifecycle.ViewModel import com.example.tiptime.Data.Booking import com...
<|turn>user Implement the native Android class `UserRegister` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/tiptime/UserRegister.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutine...
Implement the native Android class `BaseTestCase` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: firebase-inappmessaging-display/src/test/java/com/google/firebase/inappmessaging/display/ktx/InAppMessagingDisplayTests.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin // Copyright 2019 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
<|turn>user Implement the native Android class `BaseTestCase` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: firebase-inappmessaging-display/src/test/java/com/google/firebase/inappmessaging/display/ktx/InAppMessagingDisplayTests.kt Lang...
Implement the native Android class `DSLGeneratorTask` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: buildSrc/src/main/kotlin/trikita/anvilgen/DSLGeneratorTask.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package trikita.anvilgen import androidx.annotation.NonNull import com.squareup.javapoet.* import groovy.lang.Closure import org.gradle.api.DefaultTask import org.gradle.api.tasks.TaskAction import java.io.File import java.lang.Deprecated import java.lang.reflect.Method import java.net.URL import java.net.UR...
<|turn>user Implement the native Android class `DSLGeneratorTask` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: buildSrc/src/main/kotlin/trikita/anvilgen/DSLGeneratorTask.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotl...
Implement the native Android class `ApplicationBackup` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/jacktor/batterylab/ApplicationBackup.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.jacktor.batterylab import android.app.backup.BackupAgent import android.app.backup.BackupDataInput import android.app.backup.BackupDataOutput import android.os.ParcelFileDescriptor import com.jacktor.batterylab.utilities.PreferencesKeys.BATTERY_LEVEL_TO import com.jacktor.batterylab.utilities.Pre...
<|turn>user Implement the native Android class `ApplicationBackup` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/jacktor/batterylab/ApplicationBackup.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kot...
Implement the Android ViewModel `ViewModelTests` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: app/src/test/java/com/example/cupcake/ViewModelTests.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.cupcake import androidx.arch.core.executor.testing.InstantTaskExecutorRule import com.example.cupcake.model.OrderViewModel import org.junit.Assert.assertEquals import org.junit.Rule import org.junit.Test class ViewModelTests { @get:Rule var instantTaskExecutorRule = InstantTaskEx...
<|turn>user Implement the Android ViewModel `ViewModelTests` 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/test/java/com/example/cupcake/ViewModelTests.kt Language: Kotlin F...
Implement the native Android class `NavDestination` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: modules/nav/src/main/kotlin/dev/jonpoulton/actual/nav/NavDestination.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package dev.jonpoulton.actual.nav import androidx.compose.runtime.Composable import androidx.navigation.NavHostController import dev.jonpoulton.actual.listbudgets.ui.ListBudgetsScreen import dev.jonpoulton.actual.login.ui.LoginScreen import dev.jonpoulton.actual.serverurl.ui.ServerUrlScreen sealed class Nav...
<|turn>user Implement the native Android class `NavDestination` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: modules/nav/src/main/kotlin/dev/jonpoulton/actual/nav/NavDestination.kt Language: Kotlin Framework: AndroidX / Jetpack Compos...
Implement the native Android class `CommonFlow` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: shared/src/commonMain/kotlin/com/movies/domain/util/FlowHelper.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.movies.domain.util import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.flow.* /** * Got my idea for this from stackoverflow post * Source: * https://stackoverflow.com/questions/64175099/listen-to-kotlin-coroutine-flow-from-ios */ /** * ...
<|turn>user Implement the native Android class `CommonFlow` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: shared/src/commonMain/kotlin/com/movies/domain/util/FlowHelper.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin...
Implement the native Android class `AddActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/bricklist/AddActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.bricklist import android.annotation.SuppressLint import android.app.Activity import android.content.ContentValues import android.content.Context import android.content.Intent import android.database.sqlite.SQLiteDatabase import android.os.* import androidx.appcompat.app.AppCompatActivity ...
<|turn>user Implement the native Android class `AddActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/bricklist/AddActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutine...
Implement the native Android class `AlgorandFloatingActionButton` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: android/app/src/main/java/com/algorand/android/customviews/AlgorandFloatingActionButton.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 `AlgorandFloatingActionButton` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: android/app/src/main/java/com/algorand/android/customviews/AlgorandFloatingActionButton.kt Language: Kotlin Fra...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ClaudioDropdownMenu`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: common/src/commonMain/kotlin/com/niji/claudio/common/ui/widget/ClaudioDropdownMenu.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.niji.claudio.common.ui.widget import androidx.compose.foundation.layout.ColumnScope import androidx.compose.material.DropdownMenu import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier @Composable fun ClaudioDropdownMenu( modifier: Modifier, expanded: Boolean, ...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ClaudioDropdownMenu`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: common/src/commonMain/kotlin/com/niji/claudio/common/ui/widget/ClaudioDropdownMenu.k...
Implement the native Android class `ImagePipelineExperiments` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: imagepipeline/src/main/java/com/facebook/imagepipeline/core/ImagePipelineExperiments.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.imagepipeline.core import android.content.Context import android.graphics.Bitmap import com.faceb...
<|turn>user Implement the native Android class `ImagePipelineExperiments` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: imagepipeline/src/main/java/com/facebook/imagepipeline/core/ImagePipelineExperiments.kt Language: Kotlin Framework:...
Implement the native Android class `FormPickerDropDownElement` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: form/src/main/java/com/thejuki/kformmaster/model/FormPickerDropDownElement.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.thejuki.kformmaster.model import android.app.AlertDialog import android.view.View import android.widget.ArrayAdapter import android.widget.TextView import androidx.appcompat.widget.AppCompatEditText import com.thejuki.kformmaster.R import com.thejuki.kformmaster.helper.FormBuildHelper import com....
<|turn>user Implement the native Android class `FormPickerDropDownElement` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: form/src/main/java/com/thejuki/kformmaster/model/FormPickerDropDownElement.kt Language: Kotlin Framework: AndroidX...
Implement the native Android class `TokenizedOutputLiveCallbackRegistry` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: livecallback/src/main/java/com/ricarvalho/livecallback/registry/TokenizedOutputLiveCallbackRegistry.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.ricarvalho.livecallback.registry import androidx.lifecycle.Lifecycle import androidx.lifecycle.Lifecycle.State.DESTROYED import androidx.lifecycle.Lifecycle.State.RESUMED import androidx.lifecycle.Lifecycle.State.STARTED import androidx.lifecycle.LifecycleOwner import com.ricarvalho.livecallback....
<|turn>user Implement the native Android class `TokenizedOutputLiveCallbackRegistry` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: livecallback/src/main/java/com/ricarvalho/livecallback/registry/TokenizedOutputLiveCallbackRegistry.kt L...
Implement the native Android class `SectionFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: App/app/src/main/java/com/mengfou/ui/section/SectionFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.mengfou.ui.section import android.annotation.SuppressLint import android.os.Bundle import android.util.Log import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.webkit.WebViewClient import androidx.appcompat....
<|turn>user Implement the native Android class `SectionFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: App/app/src/main/java/com/mengfou/ui/section/SectionFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kot...
Implement the native Android class `RecipeFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: Application/app/src/main/java/com/wrmh/allmyfood/views/recipes/RecipeFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.wrmh.allmyfood.views.recipes import android.content.Context import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Toast import androidx.appcompat.app.AppCompatActivity import androidx.databinding.DataBindingUtil im...
<|turn>user Implement the native Android class `RecipeFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: Application/app/src/main/java/com/wrmh/allmyfood/views/recipes/RecipeFragment.kt Language: Kotlin Framework: AndroidX / Jetpa...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `HomeScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: EcoSwapAndroid/src/main/java/com/darrenthiores/ecoswap/android/presentation/home/HomeScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.darrenthiores.ecoswap.android.presentation.home import androidx.compose.foundation.ExperimentalFoundationApi import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.fillMaxSize import androidx.compose....
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `HomeScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: EcoSwapAndroid/src/main/java/com/darrenthiores/ecoswap/android/presentation/home/HomeScreen.k...
Provide the native Android implementation for `ErrorUtil.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: relax-business-component/src/main/java/com/ustory/relax_business_component/utils/ErrorUtil.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.ustory.relax_business_component.utils import android.app.Activity import android.content.Context import android.content.DialogInterface import com.google.gson.JsonSyntaxException import com.ustory.relax_basic_component.core.dialog.ErrorDialog import com.ustory.relax_business_component.R import co...
<|turn>user Provide the native Android implementation for `ErrorUtil.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: relax-business-component/src/main/java/com/ustory/relax_business_component/utils/ErrorUtil.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin C...
Implement the native Android class `BeersApplication` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/rubyh/mlbcodechallenge/BeersApplication.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.rubyh.mlbcodechallenge import android.app.Application import android.content.Context import com.rubyh.mlbcodechallenge.di.appModule import com.rubyh.mlbcodechallenge.di.networkModule import org.koin.android.ext.koin.androidContext import org.koin.core.context.startKoin class BeersApplication : A...
<|turn>user Implement the native Android class `BeersApplication` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/rubyh/mlbcodechallenge/BeersApplication.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / K...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SponsorsScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: feature/sponsors/src/commonMain/kotlin/io/github/droidkaigi/confsched/sponsors/SponsorsScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.github.droidkaigi.confsched.sponsors import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.Scaffold...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SponsorsScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: feature/sponsors/src/commonMain/kotlin/io/github/droidkaigi/confsched/sponsors/SponsorsSc...
Implement the native Android class `ConstraintLayoutActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/dunchi/android_view/general/ConstraintLayoutActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.dunchi.android_view.general import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import com.dunchi.android_view.R class ConstraintLayoutActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) ...
<|turn>user Implement the native Android class `ConstraintLayoutActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/dunchi/android_view/general/ConstraintLayoutActivity.kt Language: Kotlin Framework: AndroidX ...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `GameZoneTopAppBar`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/mobilebreakero/Gamezone/ui/components/GameZoneTopAppBar.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.mobilebreakero.Gamezone.ui.composables import androidx.compose.foundation.* import androidx.compose.foundation.layout.* import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.ArrowBack import androidx.compose.material3.* import androidx.compose.runtime.* import...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `GameZoneTopAppBar`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/mobilebreakero/Gamezone/ui/components/GameZoneTopAppBar.kt Langu...
Implement the native Android class `Home` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/io/github/takusan23/Kaisendon/Home.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.github.takusan23.Kaisendon import android.Manifest import android.animation.ObjectAnimator import androidx.appcompat.app.AlertDialog import android.annotation.SuppressLint import android.app.* import android.content.* import android.content.pm.PackageManager import android.content.res.ColorStateLi...
<|turn>user Implement the native Android class `Home` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/io/github/takusan23/Kaisendon/Home.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn...
Implement the native Android class `MoviesAppDatabase` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/buchi/fullentry/movie/data/cache/MoviesAppDatabase.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.buchi.fullentry.movie.data.cache import androidx.room.Database import androidx.room.RoomDatabase @Database(entities = [ MovieData::class ], version = 1, exportSchema = false) abstract class MoviesAppDatabase: RoomDatabase() { abstract fun moviesDao(): MovieDao } ```
<|turn>user Implement the native Android class `MoviesAppDatabase` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/buchi/fullentry/movie/data/cache/MoviesAppDatabase.kt Language: Kotlin Framework: AndroidX / Jetpack...
Implement the native Android class `ActivityMessenger` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/workbook/liuwb/workbook/actions/service/bind/messengerdemo/ActivityMessenger.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.workbook.liuwb.workbook.actions.service.bind.messengerdemo import android.content.ComponentName import android.content.Context import android.content.Intent import android.content.ServiceConnection import android.os.* import android.view.View import androidx.appcompat.app.AppCompatActivity import...
<|turn>user Implement the native Android class `ActivityMessenger` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/workbook/liuwb/workbook/actions/service/bind/messengerdemo/ActivityMessenger.kt Language: Kotlin Fra...
Implement the native Android class `Colors` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/common/Theme.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package org.jetbrains.codeviewer.ui.common import androidx.compose.material.darkColors import androidx.compose.ui.graphics.Color import androidx.compose.ui.text.SpanStyle object AppTheme { val colors: Colors = Colors() val code: Code = Code() class Colors( val backgroundDark: Color = C...
<|turn>user Implement the native Android class `Colors` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/common/Theme.kt Language: Kotlin Framework: AndroidX / J...
Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: demo3/app/src/main/java/com/mokelab/demo/sdldemo3/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.mokelab.demo.sdldemo3 import android.content.Intent import android.os.Bundle import androidx.appcompat.app.AppCompatActivity class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.la...
<|turn>user Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: demo3/app/src/main/java/com/mokelab/demo/sdldemo3/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotl...
Implement the native Android class `StateSaverTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: compose/src/test/java/com/kizitonwose/calendar/compose/StateSaverTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.kizitonwose.calendar.compose import androidx.compose.runtime.saveable.Saver import androidx.compose.runtime.saveable.SaverScope import androidx.compose.runtime.saveable.listSaver import com.kizitonwose.calendar.compose.heatmapcalendar.HeatMapCalendarState import com.kizitonwose.calendar.compose.w...
<|turn>user Implement the native Android class `StateSaverTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: compose/src/test/java/com/kizitonwose/calendar/compose/StateSaverTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compo...
Implement the native Android class `AppApplication` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/tktkokym/currencyviewer/AppApplication.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.tktkokym.currencyviewer import android.app.Application import android.os.StrictMode import com.tktkokym.currencyviewer.di.appModule import org.koin.android.ext.koin.androidContext import org.koin.android.ext.koin.androidLogger import org.koin.core.context.startKoin import org.koin.core.logger.Lev...
<|turn>user Implement the native Android class `AppApplication` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/tktkokym/currencyviewer/AppApplication.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotl...
Implement the native Android class `SplashActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/kotlin/de/markusfisch/android/binaryeye/activity/SplashActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package de.markusfisch.android.binaryeye.activity import android.content.Intent import android.os.Bundle import android.support.v7.app.AppCompatActivity import de.markusfisch.android.binaryeye.app.setRestartCount class SplashActivity : AppCompatActivity() { override fun onCreate(state: Bundle?) { super.o...
<|turn>user Implement the native Android class `SplashActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/kotlin/de/markusfisch/android/binaryeye/activity/SplashActivity.kt Language: Kotlin Framework: AndroidX / Jetpac...
Provide the native Android implementation for `kotlin-runtimepermissions-coroutines.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: runtime-permission/src/main/java/jp/co/soramitsu/android_foundation/kotlin/coroutines/experimental/kotlin-runtimepermissions-coroutines.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package jp.co.soramitsu.android_foundation.kotlin.coroutines.experimental import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentActivity import jp.co.soramitsu.android_foundation.core.PermissionResult import jp.co.soramitsu.android_foundation.core.RuntimePermission import jp.co.soramitsu...
<|turn>user Provide the native Android implementation for `kotlin-runtimepermissions-coroutines.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: runtime-permission/src/main/java/jp/co/soramitsu/android_foundation/kotlin/coroutines/experimental/kotlin-runtimepermissions-corouti...
Implement the native Android class `AboutFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/kotlin/lishiyo/kotlin_arch/view/AboutFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /** * Copyright 2017 <NAME>. * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable la...
<|turn>user Implement the native Android class `AboutFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/kotlin/lishiyo/kotlin_arch/view/AboutFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin ...
Provide the native Android implementation for `ArrayBitmap.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: filepicker/src/commonMain/kotlin/com/chirrio/filepicker/ArrayBitmap.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.chirrio.filepicker import androidx.compose.ui.graphics.ImageBitmap expect fun ByteArray.toImageBitmap(context: Any, file: MPFile<Any>): ImageBitmap expect suspend fun ImageBitmap.downscale(): ImageBitmap expect fun imageBitmapFromArgb( rawArgbImageData: ByteArray, width: Int, heigh...
<|turn>user Provide the native Android implementation for `ArrayBitmap.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: filepicker/src/commonMain/kotlin/com/chirrio/filepicker/ArrayBitmap.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|tu...
Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/bignerdranch/android/geoquiz/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.bignerdranch.android.geoquiz import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.view.View import android.widget.Button import android.widget.Toast import com.bignerdranch.android.geoquiz.databinding.ActivityMainBinding class MainActivity : AppCompatActivity()...
<|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/bignerdranch/android/geoquiz/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kot...
Implement the native Android class `AvaliacaoActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/br/edu/puccampinas/pi3/AvaliacaoActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package br.edu.puccampinas.pi3 import android.content.Intent import android.os.Bundle import android.widget.TextView import android.widget.Toast import androidx.appcompat.app.AppCompatActivity import androidx.recyclerview.widget.RecyclerView import br.edu.puccampinas.pi3.databinding.ActivityAndamentoBinding ...
<|turn>user Implement the native Android class `AvaliacaoActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/br/edu/puccampinas/pi3/AvaliacaoActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kot...
Implement the native Android class `OperateTypeInActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/ztftrue/music/utils/Utils.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.ztftrue.music.utils import android.content.Context import android.content.Intent import android.content.pm.ResolveInfo import android.net.Uri import android.os.Bundle import android.support.v4.media.MediaBrowserCompat import android.text.TextUtils import android.widget.Toast import androidx.core....
<|turn>user Implement the native Android class `OperateTypeInActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/ztftrue/music/utils/Utils.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Cor...
Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: androidApp/src/androidMain/kotlin/dev/sasikanth/rss/reader/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2023 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
<|turn>user Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: androidApp/src/androidMain/kotlin/dev/sasikanth/rss/reader/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compo...
Provide the native Android implementation for `Main.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: sample/web-app-compose/src/jsMain/kotlin/com/icerockdev/web/Main.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2022 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. */ package com.icerockdev.web import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember import com.icerockdev.library.MR import com.icerockdev.library.Testing import dev.iceroc...
<|turn>user Provide the native Android implementation for `Main.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: sample/web-app-compose/src/jsMain/kotlin/com/icerockdev/web/Main.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>model `...
Implement the native Android class `PreferenceDataStore` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/composetemplate/core/data/storage/PreferenceDataStore.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.composetemplate.core.data.storage import androidx.datastore.core.DataStore import androidx.datastore.preferences.core.Preferences import androidx.datastore.preferences.core.booleanPreferencesKey import androidx.datastore.preferences.core.edit import com.composetemplate.core.data.storage.Preferenc...
<|turn>user Implement the native Android class `PreferenceDataStore` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/composetemplate/core/data/storage/PreferenceDataStore.kt Language: Kotlin Framework: AndroidX / Je...
Implement the native Android class `User` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/nl/jovmit/friends/domain/user/User.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package nl.jovmit.friends.domain.user import android.os.Parcelable import kotlinx.parcelize.Parcelize @Parcelize data class User( val id: String, val email: String, val about: String ) : Parcelable ```
<|turn>user Implement the native Android class `User` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/nl/jovmit/friends/domain/user/User.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn...
Implement the native Android class `TilesFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/muzzley/app/tiles/TilesFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.muzzley.app.tiles import android.app.Activity import android.app.ProgressDialog import android.content.Intent import android.os.Bundle import androidx.fragment.app.Fragment import androidx.swiperefreshlayout.widget.SwipeRefreshLayout import androidx.recyclerview.widget.GridLayoutManager import an...
<|turn>user Implement the native Android class `TilesFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/muzzley/app/tiles/TilesFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Corou...
Implement the native Android class `BookshelfRepository` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/cyh128/hikari_novel/data/repository/BookshelfRepository.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.cyh128.hikari_novel.data.repository import com.cyh128.hikari_novel.data.model.BookshelfNovelInfo import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.asStateFlow import javax.inject.Inject import javax.inject.Singleton @Singleton class BookshelfRepository @Inject constr...
<|turn>user Implement the native Android class `BookshelfRepository` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/cyh128/hikari_novel/data/repository/BookshelfRepository.kt Language: Kotlin Framework: AndroidX / ...
Implement the native Android class `ApplicationModule` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/kotlin/com/lazysoul/kotlinwithandroid/injection/module/ApplicationModule.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.lazysoul.kotlinwithandroid.injection.module import android.app.Application import android.content.Context import android.content.SharedPreferences import dagger.Module import dagger.Provides import javax.inject.Singleton /** * Created by Lazysoul on 2017. 7. 17.. */ @Module class ApplicationM...
<|turn>user Implement the native Android class `ApplicationModule` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/kotlin/com/lazysoul/kotlinwithandroid/injection/module/ApplicationModule.kt Language: Kotlin Framework: Andro...
Implement the native Android class `PurchaseListAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: purchase/src/main/java/com/yeuristic/purchase/PurchaseListAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.yeuristic.purchase import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView class PurchaseListAdapter( private val data: List<BasePurchaseData> ): RecyclerView.Adapter<RecyclerView.ViewHolder>() { override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): Re...
<|turn>user Implement the native Android class `PurchaseListAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: purchase/src/main/java/com/yeuristic/purchase/PurchaseListAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Comp...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `TextField`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/orange/ods/app/ui/components/textfields/TextField.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * * Copyright 2021 Orange * * Use of this source code is governed by an MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT. * / */ package com.orange.ods.app.ui.components.textfields import androidx.compose.foundation.layout.Column import and...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `TextField`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/orange/ods/app/ui/components/textfields/TextField.kt Language: Kotlin Fr...
Implement the native Android class `WorkManagerActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/lukaslechner/coroutineusecasesonandroid/usecases/coroutines/usecase15/WorkManagerActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.lukaslechner.coroutineusecasesonandroid.usecases.coroutines.usecase15 import android.os.Bundle import androidx.activity.viewModels import com.lukaslechner.coroutineusecasesonandroid.base.BaseActivity import com.lukaslechner.coroutineusecasesonandroid.base.useCase15Description import com.lukaslech...
<|turn>user Implement the native Android class `WorkManagerActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/lukaslechner/coroutineusecasesonandroid/usecases/coroutines/usecase15/WorkManagerActivity.kt Langu...
Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `TitleFragment` using Kotlinx Serialization.
Repository path: app/src/main/java/com/example/android/navigation/TitleFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.android.navigation import android.os.Bundle import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView /** * A simple [Fragment] subclass. */ class TitleFragment : Fragment() { ove...
<|turn>user Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `TitleFragment` using Kotlinx Serialization. Context: Repository path: app/src/main/java/com/example/android/navigation/TitleFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<tur...
Implement the native Android class `WeaponBowgunDetailViewHolder` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/ghstudios/android/features/weapons/detail/WeaponBowgunDetailViewHolder.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.ghstudios.android.features.weapons.detail import android.content.Context import android.graphics.Typeface import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import com.ghstudios.android.data.classes.Weapon import com.ghstudios....
<|turn>user Implement the native Android class `WeaponBowgunDetailViewHolder` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/ghstudios/android/features/weapons/detail/WeaponBowgunDetailViewHolder.kt Language: Kotli...
Implement the native Android class `CreditsFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: features/mpcredits/src/main/java/com/jpp/mpcredits/CreditsFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.jpp.mpcredits import android.content.Context import android.os.Bundle import android.os.Parcelable import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.databinding.DataBindingUtil import androidx.fragment.app.Fragment import androidx.fragment.a...
<|turn>user Implement the native Android class `CreditsFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: features/mpcredits/src/main/java/com/jpp/mpcredits/CreditsFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose...
Implement the native Android class `SpacesItemDecoration` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: modules/Plugin_Main/src/main/java/com/example/main/grid/impl/SpacesItemDecoration.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.voter.adaptivegridview.impl import android.graphics.Rect import android.view.View import androidx.recyclerview.widget.RecyclerView.ItemDecoration import androidx.recyclerview.widget.RecyclerView class SpacesItemDecoration(private val padding: Int, private val isHorizontal: Boolean) : ItemDecorat...
<|turn>user Implement the native Android class `SpacesItemDecoration` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: modules/Plugin_Main/src/main/java/com/example/main/grid/impl/SpacesItemDecoration.kt Language: Kotlin Framework: Androi...
Implement the native Android class `OpenFilmDetailsBySearchTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/androidTest/java/tech/dalapenko/kinosearch/OpenFilmDetailsBySearchTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package tech.dalapenko.kinosearch import androidx.test.ext.junit.rules.ActivityScenarioRule import com.kaspersky.kaspresso.testcases.api.testcase.TestCase import org.junit.Rule import org.junit.Test import tech.dalapenko.kinosearch.screen.FilmDetailsScreen import tech.dalapenko.kinosearch.screen.HomeScreen i...
<|turn>user Implement the native Android class `OpenFilmDetailsBySearchTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/androidTest/java/tech/dalapenko/kinosearch/OpenFilmDetailsBySearchTest.kt Language: Kotlin Framework: An...
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: common/src/main/java/com/library/common/mvvm/BaseViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.library.common.mvvm import android.view.View import androidx.lifecycle.LifecycleObserver import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.blankj.utilcode.util.NetworkUtils import com.library.common.R import com.library.common.base.BaseApplication import com....
<|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: common/src/main/java/com/library/common/mvvm/BaseViewModel.kt Language: Kot...
Implement the native Android class `CryptoFileKeyStore` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: core-data/src/main/java/com/stefang/dev/core/data/file/CryptoFileKeyStore.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.stefang.dev.core.data.file import android.security.keystore.KeyGenParameterSpec import android.security.keystore.KeyProperties import android.util.Log import com.google.gson.Gson import java.nio.charset.Charset import java.security.KeyStore import javax.crypto.Cipher import javax.crypto.KeyGenera...
<|turn>user Implement the native Android class `CryptoFileKeyStore` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: core-data/src/main/java/com/stefang/dev/core/data/file/CryptoFileKeyStore.kt Language: Kotlin Framework: AndroidX / Jetpa...
Provide the native Android implementation for `MapUtils.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: jdroid-android-google-maps/src/main/java/com/jdroid/android/google/maps/MapUtils.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.jdroid.android.google.maps import android.graphics.Bitmap import android.graphics.Canvas import android.graphics.drawable.Drawable import androidx.annotation.ColorRes import androidx.annotation.DrawableRes import androidx.core.graphics.drawable.DrawableCompat import androidx.vectordrawable.graphi...
<|turn>user Provide the native Android implementation for `MapUtils.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: jdroid-android-google-maps/src/main/java/com/jdroid/android/google/maps/MapUtils.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<t...
Implement the native Android class `MediaPickerAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: picker-media/src/main/java/chooongg/box/picker/media/MediaPickerAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package chooongg.box.picker.media import android.provider.MediaStore import chooongg.box.core.adapter.BindingAdapter import chooongg.box.core.adapter.BindingHolder import chooongg.box.ext.gone import chooongg.box.ext.visible import chooongg.box.picker.media.databinding.BoxItemPickerMediaBinding import chooon...
<|turn>user Implement the native Android class `MediaPickerAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: picker-media/src/main/java/chooongg/box/picker/media/MediaPickerAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack...
Implement the native Android class `DetailPagerFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/techbeloved/hymnbook/hymndetail/DetailPagerFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.techbeloved.hymnbook.hymndetail import android.annotation.SuppressLint import android.app.ProgressDialog import android.os.Bundle import android.view.View import android.view.ViewGroup import androidx.core.app.ShareCompat import androidx.fragment.app.Fragment import androidx.fragment.app.Fragmen...
<|turn>user Implement the native Android class `DetailPagerFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/techbeloved/hymnbook/hymndetail/DetailPagerFragment.kt Language: Kotlin Framework: AndroidX / Jetp...
Implement the native Android class `Day` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/edu/rosehulman/condrak/roseschedule/Day.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package edu.rosehulman.condrak.roseschedule import android.os.Parcelable import kotlinx.android.parcel.Parcelize @Parcelize data class Day (var name: String = "", var periods: MutableList<ClassPeriod> = ArrayList()) : Parcelable ```
<|turn>user Implement the native Android class `Day` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/edu/rosehulman/condrak/roseschedule/Day.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<...
Implement the native Android class `GalleryDataSourceImpl` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/danchoo/sample/gallery/data/datasource/GalleryDataSourceImpl.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.danchoo.sample.gallery.data.datasource import android.content.Context import android.database.Cursor import android.net.Uri import android.provider.MediaStore import com.danchoo.sample.gallery.domain.model.GalleryItemModel import dagger.hilt.android.qualifiers.ApplicationContext import kotlinx.co...
<|turn>user Implement the native Android class `GalleryDataSourceImpl` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/danchoo/sample/gallery/data/datasource/GalleryDataSourceImpl.kt Language: Kotlin Framework: Andr...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `WindowDraggableArea`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: compose/desktop/desktop/src/jvmMain/kotlin/androidx/compose/ui/window/WindowDraggableArea.jvm.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 Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `WindowDraggableArea`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: compose/desktop/desktop/src/jvmMain/kotlin/androidx/compose/ui/window/WindowDraggabl...
Implement the native Android class `BaseFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/optiontrade/br/base/BaseFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.optiontrade.br.base import android.content.SharedPreferences import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.databinding.DataBindingUtil.inflate import androidx.databinding.ViewDataBinding import androidx.fragment....
<|turn>user Implement the native Android class `BaseFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/optiontrade/br/base/BaseFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Corou...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `AuthenticationTitle`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: components/src/main/java/emperorfin/android/components/ui/screens/authentication/uicomponents/AuthenticationTitle.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2023 <NAME> (emperorfin) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `AuthenticationTitle`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: components/src/main/java/emperorfin/android/components/ui/screens/authentication/uic...
Implement the native Android class `SettingsActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/black_dragon74/mujbuddy/SettingsActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.black_dragon74.mujbuddy import android.content.SharedPreferences import android.os.Bundle import androidx.annotation.Nullable import com.black_dragon74.mujbuddy.utils.HelperFunctions import com.black_dragon74.mujbuddy.utils.SEMESTER_DATA import com.codevscolor.materialpreference.activity.Material...
<|turn>user Implement the native Android class `SettingsActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/black_dragon74/mujbuddy/SettingsActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / ...
Provide the native Android implementation for `UiResources.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: src/main/kotlin/view/UiResources.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package view import androidx.compose.foundation.defaultScrollbarStyle import androidx.compose.foundation.shape.RoundedCornerShape import shared.Colors.scrollbarHoverColor import shared.Colors.scrollbarUnhoverColor import shared.Dimensions.scrollbarThickness val CustomScrollbarStyle = defaultScrollbarStyle()...
<|turn>user Provide the native Android implementation for `UiResources.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: src/main/kotlin/view/UiResources.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>model ```kotlin package view im...
Implement the native Android class `CommonGPSLocationService` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: client_end_user/shared/src/androidMain/kotlin/presentation/map/CommonGPSLocationService.android.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package presentation.map import _androidIntentFlow import android.Manifest import android.annotation.SuppressLint import android.content.Context import android.content.Intent import android.content.pm.PackageManager import android.location.LocationManager import android.os.Looper import androidx.compose.run...
<|turn>user Implement the native Android class `CommonGPSLocationService` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: client_end_user/shared/src/androidMain/kotlin/presentation/map/CommonGPSLocationService.android.kt Language: Kotlin...
Implement the native Android class `FocusModeFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/digitalminimalism/Focus/FocusModeFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import com.example.digitalminimalism.Focus.BottomNavigation.Active.ActiveNavFragment import com.example.digitalminimalism.Focus.BottomNavigation.History.Hist...
<|turn>user Implement the native Android class `FocusModeFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/digitalminimalism/Focus/FocusModeFragment.kt Language: Kotlin Framework: AndroidX / Jetpack ...
Implement the native Android class `CreateBoardActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: Project_Manager_App/app/src/main/java/com/example/projectmanager/activities/CreateBoardActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.projectmanager.activities import android.net.Uri import android.os.Bundle import android.webkit.MimeTypeMap import android.widget.Toast import androidx.activity.result.contract.ActivityResultContracts import androidx.lifecycle.lifecycleScope import com.bumptech.glide.Glide import com.exam...
<|turn>user Implement the native Android class `CreateBoardActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: Project_Manager_App/app/src/main/java/com/example/projectmanager/activities/CreateBoardActivity.kt Language: Kotlin Fram...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `WifiConfigPage`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: common/src/commonMain/kotlin/dev/zwander/common/pages/WifiConfigPage.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin @file:OptIn(ExperimentalObjCRefinement::class) package dev.zwander.common.pages import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.material3.Button import androidx.compose.material3.ButtonDefaults import androidx.compose.material3...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `WifiConfigPage`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: common/src/commonMain/kotlin/dev/zwander/common/pages/WifiConfigPage.kt Language: Kotlin ...
Implement the native Android class `Coin` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: coinkit/src/main/java/io/horizontalsystems/coinkit/models/Coin.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.vextabit.coinkit.models import android.content.Context import android.os.Parcelable import androidx.room.ColumnInfo import androidx.room.Entity import androidx.room.PrimaryKey import com.eclipsesource.json.Json import kotlinx.android.parcel.Parcelize import java.io.InputStreamReader import java.ut...
<|turn>user Implement the native Android class `Coin` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: coinkit/src/main/java/io/horizontalsystems/coinkit/models/Coin.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Corou...
Implement the native Android class `BIDUnityBanner` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: unity/BIDUnityBanner.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.bidapp.networks.unity import android.app.Activity import android.util.Log import android.view.View import android.view.ViewGroup import android.widget.FrameLayout import com.unity3d.services.banners.BannerErrorInfo import com.unity3d.services.banners.BannerView import com.unity3d.services.banner...
<|turn>user Implement the native Android class `BIDUnityBanner` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: unity/BIDUnityBanner.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>model ```kot...
Provide the native Android implementation for `Row.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: design/components/src/main/java/com/choice/compose/Row.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.choice.compose import androidx.compose.foundation.layout.* import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import com.choice.theme.MonkeyTheme @Composable inline fun MonkeyRow( modifier: Modifier = Modifier, horizontalAr...
<|turn>user Provide the native Android implementation for `Row.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: design/components/src/main/java/com/choice/compose/Row.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>model ```kotlin pa...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `RoomDetailsView`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: features/roomdetails/impl/src/main/kotlin/io/element/android/features/roomdetails/impl/RoomDetailsView.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (c) 2023 New Vector Ltd * * 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 ...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `RoomDetailsView`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: features/roomdetails/impl/src/main/kotlin/io/element/android/features/roomdetails/impl/R...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `UpdateAwareAppScope`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/android/src/main/java/UpdateAwareAppScope.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package dev.schlaubi.tonbrett.app.android import android.app.Activity import androidx.compose.foundation.background import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Ro...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `UpdateAwareAppScope`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/android/src/main/java/UpdateAwareAppScope.kt Language: Kotlin Framework: Android...
Implement the Android ViewModel `SplashViewModel` 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/github/kacso/androidcommons/viewmodel/SplashViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.github.kacso.androidcommons.viewmodel import androidx.lifecycle.LiveData import androidx.lifecycle.viewModelScope import com.github.kacso.androidcommons.core.BaseApplication import com.github.kacso.androidcommons.core.livedata.SingleLiveEvent import com.github.kacso.androidcommons.core.mvvm.viewm...
<|turn>user Implement the Android ViewModel `SplashViewModel` 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/github/kacso/androidcommons/viewmodel/SplashViewMod...
Implement the native Android class `OtherUserHolder` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/afifit/data/OtherUserHolder.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.afifit.data import android.content.Context import android.view.View import android.widget.ImageView import android.widget.TextView import androidx.recyclerview.widget.RecyclerView import com.bumptech.glide.Glide import com.bumptech.glide.request.RequestOptions import com.example.afifit.R ...
<|turn>user Implement the native Android class `OtherUserHolder` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/afifit/data/OtherUserHolder.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin...
Implement the native Android class `ShipAddressEditActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: OrderCenter/src/main/java/com/kotlin/order/ui/activity/ShipAddressEditActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.kotlin.order.ui.activity import android.os.Bundle import com.kotlin.base.ext.onClick import com.kotlin.base.ui.activity.BaseActivity import com.kotlin.base.ui.activity.BaseMvpActivity import com.kotlin.order.R import com.kotlin.order.common.OrderConstant import com.kotlin.order.data.protocol.Ship...
<|turn>user Implement the native Android class `ShipAddressEditActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: OrderCenter/src/main/java/com/kotlin/order/ui/activity/ShipAddressEditActivity.kt Language: Kotlin Framework: Androi...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ExportMarketItemScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: feature/market/src/main/kotlin/com/niyaj/feature/market/measureUnit/settings/ExportMeasureUnitScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2024 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ExportMarketItemScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: feature/market/src/main/kotlin/com/niyaj/feature/market/measureUnit/settings/Expo...
Provide the native Android implementation for `ViewExtensions.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: app/src/main/java/org/ranapat/examples/githubbrowser/ui/util/ViewExtensions.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package org.ranapat.examples.githubbrowser.ui.util import android.content.Context.INPUT_METHOD_SERVICE import android.view.View import android.view.inputmethod.InputMethodManager fun View.hideSoftKeyboard() { val inputMethodManager = context.getSystemService(INPUT_METHOD_SERVICE) as InputMethodManager? ...
<|turn>user Provide the native Android implementation for `ViewExtensions.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: app/src/main/java/org/ranapat/examples/githubbrowser/ui/util/ViewExtensions.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SampleRateSection`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/shermanrex/recorderApp/presentation/screen/setting/component/SampleRateSection.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.shermanrex.recorderApp.presentation.screen.setting.component import androidx.compose.foundation.BorderStroke import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.lazy.LazyRow import androidx.compose.foundation.la...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SampleRateSection`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/shermanrex/recorderApp/presentation/screen/setting/component/Sam...
Implement the native Android class `MusicNotificationProvider` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: core/core-media-notification/src/main/kotlin/com/maximillianleonov/musicmax/core/media/notification/MusicNotificationProvider.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2022 Afig Aliyev * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
<|turn>user Implement the native Android class `MusicNotificationProvider` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: core/core-media-notification/src/main/kotlin/com/maximillianleonov/musicmax/core/media/notification/MusicNotificat...
Provide the native Android implementation for `EmptyContextMenu.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: editor/src/main/kotlin/com/dr10/editor/ui/EmptyContextMenu.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.dr10.editor.ui import androidx.compose.foundation.ContextMenuArea import androidx.compose.foundation.ContextMenuState import androidx.compose.foundation.ExperimentalFoundationApi import androidx.compose.foundation.text.TextContextMenu import androidx.compose.runtime.Composable /** * Object that...
<|turn>user Provide the native Android implementation for `EmptyContextMenu.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: editor/src/main/kotlin/com/dr10/editor/ui/EmptyContextMenu.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>m...
Implement the Android ViewModel `MainViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: app/src/main/java/com/udacity/asteroid/radar/main/MainViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.udacity.asteroid.radar.main import androidx.lifecycle.* import com.udacity.asteroid.radar.data.util.DataDateUtil import com.udacity.asteroid.radar.domain.model.AsteroidModel import com.udacity.asteroid.radar.domain.model.PictureModel import com.udacity.asteroid.radar.domain.usecase.AsteroidOfflin...
<|turn>user Implement the Android ViewModel `MainViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: app/src/main/java/com/udacity/asteroid/radar/main/MainViewModel.kt Language...
Provide the native Android implementation for `ExtUtils.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: app/src/main/java/com/rhtyme/swipetoaction/ExtUtils.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.rhtyme.swipetoaction import android.content.Context import android.graphics.drawable.Drawable import android.view.View import androidx.annotation.ColorInt import androidx.annotation.ColorRes import androidx.annotation.DrawableRes import androidx.annotation.StringRes import androidx.core.content.C...
<|turn>user Provide the native Android implementation for `ExtUtils.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: app/src/main/java/com/rhtyme/swipetoaction/ExtUtils.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>model ```kotlin ...
Implement the native Android class `MainPagerAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/me/spica/weather/ui/main/MainPagerAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package me.jimi.weather.ui.main import android.os.Bundle import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentActivity import androidx.recyclerview.widget.AsyncListDiffer import androidx.recyclerview.widget.DiffUtil import androidx.viewpager2.adapter.FragmentStateAdapter import me.jimi....
<|turn>user Implement the native Android class `MainPagerAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/me/spica/weather/ui/main/MainPagerAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kot...
Implement the native Android class `organization` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/cryptron/util/WalletDisplayUtils.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /** * BreadWallet * * Created by Ahsan Butt <ahsan.butt@breadwallet.com> on 10/10/19. * Copyright (c) 2019 breadwallet LLC * * 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 ...
<|turn>user Implement the native Android class `organization` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/cryptron/util/WalletDisplayUtils.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Corou...