ProductPromotion
Logo

Kotlin

made by https://0x3d.site

GitHub - chrisbanes/tivi: Tivi is a TV show tracking Android app, which connects to trakt.tv
Tivi is a TV show tracking Android app, which connects to trakt.tv - chrisbanes/tivi
Visit Site

GitHub - chrisbanes/tivi: Tivi is a TV show tracking Android app, which connects to trakt.tv

GitHub - chrisbanes/tivi: Tivi is a TV show tracking Android app, which connects to trakt.tv

Tivi

Tivi šŸ“ŗ

Tivi is a TV show tracking application which connects to Trakt.tv. It has been updated over the years to target a number of platforms, built upon Kotlin Multiplatform and Compose Multiplatform.

Download

Platforms

Android

Tivi started out as an open source Android app, showcasing cutting technologies through its development. The codebase was transformed in late-2022 to be built upon Kotlin Multiplatform, allowing us to re-use a large proportion of the code across different platforms.

iOS

The iOS app is well maintained (the main developers uses it daily). To aid development time, most of the UIs are shared with the Android app, enabled through Compose Multiplatform.

Desktop JVM

Tivi is built for Desktop running as a Java app. Unfortunately we donā€™t have feature parity on the desktop target due to either missing APIs, or lack of priority by the maintainer to implement them. However the basics of the app do work.

Development Setup

Android and Desktop

Tivi is a standard Gradle project which can be opened in recent versions of Android Studio or IntelliJ.

  • The Android application module is located at android-app/app/ (:android-app:app).
  • The Desktop application module is located at desktop-app/ (:desktop-app).

iOS

The iOS project is setup as a typical Xcode project. It currently uses CocoaPods to manage dependencies, and therefore youā€™ll need to install this before opening the Xcode project.

Let's step through it:

Setup Ruby

We need Ruby for various dependencies, therefore we need a Ruby environment. I recommend using rbenv, but that's just a suggestion:

brew install rbenv

rbenv init

# Download Ruby 3.3.4 and set it as the global version
rbenv install 3.3.4
rbenv global 3.3.4

# Install bundler
gem install bundler

Xcode

We use the latest version of Xcode supported by Kotlin Multiplatform, which is defined in the .xcode-version file.

We enforce the Xcode version on CI, but locally you can use whatever version you want. The Xcodes.app application is a great way to install different versions.

Nearly there

After you have installed the dependencies, you can now pull down the dependencies:

cd /path/to/tivi/checkout

# Install all of the Ruby dependencies
bundle install

# Install pods
pod install --project-directory=ios-app/Tivi

Open the project in Xcode

Finally, we can open the project in Xcode. Open Xcode and then point it to the workspace file at: ios-app/Tivi/Tivi.xcworkspace.

Press Run and it should build!

Code style

This project uses ktlint, provided via the spotless gradle plugin, and the bundled project IntelliJ codestyle.

If you find that one of your pull reviews does not pass the CI server check due to a code style conflict, you can fix it by running: ./gradlew spotlessApply.

API keys

You need to supply API / client keys for the various services the app uses:

You can find information about how to gain access via the relevant links.

When creating a Trakt API project, you need to set the OAuth redirect uri to app.tivi.debug://auth/oauth2callback for debug build types, or app.tivi://auth/oauth2callback for release build types.

Once you obtain the keys, you can set them in your ~/.gradle/gradle.properties:

# Get these from Trakt.tv
TIVI_TRAKT_CLIENT_ID=<insert>
TIVI_TRAKT_CLIENT_SECRET=<insert>

# Get this from TMDb
TIVI_TMDB_API_KEY=<insert>

Contributions

If you've found an error in this sample, please file an issue.

Patches are encouraged and may be submitted by forking this project and submitting a pull request. Since this project is still in its very early stages, if your change is substantial, please raise an issue first to discuss it.

License

Copyright 2016-2021 Google LLC
Copyright 2023 Christopher Banes

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.

More Resources
to explore the angular.

mail [email protected] to add your project or resources here šŸ”„.

Related Articles
to learn about angular.

FAQ's
to learn more about Angular JS.

mail [email protected] to add more queries here šŸ”.

More Sites
to check out once you're finished browsing here.

0x3d
https://www.0x3d.site/
0x3d is designed for aggregating information.
NodeJS
https://nodejs.0x3d.site/
NodeJS Online Directory
Cross Platform
https://cross-platform.0x3d.site/
Cross Platform Online Directory
Open Source
https://open-source.0x3d.site/
Open Source Online Directory
Analytics
https://analytics.0x3d.site/
Analytics Online Directory
JavaScript
https://javascript.0x3d.site/
JavaScript Online Directory
GoLang
https://golang.0x3d.site/
GoLang Online Directory
Python
https://python.0x3d.site/
Python Online Directory
Swift
https://swift.0x3d.site/
Swift Online Directory
Rust
https://rust.0x3d.site/
Rust Online Directory
Scala
https://scala.0x3d.site/
Scala Online Directory
Ruby
https://ruby.0x3d.site/
Ruby Online Directory
Clojure
https://clojure.0x3d.site/
Clojure Online Directory
Elixir
https://elixir.0x3d.site/
Elixir Online Directory
Elm
https://elm.0x3d.site/
Elm Online Directory
Lua
https://lua.0x3d.site/
Lua Online Directory
C Programming
https://c-programming.0x3d.site/
C Programming Online Directory
C++ Programming
https://cpp-programming.0x3d.site/
C++ Programming Online Directory
R Programming
https://r-programming.0x3d.site/
R Programming Online Directory
Perl
https://perl.0x3d.site/
Perl Online Directory
Java
https://java.0x3d.site/
Java Online Directory
Kotlin
https://kotlin.0x3d.site/
Kotlin Online Directory
PHP
https://php.0x3d.site/
PHP Online Directory
React JS
https://react.0x3d.site/
React JS Online Directory
Angular
https://angular.0x3d.site/
Angular JS Online Directory