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
| package com.fortyseven.fptraining | |
| import arrow.core.Either | |
| import arrow.core.right | |
| import arrow.effects.IO | |
| import arrow.effects.extensions.io.fx.fx | |
| data class Account(val balance: Int) | |
| data class AccountEntity(val balance: Int) |
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
| import kotlinx.coroutines.experimental.* | |
| import okhttp3.* | |
| import okio.Buffer | |
| import okio.Okio | |
| import java.io.File | |
| import java.io.IOException | |
| /** | |
| * Custom coroutine dispatcher for blocking calls | |
| */ |
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
| import android.arch.lifecycle.GenericLifecycleObserver | |
| import android.arch.lifecycle.Lifecycle | |
| import android.arch.lifecycle.Lifecycle.Event.ON_DESTROY | |
| import android.arch.lifecycle.LifecycleOwner | |
| import kotlinx.coroutines.experimental.CoroutineScope | |
| import kotlinx.coroutines.experimental.Dispatchers | |
| import kotlinx.coroutines.experimental.Job | |
| import kotlinx.coroutines.experimental.android.Main | |
| fun Lifecycle.createJob(cancelEvent: Lifecycle.Event = ON_DESTROY): Job { |
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
| import 'package:flutter/material.dart'; | |
| import 'package:http/http.dart' as http; | |
| import 'dart:convert'; | |
| import 'package:url_launcher/url_launcher.dart'; | |
| import 'package:intl/intl.dart'; | |
| import 'dart:async'; | |
| import 'package:shared_preferences/shared_preferences.dart'; | |
| import 'package:share/share.dart' as sharing; | |
| import 'package:transparent_image/transparent_image.dart'; |
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
| package be.brol | |
| import android.os.Binder | |
| import android.os.Bundle | |
| import android.support.v4.app.BundleCompat | |
| import android.support.v4.app.Fragment | |
| /** | |
| * Eases the Fragment.newInstance ceremony by marking the fragment's args with this delegate | |
| * Just write the property in newInstance and read it like any other property after the fragment has been created |
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
| import io.reactivex.android.plugins.RxAndroidPlugins | |
| import io.reactivex.plugins.RxJavaPlugins | |
| import io.reactivex.schedulers.Schedulers | |
| import org.junit.rules.TestRule | |
| import org.junit.runner.Description | |
| import org.junit.runners.model.Statement | |
| /** | |
| * Test rule that overrides all schedulers with the trampoline scheduler. | |
| * This means everything runs on the same thread, when using this rule |
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
| import org.junit.After; | |
| import org.junit.Before; | |
| import rx.Scheduler; | |
| import rx.android.plugins.RxAndroidPlugins; | |
| import rx.android.plugins.RxAndroidSchedulersHook; | |
| import rx.schedulers.Schedulers; | |
| /** | |
| * JUnit Tests. | |
| * |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="be.rijckaert.tim.disableanimations"> | |
| <!-- Place this permission in your debug folder --> | |
| <uses-permission android:name="android.permission.SET_ANIMATION_SCALE"/> | |
| </manifest> |