Skip to content

Instantly share code, notes, and snippets.

@markchristopherng
Last active October 14, 2019 23:50
Show Gist options
  • Save markchristopherng/55b8c9b3b11ecd927e6c1ac31654aeb6 to your computer and use it in GitHub Desktop.
Save markchristopherng/55b8c9b3b11ecd927e6c1ac31654aeb6 to your computer and use it in GitHub Desktop.
class PayBillActivity() : BaseActivity(R.layout.activity_pay_bill) {
val payBillManager: IPayBillManager by inject()
override fun onCreate(savedInstanceState: Bundle?) {
KTP.openRootScope()
.openSubScope(APPSCOPE)
.openSubScope(this)
.installModules(module { bind<IPayBillManager>().toClass<PayBillManager>()})
.closeOnDestroy(this)
.inject(this)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment