by Ossi Hanhinen, @ohanhi
with the support of Futurice 💚.
Licensed under CC BY 4.0.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| <?xml version="1.0" encoding="utf-8"?> | |
| <!-- This file should be outside of release manifest (in this case app/src/mock/Manifest.xml --> | |
| <manifest | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="com.example.tests"> | |
| <!-- For espresso testing purposes, this is removed in live builds, but not in dev builds --> | |
| <uses-permission android:name="android.permission.SET_ANIMATION_SCALE" /> | |
| <uses-permission android:name="android.permission.DISABLE_KEYGUARD" /> | |
| <uses-permission android:name="android.permission.WAKE_LOCK" /> |
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="com.novoda.espresso"> | |
| <!-- For espresso testing purposes, this is removed in live builds, but not in dev builds --> | |
| <uses-permission android:name="android.permission.SET_ANIMATION_SCALE" /> | |
| <!-- ... --> | |
| public class OAuthActivity extends Activity { | |
| public static String OAUTH_URL = "https://github.com/login/oauth/authorize"; | |
| public static String OAUTH_ACCESS_TOKEN_URL = "https://github.com/login/oauth/access_token"; | |
| public static String CLIENT_ID = "YOUR_CLIENT_ID"; | |
| public static String CLIENT_SECRET = "YOUR_CLIENT_SECRET"; | |
| public static String CALLBACK_URL = "http://localhost"; | |
| @Override |
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
| import sbt._ | |
| import sbt.Keys._ | |
| import android.Keys._ | |
| object JavaAndroidBuild extends Build { | |
| lazy val rootSettings = Seq( | |
| packageT in Compile <<= packageT in Android in app3, | |
| packageRelease <<= packageRelease in Android in app3, | |
| packageDebug <<= packageDebug in Android in app3 |