I hereby claim:
- I am axiel7 on github.
- I am axiel7 (https://keybase.io/axiel7) on keybase.
- I have a public key ASBE5Stz91-O0s5vU7DSLtH-yh1mZv5-Fd9ssKloCiTEIAo
To claim this, I am signing this object:
kotlinOptions { | |
freeCompilerArgs += listOf( | |
"-P", | |
"plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=" + project.buildDir.absolutePath + "/compose_metrics") | |
freeCompilerArgs += listOf( | |
"-P", | |
"plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=" + project.buildDir.absolutePath + "/compose_metrics") | |
} |
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME} | |
#end | |
#parse("File Header.java") | |
import androidx.compose.runtime.Composable | |
import androidx.compose.ui.tooling.preview.Preview | |
@Composable | |
fun ${NAME}() { | |
} |
import androidx.compose.animation.animateColorAsState | |
import androidx.compose.animation.core.FastOutLinearInEasing | |
import androidx.compose.animation.core.Spring | |
import androidx.compose.animation.core.spring | |
import androidx.compose.foundation.layout.Box | |
import androidx.compose.foundation.layout.WindowInsets | |
import androidx.compose.foundation.layout.windowInsetsPadding | |
import androidx.compose.material3.ExperimentalMaterial3Api | |
import androidx.compose.material3.MaterialTheme | |
import androidx.compose.material3.Surface |
import android.util.Log | |
import io.ktor.client.* | |
import io.ktor.client.engine.okhttp.* | |
import io.ktor.client.features.logging.* | |
import java.util.concurrent.TimeUnit | |
object KtorClient { | |
private const val TIME_OUT = 60_000L | |
val ktorHttpClient = HttpClient(OkHttp) { |
import android.view.LayoutInflater | |
import android.view.ViewGroup | |
import androidx.recyclerview.widget.RecyclerView | |
import androidx.viewbinding.ViewBinding | |
abstract class BaseAdapter<VB: ViewBinding, T> : RecyclerView.Adapter<BaseAdapter<VB, T>.ViewHolder>() { | |
protected abstract val bindingInflater: (LayoutInflater, ViewGroup?, Boolean) -> VB | |
protected var _list: List<T>? = listOf() |
import android.content.Context | |
import android.os.Bundle | |
import android.view.LayoutInflater | |
import android.view.View | |
import android.view.ViewGroup | |
import androidx.fragment.app.Fragment | |
import androidx.viewbinding.ViewBinding | |
abstract class BaseFragment<VB: ViewBinding> : Fragment() { |
import android.os.Bundle | |
import android.view.LayoutInflater | |
import androidx.appcompat.app.AppCompatActivity | |
import androidx.core.view.WindowCompat | |
import androidx.viewbinding.ViewBinding | |
abstract class BaseActivity<VB: ViewBinding> : AppCompatActivity() { | |
private var _binding: VB? = null | |
protected val binding get() = _binding!! |
I hereby claim:
To claim this, I am signing this object: