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

Release/0.1.0 #93

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Release/0.1.0 #93

wants to merge 2 commits into from

Conversation

ttypic
Copy link
Collaborator

@ttypic ttypic commented Dec 16, 2024

Summary by CodeRabbit

  • New Features

    • Introduced the initial beta release of the Ably Chat SDK for Android (version 0.1.0) with key chat functionalities including various chat room configurations, messaging capabilities, online presence indicators, typing indicators, and ephemeral reactions.
  • Documentation

    • Added a CHANGELOG.md file documenting the release.
    • Updated README.md with new versioning information and clarified installation instructions.
  • Chores

    • Updated project versioning in gradle.properties to reflect stable release.
    • Incremented ably dependency version in gradle/libs.versions.toml from 1.2.46 to 1.2.47.

@ttypic ttypic requested review from sacOO7 and umair-ably December 16, 2024 09:32
Copy link

coderabbitai bot commented Dec 16, 2024

Walkthrough

This pull request marks the initial beta release (version 0.1.0) of the Ably Chat SDK for Android. The changes primarily involve updating version information across multiple configuration files, including CHANGELOG.md, README.md, gradle.properties, and gradle/libs.versions.toml. The modifications transition the project from a snapshot version to a stable release version, documenting the SDK's initial features such as chat room configurations, messaging, presence indicators, and room-level reactions.

Changes

File Change Summary
CHANGELOG.md Added initial release entry for version 0.1.0
README.md Updated version badge and installation instructions from snapshot to stable release
gradle.properties Changed VERSION_NAME from 0.1.0-SNAPSHOT to 0.1.0
gradle/libs.versions.toml Updated Ably dependency from version 1.2.46 to 1.2.47

Sequence Diagram

sequenceDiagram
    participant User
    participant ChatSDK
    participant AblyService

    User->>ChatSDK: Initialize SDK
    ChatSDK->>AblyService: Connect
    AblyService-->>ChatSDK: Connection Established
    User->>ChatSDK: Create/Join Chat Room
    ChatSDK->>AblyService: Configure Room
    AblyService-->>ChatSDK: Room Configuration Confirmed
Loading

Possibly related PRs

Suggested reviewers

  • AndyTWF
  • sacOO7

Poem

🐰 A bunny's tale of code so bright,
Version zero-point-one takes flight!
From snapshot dreams to stable release,
Our SDK hops with newfound peace 🚀
Chat features bloom, connections gleam! 📱


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>, please review it.
    • 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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @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 using 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 generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration 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: 1

🧹 Nitpick comments (2)
CHANGELOG.md (2)

5-6: Fix grammar in the release description.

Add the missing article "the" for better readability.

-Initial beta release of the Ably Chat SDK for Android. It includes following chat
+Initial beta release of the Ably Chat SDK for Android. It includes the following chat
🧰 Tools
🪛 LanguageTool

[uncategorized] ~5-~5: You might be missing the article “the” here.
Context: ... Ably Chat SDK for Android. It includes following chat features: - Chat rooms for 1:1, 1...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)


1-13: Consider enhancing the changelog with additional sections.

For better clarity and completeness, consider adding:

  1. A "Breaking Changes" section (even if just to indicate "None")
  2. A "Dependencies" section mentioning the Ably dependency update from 1.2.46 to 1.2.47

This helps users understand compatibility implications of the release.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~5-~5: You might be missing the article “the” here.
Context: ... Ably Chat SDK for Android. It includes following chat features: - Chat rooms for 1:1, 1...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)


[grammar] ~8-~8: Possible agreement error. The noun participation seems to be uncountable; consider using: “much participation”, “a good deal of participation”.
Context: ... rooms for 1:1, 1:many, many:1 and many:many participation. - Sending and receiving chat messages....

(MANY_NN_U)


[uncategorized] ~11-~11: The abbreviation “i.e.” (= that is) requires two periods.
Context: ...at participants. - Chat room occupancy, i.e total number of connections and presenc...

(I_E)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1f0de95 and 8fb7f1c.

📒 Files selected for processing (4)
  • CHANGELOG.md (1 hunks)
  • README.md (2 hunks)
  • gradle.properties (1 hunks)
  • gradle/libs.versions.toml (1 hunks)
🧰 Additional context used
🪛 LanguageTool
README.md

[grammar] ~57-~57: You used an adverb (‘Ably’) instead of an adjective, or a noun (‘Chat’) instead of another adjective.
Context: ...hannel-metadata`. ## Installation The Ably Chat SDK is available on the Maven Central R...

(A_RB_NN)


[uncategorized] ~71-~71: Although a hyphen is possible, it is not necessary in a compound modifier in which the first word is an adverb that ends in ‘ly’.
Context: ...-android:0.1.0") ``` ### Dependency on ably-android Certain functionalities are powered by...

(HYPHENATED_LY_ADVERB_ADJECTIVE)


[uncategorized] ~73-~73: Although a hyphen is possible, it is not necessary in a compound modifier in which the first word is an adverb that ends in ‘ly’.
Context: ...ain functionalities are powered by the ably-android lib...

(HYPHENATED_LY_ADVERB_ADJECTIVE)


[uncategorized] ~74-~74: Although a hyphen is possible, it is not necessary in a compound modifier in which the first word is an adverb that ends in ‘ly’.
Context: ...github.com/ably/ably-java) library. The ably-android library is included as an api dependen...

(HYPHENATED_LY_ADVERB_ADJECTIVE)

CHANGELOG.md

[uncategorized] ~5-~5: You might be missing the article “the” here.
Context: ... Ably Chat SDK for Android. It includes following chat features: - Chat rooms for 1:1, 1...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)


[grammar] ~8-~8: Possible agreement error. The noun participation seems to be uncountable; consider using: “much participation”, “a good deal of participation”.
Context: ... rooms for 1:1, 1:many, many:1 and many:many participation. - Sending and receiving chat messages....

(MANY_NN_U)


[uncategorized] ~11-~11: The abbreviation “i.e.” (= that is) requires two periods.
Context: ...at participants. - Chat room occupancy, i.e total number of connections and presenc...

(I_E)

🔇 Additional comments (5)
gradle.properties (1)

21-21: LGTM: Version update for initial beta release.

The version change from 0.1.0-SNAPSHOT to 0.1.0 is appropriate for the initial beta release.

gradle/libs.versions.toml (1)

5-5: Verify the Ably SDK version update.

The Ably SDK version has been updated to 1.2.47. Let's verify this version:

✅ Verification successful

Ably SDK version 1.2.47 is up-to-date and secure

The version update to 1.2.47 is verified to be the latest available version on Maven Central, and no security vulnerabilities were found for this package.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for latest versions and security advisories for ably-android

# Check Maven Central for latest versions
curl -s "https://search.maven.org/solrsearch/select?q=g:io.ably+AND+a:ably-android&rows=1&wt=json" | jq -r '.response.docs[0].latestVersion'

# Check for security advisories
gh api graphql -f query='
{
  securityVulnerabilities(first: 5, ecosystem: MAVEN, package: "io.ably:ably-android") {
    nodes {
      advisory {
        summary
        severity
        publishedAt
      }
      vulnerableVersionRange
      firstPatchedVersion {
        identifier
      }
    }
  }
}'

Length of output: 505

README.md (2)

6-6: LGTM: Version badge update.

The version badge has been correctly updated to reflect the initial beta release version.


61-63: LGTM: Installation instructions update.

The installation instructions have been updated with explicit version numbers for both Groovy and Kotlin Script build configurations.

Also applies to: 67-69

CHANGELOG.md (1)

1-3: LGTM! Header and version information are well-formatted.

The version number, link format, and date are correctly structured following changelog best practices.

Comment on lines +8 to +13
- Chat rooms for 1:1, 1:many, many:1 and many:many participation.
- Sending and receiving chat messages.
- Online status aka presence of chat participants.
- Chat room occupancy, i.e total number of connections and presence members.
- Typing indicators
- Room-level reactions (ephemeral at this stage)
Copy link

@coderabbitai coderabbitai bot Dec 16, 2024

Choose a reason for hiding this comment

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

💡 Codebase verification

Fix abbreviation formatting and add reaction duration details.

The abbreviation "i.e." requires two periods and a comma. Additionally, based on the codebase analysis, I can provide more details about the ephemeral reactions:

-- Chat room occupancy, i.e total number of connections and presence members.
++ Chat room occupancy, i.e., total number of connections and presence members.
-- Room-level reactions (ephemeral at this stage)
++ Room-level reactions (ephemeral at this stage - reactions are sent and received in real-time without persistence)

The codebase shows that reactions are implemented as real-time events without persistence, where users can send and subscribe to reaction events through dedicated channels. The implementation includes support for reaction types (e.g., "like"), optional metadata for effects (e.g., fireworks), and headers for additional context.

🔗 Analysis chain

Fix abbreviation formatting.

The abbreviation "i.e." requires two periods.

-- Chat room occupancy, i.e total number of connections and presence members.
++ Chat room occupancy, i.e., total number of connections and presence members.

Additionally, consider adding more details about the ephemeral reactions, such as their duration or behavior, to help users better understand this feature's limitations.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Look for additional documentation about ephemeral reactions

# Search for any documentation about reaction behavior
rg -i "ephemeral.*reaction|reaction.*ephemeral" --type md

Length of output: 290


Script:

#!/bin/bash
# Search for code examples or implementation details of reactions
rg -i "reaction" -A 5 --type ts --type js

Length of output: 190


Script:

#!/bin/bash
# Find all TypeScript and JavaScript files first
fd "\.(ts|js)$" | xargs rg -i "reaction" -A 5

Length of output: 58064

🧰 Tools
🪛 LanguageTool

[grammar] ~8-~8: Possible agreement error. The noun participation seems to be uncountable; consider using: “much participation”, “a good deal of participation”.
Context: ... rooms for 1:1, 1:many, many:1 and many:many participation. - Sending and receiving chat messages....

(MANY_NN_U)


[uncategorized] ~11-~11: The abbreviation “i.e.” (= that is) requires two periods.
Context: ...at participants. - Chat room occupancy, i.e total number of connections and presenc...

(I_E)

Copy link
Contributor

Choose a reason for hiding this comment

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

I kinda agree to this change 👍

Copy link

Choose a reason for hiding this comment

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

@sacOO7, glad to hear that you agree with the change! Let me know if you need any further assistance.


If you found this review helpful, would you consider giving us a shout-out on X?
Thank you for using CodeRabbit!

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also agree with this change

Copy link

Choose a reason for hiding this comment

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

Seems like the humans are having a chat. I'll hop back into my burrow for now. If you need me again, just tag @coderabbitai in a new comment, and I'll come hopping out!

Copy link

Code Coverage

Total Project Coverage 85.90%

@ttypic ttypic requested a review from AndyTWF December 16, 2024 09:38

[//]: # (The `ably-android` library is included as an api dependency within the Chat SDK, so there is no need to manually add it to your project.)
Certain functionalities are powered by the [ably-android](https://github.com/ably/ably-java) library.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Certain functionalities are powered by the [ably-android](https://github.com/ably/ably-java) library.
All functionalities are powered by the core [ably-android](https://github.com/ably/ably-java) library.

WDYT ?

Copy link
Contributor

Choose a reason for hiding this comment

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

I believe both ChatAPI and ChatClient uses underlying ably-java -> AblyRest and AblyRealtime classes right

Copy link
Collaborator

Choose a reason for hiding this comment

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

Would possibly suggest an alternative wording:

Key functionality such as sending and receiving messages is powered by the [ably-android](https://github.com/ably/ably-java) library.

Copy link
Contributor

@sacOO7 sacOO7 left a comment

Choose a reason for hiding this comment

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

I have left few comments,
otherwise LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants