This file contains hidden or 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
| gource \ | |
| -f -1280x720 \ | |
| -seconds-per-day 1 \ | |
| -o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 gource.mp4 |
This file contains hidden or 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
| configurations.all { | |
| resolutionStrategy.eachDependency { DependencyResolveDetails details -> | |
| def requested = details.requested | |
| if (requested.group == 'com.android.support') { | |
| if (!requested.name.startsWith('multidex')) { | |
| details.useVersion '25.3.1' | |
| } | |
| } | |
| } | |
| } |
This file contains hidden or 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 RxBus { | |
| private static RxBus sInstance; | |
| private final Relay<Object> mBus = PublishRelay.create().toSerialized(); | |
| public static RxBus getInstance() { | |
| if (sInstance == null){ | |
| sInstance = new RxBus(); | |
| } |
This file contains hidden or 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 abstract class BasePresenter<T extends MvpView> implements Presenter<T> { | |
| private T mView; | |
| @Override | |
| public void attachView(T view) { | |
| mView = view; | |
| } | |
| @Override |