Centralize the support libraries dependencies in gradle
Working with multi-modules project, it is very useful to centralize the dependencies, especially the support libraries.
A very good way is to separate gradle build files, defining something like:
root
--gradleScript
----dependencies.gradle
Create the main Progressbar wrapper in your main source code. Use it instead of the android.widget.Progressbar
as it will just forward all calls to the default Progressbar.
In your androidTest package create the Progressbar
class in the exact same package as you did in the main source code. This way all your UI tests will call this ProgressBar
instead of the default one.
And since the modifications prevent the Progressbar from showing and animating, the UI thread won't be blocked and Espresso can continue the test.
#! /usr/bin/env monkeyrunner | |
# hot start: not opening the app for the first time. still, previous processes are killed. | |
import time | |
import subprocess | |
import commands | |
import sys | |
import datetime | |
import re |
import java.io.IOException; | |
import okhttp3.HttpUrl; | |
import okhttp3.Interceptor; | |
import okhttp3.OkHttpClient; | |
import okhttp3.Request; | |
/** An interceptor that allows runtime changes to the URL hostname. */ | |
public final class HostSelectionInterceptor implements Interceptor { | |
private volatile String host; |
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
Copyright 2016 Google Inc. | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
$ demo on|off [hhmm]
Enable or disable the demo mode on a connected Android device or emulator. You can also pass in a custom value for the system clock in the HHMM
format (only used when you use the on
command).
- http://peopledevelopmentmagazine.com/2016/05/28/leadership-effectiveness/ - All about reading energy
- http://peopledevelopmentmagazine.com/2013/10/10/cornerstone-authentic-leadership - All about listening
- http://peopledevelopmentmagazine.com/2016/04/03/mindset-shifts-better-leader/ - Mindset Shift - Owning feelings
- https://www.entrepreneur.com/article/276800?utm_source=Latest&utm_medium=site&utm_campaign=iScroll - Employee grwoth
- http://www.theexecutivecoachingblog.com/2015/12/01/the-value-of-working-on-your-values/ - how to make decisions with opposing pairs
- http://www.theexecutivecoachingblog.com/2014/10/14/a-matter-of-scope/ - staying on track with differnet levels of vision.
- http://seapointcenter.com/dimensions-of-trust/ - bulilding trust
- http://leadchangegroup.com/stop-trying-to-grow-influence-grow-this-instead/ - influence vs capacity
package com.pascalwelsch.extensions | |
import android.app.Activity | |
import android.content.Context | |
import android.content.Intent | |
import android.os.Build | |
import android.os.Bundle | |
/** | |
* Extensions for simpler launching of Activities |
You would think it would be easy to find this information, but none of the Github or Gandi documentation is clear so I have recorded the required steps here.
Create the following A records:
@ 1800 IN A 185.199.108.153
@ 1800 IN A 185.199.109.153
@ 1800 IN A 185.199.110.153