Hydra core

The Core library for Hydra modules

In order for the main app to detect and use the module it need to have a class named Module extending HeadModule in the root of the project

Example

Inside the project root (src/main/java|kotlin/<package>/Module.kt) create a class named Module that extends HeadModule.

class Module: HeadModule() { // Needs to be named Module and extend HeadModule
override val baseUrl: String = "https://example.com/"
override val config: HeadConfig = object : HeadConfig(){ // Check HeadConfig for more settings
init {
isRecentsAvailable = true
isDirectoryAvailable = true
isSearchAvailable = true
searchBarText = "Search here"
customDecoders = listOf()
}
}
override val dataRepository: HeadRepository = ExampleRepository() // Check HeadRepository
override val moduleName: String = "Example module"
override val moduleVersionCode: Int = BuildConfig.VERSION_CODE
override val moduleVersionName: String = BuildConfig.VERSION_NAME
}

Packages

Link copied to clipboard

Essential classes for a Hydra Module

Link copied to clipboard

Classes representing data used to communicate the module with the main app.

Link copied to clipboard

Class representing data used for the analytics feature

Link copied to clipboard

Classes representing extra data used in core.models

Link copied to clipboard
Link copied to clipboard