-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix: SDK version in lib config #98
Conversation
WalkthroughThe pull request focuses on refining the Changes
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
⏰ Context from checks skipped due to timeout of 90000ms (2)
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? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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 using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
||
@Test | ||
fun `should hold app version without extra quotes`() { | ||
assertEquals("0.1.0", BuildConfig.APP_VERSION) |
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.
Could do this with a RexExp to avoid having to update the test on every release, but not too fussed here
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
chat-android/src/test/java/com/ably/chat/BuildConfigTest.kt (1)
8-11
: Consider reading version from gradle.properties instead of hardcoding.The hardcoded version "0.1.0" will require manual updates during releases. Consider reading the version from gradle.properties to ensure consistency and reduce maintenance overhead.
Here's how you can modify the test:
- fun `should hold app version without extra quotes`() { - assertEquals("0.1.0", BuildConfig.APP_VERSION) + fun `should hold app version without extra quotes`() { + val expectedVersion = Properties().apply { + load(File("../gradle.properties").inputStream()) + }.getProperty("VERSION_NAME") + assertEquals(expectedVersion, BuildConfig.APP_VERSION)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
CONTRIBUTING.md
(1 hunks)chat-android/build.gradle.kts
(1 hunks)chat-android/src/test/java/com/ably/chat/BuildConfigTest.kt
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: coverage
- GitHub Check: check
🔇 Additional comments (2)
chat-android/build.gradle.kts (1)
49-49
: LGTM! Fix for extra quotes in version string.The change correctly removes the extra quotes from the version string by using
toString()
instead of string interpolation with quotes.CONTRIBUTING.md (1)
134-135
: Note: This step might need revision if BuildConfigTest is updated.If the suggestion to read the version from gradle.properties in BuildConfigTest is implemented, this step would no longer be necessary as the test would automatically use the updated version.
Code Coverage
|
bc01547
to
cffc0c1
Compare
cffc0c1
to
2870535
Compare
Accidentally version in
BuildConfig
got additional quotes, and agent information in the channel options displayed incorrectlySummary by CodeRabbit
New Features
Bug Fixes