GithubHelp home page GithubHelp logo

prof18 / filmatic Goto Github PK

View Code? Open in Web Editor NEW
14.0 3.0 2.0 1.41 MB

Filmatic shows you some popular movies of the moment. The project is a playground application that I use to catch up with modern Android development. In particular, I've used it to learn modularization and Dependency Injection with Dagger and then Hilt.

License: Apache License 2.0

Kotlin 100.00%
android modularization hilt clean-architecture mvvm

filmatic's Introduction

Filmatic

Filmatic shows you some popular movies of the moment. The project is a playground application that I use to catch up with modern Android development. In particular, I've used it to learn modularization and Dependency Injection with Dagger and then Hilt.

Modular Architecture ๐Ÿงฉ

As mentioned, the app uses a multi-modular project structure. A module can be of 3 different types:

  • Library module
  • Feature module
  • App Module

A library module can be an Android or a pure Kotlin module. A library module never depends on a feature or an app module, but it can depend on another library. Library modules can contain different functionalities, for example UI components, data storage, networking, analytics, etc.

A feature module is an Android library that contains a specific feature of the app. For example, the onboarding flow, the home screen, the settings, etc. A feature module never depends on other feature modules or on an app module. However, it depends on many libraries module

The app module is an Android Application and it links all the modules together. For that reason it depends on other feature and library modules.

Filmatic is composed of different feature and library modules:

  • App module -> wraps all the modules together and decides which activity to start
  • buildSrc -> contains the definitions of the dependencies used in the project
  • core -> contains common code used around the app, plus the localized strings.
  • Feature modules:
    • about -> contains the code for the about screen
    • home -> contains the code for the home screen
  • Library modules:
    • navigation -> handles navigation between different feature modules. The navigation is handled with implicit intents
    • preferences -> retrieve and store data from shared preferences
    • test-shared -> contains common test utilities used in different feature modules
    • ui-components -> contains the UI components used in the app, plus style, colors and common drawables

Feature module architecture ๐Ÿ—

Every feature module is structured using Clean Architecture, with data, domain and presentation layers.

Dependency Injection is managed with Hilt.

Automations ๐Ÿค–

The projects is using detekt for formatting and static analysis.

There is also a GitHub Action, named Code Checks that builds and runs the check gradle task.

Build and Run ๐Ÿ’ป

To build and run the app, you have to set a secret in your local.properties file, for the TMDB API.

tmdbKey=YOUR_SECRET_API_KEY

Or as an alternative, you can set it as system environment variables: TMDB_KEY

N.B. The system environment variable is mandatory to make the CI work.

License

   Copyright 2019-2021 Marco Gomiero

   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.

filmatic's People

Contributors

prof18 avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

zlagi canahmed11

filmatic's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update io.gitlab.arturbosch.detekt to v1.23.7 (io.gitlab.arturbosch.detekt, io.gitlab.arturbosch.detekt:detekt-formatting)
  • Update androidx.navigation to v2.8.0 (androidx.navigation.safeargs, androidx.navigation:navigation-ui-ktx, androidx.navigation:navigation-fragment-ktx)
  • Update dependency androidx.test.espresso:espresso-core to v3.6.1
  • Update dependency androidx.test.espresso:espresso-idling-resource to v3.6.1
  • Update dependency androidx.test.ext:junit to v1.2.1
  • Update dependency androidx.test:core to v1.6.1
  • Update dependency androidx.test:rules to v1.6.1
  • Update dependency androidx.test:runner to v1.6.2
  • Update dependency io.coil-kt:coil to v2.7.0
  • Update dependency org.mockito.kotlin:mockito-kotlin to v5.4.0
  • Update dependency org.mockito:mockito-core to v5.13.0
  • Update hilt to v2.52 (com.google.dagger.hilt.android, com.google.dagger:hilt-android-gradle-plugin, com.google.dagger:hilt-compiler, com.google.dagger:hilt-android-testing, com.google.dagger:hilt-android-compiler, com.google.dagger:hilt-android)
  • Update gradle/gradle-build-action action to v3
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/checks.yaml
  • actions/checkout v3
  • actions/setup-java v3
  • gradle/gradle-build-action v2
gradle
gradle.properties
settings.gradle.kts
build.gradle.kts
app/build.gradle.kts
build-logic/settings.gradle.kts
build-logic/convention/build.gradle.kts
core/build.gradle.kts
features/about/build.gradle.kts
features/home/build.gradle.kts
gradle/libs.versions.toml
  • androidx.appcompat:appcompat 1.6.1
  • androidx.constraintlayout:constraintlayout 2.1.4
  • androidx.core:core-ktx 1.13.1
  • androidx.lifecycle:lifecycle-runtime-ktx 2.8.0
  • androidx.navigation:navigation-fragment-ktx 2.7.7
  • androidx.navigation:navigation-ui-ktx 2.7.7
  • androidx.recyclerview:recyclerview 1.3.2
  • androidx.test:core 1.5.0
  • androidx.test.espresso:espresso-contrib 3.5.1
  • androidx.test.espresso:espresso-core 3.5.1
  • androidx.test.espresso:espresso-idling-resource 3.5.1
  • androidx.test.ext:junit 1.1.5
  • androidx.test:rules 1.5.0
  • androidx.test:runner 1.5.2
  • app.cash.turbine:turbine 1.1.0
  • com.airbnb.android:lottie 6.4.0
  • com.android.tools.build:gradle 8.4.1
  • com.github.javafaker:javafaker 1.0.2
  • com.google.android.material:material 1.12.0
  • com.jakewharton.timber:timber 5.0.1
  • com.mikepenz:aboutlibraries 11.2.0
  • com.mikepenz:aboutlibraries-core 11.2.0
  • com.squareup.leakcanary:leakcanary-android 2.14
  • com.squareup.moshi:moshi 1.15.1
  • com.squareup.moshi:moshi-adapters 1.15.1
  • com.squareup.moshi:moshi-kotlin-codegen 1.15.1
  • com.squareup.okhttp3:logging-interceptor 4.12.0
  • com.squareup.okhttp3:mockwebserver 4.12.0
  • com.squareup.okhttp3:okhttp 4.12.0
  • com.squareup.retrofit2:retrofit 2.11.0
  • com.squareup.retrofit2:converter-moshi 2.11.0
  • com.google.dagger:hilt-android 2.51.1
  • com.google.dagger:hilt-android-compiler 2.51.1
  • com.google.dagger:hilt-android-testing 2.51.1
  • com.google.dagger:hilt-compiler 2.51.1
  • com.google.dagger:hilt-android-gradle-plugin 2.51.1
  • io.coil-kt:coil 2.6.0
  • io.gitlab.arturbosch.detekt:detekt-formatting 1.23.6
  • junit:junit 4.13.2
  • org.jetbrains.kotlinx:kotlinx-coroutines-android 1.8.1
  • org.jetbrains.kotlinx:kotlinx-coroutines-core 1.8.1
  • org.jetbrains.kotlinx:kotlinx-coroutines-test 1.8.1
  • org.jetbrains.kotlin:kotlin-gradle-plugin 2.0.0
  • org.mockito:mockito-core 5.12.0
  • org.mockito.kotlin:mockito-kotlin 5.3.1
  • com.android.application 8.4.1
  • com.android.library 8.4.1
  • androidx.navigation.safeargs 2.7.7
  • com.mikepenz.aboutlibraries.plugin 11.2.0
  • com.google.dagger.hilt.android 2.51.1
  • io.gitlab.arturbosch.detekt 1.23.6
  • org.jetbrains.kotlin.android 2.0.0
  • com.google.devtools.ksp 2.0.0-1.0.21
libraries/navigation/build.gradle.kts
libraries/preferences/build.gradle.kts
libraries/test-shared/build.gradle.kts
libraries/ui-components/build.gradle.kts
gradle-wrapper
gradle/wrapper/gradle-wrapper.properties
  • gradle 8.7

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.