instruction
stringlengths
113
251
input
stringlengths
98
353
output
stringlengths
135
454k
text
stringlengths
443
454k
Implement the native Android class `LanguageIntegrationTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/androidTest/java/com/team28/thehiker/LanguageIntegrationTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.team28.thehiker import androidx.test.core.app.ActivityScenario import androidx.test.espresso.Espresso.onView import androidx.test.espresso.action.ViewActions import androidx.test.espresso.assertion.ViewAssertions.matches import androidx.test.espresso.contrib.DrawerActions import androidx.test.esp...
<|turn>user Implement the native Android class `LanguageIntegrationTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/androidTest/java/com/team28/thehiker/LanguageIntegrationTest.kt Language: Kotlin Framework: AndroidX / Jetpa...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `Greeting`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/dev/twelveoclock/riverhacks/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package dev.twelveoclock.riverhacks import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxSize import andro...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `Greeting`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/dev/twelveoclock/riverhacks/MainActivity.kt Language: Kotlin Framework: Andro...
Implement the native Android class `LibDetailBottomSheetView` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/kotlin/com/absinthe/libchecker/view/detail/LibDetailBottomSheetView.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.absinthe.libchecker.view.detail import android.content.Context import android.content.res.ColorStateList import android.text.method.LinkMovementMethod import android.util.TypedValue import android.view.ContextThemeWrapper import android.view.Gravity import android.view.ViewGroup import android.wi...
<|turn>user Implement the native Android class `LibDetailBottomSheetView` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/kotlin/com/absinthe/libchecker/view/detail/LibDetailBottomSheetView.kt Language: Kotlin Framework: And...
Provide the native Android implementation for `Cloud66.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Cloud66.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package compose.icons.simpleicons import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Butt import androidx.compose.ui.graphics.StrokeJoin.Companion.M...
<|turn>user Provide the native Android implementation for `Cloud66.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Cloud66.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>...
Implement the native Android class `ResultRepository` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: Quiz/app/src/main/java/com/example/quiz/model/repository/ResultRepository.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.quiz.model.repository import androidx.lifecycle.LiveData import com.example.quiz.model.dao.ResultDao import com.example.quiz.model.entities.Result class ResultRepository(private val dao: ResultDao) { val getAllResult: LiveData<List<Result>> = dao.getAllResults() suspend fun inse...
<|turn>user Implement the native Android class `ResultRepository` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: Quiz/app/src/main/java/com/example/quiz/model/repository/ResultRepository.kt Language: Kotlin Framework: AndroidX / Jetpack...
Implement the native Android class `RNGestureHandlerRootHelper` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootHelper.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package abi46_0_0.host.exp.exponent.modules.api.components.gesturehandler.react import android.os.SystemClock import android.util.Log import android.view.MotionEvent import android.view.ViewGroup import android.view.ViewParent import abi46_0_0.com.facebook.react.bridge.ReactContext import abi46_0_0.com.faceb...
<|turn>user Implement the native Android class `RNGestureHandlerRootHelper` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootHelper.kt Language: Kotlin Framework...
Implement the native Android class `DataTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: work/workmanager-ktx/src/androidTest/java/androidx/work/DataTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
<|turn>user Implement the native Android class `DataTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: work/workmanager-ktx/src/androidTest/java/androidx/work/DataTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin...
Implement the Android ViewModel `PodcastViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: androidApp/src/main/java/io/github/lazyengineer/castaway/androidApp/view/podcast/PodcastViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.github.lazyengineer.castaway.androidApp.view.podcast import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import io.github.lazyengineer.castaway.androidApp.player.PlayPauseUseCase import io.github.lazyengineer.castaway.androidApp.player.PlayerState import io.github.lazyengi...
<|turn>user Implement the Android ViewModel `PodcastViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: androidApp/src/main/java/io/github/lazyengineer/castaway/androidApp/view...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `Movies`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/movies/src/main/java/io/github/kunal26das/yify/movies/compose/Movies.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.github.kunal26das.yify.movies.compose import androidx.compose.animation.AnimatedVisibility import androidx.compose.animation.fadeIn import androidx.compose.animation.fadeOut import androidx.compose.foundation.background import androidx.compose.foundation.layout.Arrangement import androidx.compose....
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `Movies`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/movies/src/main/java/io/github/kunal26das/yify/movies/compose/Movies.kt Language: Kotlin Fram...
Implement the native Android class `here` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: example-app/src/main/java/foo/bar/example/OG.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package foo.bar.example import android.app.Application import co.early.fore.kt.core.logging.AndroidLogger import co.early.fore.kt.core.logging.Logger import co.early.persista.PerSista import foo.bar.example.feature.wallet.Wallet import java.util.HashMap /** * OG - Object Graph, pure DI implementation * ...
<|turn>user Implement the native Android class `here` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: example-app/src/main/java/foo/bar/example/OG.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|tur...
Implement the native Android class `MoneyTransferState` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: coroutine-cancellation/app/src/main/java/com/example/coroutine_cancellation/homework/assignmenttwo/MoneyTransferState.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.coroutine_cancellation.homework.assignmenttwo import androidx.compose.foundation.text.input.TextFieldState data class MoneyTransferState( val savingsBalance: Double = 1000.0, val checkingBalance: Double = 500.0, val transferAmount: TextFieldState = TextFieldState(), val i...
<|turn>user Implement the native Android class `MoneyTransferState` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: coroutine-cancellation/app/src/main/java/com/example/coroutine_cancellation/homework/assignmenttwo/MoneyTransferState.kt ...
Provide the native Android implementation for `Layout.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/Layout.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.woowla.compose.icon.collections.tabler.tabler.outline import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.vector.ImageVector import androidx.compose.ui.graph...
<|turn>user Provide the native Android implementation for `Layout.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/Layout.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin C...
Implement the native Android class `FirebaseUIActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: auth/app/src/main/java/com/google/firebase/quickstart/auth/kotlin/FirebaseUIActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.google.firebase.quickstart.auth.kotlin import android.app.Activity import android.content.Intent import android.os.Bundle import android.support.v7.app.AppCompatActivity import android.view.View import android.widget.Toast import com.firebase.ui.auth.AuthUI import com.google.firebase.auth.Firebas...
<|turn>user Implement the native Android class `FirebaseUIActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: auth/app/src/main/java/com/google/firebase/quickstart/auth/kotlin/FirebaseUIActivity.kt Language: Kotlin Framework: Andro...
Implement the native Android class `UnzipArchiveWorker` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/techbeloved/hymnbook/utils/workers/UnzipArchiveWorker.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.techbeloved.hymnbook.utils.workers import android.content.Context import androidx.hilt.Assisted import androidx.hilt.work.WorkerInject import androidx.work.Data import androidx.work.RxWorker import androidx.work.WorkerParameters import com.techbeloved.hymnbook.R import com.techbeloved.hymnbook.da...
<|turn>user Implement the native Android class `UnzipArchiveWorker` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/techbeloved/hymnbook/utils/workers/UnzipArchiveWorker.kt Language: Kotlin Framework: AndroidX / Jet...
Implement the native Android class `MigrationKotlinTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: room/integration-tests/kotlintestapp/src/androidTest/java/androidx/room/integration/kotlintestapp/migration/MigrationKotlinTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (C) 2017 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 `MigrationKotlinTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: room/integration-tests/kotlintestapp/src/androidTest/java/androidx/room/integration/kotlintestapp/migration/MigrationKot...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `CommonSpacer`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/cn/wthee/pcrtool/ui/components/Other.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package cn.wthee.pcrtool.ui.components import androidx.annotation.StringRes import androidx.compose.foundation.ExperimentalFoundationApi import androidx.compose.foundation.background import androidx.compose.foundation.border import androidx.compose.foundation.layout.Arrangement import androidx.compose.founda...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `CommonSpacer`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/cn/wthee/pcrtool/ui/components/Other.kt Language: Kotlin Framework: Andro...
Implement the native Android class `RoomProfileArgs` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: vector/src/main/java/im/vector/app/features/roomprofile/RoomProfileFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2019 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 law or a...
<|turn>user Implement the native Android class `RoomProfileArgs` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: vector/src/main/java/im/vector/app/features/roomprofile/RoomProfileFragment.kt Language: Kotlin Framework: AndroidX / Jetpac...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `DrawerItem`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/yangdai/opennote/ui/component/DrawerItem.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.yangdai.opennote.ui.component import androidx.compose.foundation.layout.padding import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material3.Icon import androidx.compose.material3.MaterialTheme import androidx.compose.material3.NavigationDrawerItem import androidx...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `DrawerItem`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/yangdai/opennote/ui/component/DrawerItem.kt Language: Kotlin Framework:...
Implement the native Android class `VideoLocalDataSource` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/kotlin/app/newproj/lbrytv/data/datasource/VideoLocalDataSource.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * MIT License * * Copyright (c) 2022 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy,...
<|turn>user Implement the native Android class `VideoLocalDataSource` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/kotlin/app/newproj/lbrytv/data/datasource/VideoLocalDataSource.kt Language: Kotlin Framework: AndroidX / J...
Implement the native Android class `EditorComposite` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/EditorComposite.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. @file:Suppress("ReplaceGetOrSet", "ReplacePutWithAssignment") package com.intellij.openapi.fileEditor.impl import com.intellij.codeWithMe.ClientId import com.intellij.codeWithMe.ClientId....
<|turn>user Implement the native Android class `EditorComposite` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/EditorComposite.kt Language: Kotlin Framework: AndroidX / Je...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `FieldView`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: desktop/src/main/kotlin/io/kanro/mediator/desktop/ui/MessageView.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.kanro.mediator.desktop.ui import androidx.compose.foundation.ContextMenuItem import androidx.compose.foundation.ExperimentalFoundationApi import androidx.compose.foundation.VerticalScrollbar import androidx.compose.foundation.background import androidx.compose.foundation.layout.Box import androidx...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `FieldView`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: desktop/src/main/kotlin/io/kanro/mediator/desktop/ui/MessageView.kt Language: Kotlin Framework...
Implement the native Android class `MultiRecordFrag` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/org/sil/storyproducer/controller/MultiRecordFrag.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package org.sil.storyproducer.controller import android.app.Activity import android.app.AlertDialog import android.content.Intent import android.os.Bundle import android.os.Environment import android.provider.MediaStore import androidx.core.content.FileProvider import android.view.LayoutInflater import andro...
<|turn>user Implement the native Android class `MultiRecordFrag` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/org/sil/storyproducer/controller/MultiRecordFrag.kt Language: Kotlin Framework: AndroidX / Jetpack Compose...
Provide the native Android implementation for `ChargingPile.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/ChargingPile.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.woowla.compose.icon.collections.tabler.tabler.outline import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.St...
<|turn>user Provide the native Android implementation for `ChargingPile.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/ChargingPile.kt Language: Kotlin Framework: AndroidX / Jetpack Compos...
Implement the native Android class `Immutable` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: compose-annotation/src/androidMain/kotlin/app/meetacy/vm/compose/Immutable.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package app.meetacy.vm.compose import androidx.compose.runtime.StableMarker @androidx.compose.runtime.Immutable @StableMarker public actual annotation class Immutable ```
<|turn>user Implement the native Android class `Immutable` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: compose-annotation/src/androidMain/kotlin/app/meetacy/vm/compose/Immutable.kt Language: Kotlin Framework: AndroidX / Jetpack Compo...
Implement the native Android class `BaseFragmentFactory` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/app/tugaypamuk/movieapp/peresention/ui/BaseFragmentFactory.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.app.tugaypamuk.movieapp.peresention.ui import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentFactory import com.app.tugaypamuk.movieapp.peresention.ui.home.HomeAdapter import com.app.tugaypamuk.movieapp.peresention.ui.home.HomeFragment import javax.inject.Inject /* class Bas...
<|turn>user Implement the native Android class `BaseFragmentFactory` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/app/tugaypamuk/movieapp/peresention/ui/BaseFragmentFactory.kt Language: Kotlin Framework: AndroidX...
Implement the native Android class `ImageAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: android-uitests/testData/CatchUp/app/src/main/kotlin/io/sweers/catchup/ui/fragments/service/ImageAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (c) 2018 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
<|turn>user Implement the native Android class `ImageAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: android-uitests/testData/CatchUp/app/src/main/kotlin/io/sweers/catchup/ui/fragments/service/ImageAdapter.kt Language: Kotlin Fr...
Provide the native Android implementation for `Languagesquare.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bulk/Languagesquare.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package moe.tlaster.icons.vuesax.vuesaxicons.bulk import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap import a...
<|turn>user Provide the native Android implementation for `Languagesquare.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bulk/Languagesquare.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kot...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ToDoListComposeAppTheme`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/mita/todolistcomposeapp/ui/theme/Theme.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.mita.todolistcomposeapp.ui.theme import android.app.Activity import android.os.Build import android.view.View import android.view.Window import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.material3.MaterialTheme import androidx.compose.material3.darkColorScheme import ...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ToDoListComposeAppTheme`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/mita/todolistcomposeapp/ui/theme/Theme.kt Language: Kotlin...
Implement the native Android class `AppCenterDevMetricsLogger` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: logging-android-appcenter4/src/main/java/com/fsryan/tools/logging/android/AppCenterDevMetricsLogger.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.fsryan.tools.logging.android import android.content.Context import com.fsryan.tools.logging.FSDevMetricsLogger import com.microsoft.appcenter.analytics.Analytics import com.microsoft.appcenter.analytics.EventProperties class AppCenterDevMetricsLogger : ContextSpecificDevMetricsLogger { over...
<|turn>user Implement the native Android class `AppCenterDevMetricsLogger` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: logging-android-appcenter4/src/main/java/com/fsryan/tools/logging/android/AppCenterDevMetricsLogger.kt Language: K...
Provide the native Android implementation for `DatabaseModule.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: core/database/src/main/kotlin/com/anbui/recipely/core/database/DatabaseModule.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.anbui.recipely.core.database import android.content.Context import androidx.room.Room import dagger.Module import dagger.Provides import dagger.hilt.InstallIn import dagger.hilt.android.qualifiers.ApplicationContext import dagger.hilt.components.SingletonComponent import javax.inject.Singleton @...
<|turn>user Provide the native Android implementation for `DatabaseModule.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: core/database/src/main/kotlin/com/anbui/recipely/core/database/DatabaseModule.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutine...
Provide the native Android implementation for `RiderService.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: app/src/main/java/com/example/dropy/network/services/rider/RiderService.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.dropy.network.services.rider import android.content.Context import com.example.dropy.network.models.acceptjob.AcceptJobResponse import com.example.dropy.network.models.acceptjob.request.AcceptJobBody import com.example.dropy.network.models.canceljob.CancelIncomingJobResponse import com.ex...
<|turn>user Provide the native Android implementation for `RiderService.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: app/src/main/java/com/example/dropy/network/services/rider/RiderService.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>...
Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: android/app/src/main/kotlin/alexandr/pavlov/ru/arma_helper_nav_bar_ver/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package alexandr.pavlov.ru.arma_helper_nav_bar_ver import android.os.Bundle import io.flutter.app.FlutterActivity import io.flutter.plugins.GeneratedPluginRegistrant class MainActivity: FlutterActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) Gen...
<|turn>user Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: android/app/src/main/kotlin/alexandr/pavlov/ru/arma_helper_nav_bar_ver/MainActivity.kt Language: Kotlin Framework: AndroidX / J...
Implement the native Android class `SimpleActivityTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/test/java/com/github/rovkinmax/rxretainexample/SimpleActivityTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.github.rovkinmax.rxretainexample import android.app.Activity import android.app.FragmentManager import com.github.rovkinmax.rxretain.EmptySubscriber import com.github.rovkinmax.rxretain.RetainFactory import com.github.rovkinmax.rxretain.RetainWrapper import com.github.rovkinmax.rxretainexample.te...
<|turn>user Implement the native Android class `SimpleActivityTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/test/java/com/github/rovkinmax/rxretainexample/SimpleActivityTest.kt Language: Kotlin Framework: AndroidX / Jetpa...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `LoadingSubScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: platform/core/ui/src/main/java/com/orogersilva/myweatherforecast/ui/screen/LoadingScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.orogersilva.scaffoldandroid.ui.screen import androidx.compose.foundation.background import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.size import an...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `LoadingSubScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: platform/core/ui/src/main/java/com/orogersilva/myweatherforecast/ui/screen/LoadingScree...
Implement the native Android class `MainFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/serjlaren/sloom/scenes/main/MainFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.serjlaren.sloom.scenes.main import androidx.fragment.app.viewModels import by.kirich1409.viewbindingdelegate.viewBinding import com.serjlaren.sloom.R import com.serjlaren.sloom.common.mvvm.BaseFragment import com.serjlaren.sloom.databinding.FragmentMainBinding import dagger.hilt.android.AndroidEn...
<|turn>user Implement the native Android class `MainFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/serjlaren/sloom/scenes/main/MainFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotl...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SharedTransitionScope`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: feature/home/src/main/kotlin/com/skydoves/pokedex/compose/feature/home/PokedexHome.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Designed and developed by 2024 skydoves (<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 ...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SharedTransitionScope`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: feature/home/src/main/kotlin/com/skydoves/pokedex/compose/feature/home/PokedexHome...
Implement the Android ViewModel `ViewModelFlowScreenTest` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: app/src/androidTest/java/com/steleot/jetpackcompose/playground/compose/viewmodel/ViewModelFlowScreenTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.steleot.jetpackcompose.playground.compose.viewmodel import androidx.compose.ui.test.junit4.createAndroidComposeRule import com.steleot.jetpackcompose.playground.MainActivity import com.steleot.jetpackcompose.playground.compose.theme.TestTheme import org.junit.Rule import org.junit.Test class Vie...
<|turn>user Implement the Android ViewModel `ViewModelFlowScreenTest` 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/androidTest/java/com/steleot/jetpackcompose/playground/co...
Implement the native Android class `MyCallbackClientProxy` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: privacysandbox/tools/tools-apicompiler/src/test/test-data/fullfeaturedsdk/output/com/mysdk/MyCallbackClientProxy.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.mysdk import android.content.Context import androidx.privacysandbox.ui.provider.toCoreLibInfo public class MyCallbackClientProxy( public val remote: IMyCallback, public val context: Context, ) : MyCallback { public override fun onComplete(response: Response): Unit { remote.on...
<|turn>user Implement the native Android class `MyCallbackClientProxy` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: privacysandbox/tools/tools-apicompiler/src/test/test-data/fullfeaturedsdk/output/com/mysdk/MyCallbackClientProxy.kt La...
Implement the Android ViewModel `GithubDetailViewModel` 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/batdemir/template/ui/github/detail/GithubDetailViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.batdemir.template.ui.github.detail import com.batdemir.template.core.vm.BaseViewModel import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject @HiltViewModel class GithubDetailViewModel @Inject constructor() : BaseViewModel() ```
<|turn>user Implement the Android ViewModel `GithubDetailViewModel` 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/batdemir/template/ui/github/detail/GithubDeta...
Implement the native Android class `RemoteTasksDataSource` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/android/architecture/blueprints/todoapp/di/DataModules.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2022 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
<|turn>user Implement the native Android class `RemoteTasksDataSource` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/android/architecture/blueprints/todoapp/di/DataModules.kt Language: Kotlin Framework: An...
Implement the native Android class `Pet` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/utn/MascotApp/Pet.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.utn.MascotApp import com.google.android.gms.maps.model.LatLng data class Pet( val name: String, val latLng: LatLng, val address: String, val rating: Float ) ```
<|turn>user Implement the native Android class `Pet` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/utn/MascotApp/Pet.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>mode...
Implement the native Android class `MainPageActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: client/android/sample/src/main/java/com/yandex/divkit/sample/MainPageActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.yandex.divkit.sample import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import com.yandex.div.core.Div2Context import com.yandex.div.core.DivConfiguration import com.yandex.div.picasso.PicassoDivImageLoader import com.yandex.div.rive.OkHttpDivRiveNetworkDelegate import com.y...
<|turn>user Implement the native Android class `MainPageActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: client/android/sample/src/main/java/com/yandex/divkit/sample/MainPageActivity.kt Language: Kotlin Framework: AndroidX / Jet...
Implement the native Android class `MainListFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/rabbitapp/ui/mainTab/mainList/MainListFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.rabbitapp.ui.mainTab.mainList import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import androidx.fragment.app.activityViewModels import androidx.navigation.findNavController import com.ex...
<|turn>user Implement the native Android class `MainListFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/rabbitapp/ui/mainTab/mainList/MainListFragment.kt Language: Kotlin Framework: AndroidX / Jetp...
Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/myapplication/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.myapplication import android.Manifest import android.content.Context import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.os.Handler import android.util.Log import android.widget.Toast import com.blankj.utilcode.util.ActivityUtils import com.blankj.utilc...
<|turn>user Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/myapplication/MainActivity.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: app/src/main/java/com/example/myapplication/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.myapplication import android.Manifest import android.content.Context import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.os.Handler import android.util.Log import android.widget.Toast import com.blankj.utilcode.util.ActivityUtils import com.blankj.utilc...
<|turn>user Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/myapplication/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Cor...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `InfoView`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: info/src/commonMain/kotlin/com/maxkeppeler/sheets/info/InfoView.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (C) 2022-2023. <NAME> (https://www.maxkeppeler.com) * * 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 * ...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `InfoView`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: info/src/commonMain/kotlin/com/maxkeppeler/sheets/info/InfoView.kt Language: Kotlin Framework: ...
Implement the Android ViewModel `WatchModuleViewModel` 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/uogames/remembercards/ui/module/watch/WatchModuleViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.uogames.remembercards.ui.module.watch import android.content.Context import com.uogames.dto.global.GlobalModuleView import com.uogames.dto.local.LocalModuleView import com.uogames.remembercards.utils.ifNull import com.uogames.remembercards.viewmodel.MViewModel import kotlinx.coroutines.CoroutineS...
<|turn>user Implement the Android ViewModel `WatchModuleViewModel` 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/uogames/remembercards/ui/module/watch/WatchMod...
Implement the native Android class `KspExecutableElement` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: room/room-compiler-processing/src/main/java/androidx/room/compiler/processing/ksp/KspExecutableElement.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
<|turn>user Implement the native Android class `KspExecutableElement` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: room/room-compiler-processing/src/main/java/androidx/room/compiler/processing/ksp/KspExecutableElement.kt Language: Kot...
Implement the native Android class `RippleView` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: RippleView/src/main/kotlin/com/ripple/view/RippleView.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.cl.common_base.widget.ripple import android.content.Context import android.graphics.Canvas import android.graphics.Color import android.graphics.Paint import android.util.AttributeSet import android.view.View import androidx.annotation.ColorInt import androidx.lifecycle.LifecycleOwner import com....
<|turn>user Implement the native Android class `RippleView` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: RippleView/src/main/kotlin/com/ripple/view/RippleView.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutin...
Implement the native Android class `PushRefreshFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: sample/src/main/java/com/drake/net/sample/ui/fragment/PushRefreshFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (C) 2018 Drake, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
<|turn>user Implement the native Android class `PushRefreshFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: sample/src/main/java/com/drake/net/sample/ui/fragment/PushRefreshFragment.kt Language: Kotlin Framework: AndroidX / Jetp...
Implement the native Android class `TreeRecyclerViewAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: base/src/main/java/com/zhangteng/base/adapter/TreeRecyclerViewAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.zhangteng.base.adapter import android.annotation.SuppressLint import android.content.* import com.zhangteng.base.base.BaseAdapter import com.zhangteng.base.tree.* /** * 树结构的列表适配器 * Created by swing on 2018/6/29. */ abstract class TreeRecyclerViewAdapter<T>(data: MutableList<T?>?, defaultExpan...
<|turn>user Implement the native Android class `TreeRecyclerViewAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: base/src/main/java/com/zhangteng/base/adapter/TreeRecyclerViewAdapter.kt Language: Kotlin Framework: AndroidX / Jetp...
Implement the native Android class `SyncLibraryShows` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: tasks/src/androidMain/kotlin/app/tivi/tasks/SyncLibraryShowsWorker.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin // Copyright 2018, Google LLC, Christopher Banes and the Tivi project contributors // SPDX-License-Identifier: Apache-2.0 package app.tivi.tasks import android.content.Context import androidx.work.CoroutineWorker import androidx.work.WorkerParameters import app.tivi.domain.interactors.UpdateLibraryShows imp...
<|turn>user Implement the native Android class `SyncLibraryShows` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: tasks/src/androidMain/kotlin/app/tivi/tasks/SyncLibraryShowsWorker.kt Language: Kotlin Framework: AndroidX / Jetpack Compos...
Provide the native Android implementation for `Misc.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: demo/src/main/java/pyxis/uzuki/live/richutilskt/demo/Misc.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package pyxis.uzuki.live.richutilskt.demo import android.content.Context import pyxis.uzuki.live.richutilskt.utils.browse internal fun Context.browseToFile(fileName: String) { browse("https://github.com/WindSekirun/RichUtilsKt/blob/master/RichUtils/src/main/java/pyxis/uzuki/live/richutilskt/%s".format(f...
<|turn>user Provide the native Android implementation for `Misc.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: demo/src/main/java/pyxis/uzuki/live/richutilskt/demo/Misc.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>model ```kotli...
Implement the native Android class `PhoneDataLayerListenerService` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/ramitsuri/notificationjournal/service/PhoneDataLayerListenerService.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.ramitsuri.notificationjournal.service import android.annotation.SuppressLint import android.util.Log import com.google.android.gms.wearable.DataEvent import com.google.android.gms.wearable.DataEventBuffer import com.google.android.gms.wearable.DataMapItem import com.google.android.gms.wearable.We...
<|turn>user Implement the native Android class `PhoneDataLayerListenerService` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/ramitsuri/notificationjournal/service/PhoneDataLayerListenerService.kt Language: Kotlin ...
Implement the native Android class `CitiesDb` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/ljubenvassilev/cities/db/CitiesDb.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.ljubenvassilev.cities.db import androidx.room.Database import androidx.room.RoomDatabase import com.ljubenvassilev.cities.cities.entities.CityEntity @Database(entities = [CityEntity::class], version = 1, exportSchema = false) abstract class CitiesDb : RoomDatabase() { abstract fun cityDao():...
<|turn>user Implement the native Android class `CitiesDb` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/ljubenvassilev/cities/db/CitiesDb.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutin...
Implement the Android ViewModel `ViewModelFactory` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: cams-framework-mvvm/src/main/java/com/linwei/cams/component/mvvm/mvvm/ViewModelFactory.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.linwei.cams.framework.mvi.mvi import androidx.lifecycle.ViewModel import androidx.lifecycle.ViewModelProvider /** * --------------------------------------------------------------------- * @Author: WeiShuai * @Time: 2022/2/24 * @Contact: <EMAIL>" * @Follow: https://github.com/WeiShuaiDev * ...
<|turn>user Implement the Android ViewModel `ViewModelFactory` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: cams-framework-mvvm/src/main/java/com/linwei/cams/component/mvvm/mvvm/Vi...
Implement the native Android class `TwitterApi` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: Yukari/src/main/java/shibafu/yukari/twitter/TwitterApi.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package shibafu.yukari.twitter import android.content.Context import android.os.Handler import android.os.Looper import android.preference.PreferenceManager import androidx.collection.LongSparseArray import android.widget.Toast import kotlinx.coroutines.GlobalScope import kotlinx.coroutines.launch import shi...
<|turn>user Implement the native Android class `TwitterApi` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: Yukari/src/main/java/shibafu/yukari/twitter/TwitterApi.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Corouti...
Provide the native Android implementation for `ErrorFormat.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: app/src/main/kotlin/com/rayfantasy/icode/util/ErrorFormat.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2015-2016 RayFantasy Studio * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
<|turn>user Provide the native Android implementation for `ErrorFormat.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: app/src/main/kotlin/com/rayfantasy/icode/util/ErrorFormat.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>model `...
Implement the native Android class `of` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: data-saver-core/src/commonMain/kotlin/com/funny/data_saver/core/DataSaverListState.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.funny.data_saver.core import androidx.compose.runtime.Composable import androidx.compose.runtime.DisposableEffect import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.MutableState import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember imp...
<|turn>user Implement the native Android class `of` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: data-saver-core/src/commonMain/kotlin/com/funny/data_saver/core/DataSaverListState.kt Language: Kotlin Framework: AndroidX / Jetpack Comp...
Implement the native Android class `DslAdapterItem` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: Adapter/src/main/java/com/angcyo/dsladapter/DslAdapterItem.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.angcyo.dsladapter import android.graphics.Canvas import android.graphics.Color import android.graphics.Paint import android.graphics.Rect import android.graphics.drawable.Drawable import android.os.Build import android.view.View import android.view.ViewGroup import androidx.constraintlayout.widge...
<|turn>user Implement the native Android class `DslAdapterItem` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: Adapter/src/main/java/com/angcyo/dsladapter/DslAdapterItem.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin...
Implement the native Android class `MyFavoriteStackWidget` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/akusuka/githubers/widget/MyFavoriteStackWidget.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.akusuka.githubers.widget import android.app.PendingIntent import android.appwidget.AppWidgetManager import android.appwidget.AppWidgetProvider import android.content.ComponentName import android.content.Context import android.content.Intent import android.widget.RemoteViews import androidx.core.a...
<|turn>user Implement the native Android class `MyFavoriteStackWidget` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/akusuka/githubers/widget/MyFavoriteStackWidget.kt Language: Kotlin Framework: AndroidX / Jetpack...
Implement the native Android class `type` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/ziggeo/androidsdk/demo/util/BundleExtractorDelegate.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.ziggeo.androidsdk.demo.util import android.os.Bundle import androidx.fragment.app.Fragment import kotlin.properties.ReadWriteProperty import kotlin.reflect.KProperty /** * Created by <NAME> on 25-Sep-19. * Ziggeo, Inc. * <EMAIL> */ inline fun <reified T> argument( key: String, defau...
<|turn>user Implement the native Android class `type` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/ziggeo/androidsdk/demo/util/BundleExtractorDelegate.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / K...
Implement the native Android class `PSPayPalControllerTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: paypal/src/test/java/com/paysafe/android/paypal/PSPayPalControllerTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (c) 2024 Paysafe Group */ package com.paysafe.android.paypal import androidx.activity.result.ActivityResultCaller import androidx.appcompat.app.AppCompatActivity import androidx.arch.core.executor.testing.InstantTaskExecutorRule import androidx.lifecycle.LifecycleCoroutineScope import andro...
<|turn>user Implement the native Android class `PSPayPalControllerTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: paypal/src/test/java/com/paysafe/android/paypal/PSPayPalControllerTest.kt Language: Kotlin Framework: AndroidX / Jetp...
Implement the native Android class `DrawableProviderAnswer` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: testutils/src/main/java/com/xfinity/resourceprovider/testutils/ResourceProviderAnswers.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.xfinity.resourceprovider.testutils import android.graphics.drawable.Drawable import org.mockito.Mockito import org.mockito.invocation.InvocationOnMock import org.mockito.stubbing.Answer import java.lang.reflect.Method /** * This file contains Mockito Answer sub-classes for automatically mocking...
<|turn>user Implement the native Android class `DrawableProviderAnswer` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: testutils/src/main/java/com/xfinity/resourceprovider/testutils/ResourceProviderAnswers.kt Language: Kotlin Framework:...
Implement the native Android class `CustomHistoryLayout` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/bnb/grab/widget/CustomHistoryLayout.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.bnb.grab.widget import android.content.Context import android.util.AttributeSet import android.view.LayoutInflater import android.view.View import android.widget.ImageView import android.widget.LinearLayout import android.widget.TextView import com.bnb.grab.R /** * Created by wsl on 2018/1/8. ...
<|turn>user Implement the native Android class `CustomHistoryLayout` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/bnb/grab/widget/CustomHistoryLayout.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Ko...
Implement the native Android class `App` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: growhabit/src/main/kotlin/com/vsrstudio/growhabit/app/App.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.vsrstudio.growhabit.app import android.app.Application import com.vsrstudio.growhabit.BuildConfig import com.vsrstudio.growhabit.crash.CrashProvider import com.vsrstudio.growhabit.logging.ReleaseTree import timber.log.Timber class App : Application() { override fun onCreate() { supe...
<|turn>user Implement the native Android class `App` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: growhabit/src/main/kotlin/com/vsrstudio/growhabit/app/App.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `NestedCommandView`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: android/src/main/java/com/inspiredandroid/linuxcommandbibliotheca/ui/composables/NestedCommandView.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.inspiredandroid.linuxcommandbibliotheca.ui.composables import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.width import androidx.compose.material.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment import androidx.compose.ui.Mod...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `NestedCommandView`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: android/src/main/java/com/inspiredandroid/linuxcommandbibliotheca/ui/composables/Neste...
Implement the native Android class `IngredientDetail` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: domain/src/main/java/com/guru/cocktails/domain/model/ingredient/IngredientDetail.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.guru.cocktails.domain.model.ingredient import android.os.Parcelable import kotlinx.android.parcel.Parcelize @Parcelize data class IngredientDetail( val id: Int, val name: String, val nameGrouped: String, val description: String, val imageName: String, val imageUrl: String...
<|turn>user Implement the native Android class `IngredientDetail` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: domain/src/main/java/com/guru/cocktails/domain/model/ingredient/IngredientDetail.kt Language: Kotlin Framework: AndroidX / ...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ListsFlowRow`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: feature/lists/src/main/kotlin/com/lolo/io/onelist/feature/lists/components/list_chips/ListsFlowRow.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.lolo.io.onelist.feature.lists.components.list_chips import androidx.compose.foundation.layout.Arrangement import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember import androidx.com...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ListsFlowRow`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: feature/lists/src/main/kotlin/com/lolo/io/onelist/feature/lists/components/list_chips/Lists...
Implement the native Android class `InstructorActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/anywherefitness/ui/Instructor/InstructorActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.anywherefitness.ui.Instructor import android.content.Context import android.content.Intent import android.os.Bundle import android.view.Menu import android.view.MenuItem import com.google.android.material.bottomnavigation.BottomNavigationView import androidx.appcompat.app.AppCompatActivit...
<|turn>user Implement the native Android class `InstructorActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/anywherefitness/ui/Instructor/InstructorActivity.kt Language: Kotlin Framework: AndroidX / ...
Implement the native Android class `RealImageLoaderTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: coil-base/src/androidTest/java/coil/RealImageLoaderTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin @file:Suppress("SameParameterValue") package coil import android.content.ContentResolver.SCHEME_ANDROID_RESOURCE import android.content.ContentResolver.SCHEME_CONTENT import android.content.ContentResolver.SCHEME_FILE import android.content.Context import android.graphics.Bitmap import android.graphics.Colo...
<|turn>user Implement the native Android class `RealImageLoaderTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: coil-base/src/androidTest/java/coil/RealImageLoaderTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotl...
Implement the native Android class `WifiCommissioningActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: mobile/src/main/java/com/siliconlabs/bledemo/features/demo/wifi_commissioning/activities/WifiCommissioningActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.siliconlabs.bledemo.features.demo.wifi_commissioning.activities import android.app.AlertDialog import android.app.ProgressDialog import android.bluetooth.* import android.content.* import android.os.Bundle import android.view.View import android.widget.* import androidx.recyclerview.widget.Linear...
<|turn>user Implement the native Android class `WifiCommissioningActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: mobile/src/main/java/com/siliconlabs/bledemo/features/demo/wifi_commissioning/activities/WifiCommissioningActivity...
Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/wishlistapp/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.wishlistapp import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.util.Log import android.widget.Button import android.widget.EditText import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView class MainActi...
<|turn>user Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/wishlistapp/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Corou...
Implement the native Android class `BeaconListFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/kylecorry/trail_sense/tools/beacons/ui/list/BeaconListFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.kylecorry.trail_sense.tools.beacons.ui.list import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.core.os.bundleOf import androidx.core.view.isVisible import androidx.lifecycle.lifecycleScope import androidx.navigation.N...
<|turn>user Implement the native Android class `BeaconListFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/kylecorry/trail_sense/tools/beacons/ui/list/BeaconListFragment.kt Language: Kotlin Framework: Andro...
Implement the native Android class `ConnectionMonitor` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/celzero/bravedns/service/ConnectionMonitor.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2021 RethinkDNS and its authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
<|turn>user Implement the native Android class `ConnectionMonitor` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/celzero/bravedns/service/ConnectionMonitor.kt Language: Kotlin Framework: AndroidX / Jetpack Compose...
Provide the native Android implementation for `RunningEnvironmentUtil.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: library/src/main/java/io/github/chenfei0928/app/RunningEnvironmentUtil.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.github.chenfei0928.app import android.app.ActivityManager import android.app.Service import android.content.Context import androidx.core.content.getSystemService object RunningEnvironmentUtil { fun isServiceWork(context: Context, service: Class<out Service>): Boolean { val runningSer...
<|turn>user Provide the native Android implementation for `RunningEnvironmentUtil.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: library/src/main/java/io/github/chenfei0928/app/RunningEnvironmentUtil.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutin...
Implement the native Android class `OverridingMethodsUpdater` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: idea/src/org/jetbrains/kotlin/idea/highlighter/markers/OverridenFunctionMarker.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package org.jetbrains.kotlin.idea.highlighter.markers import com.intellij.codeInsight.daemon.DaemonBundle import com.intellij.codeInsight.navigation.B...
<|turn>user Implement the native Android class `OverridingMethodsUpdater` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: idea/src/org/jetbrains/kotlin/idea/highlighter/markers/OverridenFunctionMarker.kt Language: Kotlin Framework: Andro...
Implement the native Android class `KanzanViewPagerBottomNavView` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: kanzankazuLibs/src/main/java/com/kanzankazu/kanzanwidget/viewpager/KanzanViewPagerBottomNavView.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin @file:Suppress("MemberVisibilityCanBePrivate", "DEPRECATION") package com.kanzankazu.kanzanwidget.viewpager import androidx.fragment.app.Fragment import androidx.viewpager.widget.ViewPager import com.google.android.material.bottomnavigation.BottomNavigationView import com.kanzankazu.kanzanwidget.viewpager.b...
<|turn>user Implement the native Android class `KanzanViewPagerBottomNavView` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: kanzankazuLibs/src/main/java/com/kanzankazu/kanzanwidget/viewpager/KanzanViewPagerBottomNavView.kt Language: Ko...
Implement the native Android class `ConverterIntList` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/mendelin/tmdb_koin/data/room/ConverterIntList.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.mendelin.tmdb_koin.data.room import androidx.room.TypeConverter class ConverterIntList { @TypeConverter fun fromList(list: List<Int>): String = list.joinToString(",") @TypeConverter fun toList(s: String): List<Int> { return s.split(",") .map { it.toInt() } ...
<|turn>user Implement the native Android class `ConverterIntList` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/mendelin/tmdb_koin/data/room/ConverterIntList.kt Language: Kotlin Framework: AndroidX / Jetpack Compo...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SaveCollageButton`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: GUI/src/main/kotlin/ui/components/diffScreen/SaveCollageButton.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package ui.components.diffScreen import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx.compose.material3.Button import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.MutableState impo...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SaveCollageButton`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: GUI/src/main/kotlin/ui/components/diffScreen/SaveCollageButton.kt Language: Kotlin Fra...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `Description`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/cc/sovellus/vrcaa/ui/components/misc/Description.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package cc.sovellus.vrcaa.ui.components.misc import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.verticalScroll impor...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `Description`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/cc/sovellus/vrcaa/ui/components/misc/Description.kt Language: Kotlin Frame...
Provide the native Android implementation for `CarManagerModule.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: app/src/main/java/com/thoughtworks/carapp/device/di/CarManagerModule.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.thoughtworks.carapp.device.di import android.car.Car import android.car.hardware.property.CarPropertyManager import android.content.Context import dagger.Module import dagger.Provides import dagger.hilt.InstallIn import dagger.hilt.android.qualifiers.ApplicationContext import dagger.hilt.componen...
<|turn>user Provide the native Android implementation for `CarManagerModule.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: app/src/main/java/com/thoughtworks/carapp/device/di/CarManagerModule.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|...
Implement the native Android class `MapSampleActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/naver/maps/map/compose/demo/MapSampleActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2022 SOUP * * 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 agreed...
<|turn>user Implement the native Android class `MapSampleActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/naver/maps/map/compose/demo/MapSampleActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Comp...
Implement the native Android class `DefaultPublisher` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: publishing-sdk/src/main/java/com/ably/tracking/publisher/DefaultPublisher.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.ably.tracking.publisher import android.Manifest.permission.ACCESS_COARSE_LOCATION import android.Manifest.permission.ACCESS_FINE_LOCATION import android.annotation.SuppressLint import androidx.annotation.RequiresPermission import com.ably.tracking.LocationUpdate import com.ably.tracking.Resolutio...
<|turn>user Implement the native Android class `DefaultPublisher` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: publishing-sdk/src/main/java/com/ably/tracking/publisher/DefaultPublisher.kt Language: Kotlin Framework: AndroidX / Jetpack...
Implement the native Android class `FocusTargetNode` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/focus/FocusTargetNode.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2023 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
<|turn>user Implement the native Android class `FocusTargetNode` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/focus/FocusTargetNode.kt Language: Kotlin Framework: AndroidX / Jetp...
Implement the native Android class `MovieJob` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/battlelancer/seriesguide/jobs/movies/MovieJob.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin // Copyright 2023 <NAME> // SPDX-License-Identifier: Apache-2.0 package com.battlelancer.seriesguide.jobs.movies import android.content.Context import com.battlelancer.seriesguide.jobs.BaseFlagJob import com.battlelancer.seriesguide.jobs.SgJobInfo import com.battlelancer.seriesguide.jobs.episodes.JobAction ...
<|turn>user Implement the native Android class `MovieJob` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/battlelancer/seriesguide/jobs/movies/MovieJob.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kot...
Implement the native Android class `AdapterShowStockList` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/kcteam/features/stockAddCurrentStock/adapter/AdapterShowStockList.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.breezesalesoriplast.features.stockAddCurrentStock.adapter import android.content.Context import androidx.recyclerview.widget.RecyclerView import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import com.breezesalesoriplast.R import com.breezesalesoriplast.app.P...
<|turn>user Implement the native Android class `AdapterShowStockList` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/kcteam/features/stockAddCurrentStock/adapter/AdapterShowStockList.kt Language: Kotlin Framework: ...
Provide the native Android implementation for `DotsDiagonal.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: tabler-icons/src/commonMain/kotlin/compose/icons/tablericons/DotsDiagonal.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.woowla.compose.icon.collections.tabler.tabler.outline import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.St...
<|turn>user Provide the native Android implementation for `DotsDiagonal.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: tabler-icons/src/commonMain/kotlin/compose/icons/tablericons/DotsDiagonal.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn...
Implement the native Android class `BaseUIController` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/tz/basicsmvp/mvp/base/BaseUIController.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.tz.basicsmvp.mvp.base import android.app.Activity import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.ImageView import android.widget.TextView import androidx.appcompat.widget.Toolbar import com.tz.basicsmvp.R import com.tz.basicsmvp.mvp...
<|turn>user Implement the native Android class `BaseUIController` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/tz/basicsmvp/mvp/base/BaseUIController.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Ko...
Implement the native Android class `UiState` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/kotlin/net/primal/android/profile/details/ProfileDetailsContract.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package net.primal.android.profile.details import androidx.paging.PagingData import kotlinx.coroutines.flow.Flow import net.primal.android.core.compose.feed.model.FeedPostUi import net.primal.android.core.compose.feed.model.ZappingState import net.primal.android.core.compose.profile.model.ProfileDetailsUi im...
<|turn>user Implement the native Android class `UiState` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/kotlin/net/primal/android/profile/details/ProfileDetailsContract.kt Language: Kotlin Framework: AndroidX / Jetpack Comp...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `Layouts`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/guru/composecookbook/ui/learnwidgets/Layouts.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.guru.composecookbook.ui.learnwidgets import androidx.compose.foundation.background import androidx.compose.foundation.layout.* import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.verticalScroll import androidx.compose.material.Button import androidx.compose.m...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `Layouts`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/guru/composecookbook/ui/learnwidgets/Layouts.kt Language: Kotlin Framework...
Implement the native Android class `WeeklyDateTimeInterval` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: timelineviewv2/src/main/java/ro/dobrescuandrei/timelineviewv2/model/WeeklyDateTimeInterval.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package ro.dobrescuandrei.timelineviewv2.model import android.annotation.SuppressLint import android.content.res.Resources import ro.dobrescuandrei.timelineviewv2.TimelineView import ro.dobrescuandrei.timelineviewv2.recycler.adapter.WeeklyDateIntervalAdapter import ro.dobrescuandrei.timelineviewv2.utils.atBe...
<|turn>user Implement the native Android class `WeeklyDateTimeInterval` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: timelineviewv2/src/main/java/ro/dobrescuandrei/timelineviewv2/model/WeeklyDateTimeInterval.kt Language: Kotlin Framew...
Implement the native Android class `IamControllerImpl` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: RetenoSdkCore/src/main/java/com/reteno/core/domain/controller/IamControllerImpl.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.reteno.core.domain.controller import androidx.annotation.VisibleForTesting import com.reteno.core.data.local.mappers.toDomain import com.reteno.core.data.remote.model.iam.displayrules.frequency.FrequencyRuleValidator import com.reteno.core.data.remote.model.iam.displayrules.schedule.ScheduleRuleV...
<|turn>user Implement the native Android class `IamControllerImpl` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: RetenoSdkCore/src/main/java/com/reteno/core/domain/controller/IamControllerImpl.kt Language: Kotlin Framework: AndroidX / ...
Implement the native Android class `CrashActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: lib_debug/src/main/java/com/ndhzs/lib/debug/crash/CrashActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.ndhzs.lib.debug.crash import android.annotation.SuppressLint import android.content.ClipData import android.content.ClipboardManager import android.content.Context import android.content.Intent import android.graphics.Color import android.os.Bundle import android.os.Process import android.text.Sp...
<|turn>user Implement the native Android class `CrashActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: lib_debug/src/main/java/com/ndhzs/lib/debug/crash/CrashActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Ko...
Implement the native Android class `SMSReceiver` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/life/hnj/sms2telegram/smshandler/SMSReceiver.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package life.hnj.sms2telegram.smshandler import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import android.content.SharedPreferences import android.os.Build import android.telephony.SmsMessage import android.util.Log import android.widget.Toast import androi...
<|turn>user Implement the native Android class `SMSReceiver` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/life/hnj/sms2telegram/smshandler/SMSReceiver.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotli...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `VideocallLastStepView`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: ui/src/main/java/es/fnmtrcm/ceres/certificadoDigitalFNMT/ui/videocall/VideocallLastStepView.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package es.fnmtrcm.ceres.certificadoDigitalFNMT.ui.videocall import android.content.Context import android.content.res.Configuration import android.net.Uri import android.util.Log import androidx.browser.customtabs.CustomTabsIntent import androidx.compose.foundation.Image import androidx.compose.foundation.l...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `VideocallLastStepView`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: ui/src/main/java/es/fnmtrcm/ceres/certificadoDigitalFNMT/ui/videocall/VideocallLas...
Implement the Android ViewModel `VideoAndImagesViewModelFactory` 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/rkbapps/neetflix/viewmodelfactories/movies/VideoAndImagesViewModelFactory.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.rkbapps.neetflix.viewmodelfactories.movies import androidx.lifecycle.ViewModel import androidx.lifecycle.ViewModelProvider import com.rkbapps.neetflix.repository.movies.VideoAndImageRepository import com.rkbapps.neetflix.viewmodels.movies.VideoAndImageViewModel class VideoAndImagesViewModelFacto...
<|turn>user Implement the Android ViewModel `VideoAndImagesViewModelFactory` 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/rkbapps/neetflix/viewmodelfactories/...
Provide the native Android implementation for `MathSin.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/MathSin.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.woowla.compose.icon.collections.tabler.tabler.outline import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.vector.ImageVector import androidx.compose.ui.graph...
<|turn>user Provide the native Android implementation for `MathSin.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/MathSin.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SmallHeader`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/dluvian/voyage/ui/components/text/SmallHeader.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.dluvian.voyage.ui.components.text import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier @Composable fun SmallHeader(header: String, modifier: Modifier = Modifier) { Text(modifier =...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SmallHeader`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/dluvian/voyage/ui/components/text/SmallHeader.kt Language: Kotlin Fram...
Implement the native Android class `CreateMapFromFileCommand` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/kylecorry/trail_sense/tools/maps/infrastructure/create/CreateMapFromFileCommand.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.kylecorry.trail_sense.tools.maps.infrastructure.create import android.content.Context import com.kylecorry.andromeda.alerts.loading.ILoadingIndicator import com.kylecorry.trail_sense.shared.extensions.onIO import com.kylecorry.trail_sense.shared.io.UriPicker import com.kylecorry.trail_sense.tools...
<|turn>user Implement the native Android class `CreateMapFromFileCommand` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/kylecorry/trail_sense/tools/maps/infrastructure/create/CreateMapFromFileCommand.kt Language: ...