/* Ċ Ġ* ĠCopyright Ġ( C ) Ġ 2 0 1 9 Ġlittle gn al Ċ Ġ* Ċ Ġ* ĠLicensed Ġunder Ġthe ĠApache ĠLicense , ĠVersion Ġ 2 . 0 Ġ( the Ġ" License "); Ċ Ġ* Ġyou Ġmay Ġnot Ġuse Ġthis Ġfile Ġexcept Ġin Ġcompliance Ġwith Ġthe ĠLicense . Ċ Ġ* ĠYou Ġmay Ġobtain Ġa Ġcopy Ġof Ġthe ĠLicense Ġat Ċ Ġ* Ċ Ġ* ĠĠĠĠ Ġhttp :// www . apache . org / licenses / LICENSE - 2 . 0 Ċ Ġ* Ċ Ġ* ĠUnless Ġrequired Ġby Ġapplicable Ġlaw Ġor Ġagreed Ġto Ġin Ġwriting , Ġsoftware Ċ Ġ* Ġdistributed Ġunder Ġthe ĠLicense Ġis Ġdistributed Ġon Ġan Ġ" AS ĠIS " ĠBASIS , Ċ Ġ* ĠWITHOUT ĠWARRANTIES ĠOR ĠCONDITIONS ĠOF ĠANY ĠKIND , Ġeither Ġexpress Ġor Ġimplied . Ċ Ġ* ĠSee Ġthe ĠLicense Ġfor Ġthe Ġspecific Ġlanguage Ġgoverning Ġpermissions Ġand Ċ Ġ* Ġlimitations Ġunder Ġthe ĠLicense . Ċ Ġ*/ Ċ Ċ package Ġcom . little gn al . accounting multi platform Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġcom . little gn al . accounting multi platform . data . Accounting Repository Ċ import Ġcom . little gn al . accounting multi platform . data . Db Ċ import Ġcom . little gn al . accounting multi platform . data . SQL DEL IGHT _ CHANNEL Ċ import Ġcom . little gn al . accounting multi platform . data . Sql Del ight Manager Ċ import Ġcom . little gn al . accounting multi platform . data . getInstance Ċ import Ġio . flutter . app . Flutter Activity Ċ import Ġio . flutter . plugin . common . Method Channel Ċ import Ġio . flutter . plugins . Generated Plugin Regist r ant Ċ Ċ class ĠMainActivity Ġ: ĠFlutter Activity () Ġ{ ĊĊĠ Ġprivate Ġval Ġsql Del ight Manager Ġby Ġlazy Ġ{ ĊĠĠĠ Ġval Ġaccounting Repository Ġ= ĠAccount ing Repository ( Db . getInstance ( application Context )) ĊĠĠĠ ĠSql Del ight Manager ( accounting Repository ) ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠ ĠGenerated Plugin Regist r ant . register With ( this ) ĊĊĠĠĠ ĠMethod Channel ( flutter View , ĠSQL DEL IGHT _ CHANNEL ). set MethodCall Handler Ġ{ Ġmethod Call , Ġresult Ġ-> ĊĠĠĠĠĠ Ġ@ Suppress (" UN CHECK ED _ CAST ") ĊĠĠĠĠĠ Ġval Ġargs Ġ= Ġmethod Call . arguments Ġas ? ĠMap < String , ĠAny > Ġ?: Ġempty Map () ĊĠĠĠĠĠ Ġsql Del ight Manager . method Call ( method Call . method , Ġargs ) Ġ{ ĊĠĠĠĠĠĠĠ Ġresult . success ( it ) ĊĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġon Destroy () Ġ{ ĊĠĠĠ Ġsuper . on Destroy () ĊĊĠĠĠ Ġsql Del ight Manager . clear () ĊĠ Ġ} Ċ } Ċ