Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chrisbanes/tivi
Tivi is a TV show tracking Android app, which connects to trakt.tv
https://github.com/chrisbanes/tivi
android-application jetpack-compose kotlin kotlin-coroutines kotlin-multiplatform-mobile trakt
Last synced: 7 days ago
JSON representation
Tivi is a TV show tracking Android app, which connects to trakt.tv
- Host: GitHub
- URL: https://github.com/chrisbanes/tivi
- Owner: chrisbanes
- License: apache-2.0
- Created: 2017-08-17T16:35:58.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2024-04-19T10:23:32.000Z (7 months ago)
- Last Synced: 2024-04-22T13:08:46.696Z (7 months ago)
- Topics: android-application, jetpack-compose, kotlin, kotlin-coroutines, kotlin-multiplatform-mobile, trakt
- Language: Kotlin
- Homepage:
- Size: 25.3 MB
- Stars: 6,396
- Watchers: 165
- Forks: 857
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-kotlin-multiplatform - tivi
- awesome-kotlin - tivi - Tivi is a work-in-progress TV show tracking Android app, which connects to Trakt.tv. It is still in its early stages of development and currently only contains two pieces of UI. It is under heavy development. (Applications)
- awesome-list - chrisbanes/tivi - Tivi is a TV show tracking Android app, which connects to trakt.tv (Kotlin)
- awesome-kotlin-android - tivi - 电视节目跟踪 APP 🔥🔥🔥🔥🔥 (完整 app / 测试)
README
![Tivi](art/banner.png)
# Tivi 📺
Tivi is a TV show tracking application which connects to [Trakt.tv](https://www.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](https://kotlinlang.org/docs/multiplatform.html), 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](https://www.jetbrains.com/lp/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) (`:android-app:app`).
- The Desktop application module is located at [desktop-app/](desktop-app) (`:desktop-app`).### iOS
The iOS project is setup as a typical Xcode project. It currently uses [CocoaPods](https://cocoapods.org/) 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](https://github.com/rbenv/rbenv), but that's just a suggestion:
```shell
brew install rbenvrbenv 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](.xcode-version) file.
We enforce the Xcode version on CI, but locally you can use whatever version you want. The [Xcodes.app](https://www.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:
``` shell
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`](ios-app/Tivi/Tivi.xcworkspace).
Press Run and it should build!
### Code style
This project uses [ktlint](https://github.com/pinterest/ktlint), provided via
the [spotless](https://github.com/diffplug/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:- [Trakt.tv](https://trakt.docs.apiary.io)
- [TMDb](https://developers.themoviedb.org)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=
TIVI_TRAKT_CLIENT_SECRET=# Get this from TMDb
TIVI_TMDB_API_KEY=
```## 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 BanesLicensed 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 athttps://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.
```