-
-
Notifications
You must be signed in to change notification settings - Fork 771
[koin-android] Remove transitive dependency for appcompat library #2273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[koin-android] Remove transitive dependency for appcompat library #2273
Conversation
egorikftp
commented
Aug 23, 2025
- closes: [koin-android] Remove transitive dependency for appcompat library #2272
61ac568 to
bfa5f1c
Compare
|
Something wrong with maven 😪 |
|
I keep it for Koin 4.2, avoiding to impact structure for now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request removes the transitive dependency on the androidx.appcompat library from the koin-android module by replacing AppCompatActivity with ComponentActivity throughout the codebase. This change reduces the dependency footprint while maintaining the necessary functionality for Android scope management.
Key Changes
- Removed the
android-appcompatdependency from both the version catalog and build configuration - Replaced
AppCompatActivitywithComponentActivityas the base class forScopeActivityandRetainedScopeActivity - Updated documentation comments to reflect the change from AppCompatActivity to ComponentActivity
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
projects/gradle/libs.versions.toml |
Removed android-appcompat version variable and library definition |
projects/android/koin-android/build.gradle.kts |
Removed api dependency on android-appcompat library |
projects/android/koin-android/src/main/java/org/koin/androidx/scope/ScopeActivity.kt |
Changed base class from AppCompatActivity to ComponentActivity and updated KDoc |
projects/android/koin-android/src/main/java/org/koin/androidx/scope/RetainedScopeActivity.kt |
Changed base class from AppCompatActivity to ComponentActivity, removed unused TypeQualifier import, and updated KDoc |
projects/android/koin-android/src/main/java/org/koin/androidx/scope/ComponentActivityExt.kt |
Updated documentation comments to reference ComponentActivity instead of AppCompatActivity |
projects/android/koin-android/src/main/java/org/koin/androidx/scope/AndroidScopeArchetypes.kt |
Updated ActivityScopeArchetype to use ComponentActivity::class instead of AppCompatActivity::class |
README.md |
Updated Kotlin version badge (contains incorrect version) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>