Skip to content

The project is a test project that implements and test Jetpack Compose for Android TV OS app with API request (dynamic list), Hilt and Room Database.

Notifications You must be signed in to change notification settings

NicosNicolaou16/SampleAndroidTvApp

Repository files navigation

Sample Android TV App

The project is a test project that implements and test Jetpack Compose for Android TV OS app with API request (dynamic list), Hilt and Room Database.

This Project contains:

For Android TV OS support
Compose
Hilt
Room Database
Coroutines
Kotlin ktx
MVVM
Support kapt and ksp (ksp only setup for Room Database)
minifyEnabled, shrinkResources, R8 are enabled
Gradle Kotlin DSL
Repository
Offline

Similar project with (Dart Language)

https://github.com/NicosNicolaou16/SampleFlutterTVApp

References/Tutorials Follow/For Manifest Setup

https://developer.android.com/training/tv/playback/compose
https://developer.android.com/jetpack/compose/touch-input/focus/react-to-focus
https://stackoverflow.com/questions/76281554/android-jetpack-compose-tv-focus-restoring

Setup in Manifest

<manifest>

    <uses-feature android:name="android.software.leanback" android:required="false" />

    <uses-feature android:name="android.hardware.touchscreen" android:required="false" />

    <application android:banner="@mipmap/ic_launcher">
        <!--other code here-->
        <activity>
            <!--other code here-->
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
            </intent-filter>
        </activity>
        <!--other code here-->
    </application>
</manifest>

Check my article

https://medium.com/@nicosnicolaou/android-tv-application-jetpack-compose-and-flutter-f4decfa765c6

Feeds/Urls/End Point (parsing some data from response)

(Links References for Ends Points)

https://github.com/r-spacex/SpaceX-API (GitHub)
https://docs.spacexdata.com/?version=latest (Postman)

Target SDK version: 34
Minimum SDK version: 27
Kotlin version: 2.0.0
Gradle version: 8.4.1

Releases

No releases published

Packages

No packages published

Languages