Skip to content

Instantly share code, notes, and snippets.

View sjaramillo10's full-sized avatar
💻

Severiano Jaramillo sjaramillo10

💻
View GitHub Profile
@sjaramillo10
sjaramillo10 / gradle_cheat_sheet.md
Last active July 9, 2024 17:29
7's Gradle cheat sheet

7's Gradle cheat sheet

I always forget my Gradle foo. Hoping this will help me (and others?) find useful Gradle commands more easily

Seems useful: https://mingliang.me/blog/gradle-cheatsheet/

Refresh dependencies

This command can be useful when configuring private dependencies in your project.

./gradlew build --refresh-dependencies
@sjaramillo10
sjaramillo10 / FragmentA.kt
Created May 10, 2021 16:33 — forked from gpeal/FragmentA.kt
View Binding Delegates
class WifiNetworksFragment : TonalFragment(R.layout.wifi_networks_fragment) {
// This automatically creates and clears the binding in a lifecycle-aware way.
private val binding: WifiNetworksFragmentBinding by viewBinding()
...
}
class WifiNetworkView @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,