Giter Club home page Giter Club logo

tv-maniac's Introduction

Tv-Maniac ๐Ÿšง Under Heavy Development ๐Ÿšง

Tv-Maniac is a Multiplatform app (Android & iOS) for viewing TV Shows information from TMDB.

Android - Screenshots

Home Screen

Show Details Screen

iOS - Screenshots

Home Screen

Project Setup & Environment

TMDB Api

  • Create local.properties in root dir
  • Add the following
    TMDB_API_URL=https://api.themoviedb.org/3/
    
  • Run ./gradlew generateBuildKonfig

Android

Opening iOS Project

  • Navigate to ios directory & open .xcworkspace & not .xcodeproj

Project Structure & Architecture

Tvmainic has 3 main directories. I'll break down each module/directory below.

  1. app: Anrdoid Code
  2. ios: iOS Workspace
  3. shared: Kotlin multiplatform code.
  • app: This contains the entry point to the android app. MainActivity. There are various modules that are used across the app.
    • app-common: This contaions common code used in features.
      • compose: Common jetpack compose components and code used by every feature. eg theme, colors, ui-components e.t.c
      • navigation: Core navigation logic
      • annotation: Coroutine scope and dispatcher annotation used in feature modules.
    • app-feature: This module contains feature module of the Android app. Each feature has 3 main classes
      • FeatureNavigationFactory: Allows us to add the screen to the navGraph
      • ComposableScreen: UI Screen built using compose
      • Viewmodule: Allows us to manage UI related data
  • ios: This directory contains the iOS workspace.
  • shared: This is where the realm of the shared logic. It contains both iOS and Android implementation. I also used a modular architecture in the shared module. This prevents us from having a huge shared module. It also becomes easy to modify and add more feature. Here's an overview of how shared is modularised.
    • core: Contains common classes & functions or utility classes that are used but other modules.
    • core-test: Contains test util classes. We then add this module to each module that has tests.
    • database: Contains SQLDelight implementation & Sql files.
    • remote: Contails Ktor implementation
    • domain: This module uses a feature like approach. So we can have domain-discover with has two modules:
      • api: Contains domain interfaces/abstract classes. This module is also exported for iOS and what android feature modules depend on.
      • implementation: Contains domain implementation logic e.g fetch & cache data.
    • interactors: This is more of a limbo module of interactor classes that don't have complete features. I didn't want to have them in the Android feature modules that why this exists. As we improve on the app, we will move these classes to the domain module and get rid of this module.

Dependency Injection

TvManiac uses two different dependencies Dagger Hilt for Android and koin for the shared module. Using Koin in the shared module allows us to provide dependencies in the iOS app.

I'll keep updating & changing things as I learn. ๐Ÿค“

Libraries Used

Android

Kmp - Common

iOS (Coming Soon)

Roadmap

Android

  • Implement Watchlist
  • Add More screen. Shows GridView
  • Implement Search
  • Recommended Shows
  • Implement pagination.
  • Add Settings panel.
    • Dynamic theme change.
  • Observe Internet connection

iOS

  • Add HomeScreen: Tabs & Empty UI
  • Implement Discover UI
  • Show Detail Screen
  • Implement Search UI
  • Implement Watchlist UI
  • Implement Load more

Shared

  • Use SQLDelight extensions to consume queries as Flow

  • Refactor interactor implementation.

  • Use koin for injection

  • Modularize shared module

  • Better MVI implementation

    [ ] Have shared-core module have most of the implementation. [ ] Improve error state, add retry.

References

License

Copyright 2022 Thomas Kioko

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

    https://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.

tv-maniac's People

Contributors

thomaskioko avatar

Watchers

James Cloos avatar

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.