├── .gitignore ├── app ├── .gitignore ├── build.gradle └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── me │ │ └── saket │ │ └── baseandroidproject │ │ ├── App.kt │ │ └── MainActivity.kt │ └── res │ ├── drawable-v24 │ └── ic_launcher_foreground.xml │ ├── drawable │ └── ic_launcher_background.xml │ ├── layout │ └── activity_main.xml │ ├── mipmap-anydpi-v26 │ ├── ic_launcher.xml │ └── ic_launcher_round.xml │ ├── mipmap-hdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-mdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xxhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xxxhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ └── values │ ├── colors.xml │ ├── colors_material.xml │ ├── strings.xml │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle ├── dependencies.gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle /.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # Files for the Dalvik VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # Generated files 12 | bin/ 13 | gen/ 14 | out/ 15 | build/ 16 | 17 | # Gradle files 18 | .gradle/ 19 | build/ 20 | 21 | # Local configuration file (sdk path, etc) 22 | local.properties 23 | 24 | # Proguard folder generated by Eclipse 25 | proguard/ 26 | 27 | # Log Files 28 | *.log 29 | 30 | # Android Studio stuff 31 | .idea/ 32 | .navigation/ 33 | captures/ 34 | *.iml 35 | 36 | ### Android Patch ### 37 | gen-external-apklibs 38 | 39 | # OS specific ignores 40 | .DS_Store 41 | *~ 42 | *.swp 43 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | apply plugin: 'kotlin-android' 3 | apply plugin: 'kotlin-kapt' 4 | 5 | android { 6 | compileSdkVersion versions.compileSdk 7 | 8 | defaultConfig { 9 | applicationId "me.saket.baseandroidproject" 10 | minSdkVersion versions.minSdk 11 | targetSdkVersion versions.compileSdk 12 | versionCode 1 13 | versionName "1.0" 14 | } 15 | 16 | buildTypes { 17 | release { 18 | minifyEnabled false 19 | } 20 | } 21 | 22 | compileOptions { 23 | targetCompatibility 1.8 24 | sourceCompatibility 1.8 25 | } 26 | } 27 | 28 | dependencies { 29 | implementation deps.androidx.appCompat 30 | implementation deps.androidx.recyclerView 31 | implementation deps.androidx.browser 32 | implementation deps.androidx.ktx 33 | implementation deps.androidx.lifecycle.process 34 | implementation deps.material.core 35 | 36 | implementation deps.contour 37 | implementation deps.timber 38 | implementation deps.rx2.core 39 | implementation deps.rx2.android 40 | implementation deps.rx2.binding 41 | implementation deps.rx2.kotlin 42 | implementation deps.rx2.replayingShare 43 | implementation deps.rx2.replayingShareKotlin 44 | implementation deps.dagger.runtime 45 | implementation deps.dagger.assistedInject.annotations 46 | implementation deps.dagger.inflationInject.core 47 | kapt deps.dagger.compiler 48 | kapt deps.dagger.assistedInject.processor 49 | kapt deps.dagger.inflationInject.processor 50 | implementation deps.inboxRecyclerView 51 | implementation deps.itemAnimators 52 | implementation deps.betterLinkMovementMethod 53 | implementation deps.cascade 54 | 55 | androidTestImplementation deps.androidx.test.core 56 | androidTestImplementation deps.androidx.test.runner 57 | androidTestImplementation deps.androidx.test.jUnit 58 | androidTestImplementation deps.androidx.test.jUnitKtx 59 | androidTestImplementation deps.truth 60 | } 61 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /app/src/main/java/me/saket/baseandroidproject/App.kt: -------------------------------------------------------------------------------- 1 | package me.saket.baseandroidproject 2 | 3 | import android.app.Application 4 | import timber.log.Timber 5 | import timber.log.Timber.DebugTree 6 | 7 | class App : Application() { 8 | override fun onCreate() { 9 | super.onCreate() 10 | Timber.plant(DebugTree()) 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /app/src/main/java/me/saket/baseandroidproject/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package me.saket.baseandroidproject 2 | 3 | import android.os.Bundle 4 | import androidx.appcompat.app.AppCompatActivity 5 | 6 | class MainActivity : AppCompatActivity() { 7 | override fun onCreate(savedInstanceState: Bundle?) { 8 | super.onCreate(savedInstanceState) 9 | setContentView(R.layout.activity_main) 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 13 | 19 | 22 | 25 | 26 | 27 | 28 | 34 | 35 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 10 | 15 | 20 | 25 | 30 | 35 | 40 | 45 | 50 | 55 | 60 | 65 | 70 | 75 | 80 | 85 | 90 | 95 | 100 | 105 | 110 | 115 | 120 | 125 | 130 | 135 | 140 | 145 | 150 | 155 | 160 | 165 | 170 | 171 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saket/BaseAndroidProject/3fa6dda0ba3bf0acb813102c41f422f6d9757c22/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saket/BaseAndroidProject/3fa6dda0ba3bf0acb813102c41f422f6d9757c22/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saket/BaseAndroidProject/3fa6dda0ba3bf0acb813102c41f422f6d9757c22/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saket/BaseAndroidProject/3fa6dda0ba3bf0acb813102c41f422f6d9757c22/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saket/BaseAndroidProject/3fa6dda0ba3bf0acb813102c41f422f6d9757c22/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saket/BaseAndroidProject/3fa6dda0ba3bf0acb813102c41f422f6d9757c22/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saket/BaseAndroidProject/3fa6dda0ba3bf0acb813102c41f422f6d9757c22/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saket/BaseAndroidProject/3fa6dda0ba3bf0acb813102c41f422f6d9757c22/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saket/BaseAndroidProject/3fa6dda0ba3bf0acb813102c41f422f6d9757c22/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saket/BaseAndroidProject/3fa6dda0ba3bf0acb813102c41f422f6d9757c22/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #202020 4 | #1b1b1b 5 | @color/teal_A400 6 | #292929 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors_material.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 25 | 26 | @android:color/transparent 27 | #06FFFFFF 28 | #0CFFFFFF 29 | #33FFFFFF 30 | #4CFFFFFF 31 | #66FFFFFF 32 | #80FFFFFF 33 | #99FFFFFF 34 | #CCFFFFFF 35 | #E6FFFFFF 36 | 37 | #0C000000 38 | #1A000000 39 | #33000000 40 | #4C000000 41 | #66000000 42 | #80000000 43 | #99000000 44 | #C4000000 45 | #E6000000 46 | 47 | 48 | #FFEBEE 49 | #FFCDD2 50 | #EF9A9A 51 | #E57373 52 | #EF5350 53 | #F44336 54 | #E53935 55 | #D32F2F 56 | #C62828 57 | #B71C1C 58 | #FF8A80 59 | #FF5252 60 | #FF1744 61 | #D50000 62 | 63 | 64 | #FCE4EC 65 | #F8BBD0 66 | #F48FB1 67 | #F06292 68 | #EC407A 69 | #E91E63 70 | #D81B60 71 | #C2185B 72 | #AD1457 73 | #880E4F 74 | #FF80AB 75 | #FF4081 76 | #F50057 77 | #C51162 78 | 79 | #F040FB 80 | 81 | 82 | #F3E5F5 83 | #E1BEE7 84 | #CE93D8 85 | #BA68C8 86 | #AB47BC 87 | #9C27B0 88 | #8E24AA 89 | #7B1FA2 90 | #6A1B9A 91 | #4A148C 92 | #EA80FC 93 | #E040FB 94 | #D500F9 95 | #AA00FF 96 | 97 | 98 | #EDE7F6 99 | #D1C4E9 100 | #B39DDB 101 | #9575CD 102 | #7E57C2 103 | #673AB7 104 | #5E35B1 105 | #512DA8 106 | #4527A0 107 | #311B92 108 | #B388FF 109 | #7C4DFF 110 | #651FFF 111 | #6200EA 112 | 113 | 114 | #E8EAF6 115 | #C5CAE9 116 | #9FA8DA 117 | #7986CB 118 | #5C6BC0 119 | #3F51B5 120 | #3949AB 121 | #303F9F 122 | #283593 123 | #1A237E 124 | #8C9EFF 125 | #536DFE 126 | #3D5AFE 127 | #304FFE 128 | 129 | 130 | #E3F2FD 131 | #BBDEFB 132 | #90CAF9 133 | #64B5F6 134 | #42A5F5 135 | #2196F3 136 | #1E88E5 137 | #1976D2 138 | #1565C0 139 | #0D47A1 140 | #82B1FF 141 | #448AFF 142 | #2979FF 143 | #2962FF 144 | 145 | 146 | #E1F5FE 147 | #B3E5FC 148 | #81D4fA 149 | #4fC3F7 150 | #29B6FC 151 | #03A9F4 152 | #039BE5 153 | #0288D1 154 | #0277BD 155 | #01579B 156 | #80D8FF 157 | #40C4FF 158 | #00B0FF 159 | #0091EA 160 | 161 | 162 | #E0F7FA 163 | #B2EBF2 164 | #80DEEA 165 | #4DD0E1 166 | #26C6DA 167 | #00BCD4 168 | #00ACC1 169 | #0097A7 170 | #00838F 171 | #006064 172 | #84FFFF 173 | #18FFFF 174 | #00E5FF 175 | #00B8D4 176 | 177 | 178 | #E0F2F1 179 | #B2DFDB 180 | #80CBC4 181 | #4DB6AC 182 | #26A69A 183 | #009688 184 | #00897B 185 | #00796B 186 | #00695C 187 | #004D40 188 | #A7FFEB 189 | #64FFDA 190 | #1DE9B6 191 | #00BFA5 192 | 193 | #00A394 194 | 195 | #11DAB1 196 | #28C9AA 197 | 198 | 199 | #E8F5E9 200 | #C8E6C9 201 | #A5D6A7 202 | #81C784 203 | #66BB6A 204 | #4CAF50 205 | #43A047 206 | #388E3C 207 | #2E7D32 208 | #1B5E20 209 | #B9F6CA 210 | #69F0AE 211 | #00E676 212 | #00C853 213 | 214 | 215 | #F1F8E9 216 | #DCEDC8 217 | #C5E1A5 218 | #AED581 219 | #9CCC65 220 | #8BC34A 221 | #7CB342 222 | #689F38 223 | #558B2F 224 | #33691E 225 | #CCFF90 226 | #B2FF59 227 | #76FF03 228 | #64DD17 229 | 230 | 231 | #F9FBE7 232 | #F0F4C3 233 | #E6EE9C 234 | #DCE775 235 | #D4E157 236 | #CDDC39 237 | #C0CA33 238 | #A4B42B 239 | #9E9D24 240 | #827717 241 | #F4FF81 242 | #EEFF41 243 | #C6FF00 244 | #AEEA00 245 | 246 | 247 | #FFFDE7 248 | #FFF9C4 249 | #FFF590 250 | #FFF176 251 | #FFEE58 252 | #FFEB3B 253 | #FDD835 254 | #FBC02D 255 | #F9A825 256 | #F57F17 257 | #FFFF82 258 | #FFFF00 259 | #FFEA00 260 | #FFD600 261 | 262 | 263 | #FFF8E1 264 | #FFECB3 265 | #FFE082 266 | #FFD54F 267 | #FFCA28 268 | #FFC107 269 | #FFB300 270 | #FFA000 271 | #FF8F00 272 | #FF6F00 273 | #FFE57F 274 | #FFD740 275 | #FFC400 276 | #FFAB00 277 | 278 | 279 | #FFF3E0 280 | #FFE0B2 281 | #FFCC80 282 | #FFB74D 283 | #FFA726 284 | #FF9800 285 | #FB8C00 286 | #F57C00 287 | #EF6C00 288 | #E65100 289 | #FFD180 290 | #FFAB40 291 | #FF9100 292 | #FF6D00 293 | 294 | 295 | #FBE9A7 296 | #FFCCBC 297 | #FFAB91 298 | #FF8A65 299 | #FF7043 300 | #FF5722 301 | #F4511E 302 | #E64A19 303 | #D84315 304 | #BF360C 305 | #FF9E80 306 | #FF6E40 307 | #FF3D00 308 | #DD2600 309 | 310 | 311 | #EFEBE9 312 | #D7CCC8 313 | #BCAAA4 314 | #A1887F 315 | #8D6E63 316 | #795548 317 | #6D4C41 318 | #5D4037 319 | #4E342E 320 | #3E2723 321 | 322 | 323 | #FAFAFA 324 | #F5F5F5 325 | #EEEEEE 326 | #E0E0E0 327 | #BDBDBD 328 | #9E9E9E 329 | #757575 330 | #616161 331 | #424242 332 | #3A3A3A 333 | #212121 334 | #1B1B1B 335 | #000000 336 | #ffffff 337 | 338 | 339 | #ECEFF1 340 | #CFD8DC 341 | #B0BBC5 342 | #90A4AE 343 | #78909C 344 | #607D8B 345 | #546E7A 346 | #455A64 347 | #37474F 348 | #263238 349 | #192126 350 | 351 | #15212D 352 | #1f2d3b 353 | #1F3143 354 | #294159 355 | 356 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | BaseAndroidProject 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | apply from: 'gradle/dependencies.gradle' 3 | 4 | repositories { 5 | google() 6 | mavenCentral() 7 | jcenter() 8 | maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } 9 | } 10 | 11 | dependencies { 12 | classpath 'com.android.tools.build:gradle:4.0.1' 13 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin" 14 | classpath "com.squareup.sqldelight:gradle-plugin:$versions.sqlDelight" 15 | } 16 | } 17 | 18 | allprojects { 19 | repositories { 20 | google() 21 | mavenCentral() 22 | jcenter() 23 | maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } 24 | } 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | 31 | apply from: 'gradle/dependencies.gradle' 32 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | 19 | android.enableJetifier=true 20 | android.useAndroidX=true 21 | -------------------------------------------------------------------------------- /gradle/dependencies.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.versions = [ 3 | minSdk: 26, 4 | compileSdk: 30, 5 | dagger: '2.27', 6 | assistedInject: '0.6.0', 7 | butterKnife: '8.8.1', 8 | kotlin: '1.4.31', 9 | moshi: '1.9.2', 10 | okhttp: '4.0.1', 11 | contour: '1.0.0', 12 | androidXTest: '1.2.0', 13 | androidXTestJUnit: '1.1.2-alpha02', 14 | betterLinkMovementMethod: '2.2.0', 15 | workManager: '2.4.0', 16 | ktLint: '0.39.0', // blocked on https://github.com/pinterest/ktlint/issues/816 17 | ktLintPlugin: '9.1.1', 18 | cascade: '1.3.0', 19 | sqlDelight: '1.4.4', 20 | ] 21 | 22 | ext.deps = [ 23 | 'androidx': [ 24 | 'core': 'androidx.core:core:1.5.0-beta03', 25 | 'appCompat': 'androidx.appcompat:appcompat:1.3.0-alpha02', 26 | 'recyclerView': 'androidx.recyclerview:recyclerview:1.2.0-alpha06', 27 | 'ktx': "androidx.core:core-ktx:1.0.1", 28 | 'annotations': 'androidx.annotation:annotation:1.1.0', 29 | 'preferences': 'androidx.preference:preference:1.1.0', 30 | 'browser': 'androidx.browser:browser:1.2.0', 31 | 'workManager': [ 32 | 'core': "androidx.work:work-runtime:$versions.workManager", 33 | 'rx2': "androidx.work:work-rxjava2:$versions.workManager" 34 | ], 35 | 'test': [ 36 | 'core': "androidx.test:core:$versions.androidXTest", 37 | 'runner': "androidx.test:runner:$versions.androidXTest", 38 | 'jUnit': "androidx.test.ext:junit:$versions.androidXTestJUnit", 39 | 'jUnitKtx': "androidx.test.ext:junit-ktx:$versions.androidXTestJUnit" 40 | ], 41 | 'lifecycle': [ 42 | 'process': "androidx.lifecycle:lifecycle-process:2.2.0" 43 | ] 44 | ], 45 | 'material': [ 46 | 'core': 'com.google.android.material:material:1.3.0-alpha02' 47 | ], 48 | 'moshi': [ 49 | 'core': "com.squareup.moshi:moshi:${versions.moshi}", 50 | 'kotlinCodegen': "com.squareup.moshi:moshi-kotlin-codegen:${versions.moshi}", 51 | ], 52 | 'inflationInject': [ 53 | 'runtime': "com.squareup.inject:inflation-inject:${versions.squareInject}", 54 | 'processor': "com.squareup.inject:inflation-inject-processor:${versions.squareInject}", 55 | ], 56 | 'sqlDelight': [ 57 | 'runtime': [ 58 | 'common': "com.squareup.sqldelight:runtime:${versions.sqlDelight}", 59 | 'jdk': "com.squareup.sqldelight:runtime-jvm:${versions.sqlDelight}", 60 | ], 61 | 'driver': [ 62 | 'jvm': "com.squareup.sqldelight:sqlite-driver:${versions.sqlDelight}", 63 | 'android': "com.squareup.sqldelight:android-driver:${versions.sqlDelight}", 64 | 'native': "com.squareup.sqldelight:native-driver:${versions.sqlDelight}" 65 | ], 66 | 'rx2': "com.squareup.sqldelight:rxjava2-extensions:${versions.sqlDelight}", 67 | 'paging': "com.squareup.sqldelight:android-paging-extensions:${versions.sqlDelight}", 68 | ], 69 | 'dagger': [ 70 | 'runtime': "com.google.dagger:dagger:${versions.dagger}", 71 | 'compiler': "com.google.dagger:dagger-compiler:${versions.dagger}", 72 | 'assistedInject': [ 73 | 'annotations': "com.squareup.inject:assisted-inject-annotations-dagger2:${versions.assistedInject}", 74 | 'processor': "com.squareup.inject:assisted-inject-processor-dagger2:${versions.assistedInject}", 75 | ], 76 | 'inflationInject': [ 77 | 'core': "com.squareup.inject:inflation-inject:${versions.assistedInject}", 78 | 'processor': "com.squareup.inject:inflation-inject-processor:${versions.assistedInject}" 79 | ] 80 | ], 81 | 'rx2': [ 82 | 'core': 'io.reactivex.rxjava2:rxjava:2.2.5', 83 | 'android': 'io.reactivex.rxjava2:rxandroid:2.1.0', 84 | 'binding': 'com.jakewharton.rxbinding3:rxbinding:3.0.0-alpha2', 85 | 'relay': 'com.jakewharton.rxrelay2:rxrelay:2.1.0', 86 | 'kotlin': 'io.reactivex.rxjava2:rxkotlin:2.2.0', 87 | 'traceur': 'com.tspoon.traceur:traceur:1.0.1', 88 | 'replayingShare': "com.jakewharton.rx2:replaying-share:2.2.0", 89 | 'replayingShareKotlin': "com.jakewharton.rx2:replaying-share-kotlin:2.2.0", 90 | ], 91 | 'junit': 'junit:junit:4.12', 92 | 'truth': 'com.google.truth:truth:0.40', 93 | 'timber': 'com.jakewharton.timber:timber:4.7.1', 94 | 'inboxRecyclerView': 'me.saket:inboxrecyclerview:2.4.0-SNAPSHOT', 95 | 'contour': "app.cash.contour:contour:$versions.contour", 96 | 'itemAnimators': "com.mikepenz:itemanimators:1.1.0", 97 | 'betterLinkMovementMethod': "me.saket:better-link-movement-method:$versions.betterLinkMovementMethod", 98 | 'cascade': "me.saket.cascade:cascade:$versions.cascade", 99 | ] 100 | } 101 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saket/BaseAndroidProject/3fa6dda0ba3bf0acb813102c41f422f6d9757c22/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Aug 30 20:39:21 EDT 2019 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.2-bin.zip 7 | -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # Attempt to set APP_HOME 46 | # Resolve links: $0 may be a link 47 | PRG="$0" 48 | # Need this for relative symlinks. 49 | while [ -h "$PRG" ] ; do 50 | ls=`ls -ld "$PRG"` 51 | link=`expr "$ls" : '.*-> \(.*\)$'` 52 | if expr "$link" : '/.*' > /dev/null; then 53 | PRG="$link" 54 | else 55 | PRG=`dirname "$PRG"`"/$link" 56 | fi 57 | done 58 | SAVED="`pwd`" 59 | cd "`dirname \"$PRG\"`/" >/dev/null 60 | APP_HOME="`pwd -P`" 61 | cd "$SAVED" >/dev/null 62 | 63 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 64 | 65 | # Determine the Java command to use to start the JVM. 66 | if [ -n "$JAVA_HOME" ] ; then 67 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 68 | # IBM's JDK on AIX uses strange locations for the executables 69 | JAVACMD="$JAVA_HOME/jre/sh/java" 70 | else 71 | JAVACMD="$JAVA_HOME/bin/java" 72 | fi 73 | if [ ! -x "$JAVACMD" ] ; then 74 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 75 | 76 | Please set the JAVA_HOME variable in your environment to match the 77 | location of your Java installation." 78 | fi 79 | else 80 | JAVACMD="java" 81 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 82 | 83 | Please set the JAVA_HOME variable in your environment to match the 84 | location of your Java installation." 85 | fi 86 | 87 | # Increase the maximum file descriptors if we can. 88 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 89 | MAX_FD_LIMIT=`ulimit -H -n` 90 | if [ $? -eq 0 ] ; then 91 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 92 | MAX_FD="$MAX_FD_LIMIT" 93 | fi 94 | ulimit -n $MAX_FD 95 | if [ $? -ne 0 ] ; then 96 | warn "Could not set maximum file descriptor limit: $MAX_FD" 97 | fi 98 | else 99 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 100 | fi 101 | fi 102 | 103 | # For Darwin, add options to specify how the application appears in the dock 104 | if $darwin; then 105 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 106 | fi 107 | 108 | # For Cygwin, switch paths to Windows format before running java 109 | if $cygwin ; then 110 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 111 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 112 | JAVACMD=`cygpath --unix "$JAVACMD"` 113 | 114 | # We build the pattern for arguments to be converted via cygpath 115 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 116 | SEP="" 117 | for dir in $ROOTDIRSRAW ; do 118 | ROOTDIRS="$ROOTDIRS$SEP$dir" 119 | SEP="|" 120 | done 121 | OURCYGPATTERN="(^($ROOTDIRS))" 122 | # Add a user-defined pattern to the cygpath arguments 123 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 124 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 125 | fi 126 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 127 | i=0 128 | for arg in "$@" ; do 129 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 130 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 131 | 132 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 133 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 134 | else 135 | eval `echo args$i`="\"$arg\"" 136 | fi 137 | i=$((i+1)) 138 | done 139 | case $i in 140 | (0) set -- ;; 141 | (1) set -- "$args0" ;; 142 | (2) set -- "$args0" "$args1" ;; 143 | (3) set -- "$args0" "$args1" "$args2" ;; 144 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 145 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 146 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 147 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 148 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 149 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 150 | esac 151 | fi 152 | 153 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 154 | function splitJvmOpts() { 155 | JVM_OPTS=("$@") 156 | } 157 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 158 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 159 | 160 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 161 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | --------------------------------------------------------------------------------