Skip to content

Instantly share code, notes, and snippets.

View Sharkaboi's full-sized avatar
🖥️
Still in Alpha {}

Sarath S Sharkaboi

🖥️
Still in Alpha {}
View GitHub Profile
@Sharkaboi
Sharkaboi / RecyclerViewAdapterTemplate.md
Last active January 27, 2022 11:55
RecyclerView Adapter template with DiffUtil.ItemCallback, ViewBinding and custom listeners. Best when used with livedata.

Adapter Template


#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME}#end

import androidx.recyclerview.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.AsyncListDiffer
@jemshit
jemshit / proguard-rules.pro
Last active June 13, 2024 07:25
Proguard Rules for Android libraries
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
-keepclassmembers class fqcn.of.javascript.interface.for.webview {
public *;
}
### RxJava, RxAndroid (https://gist.github.com/kosiara/487868792fbd3214f9c9)
-keep class rx.schedulers.Schedulers {
public static <methods>;