Skip to content

Conversation

@egorikftp
Copy link

@egorikftp egorikftp changed the title #2272: [koin-android] Remove transitive dependency for appcompat library [koin-android] Remove transitive dependency for appcompat library Aug 23, 2025
@egorikftp egorikftp force-pushed the feature/remove-transitive-appcompat-library branch from 61ac568 to bfa5f1c Compare August 23, 2025 19:34
@egorikftp
Copy link
Author

Something wrong with maven 😪

@arnaudgiuliani arnaudgiuliani added this to the 4.1.1 milestone Sep 2, 2025
@arnaudgiuliani arnaudgiuliani self-requested a review September 2, 2025 16:06
@arnaudgiuliani arnaudgiuliani changed the base branch from main to 4.1.1 September 2, 2025 16:06
@arnaudgiuliani arnaudgiuliani modified the milestones: 4.1.1, 4.2.0 Sep 2, 2025
@arnaudgiuliani
Copy link
Member

I keep it for Koin 4.2, avoiding to impact structure for now

@arnaudgiuliani arnaudgiuliani deleted the branch InsertKoinIO:4.2.0 October 28, 2025 15:44
@arnaudgiuliani arnaudgiuliani changed the base branch from 4.1.1 to 4.2.0 October 28, 2025 15:47
Copy link

Copilot AI left a 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-appcompat dependency from both the version catalog and build configuration
  • Replaced AppCompatActivity with ComponentActivity as the base class for ScopeActivity and RetainedScopeActivity
  • 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]>
@arnaudgiuliani arnaudgiuliani merged commit e408f38 into InsertKoinIO:4.2.0 Dec 2, 2025
3 of 4 checks passed
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.

[koin-android] Remove transitive dependency for appcompat library

2 participants