All Projects → athkalia → Just Another Android App

athkalia / Just Another Android App

Licence: apache-2.0
An Android base app with loads of cool libraries/configuration NOT MAINTAINED

Programming Languages

java
68154 projects - #9 most used programming language
kotlin
9241 projects

Projects that are alternatives of or similar to Just Another Android App

Debt-Manager
A personal app to store people that owe you money or you owe money to. "Mo Money Mo Problems" 🎵 - The Notorious B.I.G. 😎
Stars: ✭ 22 (-98.67%)
Mutual labels:  fabric, static-analysis, android-development, android-architecture, dagger2, glide, crashlytics, stetho, mvp-android
BakingApp
Udacity Android Developer Nanodegree, project 2.
Stars: ✭ 54 (-96.74%)
Mutual labels:  dagger2, glide, butterknife, retrolambda, retrofit2, timber, mvp-android
Android tmdb clean architecture
Showcase of clean architecture concepts along with Continuous Integration and Development for modular Android applications. Includes test suits (functional and unit tests) along with code coverage.
Stars: ✭ 63 (-96.19%)
Mutual labels:  rxjava, dagger2, android-architecture, mvp-android, robolectric, retrofit2
Android-Starter-Kit
This is up-to-date android studio project for native android application, that is using modern tools and libraries.
Stars: ✭ 16 (-99.03%)
Mutual labels:  dagger2, robolectric, butterknife, retrofit2, timber, mvp-android
Mvpframes
整合大量主流开源项目并且可高度配置化的 Android MVP 快速集成框架,支持 AndroidX
Stars: ✭ 100 (-93.95%)
Mutual labels:  rxjava, dagger2, mvp-android, retrofit2, glide, butterknife
Mvparms
⚔️ A common architecture for Android applications developing based on MVP, integrates many open source projects, to make your developing quicker and easier (一个整合了大量主流开源项目高度可配置化的 Android MVP 快速集成框架).
Stars: ✭ 10,146 (+513.42%)
Mutual labels:  rxjava, dagger2, android-architecture, mvp-android, retrofit2, butterknife
Bubbble
Sample app showcases the MVP pattern and Robert Martin's Clean Architecture approach.
Stars: ✭ 226 (-86.34%)
Mutual labels:  rxjava, dagger2, android-architecture, mvp-android, android-development
Marvel
Marvel Characters Android Application Assigned by smava GmbH
Stars: ✭ 227 (-86.28%)
Mutual labels:  timber, rxjava, robolectric, retrofit2, butterknife
Geeknews
📚A pure reading App based on Material Design + MVP + RxJava2 + Retrofit + Dagger2 + Realm + Glide
Stars: ✭ 3,496 (+111.37%)
Mutual labels:  rxjava, dagger2, mvp-android, glide, butterknife
AndroidStarterAlt
A sample View-based Android app using the MVP architecture. It uses Mosby, Dagger2, RxJava, retrofit, LoganSquare, requery, EventBus, Conductor.
Stars: ✭ 27 (-98.37%)
Mutual labels:  mosby, dagger2, butterknife, retrofit2, mockwebserver
Kotlin Life
App界的一股清流 音视频vr应有尽有 完全按照Material design规范设计的App (written with java and Kotlin)
Stars: ✭ 864 (-47.76%)
Mutual labels:  rxjava, dagger2, retrofit2, glide, butterknife
Bigbang
Android base project used by Xmartlabs team
Stars: ✭ 47 (-97.16%)
Mutual labels:  timber, rxjava, dagger2, crashlytics, retrofit2
InstantAppStarter
Starter Project Structure for Android Instant app. https://blog.mindorks.com/android-mvp-architecture-with-instant-app-support-11ba48241a82
Stars: ✭ 44 (-97.34%)
Mutual labels:  android-development, dagger2, retrofit2, timber, mvp-android
Weather-Guru-MVP
Sample Material-design Android weather application build with MVP architectural approach using Dagger2, RxJava2, Retrofit2, Event-Bus, GreenDao, Butterknife, Lottie etc.
Stars: ✭ 15 (-99.09%)
Mutual labels:  android-development, dagger2, robolectric, butterknife, retrofit2
Afmall
A pure shopping App based on Kotlin + ARouter + MVP + RxJava2 + Retrofit + Dagger2 + 七牛云 + Glide
Stars: ✭ 20 (-98.79%)
Mutual labels:  rxjava, dagger2, mvp-android, retrofit2, glide
Android Mvp Mvvm Flytour
🔥🔥🔥 FlyTour是Android MVVM+MVP+Dagger2+Retrofit+RxJava+组件化+插件组成的双编码架构+双工程架构+双语言Android应用开发框架,通过不断的升级迭代该框架已经有了十个不同的版本,5.0之前工程架构采用gradle配置实现组件化,5.0之后的工程架构采用VirtualAPK实现了插件化,5.0之前采用Java编码实现,5.0之后采用Kotlin编码实现,编码架构由MVVM和MVP组成,工程架构和编码架构及编码语言开发者可根据自己具体的项目实际需求去决定选择使用,该框架是Android组件化、Android插件化、Android MVP架构、Android MVVM架构的集大成者,帮助你快速的搭建自己的App项目开发框架,以便把主要的精…
Stars: ✭ 2,948 (+78.23%)
Mutual labels:  dagger2, android-architecture, mvp-android, retrofit2
Android Mvp Starter
Create/Generate your MVP projects easily
Stars: ✭ 72 (-95.65%)
Mutual labels:  timber, rxjava, crashlytics, butterknife
catchflicks
🎬 Kitchen sink project for learning android concepts 🎬
Stars: ✭ 12 (-99.27%)
Mutual labels:  rxjava, dagger2, glide, retrofit2
Kotlin Android Mvvm Starter
Android Kotlin Starter is a starter project which implements MVVM Pattern.
Stars: ✭ 276 (-83.31%)
Mutual labels:  timber, dagger2, crashlytics, retrofit2
Moviehub
Showcases popular movies, tv shows, and people from The Movie Database
Stars: ✭ 325 (-80.35%)
Mutual labels:  timber, dagger2, retrofit2, butterknife

Please note that this this project is no longer maintained

Android Sample app with MVP architecture

Sample project that displays some images from the dribble API. Demonstrates some cool stuff that you can do with the modern libraries and tooling in Android these days.

As someone said on reddit: "It's not over-engineered, it's just a skyscraper without the skyscraper part, just the foundations :)"

1

Newest additions:

  • Upgraded android gradle plugin to v3.0.1
  • Added support for Spoon. See https://github.com/square/spoon for more details. Also added the gradle plugin for it. One can run the tests with 'gradlew spoon' and then open up the generated reports in 'build/spoon' directory.
  • Added screenshot grabbing while running espresso tests in Firebase
  • Added test coverage for unit tests in teamcity CI Server
  • Added a runtime permission example. Uses the PermissionsDispatcher library. See RuntimePermissionsActivity class. (https://github.com/permissions-dispatcher/PermissionsDispatcher)
  • Restructured dependencies a bit, check build.gradle file and dependencies.gradle file
  • Added support for dagger android bindings (dagger v2.11)
  • Added auto-factory library the little cousin of auto-value (https://github.com/google/auto/tree/master/factory) into the project to help with dagger assisted injection (this post explains it quite well: https://stackoverflow.com/questions/22799407/looking-for-an-example-for-dagger-assisted-injection)
  • Added an Espresso test using the OkReplay (https://github.com/airbnb/okreplay) library that records and replays server responses. See com.example.features.dashboard.view.MainActivityOkReplayEspressoTest for more details.
  • Added support for Firebase cloud testing (firebase.google.com/docs/test-lab/) through Teamcity! Now every pull request/ nightly build/release build uses the service to run Espresso tests. See JustAnotherAndroidApp_RunEspressoTestsInFirebase.xml for more details.
  • Added support for Burst library (https://github.com/square/burst) for parametrized unit tests (see com.example.util.StringUtilsTest for more details).
  • Added app shortcuts! Static, dynamic, and dynamic used via the https://github.com/MatthiasRobbers/shortbread library! For details please check bottom of App class, MainActivity @Shortcut declaration and shortcuts.xml file.
  • Added 2 more custom lint checks around colors (Check class NonMaterialColorsDetector and DirectMaterialPaletteColorUsageDetector).
  • Added a custom lint check for hardcoded colors. (Check class HardcodedColorsDetector)
  • Gradle plugin to check APK size and automatically fail the build if the APK size is more than a specific value (check the build.gradle and gradle.properties file for the configuration and https://github.com/vanniktech/gradle-android-apk-size-plugin for the actual gradle plugin).
  • Added support for Teamcity CI scripts committed in VCS! They are written in Kotlin/xml (Check .teamcity folder or read more at the bottom of this file)
  • Added Sherlock into the project so that developers (and QA) can have easy access to exceptions occurring (and share them) through the app (see App class and the build.gradle file and https://github.com/ajitsing/Sherlock for the project).
  • Added Traceur into the project that allows for displaying more useful stacktraces with RxJava 2 (check TraceurTool class and the other related classes or https://github.com/T-Spoon/Traceur for the library).
  • Added chuck library for seeing network calls right on the phone. See https://github.com/jgilfelt/chuck for the library and the NetworkModule class for the added interceptor.
  • Disabling animations before espresso tests and re-enabling them afterwards! (See grant_animation_permission.gradle and EspressoTestHelper class)
  • Added Butterknife Actions (See ButterknifeActions class)
  • Support for mocking parts of your Dagger graph via DaggerMock library (see MainActivityTest class)
  • Added constraint layout! (See activity_main.xml)
  • Added an RxJava scheduler that informs Espresso via a CountingIdlingResource on when to pause test execution and wait for asynchronous tasks to finish (check com.example.util.rx.RxIdlingScheduler)
  • Upgraded project to use the new Mosby MVP v3!! Check https://github.com/sockeqwe/mosby for more details.
  • Added support for RxJavaPlugins class, that allows easy overriding of RxJava 2 schedulers in tests. See setup method of MainPresenterTest class.
  • Added some variations of the quick settings tiles. See https://medium.com/google-developers/quick-settings-tiles-e3c22daf93a8 for information on the feature and the com.example.features.tiles.PassiveTileServiceOnlyToggle class for the implementation (plus there are some more goodies in the same package)

Contents:

libraries:
  • RxJava
  • Dagger 2 with examples of assisted injection and different modules depending on build type. Also support for android dagger v2.11
  • Retrofit 2 and Retrofit Mock mode for debug builds
  • Mosby MVP with View State support (v3!)
  • Timber
  • Auto Value and Auto Factory
  • Glide with a wrapper
  • Butterknife
  • AssertJ for fluent assertions
  • Fabric (Crashlytics and Answers)
  • Retrolambda
  • Stetho
  • Chuck
  • ShortBread (https://github.com/MatthiasRobbers/shortbread)
  • PermissionsDispatcher for runtime permissions (https://github.com/permissions-dispatcher/PermissionsDispatcher)
Static analysis:
  • PMD (https://pmd.github.io/ - check file static_analysis_java.gradle)
  • Checkstyle (check file static_analysis_java.gradle)
  • Lint (check file lint.gradle)
  • Findbugs (check file static_analysis_java.gradle)
  • Jacoco code coverage that can generate reports for unit tests, espresso tests or the combination of the two
  • A set of custom IDE inspection rules
  • A module with custom lint rules and tests for them
Testing:
  • Added support for Spoon. See https://github.com/square/spoon for more details. Also added the gradle plugin for spoon. One can run the tests with 'gradlew spoon' and then open up the generated reports in 'build/spoon' directory.
  • Test coverage running in Teamcity CI server
  • Espresso tests with and without mock web server
  • Mock web server tests that loads responses from json files
  • Robolectric tests
  • Normal unit tests
  • Ok http interceptor for changing the base url in tests
  • Idling resources
  • Unlocking screen for Espresso tests (check class com.example.util.EspressoTestRunner)
  • Support for RxJavaPlugins class, that allows easy overriding of RxJava 2 schedulers in tests (check MainPresenterTest class)
  • Support for an RxJava scheduler that helps with espresso tests and asynchronous code execution. (check com.example.util.rx.RxIdlingScheduler)
  • Support for mocking parts of your Dagger graph via DaggerMock library (see MainActivityTest class)
  • Disabling animations before espresso tests and re-enabling them afterwards! (See grant_animation_permission.gradle and EspressoTestHelper class)
  • Added Sherlock into the project so that developers (and QA) can have easy access to exceptions occurring (and share them) through the app (see App class and the build.gradle file and https://github.com/ajitsing/Sherlock for the project).
  • Burst library (https://github.com/square/burst) for parametrized unit tests (see com.example.util.StringUtilsTest for more details).
  • Added support for Firebase cloud testing (firebase.google.com/docs/test-lab/) through Teamcity! Now every pull request/ nightly build/release build uses the service to run Espresso tests. See JustAnotherAndroidApp_RunEspressoTestsInFirebase.xml for more details.
  • Added an Espresso test using the OkReplay (https://github.com/airbnb/okreplay) library that records and replays server responses. See com.example.features.dashboard.view.MainActivityOkReplayEspressoTest for more details.
View Related:
  • Added constraint layout! (See activity_main.xml)
  • Added Butterknife Actions (See ButterknifeActions class)
Other:
  • Gradle plugin to check APK size and automatically fail the build if the APK size is more than a specific value (check the build.gradle and gradle.properties file for the configuration and https://github.com/vanniktech/gradle-android-apk-size-plugin for the actual gradle plugin).
  • Separate app icons according to build type
  • Some advanced source sets configuration for splitting up tests
  • Loading some project config from property files in Android Manifest and build.gradle
  • Shared folders for some build types or tests
  • Working proguard config
  • Android Studio external annotations (https://www.jetbrains.com/help/idea/2016.3/external-annotations.html)
  • Package level annotations for @Nullable and @NonNull
  • OkHttp interceptor for adding auth token to headers easily
  • Strict mode
  • Plugin to publish app on the playstore
  • Dex count plugin for counting the number of methods in the apk
  • Separate Timber logging tree for crashlytics. See com.example.tools.timber.CrashlyticsTree
  • Quick settings tiles (See com.example.features.tiles.PassiveTileServiceOnlyToggle)
  • Added Traceur into the project that allows for displaying more useful stacktraces with RxJava 2 (check TraceurTool class and the other related classes or https://github.com/T-Spoon/Traceur for the library).
  • App shortcuts! Static, dynamic, and dynamic used via the https://github.com/MatthiasRobbers/shortbread library! For details please check bottom of App class, MainActivity @Shortcut declaration and shortcuts.xml file.

..and all sorts of other goodies!

Teamcity - Continuous Integration

The project benefits from Teamcity's feature of storing the CI server configuration in Kotlin in a Version Control System. See https://confluence.jetbrains.com/display/TCD10/Kotlin+DSL for more details. The settings can be found under the .teamcity folder in the project.

Build Configurations:

There's 3 build configurations:

  • 'Pull requests' build configuration, triggered on every Pull Request. Verifies correctness of a Pull Request (usually for the 'develop' branch). QA would fetch the relevant APK from HockeyApp created by this build configuration in order to manually test the feature/fix that the Pull Request introduces. This build:
    • Runs all static analysis tools.
    • Runs all unit tests for all build types.
    • Perform method count for all build types.
    • Checks for duplicates.
    • Builds APKs.
    • Runs all espresso tests on Firebase Test Cloud.
    • Uploads APKs to HockeyApp.
    • Updates Github with the status of the job (success/failure).
  • 'Nightly Builds' build configuration, triggered every night at midnight on 'develop' branch. QA would fetch the relevant APK from HockeyApp created by this build config in order to test the integration of features of the app. This build is also deployed to a closed alpha playstore group for people to test. This build:
    • Runs all unit tests for all build types.
    • Performs method count for all build types.
    • Checks for duplicates.
    • Builds APKs.
    • Runs all espresso tests on Firebase Test Cloud.
    • Uploads APKs to HockeyApp.
    • Uploads Release APK to private alpha channel in Playstore.
  • 'Releases' build configuration, triggered on every branch matching the 'release/*' logical branch name. QA would fetch the relevant APK from HockeyApp to perform the final testing before the release. This build is also deployed to an open beta playstore group for people to test. This build:
    • Runs all static analysis tools.
    • Runs all unit tests for all build types.
    • Performs method count for all build types.
    • Checks for duplicates.
    • Builds APKs.
    • Runs all espresso tests on Firebase Test Cloud.
    • Uploads APKs to HockeyApp.
    • Uploads Release APK to public beta channel in Playstore.
Reports:

There's also all sorts of reports available:

  • Checkstyle static analysis report shows all the checkstyle warnings in the project. Would usually report back empty as there's a zero tolerance policy in the project. On failed builds it pinpoints the issues that need to be fixed.

2

  • Unit test reports for all build types show all the tests that were run along with additional details and stacktraces should an error occur. 2 dashboards, one is the Teamcity generated Test report, the other is the original Junit4 html report.

3

11

  • Dex method counter reports for all build types show the method count for every APK, along with an interesting drill down visualization that makes it very easy to spot libraries that contain too many methods. As a note, usually release and QA APKs have a smaller method counts in these reports as Proguard is running in these build types, stripping unused methods.

4

  • Findbugs static analysis report shows all the findbugs warnings in the project. Would usually report back empty as there's a zero tolerance policy in the project. On failed builds it pinpoints the issues that need to be fixed.

5

  • Lint static analysis report shows all the lint warnings in the project. Would usually report back empty as there's a zero tolerance policy in the project. On failed builds it pinpoints the issues that need to be fixed.

6

  • PMD static analysis report shows all the PMD warnings in the project. Would usually report back empty as there's a zero tolerance policy in the project. On failed builds it pinpoints the issues that need to be fixed.

7

12

Teamcity Plugins:

A couple of Teamcity plugins were used to make my life easier:

Notes:

HockeyApp

I am using HockeyApp to save and (in theory) distribute the APKs to QA or stakeholders. See https://hockeyapp.net for more details on the product. This is what it looks like in the HockeyApp dashboard:

8

As you can see there's different builds for the different CI build configurations and all the build types. HockeyApp guys were kind enough to provide me with a free account to demonstrate the usage of their tool.

Playstore reviews in slack

Using Review bot for this (https://reviewbot.io/?utm_source=github&utm_medium=athkalia-just-another-android-app) Not much to say, just a super simple tool that gets the job done. When a review comes it looks like this:

13

Roadmap

  • Upgrade to latest version of gradle
  • fingerprint authentication
  • Conductor library

Submitting PRs

Please make sure the command gradlew check completes successfully before creating the PR. This command runs all the tests for all the variants, plus the 4 static analysis tools: lint, checsktyle, pmd, findbugs.

List of stuff that I won't be adding, feel free to contribute if you like any of these!
  • Run test coverage in firebase cloud testing, fetch the reports, (possibly merge them with unit tests coverage reports), and provide reporting back to the CI server. This would require paying for an S3 bucket, and I am uncertain about the usefulness of tracking this to be honest.
  • Automate releases more, like tagging releases, merging back to develop etc. Requirements around this are very project specific, and given that there may be conflicts etc, not worth automating for now.
  • Automatic screenshots through the "Fastlane - Screengrab" tool (https://github.com/fastlane/fastlane/tree/master/screengrab) They don't support windows and I don't have a Mac :(

Any feedback/pull request is welcome!

You can catch me at www.sakiskaliakoudas.com

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].