Skip to content

Instantly share code, notes, and snippets.

View omerfarukyilmaz's full-sized avatar

Omer Faruk Yilmaz omerfarukyilmaz

View GitHub Profile
@omerfarukyilmaz
omerfarukyilmaz / TimberKotlin.xml
Last active February 27, 2019 06:19 — forked from ericksli/TimberJava.xml
Timber Android Studio live template for Java and Kotlin #kotlin #android
<templateSet group="TimberKotlin">
<template name="timm" value="timber.log.Timber.d($FORMAT$)" description="Log method name and its arguments" toReformat="true" toShortenFQNames="true">
<variable name="FORMAT" expression="groovyScript(&quot;def params = _2.collect {it + ' = $' + it}.join(', '); return '\&quot;' + _1 + '() called' + (params.empty ? '' : ' with: ' + params) + '\&quot;'&quot;, kotlinFunctionName(), functionParameters())" defaultValue="" alwaysStopAt="false" />
<context>
<option name="KOTLIN_STATEMENT" value="true" />
</context>
</template>
<template name="timd" value="timber.log.Timber.d(&quot;$METHOD_NAME$: $content$&quot;)" description="Timber.d(String)" toReformat="true" toShortenFQNames="true">
<variable name="METHOD_NAME" expression="kotlinFunctionName()" defaultValue="" alwaysStopAt="false" />
<variable name="content" expression="" defaultValue="" alwaysStopAt="true" />

Keybase proof

I hereby claim:

  • I am omerfarukyilmaz on github.
  • I am omerfarukyilmaz (https://keybase.io/omerfarukyilmaz) on keybase.
  • I have a public key ASC2zWQJJlkoJ8JFnToU8MvJWdBfMj4F36W1DZFzq2OG0Qo

To claim this, I am signing this object: