Skip to content

Instantly share code, notes, and snippets.

KevinSchildhorn /
Last active May 14, 2023 23:07
Gradle Cheatsheet

Flash Cards

Here is some quick references to code surrounding gradle

Blocks: Full Coverage

  • plugins - Where you define the plugins you want to use. (More Info)
  • repositories - A block that tells gradle where to look for items. (More Info)
  • pluginManagement - Where you define the projects plugins, contains plugins and repositories blocks. (More Info)
  • BuildScript - (Legacy for plugin) Defines repositories and dependencies for adding plugins. Can also be used to add variables such as versions that are used across the project. (More Info)
KevinSchildhorn / ButtonPrimary.kt
Last active March 9, 2023 09:53
Relay Compose Sample
View ButtonPrimary.kt
* Primary Button
* This composable was generated from the UI Package 'button_primary'.
* Generated code; do not edit directly
fun ButtonPrimary(
modifier: Modifier = Modifier,
onButtonPrimaryTapped: () -> Unit = {}
KevinSchildhorn / SharedCode_build.gradle
Created January 3, 2019 20:56
Kotlin MP sample gradles
View SharedCode_build.gradle
plugins {
id 'kotlin-multiplatform'
repositories {
group 'com.example'
version '0.0.1'
apply plugin: 'maven-publish'
KevinSchildhorn / Sample.cs
Created December 29, 2018 04:43
An alternate Timer option for Unity
View Sample.cs
int timerId = TimerHandler.ScheduleTimer(timerDelay, timerLength, repeats, (id) => {
Debug.Log("Timer Finished");
bool success = TimerHandler.CancelTimer(timerId);