Skip to content

mobilean/AnimeSearch

 
 

Repository files navigation

AnimeSearch

AnimeSearch is an Android sample application created for learning purposes only.
This application is based on trace.moe API and provides the ability to search animes by screenshot, which can be uploaded from the file system or as a picture taken by camera.

Screenshots

XML view system (Material 3 widgets)

Jetpack Compose (Material 2 widgets)

Tech stack and concepts

  • Kotlin as programming language.
  • Kotlin coroutines as framework for asynchronous jobs (RxJava as its alternative (/Dagger2+RxJava branch)).
    • Flow (StateFlow) as dataholder for UI layer (Livedata as its alternative (/Dagger2+RxJava branch)).
  • Single activity support.
  • Jetpack Compose as modern declarative UI toolkit (/compose branch).
  • Modern XML UI toolkit.
    • Material components.
    • ViewBinding for binding .xml views to objects in Activities and Fragments.
  • Api-based remote data layer.
  • DataStore for working with user preferences (e.g. light/dark mode).
  • Room for local data layer.
  • Lifecycle components.
    • ViewModel for implementing MVVM pattern.
  • Glide and Coil for working with images.
  • Testing.
    • JUnit.
    • Android testing library.
    • Espresso for UI-testing.
    • Specific testing artifacts for other libraries.
    • Compose testing libraries.
  • Hilt for dependency injection (Dagger 2 as its alternative (/Dagger2+RxJava branch)).

Key features

i.e. what is unique among other samples?

  • POST requests with Multipart body.
  • FragmentResultAPI for getting images from camera/file.
    • Fragment dependencies (ResultRegistry) utilizing custom NavHostFragment and FragmentFactory.
  • Dynamic layout based on user actions (showing some parts of UI).
  • Material You widgets.
  • [Hilt] ActivityComponent usage / [Dagger2] Subcomponent implementation.

License

MIT License

Copyright (c) 2022 Shvyndia Andrii

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

Android sample app based on trace.moe API for searching animes by screenshots

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 100.0%