- Bug fix
- New feature
- Enhancement
- Refactoring
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 | |
# ------------------------- GENERAL ------------------------- # | |
# install xcode command line tools | |
xcode-select —install | |
# install and setup homebrew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/jstarke/.zprofile |
Prefix | Emoji | Meaning |
---|---|---|
Required: |
❗ :exclamation: |
A concern that must be addressed before merging. |
Question: |
❓ :question: |
A question that must be answered before merging. |
Nitpick: |
⛏️ :pick: |
An optional, low priority change request. |
Idea: |
💡 :bulb: |
An idea to consider for this PR or a future one. |
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
/** | |
* Collects any out-of-lifecycle, undeliverable exceptions that are thrown by RxJava streams. | |
* If [verifyAutomatically] is true, any tests running under this rule will automatically fail if | |
* any errors are collected. Alternatively, individual test methods can be checked manually using | |
* methods such as [assertNoErrors] and [assertFailsWith]. | |
* | |
* This class was inspired by ideas from: https://github.com/ReactiveX/RxJava/issues/5234 | |
*/ | |
class RxErrorCollector(private val verifyAutomatically: Boolean = true) : TestRule { | |
private lateinit var errors: List<Throwable> |
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
# clear app data | |
adb shell pm clear <app-package-name> | |
# launch app | |
adb shell am start -n <app-package-name>/<qualified-launch-activity-class> |
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
/** | |
* Replaces the default RxJava schedulers with a synchronous one. | |
*/ | |
class RxImmediateSchedulerRule : TestRule { | |
private val immediateScheduler = object : Scheduler() { | |
@NonNull | |
override fun scheduleDirect(run: Runnable, delay: Long, unit: TimeUnit): Disposable { | |
// Hack to prevent stack overflows in unit tests when scheduling with a delay; | |
return super.scheduleDirect(run, 0, unit) | |
} |
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
/** | |
* Formats the watched EditText to groups of characters, with separators between them. | |
*/ | |
public class GroupedInputFormatWatcher implements TextWatcher { | |
private char separator; | |
private String separatorString; | |
private int groupSize; | |
/** | |
* Breakdown of this regex: |
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
public class MyAsyncTaskLoader extends AsyncTaskLoader<ResponseObject> { | |
private String mId; | |
private ResponseObject mResponse; | |
/** | |
* Creates a new {@link MyAsyncTaskLoader}. | |
* | |
* @param context The context to use. | |
* @param id The ID of the item to load. | |
*/ |
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.content.Context; | |
import android.content.res.TypedArray; | |
import android.util.AttributeSet; | |
import android.support.v7.widget.RecyclerView; | |
import android.support.v7.widget.LinearLayoutManager; | |
import android.view.View; | |
import android.graphics.Rect; | |
import android.graphics.drawable.Drawable; | |
import android.graphics.Canvas; |
android:fontFamily="sans-serif" // roboto regular
android:fontFamily="sans-serif-light" // roboto light
android:fontFamily="sans-serif-condensed" // roboto condensed
android:fontFamily="sans-serif-condensed-light" // roboto condensed light
android:fontFamily="sans-serif-thin" // roboto thin (android 4.2)
android:fontFamily="sans-serif-medium" // roboto medium (android 5.0)