An excellent and simple intro to using the Android injector factory from the dagger2 Android exception. https://blog.mindorks.com/the-new-dagger-2-android-injector-cbe7d55afa6a
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
// Top-level build file where you can add configuration options common to all sub-projects/modules. | |
apply from: 'dependencies.gradle' | |
buildscript { | |
// Gradle will not find vars defined in an external file when referring to them | |
// in the buildscript block, unless you link it from the buildscript block, too. | |
apply from: 'dependencies.gradle' | |
repositories { | |
google() | |
jcenter() |
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
apply plugin: 'com.android.application' | |
apply plugin: 'kotlin-android' | |
android { | |
// the ext.versions in the dependencies.gradle is accessable | |
compileSdkVersion versions.compileSdk | |
buildToolsVersion versions.buildTools | |
defaultConfig { | |
applicationId "tilbrook.com.au.appName" |
- Offer alternative ways refresh or add items to a lists. Don't rely completely on drag-to-refresh or drag and drop gestures.
360|AnDev 2017 Vijay Sailappan - Android accessibility made easy
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
ext.support_version | |
dependencies { | |
implementation ‘com.android.support.constraint:constraint-layout:1.1.0-beta4’ | |
implementation “com.android.support:customtabs:$support_version” | |
implementation “com.android.support:design:$support_version” | |
implementation “com.android.support:palette-v7:$support_version” | |
implementation “com.android.support:recyclerview-v7:$support_version” | |
implementation “com.android.support:support-dynamic-animation:$support_version” | |
} |
This is a working draft for the equitment used for https://www.youtube.com/anzcoders where I record and upload most of the Sydney tech meetups. I've also made some notes about some of the gear listed here. A more formal document will be published at some point.
-
Camera: HC-VX980M
-
Mic: Rode FilmMaker Kit
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
@Module | |
object AppModule { | |
private const val HTTP_RESPONSE_CACHE = (10 * 1024 * 1024).toLong() | |
@AppScope @Provides @JvmStatic | |
fun httpClient(cache: Cache): OkHttpClient { | |
if (Looper.getMainLooper() == Looper.myLooper()) | |
throw IllegalStateException("Initializing OkHttpClient on main thread.") | |
return OkHttpClient.Builder() |
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
// Forked from https://github.com/artem-zinnatullin/qualitymatters/blob/6e9f45912e79895f63274e5fd64ac2c7fc489f19/build.gradle | |
// I just added some multi-module bits and the kotlin debug path for mixed source `src/java` | |
ext.enableJacoco = { Project project -> | |
// Requires Jacoco plugin in build classpath. | |
apply plugin: 'jacoco' | |
project.android.testOptions { | |
unitTests { |
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
buildscript { | |
repositories { | |
google() | |
jcenter() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:3.2.1' | |
classpath 'org.jacoco:org.jacoco.core:0.8.2' | |
} | |
} |