Skip to content

Instantly share code, notes, and snippets.

@mr-archano
mr-archano / build.gradle
Last active August 29, 2015 14:01
crashlytics hack
...
File crashlyticsProperties = new File("${project.projectDir.absolutePath}/crashlytics.properties")
applicationVariants.all { variant ->
variant.productFlavors.each { flavor ->
def variantSuffix = variant.name.capitalize()
def generateResourcesTask = project.tasks.getByName("crashlyticsGenerateResources${variantSuffix}")
def generatePropertiesTask = task("crashlyticsGenerateProperties${variantSuffix}") << {
Properties properties = new Properties()
println "...copying apiSecret for ${variant.name}"
package com.gertherb.api;
import com.squareup.okhttp.internal.Base64;
import retrofit.Endpoint;
import retrofit.RequestInterceptor;
import retrofit.RestAdapter;
import static retrofit.RestAdapter.LogLevel.FULL;
@mr-archano
mr-archano / SerialAsyncTask
Created March 13, 2013 11:18
Quick & dirty copy of AsyncTask class using serial executor even on legacy Android versions. - Just get rid of all references to AsyncTask and replace them with SerialAsyncTask instead - Changed SerialExecutor.mTasks type from ArrayDeque to a simple LinkedList
/*
* Copyright (C) 2008 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
*
* Unless required by applicable law or agreed to in writing, software
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Bitmap.Config;
import android.util.AttributeSet;
import android.widget.LinearLayout;
public class FadableLinearLayout extends LinearLayout {
@mr-archano
mr-archano / dump-config.xml
Created October 15, 2012 16:14
Flex dump config file
<flex-config>
<!-- benchmark: output performance benchmark-->
<!-- benchmark usage:
<benchmark>boolean</benchmark>
-->
<compiler>
<!-- compiler.accessible: generate an accessible SWF-->
<accessible>false</accessible>
<!-- compiler.actionscript-file-encoding: specifies actionscript file encoding. If there is no BOM in the AS3 source files, the compiler will use this file encoding.-->
<!-- compiler.actionscript-file-encoding usage: