guava

One kind of boilerplate for writing Android apps using android official architecture component approach.

License

License

Categories

Categories

Guava General Purpose Libraries Utility
GroupId

GroupId

com.github.thepacific
ArtifactId

ArtifactId

guava
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

pom.sha512
Description

Description

guava
One kind of boilerplate for writing Android apps using android official architecture component approach.
Project URL

Project URL

https://github.com/thepacific/architecture
Source Code Management

Source Code Management

https://github.com/thepacific/architecture

Download guava

Dependencies

runtime (26)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib-jdk8 jar 1.3.72
org.jetbrains.kotlin : kotlin-stdlib-jdk7 jar 1.3.72
org.jetbrains.kotlin : kotlin-reflect jar 1.3.72
org.jetbrains.kotlinx : kotlinx-serialization-runtime jar 0.20.0
org.jetbrains.kotlinx : kotlinx-coroutines-core jar 1.3.7
org.jetbrains.kotlinx : kotlinx-coroutines-rx3 jar 1.3.7
org.jetbrains.kotlinx : kotlinx-coroutines-android jar 1.3.7
com.squareup.okhttp3 : okhttp jar 4.8.0
com.squareup.okhttp3 : logging-interceptor jar 4.8.0
com.squareup.okio : okio jar 2.7.0
com.squareup.retrofit2 : retrofit jar 2.9.0
com.squareup.retrofit2 : adapter-rxjava3 jar 2.9.0
com.squareup.retrofit2 : converter-moshi jar 2.9.0
com.squareup.moshi : moshi jar 1.9.3
com.squareup.moshi : moshi-kotlin jar 1.9.3
io.reactivex.rxjava3 : rxjava jar 3.0.4
io.reactivex.rxjava3 : rxandroid jar 3.0.0
org.reactivestreams : reactive-streams jar 1.0.3
com.google.dagger : dagger jar 2.28
androidx.collection » collection jar 1.1.0
androidx.collection » collection-ktx jar 1.1.0
androidx.room » room-common jar 2.2.5
androidx.room » room-migration jar 2.2.5
androidx.paging » paging-common jar 3.0.0-alpha02
androidx.paging » paging-common-ktx jar 3.0.0-alpha02
com.dropbox.mobile.store : store4 jar 4.0.0-alpha06

Project Modules

There are no modules declared in this project.

Project

This is one kind of boilerplate for writing android apps using the android official architecture component approach. You can download it, modify it and start building your apps on top of it.

Download

Setup

implementation 'com.github.thepacific:guava-jvm:2.0.1'
implementation 'com.github.thepacific:guava-android:2.0.1'
implementation 'com.github.thepacific:guava-android-ui:2.0.1'

Dependencies

  • Jetpack:
    • Android KTX - provide concise, idiomatic Kotlin to Jetpack and Android platform APIs.
    • AndroidX - major improvement to the original Android Support Library, which is no longer maintained.
    • Benchmark - handles warmup, measures your code performance, and outputs benchmarking results to the Android Studio console.
    • Data Binding - allows you to bind UI components in your layouts to data sources in your app using a declarative format rather than programmatically.
    • Lifecycle - perform actions in response to a change in the lifecycle status of another component, such as activities and fragments.
    • LiveData - lifecycle-aware, meaning it respects the lifecycle of other app components, such as activities, fragments, or services.
    • Navigation - helps you implement navigation, from simple button clicks to more complex patterns, such as app bars and the navigation drawer.
    • Paging - helps you load and display small chunks of data at a time. Loading partial data on demand reduces usage of network bandwidth and system resources.
    • Room - persistence library provides an abstraction layer over SQLite to allow for more robust database access while harnessing the full power of SQLite.
    • ViewModel - designed to store and manage UI-related data in a lifecycle conscious way. The ViewModel class allows data to survive configuration changes such as screen rotations.
  • Coroutines - managing background threads with simplified code and reducing needs for callbacks.
  • Dagger2 - dependency injector for replacement all FactoryFactory classes.
  • Retrofit - type-safe HTTP client.
  • Coil - image loading library for Android backed by Kotlin Coroutines.
  • Moshi - makes it easy to parse JSON into Kotlin objects.
  • Timber - a logger with a small, extensible API which provides utility on top of Android's normal Log class.
  • Stetho - debug bridge for applications via Chrome Developer Tools.
  • and more...

Test dependencies

  • UIAutomator - a UI testing framework suitable for cross-app functional UI testing across system and installed apps.
  • Espresso - to write concise, beautiful, and reliable Android UI tests
  • Robolectric - industry-standard unit testing framework for Android.
  • JUnit - a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks.
  • Mockito - most popular Mocking framework for unit tests written in Java.
  • Mockk - provides DSL to mock behavior. Built from zero to fit Kotlin language.
  • AndroidX - the androidx test library provides an extensive framework for testing Android apps.
  • and more...

Plugins

  • Ktlint - an anti-bikeshedding Kotlin linter with built-in formatter.
  • Detekt - a static code analysis tool for the Kotlin programming language.
  • Spotless - a code formatter can do more than just find formatting errors.
  • Versions - make easy to determine which dependencies have updates.
  • SafeArgs - generates simple object and builder classes for type-safe navigation and access to any associated arguments.
  • Jacoco - code coverage library
  • and more...

Resources

Projects

This is project is a sample, to inspire you and should handle most of the common cases, but obviously not all. If you need to take a look at additional resources to find solutions for your project, visit these interesting projects:

Articles

A collection of very interesting articles related last android community tendencies and recommendations for start to take in consideration for your current/next project:

Libraries

The open-source community create and maintains tons of awesome libraries making your job more easy, giving the opportunity to use them in your developments. Here are a very important collection of them:

Best practices

Avoid reinventing the wheel by following these guidelines:

Codelabs

Google Developers Codelabs provide a guided, tutorial, hands-on coding experience. Most codelabs will step you through the process of building a small application, or adding a new feature to an existing application. They cover a wide range of android concepts to learn and practice:

License

Copyright 2020 thepacific.com

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

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
com.github.thepacific

thepacific

Thepacific Corp

Versions

Version
2.0.0