Skip to content

Refactor Modular Navigation With Framework-Neutral APIs#854

Open
dev-bilal-azzam wants to merge 2 commits into
Rome-Squad:developfrom
dev-bilal-azzam:refactor/modular-navigation-with-framework-neutral-api
Open

Refactor Modular Navigation With Framework-Neutral APIs#854
dev-bilal-azzam wants to merge 2 commits into
Rome-Squad:developfrom
dev-bilal-azzam:refactor/modular-navigation-with-framework-neutral-api

Conversation

@dev-bilal-azzam

Copy link
Copy Markdown
Contributor
  • Refactor HomeApi to be framework-independent "without depending on compose or xml"
  • Use HomeActivity to hold the Main features grouped in bottom navigation bar


interface HomeApi {

fun launchHome(context: Context)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can inject the context directly into the HomeApiImp

override fun launchHome(context: Context) {
val intent = Intent(context, HomeActivity::class.java)
context.startActivity(intent)
if (context is Activity) context.finish()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we dont need this line?

@dev-bilal-azzam dev-bilal-azzam self-assigned this Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants