FGA
FGA copied to clipboard
chore: add param for hilt injected parameters
This pull request refactors multiple service and utility classes to improve dependency injection annotations for constructor parameters. The main change is replacing property annotations like @ApplicationContext and @ServiceCoroutineScope with parameter annotations (@param:ApplicationContext, @param:ServiceCoroutineScope) in constructors. This ensures proper annotation usage for dependency injection frameworks such as Dagger/Hilt, leading to clearer and more reliable injection of context and coroutine scope dependencies.
Dependency Injection Annotation Improvements:
- Updated constructors in
TesseractOcrService,ScriptManager,ScriptRunnerServiceController,AndroidImpl,ImageLoader,StorageProvider, andPrefsCoreto use@param:ApplicationContextfor thecontextparameter, ensuring correct context injection. [1] [2] [3] [4] [5] [6] - Updated constructors in
ScriptManager,ScriptRunnerServiceController, andAndroidImplto use@param:ServiceCoroutineScopefor thescopeparameter, ensuring the coroutine scope is correctly injected. [1] [2] [3]