Skip to content

Conversation

@robertherber
Copy link
Member

@robertherber robertherber commented May 2, 2025

Summary by CodeRabbit

  • Chores
    • Updated the Discord badge and invite link in the documentation.
    • Improved the prepublish process to ensure the README file is included in the package.
    • Made minor configuration updates to the iOS example app project settings.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented May 2, 2025

Walkthrough

This update modifies three areas: the main README file, the iOS example app's Xcode project configuration, and the package.json of the react-native-device-activity package. The README's Discord badge and invite link are updated to use a new server identifier. The Xcode project file is adjusted by adding an empty exceptions array to a group, removing inputPaths and outputPaths from certain shell script build phases, and changing the OTHER_LDFLAGS setting format. The package.json script for prepublishing now copies the main README into the package directory, ensuring documentation is included during publishing.

Changes

File(s) Change Summary
README.md Updated Discord badge and invite link to use a new server identifier.
apps/example/ios/reactnativedeviceactivityexample.xcodeproj/project.pbxproj Added empty exceptions array to PBXFileSystemSynchronizedRootGroup, removed inputPaths and outputPaths from two shell script phases, changed OTHER_LDFLAGS from string to array format.
packages/react-native-device-activity/package.json Incremented package version; updated prepublishOnly script to copy main README into package directory during prepublish.

Poem

In README fields the Discord link,
Hops to a new home in a single blink.
Xcode’s scripts get tidied neat,
While packages gain a README treat.
With every change, the project grows,
As rabbits cheer where progress flows! 🐇✨


🪧 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.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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 sequence diagram to generate a sequence diagram of the changes in this 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.

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.

@pkg-pr-new
Copy link

pkg-pr-new bot commented May 2, 2025

Open in StackBlitz

npm i https://pkg.pr.new/kingstinct/react-native-device-activity@59

commit: af4d2cc

Copy link
Contributor

@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: ASSERTIVE
Plan: Lite

📥 Commits

Reviewing files that changed from the base of the PR and between af4d2cc and 9363345.

📒 Files selected for processing (1)
  • packages/react-native-device-activity/package.json (2 hunks)
🔇 Additional comments (1)
packages/react-native-device-activity/package.json (1)

3-3:

Details

❓ Verification inconclusive

Update CHANGELOG for version bump.

The version has been bumped from 0.4.30 to 0.4.31. Please ensure the project’s CHANGELOG or release notes are updated to document the changes, so consumers know what’s new in this patch.


🏁 Script executed:

#!/bin/bash
# List any changelog files in the react-native-device-activity package
echo "Package-level changelog files:"
find packages/react-native-device-activity -type f -iname '*changelog*'

# List any root-level changelog files
echo "Root-level changelog files:"
find . -maxdepth 1 -type f -iname '*changelog*'

# Search for the new version entry across all changelogs
echo "Searching for '0.4.31' in all CHANGELOG files:"
grep -R '0.4.31' -n --include '*changelog*' .

Length of output: 414


Update CHANGELOG for version bump

I didn’t find any CHANGELOG or release-notes file in packages/react-native-device-activity or at the repo root. Please verify where you document releases and add an entry for v0.4.31 to describe the patch changes so consumers know what’s new.

• Check for or create a CHANGELOG.md (or equivalent) in packages/react-native-device-activity or at the repo root
• Add a “0.4.31” section detailing fixes/enhancements since 0.4.30

"typecheck": "tsc --noEmit",
"test": "expo-module test",
"prepublishOnly": "expo-module prepublishOnly && tsc",
"prepublishOnly": "expo-module prepublishOnly && tsc && cp ../../README.md ./README.md",
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Make README copy cross-platform.

Using cp ../../README.md ./README.md will break on Windows. For reliable cross-platform behavior, consider a Node‐based approach or a small utility like copyfiles. For example:

 "scripts": {
-  "prepublishOnly": "expo-module prepublishOnly && tsc && cp ../../README.md ./README.md",
+  "prepublishOnly": "expo-module prepublishOnly && tsc && npm run copy-readme",
+  "copy-readme": "copyfiles -u 2 ../../README.md ./README.md"
 }

This ensures the README is copied correctly on all OSes.

Committable suggestion skipped: line range outside the PR's diff.

@robertherber robertherber merged commit 0f4d522 into main May 2, 2025
1 check passed
@robertherber robertherber deleted the add-readme-to-npm branch May 2, 2025 14:43
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.

2 participants