mzukic3 / SuperHero

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android SuperHero

A super hero app illustrating Android development best practices with Android Jetpack.

Introduction

This app let's you search for super heroes and share details with others.

Android Jetpack

Getting Started

This project uses the Gradle build system. To build this project, use the gradlew build command or use "Import Project" in Android Studio.

Superhero API key

SuperHero uses the SuperHero API to load superheroes. To use the API, you will need to obtain a free developer API key. See the SuperHere API Documentation for instructions.

Once you have the key, add this line to the apikey.properties file

API_KEY=<your SuperHero access key>

Screenshots

Libraries Used

  • Architecture - A collection of libraries that help you design robust, testable, and maintainable apps. Start with classes for managing your UI component lifecycle and handling data persistence.
    • Lifecycles - Create a UI that automatically responds to lifecycle events.
    • LiveData - Build data objects that notify views when the underlying database changes.
    • Navigation- Handle everything needed for in-app navigation.
    • ViewModel - Store UI-related data that isn't destroyed on app rotations. Easily schedule asynchronous tasks for optimal execution.
  • Third party and miscellaneous libraries
    • Glide for image loading
    • Hilt for dependency injection
    • Kotlin Coroutines for managing background threads with simplified code and reducing needs for callbacks

Android Studio IDE setup

For development, the latest version of Android Studio is required. The latest version can be downloaded from here.

SuperHero uses ktlint to enforce Kotlin coding styles. Here's how to configure it for use with Android Studio (instructions adapted from the ktlint README):

About

License:Apache License 2.0


Languages

Language:Kotlin 100.0%