Skip to content

Instantly share code, notes, and snippets.

View vincentbrison's full-sized avatar

Vincent Brison vincentbrison

View GitHub Profile
@vincentbrison
vincentbrison / debug.kt
Last active December 14, 2019 14:24
Enable kotlin coroutine debug mode on Android
fun setupCoroutineDebugMode() {
val debugProperty = if (BuildConfig.DEBUG) {
kotlinx.coroutines.DEBUG_PROPERTY_VALUE_ON
} else {
kotlinx.coroutines.DEBUG_PROPERTY_VALUE_OFF
}
System.setProperty(kotlinx.coroutines.DEBUG_PROPERTY_NAME, debugProperty)
}
@vincentbrison
vincentbrison / (deprecated) ant build for Android.xml
Last active August 29, 2015 14:05
Ant boilerplate for Android
<?xml version="1.0" encoding="UTF-8"?>
<project name="AndroidAntBoilerPlateExample" >
<!-- Copy Config.java to our source tree, replacing custom tokens with values in build.properties. The configuration depends on "clean" because otherwise the build system will not detect changes in the configuration. -->
<target
name="dev"
description="Copy env filtered values" >
<!-- Copy the configuration file, replacing tokens in the file. -->