Skip to content

Instantly share code, notes, and snippets.

@KevinSchildhorn
KevinSchildhorn / GradleCheatSheet.md
Last active May 14, 2023 23:07
Gradle Cheatsheet

Flash Cards

Here is some quick references to code surrounding gradle

  • 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
KevinSchildhorn / ButtonPrimary.kt
Last active March 9, 2023 09:53
Relay Compose Sample
/**
* Primary Button
*
* This composable was generated from the UI Package 'button_primary'.
* Generated code; do not edit directly
*/
@Composable
fun ButtonPrimary(
modifier: Modifier = Modifier,
onButtonPrimaryTapped: () -> Unit = {}
@KevinSchildhorn
KevinSchildhorn / SharedCode_build.gradle
Created January 3, 2019 20:56
Kotlin MP sample gradles
plugins {
id 'kotlin-multiplatform'
}
repositories {
mavenCentral()
}
group 'com.example'
version '0.0.1'
apply plugin: 'maven-publish'
@KevinSchildhorn
KevinSchildhorn / Sample.cs
Created December 29, 2018 04:43
An alternate Timer option for Unity
int timerId = TimerHandler.ScheduleTimer(timerDelay, timerLength, repeats, (id) => {
Debug.Log("Timer Finished");
});
bool success = TimerHandler.CancelTimer(timerId);