package Ġcom . tom cl aw . n imp as . di Ċ Ċ import Ġandroid . app . Application Ċ import Ġandroid . content . Context Ċ import Ġcom . google . gson . Gson Ċ import Ġcom . google . gson . Gson Builder Ċ import Ġcom . tom cl aw . n imp as . R Ċ import Ġcom . tom cl aw . n imp as . storage . She lf Ċ import Ġcom . tom cl aw . n imp as . storage . She lf Impl Ċ import Ġcom . tom cl aw . n imp as . templates . Template Repository Ċ import Ġcom . tom cl aw . n imp as . templates . Template Repository Impl Ċ import Ġcom . tom cl aw . n imp as . undo . Undo er Ċ import Ġcom . tom cl aw . n imp as . undo . Undo er Impl Ċ import Ġcom . tom cl aw . n imp as . util . Schedulers Factory Ċ import Ġcom . tom cl aw . n imp as . util . Schedulers Factory Impl Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġjava . io . File Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Module Ċ class ĠApp Module ( private Ġval Ġapp : ĠApplication ) Ġ{ ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġinternal Ġfun Ġprovide Context (): ĠContext Ġ= Ġapp ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġinternal Ġfun Ġprovide Gson (): ĠGson Ġ= ĠGson Builder (). create () ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġinternal Ġfun Ġprovide Schedulers Factory (): ĠS chedulers Factory Ġ= ĠS chedulers Factory Impl () ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġinternal Ġfun Ġprovide She lf ( schedul ers : ĠS chedulers Factory ): ĠShe lf Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠShe lf Impl ( File ( app . files Dir , ĠSA FE _ DIR ), Ġapp . content Resolver , Ġs chedulers ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġinternal Ġfun Ġprovide Template Repository ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġgson : ĠGson , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġs chedulers Factory : ĠS chedulers Factory ĊĠĠĠ Ġ): ĠTemplate Repository Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġstream Ġ= Ġapp . resources . open Raw Resource ( R . raw . templates ) ĊĠĠĠĠĠĠĠ Ġreturn ĠTemplate Repository Impl ( stream , Ġgson , Ġs chedulers Factory ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġinternal Ġfun Ġprovide Undo er (): ĠUndo er Ġ= ĠUndo er Impl () Ċ Ċ } Ċ Ċ private Ġconst Ġval ĠSA FE _ DIR Ġ= Ġ" safe "