Skip to content

Simple app to consumer api movies with retrofit and save result in database with room using android jetpack

License

Notifications You must be signed in to change notification settings

Hcnc100/MoviesCompose

Repository files navigation

MoviesCompose

Simple app to consumer api movies with retrofit and save result in database with room using android jetpack

Instruccions

  1. Log Up in https://www.themoviedb.org/signup
  2. Get api key in https://www.themoviedb.org/settings/api
  3. Up your api key in local.properties in yout app file, remember name.In this case is keyApiMovies
keyApiMovies="your_api_key_xxxx"
  1. In the build.gradle in defaultConfig put:
def localProperties = new Properties()
localProperties.load(new FileInputStream(rootProject.file("local.properties")))
buildConfigField "String", "API_KEY_MOVIES",localProperties['keyApiMovies']

where keyApiMovies is the name that yout put in the step 3, and API_KEY_MOVIES is the name for your api key, for use in the inner code.

With that caun you user BuildConfig.API_KEY_MOVIES in MoviesApiServices

Screenshots

Splash

splash

MainScreen

main details

SearchScreen

start-search search results details-search no_found

About

Simple app to consumer api movies with retrofit and save result in database with room using android jetpack

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages