Skip to content

Instantly share code, notes, and snippets.

View radityagumay's full-sized avatar
🏠
Working from home

raditya gumay radityagumay

🏠
Working from home
View GitHub Profile
@yanngx
yanngx / FragmentArgumentDelegate.kt
Last active January 19, 2023 09:26
Fragment arguments without hassle !
package be.brol
import android.os.Binder
import android.os.Bundle
import android.support.v4.app.BundleCompat
import android.support.v4.app.Fragment
/**
* Eases the Fragment.newInstance ceremony by marking the fragment's args with this delegate
* Just write the property in newInstance and read it like any other property after the fragment has been created
@zach-klippenstein
zach-klippenstein / ComposableDumper.kt
Last active July 19, 2024 07:20
Simple utility to dump the current Composition tree to logcat.
import android.util.Log
import androidx.compose.runtime.Composable
import androidx.compose.runtime.currentComposer
import androidx.compose.runtime.remember
import androidx.compose.ui.unit.IntBounds
import androidx.ui.tooling.CallGroup
import androidx.ui.tooling.Group
import androidx.ui.tooling.NodeGroup
import androidx.ui.tooling.asTree
@cbeyls
cbeyls / ignore-jetified-proguard-rules.groovy
Created October 28, 2021 09:52
Ignore Proguard rules of jetified library dependencies
// Add the following to your Android app module build.gradle file, after the android section:
// Replace "proguard.txt" with the actual name of the proguard rules file in the library aar, if different
afterEvaluate {
// Update configuration of the minify tasks to exclude specific consumer Proguard rules files
tasks.findAll { task -> task.name.startsWith('minify') }.each { task ->
task.configure {
configurationFiles.from.collect().each { fileCollection ->
if (fileCollection instanceof FileCollection) {
configurationFiles.from.remove fileCollection