This gist has graduated to a full-fledged repo @ https://github.com/JakeWharton/ProcessPhoenix
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
<metadata> | |
<!-- Some Metadata.xml fixes for binding the Socialize Android SDK (http://getsocialize.com/sdk/) in Xamarin.Android | |
Note that this is not a complete set of fixes. These changes only address the first round of compile errors. --> | |
<!-- Fixes for duplicate EventArgs, as discussed on: | |
http://docs.xamarin.com/guides/android/advanced_topics/java_integration_overview/binding_a_java_library_(.jar)/#Problem_Duplicate_custom_EventArgs_types | |
Error message: Error CS0102: The type `SomeClass` already contains a definition for `p0' (CS0102) --> | |
<attr path="/api/package[@name='com.socialize.auth.twitter']/interface[@name='TwitterAuthListener']/method[@name='onError' and count(parameter)=1 and parameter[1][@type='com.socialize.error.SocializeException']]" name="argsType">AuthTwitterErrorEventArgs</attr> | |
<attr path="/api/package[@name='com.socialize.facebook']/interface[@name='Facebook.DialogListener']/method[@name='onComplete' and count(parameter)=1 and parameter[1][@type='android.os.Bundle |
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
// Issue: https://github.com/ReactiveX/RxJava/issues/3119 | |
class YourApp extends Application { | |
static { | |
// I recommend you to put this code into static initialization block of Application class | |
// because Application class will be loaded before you will start doing some work via RxJava | |
// PLEASE add comment "remove fix from app class… when you'll switch to new version of RxJava" | |
// near to "compile 'io.reactivex:rxjava:1.0.13'" in your build.gradle | |
System.setProperty("rx.scheduler.jdk6.purge-force", "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
import android.animation.ValueAnimator; | |
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; | |
import android.graphics.Path; | |
import android.graphics.RectF; | |
import android.util.AttributeSet; | |
import android.view.View; |
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/bash | |
cat << EOF | |
########################################################### | |
# Workaround adb disconnecting issue on macOS Sierra | |
# | |
# More info: | |
# https://code.google.com/p/android/issues/detail?id=219085 | |
# credits to: hans...@meetme.com, vs...@google.com | |
########################################################### |
A simple checklist for deprecating a repository. See https://github.com/RichardLitt/knowledge/blob/master/how-to-deprecate-a-repository-on-github.md.
- Change the GitHub description. This is often the first thing people see for the repository, and the first line that people will see if looking at the repository in the Organization view.
The most important thing to do is to add the word
DEPRECATED
at the front of the description. This clearly marks it will not be updated. You can also add an emoji to it.⛔️ DEPRECATED <former description>
makes it pop out a bit more. - Add GitHub topics:
deprecated
,obselete
, andarchived
are all good ones. - Edit the title of the README. Remove the current title, and instead write
# DEPRECATED
.
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:Suppress("NOTHING_TO_INLINE") | |
import android.util.Log | |
import io.reactivex.* | |
inline fun <reified T> printEvent(tag: String, success: T?, error: Throwable?) = | |
when { | |
success == null && error == null -> Log.d(tag, "Complete") /* Only with Maybe */ | |
success != null -> Log.d(tag, "Success $success") | |
error != null -> Log.d(tag, "Error $error") |
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
apply plugin: "jacoco" | |
jacoco { | |
toolVersion = deps.test.jacocoVersion | |
} | |
tasks.withType(Test) { | |
jacoco.includeNoLocationClasses = 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
#!/usr/bin/env bash | |
authKey="MY_LOCALIZE_BIZ_API_KEY" | |
valuesDir="src/main/res/values" | |
languages="de en" | |
# Main string files | |
for language in $languages | |
do | |
if [ "$language" == "en" ]; then | |
saveDir="$valuesDir" |