Skip to content

Instantly share code, notes, and snippets.

Dario Marcato dmarcato

Block or report user

Report or block dmarcato

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
dmarcato / strip_play_services.gradle
Last active Jun 19, 2019
Gradle task to strip unused packages on Google Play Services library
View strip_play_services.gradle
def toCamelCase(String string) {
String result = ""
string.findAll("[^\\W]+") { String word ->
result += word.capitalize()
return result
afterEvaluate { project ->
Configuration runtimeConfiguration = project.configurations.getByName('compile')
dmarcato /
Last active Jun 24, 2019
De/Serialization of generic SparseArray using Gson library
import android.util.SparseArray;
import java.lang.reflect.Type;
public class Main {
public static class MyCustomClass {
public int a;
View build_intellij_sync.gradle
* apply this plugin after doing all dependency and repo stuff. It will create two idea 'libraries' per subproject
* and add them to your .iml files
* Forked from
* Plugin-ified and made to support multiple modules per root build.gradle and multiple build.gradles per idea project.
class IntelliJSync implements Plugin<Project> {
def sep = File.separator
You can’t perform that action at this time.