Skip to content

Instantly share code, notes, and snippets.

View sschuberth's full-sized avatar
:octocat:
Enjoying Kotlin since 2017!

Sebastian Schuberth sschuberth

:octocat:
Enjoying Kotlin since 2017!
View GitHub Profile
@sschuberth
sschuberth / kotlin-variant-aware-dependencies.md
Created March 31, 2023 11:05 — forked from h0tk3y/kotlin-variant-aware-dependencies.md
Kotlin Usages of Gradle Variant-Aware Dependency Management

Kotlin Usages of Gradle Variant-Aware Dependency Management

This document is up-to-date for Kotlin release: 1.3.30.

Here is the list of all attributes used by the Kotlin Gradle plugin. The details, configuration and possible values will be listed below.

Name Type
org.gradle.usage (owned by Gradle) org.gradle.api.attributes.Usage
@sschuberth
sschuberth / test
Last active August 9, 2016 13:18
commit msg?
test2
// add this to the general build.gradle, not in the subproject's build.gradle
// improved version of Xavier's tip http://tools.android.com/tech-docs/new-build-system/tips#TOC-Improving-Build-Server-performance.
// usage example default, preDex will be enabled: gradle clean build
// usage example disabling preDex: gradle clean build -PpreDexEnable=false
// preDexEnable parameter's value can be set as property of Continuous Integration build config
// this is the main difference from Xavier's workaround where he doing only hasProperty check
project.ext {
project.ext.preDexLibs = !'false'.equals(project.properties['preDexEnable'])
@sschuberth
sschuberth / adb_kill.py
Created July 25, 2012 10:04 — forked from marshall/adb_kill.py
kill a running android process without eclipse
#!/usr/bin/python -O
# Kill a running Android JDWP (debuggable) process without Eclipse.
import sys
import socket
import struct
import uuid
import random
import subprocess