Skip to content

Instantly share code, notes, and snippets.

@Amejia481
Amejia481 / AppExecutors
Created August 16, 2018 23:53
AppExecutors example
package com.example.android.todolist;
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@Amejia481
Amejia481 / Mockito kotlin tools
Created August 16, 2018 23:49
Mockito kotlin tools
fun <T> capture(argCaptor : ArgumentCaptor<T>): T = argCaptor.capture()
@Amejia481
Amejia481 / Best_Practices_Slim_Down_APK_IO17.gradle
Created June 27, 2017 20:14
Snippets for the talk Best Practices to Slim Down Your App Size (Google I/O '17) video https://youtu.be/AdfKNgyT438?list=PLWz5rJ2EKKc-odHd6XEaf7ykfsosYyCKp
/**
Use Proguard
Video section: https://youtu.be/AdfKNgyT438?list=PLWz5rJ2EKKc-odHd6XEaf7ykfsosYyCKp&t=413
**/
android {
buildTypes {
release {
minifyEnabled true
}
}
@Amejia481
Amejia481 / Snippets Best Practices to Slim Down Your App Size
Created June 27, 2017 19:52
Snippets for the talk Best Practices to Slim Down Your App Size (Google I/O '17)
/**
Use Proguard
Video section:
https://youtu.be/AdfKNgyT438?list=PLWz5rJ2EKKc-odHd6XEaf7ykfsosYyCKp&t=413
**/
android {
buildTypes {
release {