package Ġmap zen . com . sdk sample app . di Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . preference . Preference Manager Ċ import Ġcom . map zen . android . routing . Map zen Router Ċ import Ġcom . map zen . android . search . Map zen Search Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġmap zen . com . sdk sample app . models . Sample Map Ċ import Ġmap zen . com . sdk sample app . models . Settings Ċ import Ġmap zen . com . sdk sample app . present ers . Main Presenter Ċ import Ġmap zen . com . sdk sample app . present ers . Main Presenter Impl Ċ import Ġmap zen . com . sdk sample app . present ers . Routing Presenter Ċ import Ġmap zen . com . sdk sample app . present ers . Routing Presenter Impl Ċ import Ġmap zen . com . sdk sample app . present ers . Settings Presenter Ċ import Ġmap zen . com . sdk sample app . present ers . Settings Presenter Impl Ċ import Ġjavax . inject . Singleton Ċ Ċ /** Ċ Ġ* ĠD agger Ġmodule Ġfor Ġproviding Ġobjects Ġto Ġ[ App Component ] Ċ Ġ*/ Ċ @ Module Ċ class ĠApp Module ( private Ġval Ġcontext : ĠContext ) Ġ{ ĊĊĠ Ġ@ Provides Ġ@ Singleton Ġfun Ġprovide Main Presenter (): ĠMain Presenter Ġ{ ĊĠĠĠ Ġreturn ĠMain Presenter Impl ( Sample Map ()) ĊĠ Ġ} ĊĊĠ Ġ@ Provides Ġ@ Singleton Ġfun Ġprovide Settings (): ĠSettings Ġ{ ĊĠĠĠ Ġval Ġshared Prefs Ġ= ĠPreference Manager . getDefault SharedPreferences ( context ) ĊĠĠĠ Ġreturn ĠSettings ( context , Ġshared Prefs ) ĊĠ Ġ} ĊĊĠ Ġ@ Provides Ġ@ Singleton Ġfun Ġprovide Settings Presenter ( settings : ĠSettings ): ĠSettings Presenter Ġ{ ĊĠĠĠ Ġreturn ĠSettings Presenter Impl ( settings ) ĊĠ Ġ} ĊĊĠ Ġ@ Provides Ġ@ Singleton Ġfun Ġprovide Search (): ĠMap zen Search Ġ{ ĊĠĠĠ Ġreturn ĠMap zen Search ( context ) ĊĠ Ġ} ĊĊĠ Ġ@ Provides Ġ@ Singleton Ġfun Ġprovide Router (): ĠMap zen Router Ġ{ ĊĠĠĠ Ġreturn ĠMap zen Router ( context ) ĊĠ Ġ} ĊĊĠ Ġ@ Provides Ġ@ Singleton Ġfun Ġprovide Routing Presenter ( router : ĠMap zen Router ): ĠRouting Presenter Ġ{ ĊĠĠĠ Ġreturn ĠRouting Presenter Impl ( router ) ĊĠ Ġ} Ċ } Ċ