This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
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}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NOTE: `OperatorSubscribeUntil` class is borrowed from @dlew's PR (https://github.com/dlew/RxAndroid/blob/dlew/lifecycle-observable/rxandroid/src/main/java/rx/android/lifecycle/OperatorSubscribeUntil.java) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:android:newRelicDeinstrumentTask | |
[newrelic.info] Deinstrumenting... | |
:android:crashlyticsStoreDeobsAlphaDebug | |
:android:crashlyticsUploadDeobsAlphaDebug | |
:android:crashlyticsCleanupResourcesAfterUploadAlphaDebug | |
...removing crashlytics.properties | |
:android:compileAlphaDebugNdk | |
:android:processAlphaDebugJavaRes UP-TO-DATE | |
:android:validateDebugSigning | |
:android:packageAlphaDebug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.text.ParseException; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; | |
import java.util.Locale; | |
import java.util.TimeZone; | |
public class SimpleDateFormatThreadSafe { | |
private final ThreadLocal<SimpleDateFormat> localSimpleDateFormat; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.gradle.api.Plugin | |
import org.gradle.api.Project | |
import org.gradle.plugins.ide.idea.IdeaPlugin | |
import org.gradle.tooling.BuildException | |
class JavaAptPlugin implements Plugin<Project> { | |
@Override | |
void apply(Project project) { | |
def aptConfiguration = project.configurations.create 'javapt' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# License for any modification to the original (linked below): | |
# ---------------------------------------------------------------------------- | |
# "THE BEER-WARE LICENSE" (Revision 42): | |
# Sebastiano Poggi wrote this file. As long as you retain this notice you | |
# can do whatever you want with this stuff. If we meet some day, and you think | |
# this stuff is worth it, you can buy me a beer in return. | |
# ---------------------------------------------------------------------------- | |
# | |
# Based upon http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// You can place it in the root build.gradle | |
allprojects { | |
tasks.withType(JavaForkOptions) { | |
// Forked processes like GradleWorkerMain for tests won't steal focus! | |
jvmArgs '-Djava.awt.headless=true' | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Unless specified otherwise, all of the below tinting applies to both Lollipop and pre-Lollipop using AppCompat v21. To use the support version of these attributes, remove the android namespace. For instance, "android:colorControlNormal" becomes "colorControlNormal". These attributes will be propagated to their corresponding attributes within the android namespace for devices running Lollipop. Any exceptions to this will be noted by including the "android:" prefix. | |
All Clickable Views: | |
----------- | |
* ripple effect (Lollipop only) -- "colorControlHighlight" | |
Status Bar: | |
------------ | |
* background (Lollipop only) - "colorPrimaryDark" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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: |
OlderNewer