Skip to content
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

Updated Kotlin to 2.0.0, Essenty to 2.1.0, Reaktive to 2.2.0, AGP to 8.2.0 #139

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

arkivanov
Copy link
Owner

@arkivanov arkivanov commented Jun 6, 2024

Summary by CodeRabbit

  • New Features

    • Added support for Kotlin Compose plugin in various build files, enabling new Compose functionalities.
  • Bug Fixes

    • Removed outdated workaround for webpackCli version setting.
    • Updated dependency versions to improve stability and compatibility.
  • Chores

    • Updated .gitignore to exclude .kotlin directory.
    • Updated Gradle distribution URL and added network timeout setting.
    • Removed obsolete internal classes and utilities to clean up the codebase.
  • Refactor

    • Simplified build scripts by removing unnecessary import statements and adding relevant plugins directly.

Copy link

coderabbitai bot commented Jun 6, 2024

Walkthrough

The recent updates encompass a variety of improvements and version upgrades across multiple files. Key changes include updates to dependency versions, enhancements to the build configuration, removal of outdated workarounds, and cleanup of internal classes. These modifications aim to improve compatibility, streamline the build process, and ensure the project leverages the latest features and bug fixes.

Changes

Files Change Summary
.gitignore Added .kotlin directory exclusion.
build.gradle.kts Added classpath(deps.kotlin.composeCompilerGradlePlug), removed afterEvaluate block, added mavenLocal().
deps.versions.toml Updated versions for Kotlin, detektGradlePlugin, essenty, reaktive, compose, androidGradle, and others.
gradle.properties Removed android.experimental.lint.version=8.1.0.
gradle/wrapper/gradle-wrapper.properties Updated distributionUrl to gradle-8.2-all.zip, added networkTimeout=10000.
gradlew Updated comments and added shellcheck directives.
gradlew.bat Added a comment line.
mvikotlin-timetravel-client/app-desktop/build.gradle.kts Added org.jetbrains.kotlin.plugin.compose plugin, removed org.jetbrains.compose.compose import.
mvikotlin-timetravel-client/extension-chrome/build.gradle.kts Added org.jetbrains.kotlin.plugin.compose plugin.
mvikotlin-timetravel-proto-internal/src/nativeMain/kotlin/com/arkivanov/mvikotlin/timetravel/... Removed @Suppress("UNRESOLVED_REFERENCE_WRONG_RECEIVER") annotation from ReaderThread class.
mvikotlin/api/android/mvikotlin.api, mvikotlin/api/jvm/mvikotlin.api Removed various internal classes related to Rx subjects and utilities.
mvikotlin/src/commonMain/kotlin/com/arkivanov/mvikotlin/core/utils/LockExt.kt Added suppressions and opted into experimental contracts for synchronized function.
settings.gradle.kts Updated gradle-setup-plugin version.

Poem

In the land of code so bright,
Dependencies took a flight,
Kotlin's new, Compose anew,
Gradle's path now straight and true.
Subjects gone, no more to see,
Cleaner builds for you and me.
🐇✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between ec5b419 and 0517b60.

Files ignored due to path filters (2)
  • gradle/wrapper/gradle-wrapper.jar is excluded by !**/*.jar
  • kotlin-js-store/yarn.lock is excluded by !**/*.lock
Files selected for processing (14)
  • .gitignore (1 hunks)
  • build.gradle.kts (2 hunks)
  • deps.versions.toml (2 hunks)
  • gradle.properties (1 hunks)
  • gradle/wrapper/gradle-wrapper.properties (1 hunks)
  • gradlew (3 hunks)
  • gradlew.bat (1 hunks)
  • mvikotlin-timetravel-client/app-desktop/build.gradle.kts (1 hunks)
  • mvikotlin-timetravel-client/extension-chrome/build.gradle.kts (1 hunks)
  • mvikotlin-timetravel-proto-internal/src/nativeMain/kotlin/com/arkivanov/mvikotlin/timetravel/proto/internal/io/ReaderThread.kt (1 hunks)
  • mvikotlin/api/android/mvikotlin.api (2 hunks)
  • mvikotlin/api/jvm/mvikotlin.api (2 hunks)
  • mvikotlin/src/commonMain/kotlin/com/arkivanov/mvikotlin/core/utils/LockExt.kt (1 hunks)
  • settings.gradle.kts (1 hunks)
Files skipped from review due to trivial changes (10)
  • .gitignore
  • gradle.properties
  • gradle/wrapper/gradle-wrapper.properties
  • gradlew
  • gradlew.bat
  • mvikotlin-timetravel-client/app-desktop/build.gradle.kts
  • mvikotlin-timetravel-proto-internal/src/nativeMain/kotlin/com/arkivanov/mvikotlin/timetravel/proto/internal/io/ReaderThread.kt
  • mvikotlin/api/android/mvikotlin.api
  • mvikotlin/api/jvm/mvikotlin.api
  • mvikotlin/src/commonMain/kotlin/com/arkivanov/mvikotlin/core/utils/LockExt.kt
Additional comments not posted (5)
mvikotlin-timetravel-client/extension-chrome/build.gradle.kts (1)

8-8: Addition of the Kotlin Compose plugin aligns with the project's move towards using Jetpack Compose for UI components.

settings.gradle.kts (1)

18-18: Updated gradle-setup-plugin version to ensure compatibility with the latest tools and practices.

build.gradle.kts (2)

24-24: Addition of classpaths for new plugins ensures compatibility with updated versions.


82-82: Addition of mavenLocal() to repositories. Ensure this is intended for production use and not just for local development.

Consider removing mavenLocal() if it's not necessary for production to avoid potential issues with dependency resolution.

deps.versions.toml (1)

7-17: Updated dependency versions align with the project's goal to stay current with the latest stable releases.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 0517b60 and d7e8824.

Files ignored due to path filters (2)
  • gradle/wrapper/gradle-wrapper.jar is excluded by !**/*.jar
  • kotlin-js-store/yarn.lock is excluded by !**/*.lock
Files selected for processing (14)
  • .gitignore (1 hunks)
  • build.gradle.kts (2 hunks)
  • deps.versions.toml (2 hunks)
  • gradle.properties (1 hunks)
  • gradle/wrapper/gradle-wrapper.properties (1 hunks)
  • gradlew (3 hunks)
  • gradlew.bat (1 hunks)
  • mvikotlin-timetravel-client/app-desktop/build.gradle.kts (1 hunks)
  • mvikotlin-timetravel-client/extension-chrome/build.gradle.kts (1 hunks)
  • mvikotlin-timetravel-proto-internal/src/nativeMain/kotlin/com/arkivanov/mvikotlin/timetravel/proto/internal/io/ReaderThread.kt (1 hunks)
  • mvikotlin/api/android/mvikotlin.api (2 hunks)
  • mvikotlin/api/jvm/mvikotlin.api (2 hunks)
  • mvikotlin/src/commonMain/kotlin/com/arkivanov/mvikotlin/core/utils/LockExt.kt (1 hunks)
  • settings.gradle.kts (1 hunks)
Files skipped from review as they are similar to previous changes (13)
  • .gitignore
  • build.gradle.kts
  • gradle.properties
  • gradle/wrapper/gradle-wrapper.properties
  • gradlew
  • gradlew.bat
  • mvikotlin-timetravel-client/app-desktop/build.gradle.kts
  • mvikotlin-timetravel-client/extension-chrome/build.gradle.kts
  • mvikotlin-timetravel-proto-internal/src/nativeMain/kotlin/com/arkivanov/mvikotlin/timetravel/proto/internal/io/ReaderThread.kt
  • mvikotlin/api/android/mvikotlin.api
  • mvikotlin/api/jvm/mvikotlin.api
  • mvikotlin/src/commonMain/kotlin/com/arkivanov/mvikotlin/core/utils/LockExt.kt
  • settings.gradle.kts
Additional comments not posted (1)
deps.versions.toml (1)

7-17: Updated dependency versions align with PR objectives.

Ensure that all modules using these dependencies are compatible with the new versions to avoid runtime issues.

@@ -52,6 +52,7 @@ reaktive-coroutinesInterop = { group = "com.badoo.reaktive", name = "coroutines-
russhwolf-multiplatformSettings = { group = "com.russhwolf", name = "multiplatform-settings", version.ref = "multiplatformSettings" }

compose-composeGradlePlug = { group = "org.jetbrains.compose", name = "compose-gradle-plugin", version.ref = "compose" }
kotlin-composeCompilerGradlePlug = { group = "org.jetbrains.kotlin", name = "compose-compiler-gradle-plugin", version.ref = "kotlin" }
Copy link

Choose a reason for hiding this comment

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

Tip

Codebase Verification

The old plugin name compose-composeGradlePlug still exists in the deps.versions.toml file and needs to be updated to kotlin-composeCompilerGradlePlug.

  • Location: deps.versions.toml
Analysis chain

Renaming compose-composeGradlePlug to kotlin-composeCompilerGradlePlug is consistent with the summary.

Verify that all references to the old name are updated across the project.

Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify that all references to the old plugin name are updated.

# Test: Search for the old plugin name. Expect: No occurrences.
rg --type toml 'compose-composeGradlePlug'

Length of output: 182



Script:

#!/bin/bash
# Description: Verify that all references to the old plugin name are updated.

# Test: Search for the old plugin name across the entire codebase. Expect: No occurrences.
rg 'compose-composeGradlePlug'

Length of output: 170

@arkivanov arkivanov merged commit fb7affa into master Jun 6, 2024
2 checks passed
@arkivanov arkivanov deleted the kotlin-2 branch June 6, 2024 22:16
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.

1 participant