Skip to content

Share main component helpers for more scopes - #278

Merged
Goooler merged 3 commits into
trunkfrom
move-app-info-provider
May 31, 2026
Merged

Goooler merged 3 commits into
trunkfrom
move-app-info-provider

Conversation

@Goooler

@Goooler Goooler commented May 31, 2026

Copy link
Copy Markdown
Owner

No description provided.

@Goooler Goooler changed the title Move AppInfoProvider into common project Improve main components calling May 31, 2026
@Goooler
Goooler requested a review from Copilot May 31, 2026 08:11

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR moves main app component helpers into common so shared modules can construct main activity intents and resolve the launcher alias without depending on glue.

Changes:

  • Relocates mainIntent, mainActivityAlias, and AppInfoProvider from glue-scoped packages to common.
  • Updates app, glue, settings, and log modules to import the new common helpers.
  • Moves Koin core dependency from glue to common.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
common/src/main/kotlin/com/github/kr328/clash/common/util/Intent.kt Adds shared main activity intent and alias utilities.
common/src/main/kotlin/com/github/kr328/clash/common/di/AppInfoProvider.kt Repackages app info provider under common.di.
common/build.gradle.kts Adds Koin core dependency required by the common provider.
glue/src/main/kotlin/com/github/kr328/clash/glue/util/Intent.kt Removes old glue-local intent utilities.
glue/build.gradle.kts Removes Koin dependency from glue.
glue/src/main/kotlin/com/github/kr328/clash/glue/remote/Remote.kt Uses common mainIntent.
glue/src/main/kotlin/com/github/kr328/clash/glue/store/UiStore.kt Uses common mainActivityAlias.
ui/log/src/main/kotlin/com/github/kr328/clash/log/LogcatService.kt Uses common mainIntent with lambda configuration.
ui/settings/src/main/kotlin/com/github/kr328/clash/settings/vm/AppSettingsViewModel.kt Uses common provider and alias imports.
app/src/main/kotlin/com/github/kr328/clash/app/AppModule.kt Registers the common AppInfoProvider.
app/src/main/kotlin/com/github/kr328/clash/app/MainActivity.kt Updates shortcut intents to the common helper API.
app/src/main/kotlin/com/github/kr328/clash/app/DialerReceiver.kt Uses common mainIntent.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread common/src/main/kotlin/com/github/kr328/clash/common/util/Intent.kt Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@Goooler Goooler changed the title Improve main components calling Share main component helpers for more scopes May 31, 2026
@Goooler
Goooler merged commit 68713c1 into trunk May 31, 2026
3 checks passed
@Goooler
Goooler deleted the move-app-info-provider branch May 31, 2026 08:17
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