Skip to content

feat: implement votd API endpoint for Kotlin#19

Merged
sidorchukandrew merged 2 commits into
mainfrom
as/votd-api
Nov 29, 2025
Merged

feat: implement votd API endpoint for Kotlin#19
sidorchukandrew merged 2 commits into
mainfrom
as/votd-api

Conversation

@sidorchukandrew

Copy link
Copy Markdown
Collaborator

Description

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation update
  • refactor: Code refactoring (no functional changes)
  • perf: Performance improvement
  • test: Test additions or updates
  • build: Build system or dependency changes
  • ci: CI configuration changes
  • chore: Other changes (maintenance, etc.)

Breaking Changes

  • This PR contains BREAKING CHANGES

Breaking Change Details:

Migration Guide:

Checklist

  • My code follows the project's code style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • All commit messages follow conventional commits format
  • I have updated the appropriate section in documentation (if needed)

Conventional Commits

All commits in this PR follow conventional commit format:

<type>(<scope>): <subject>

[optional body]

[optional footer]

Example commit messages:

  • feat(api): add Bible verse lookup method
  • fix(auth): resolve token refresh race condition
  • docs: update installation instructions

For breaking changes:

  • feat(api)!: redesign Bible content API

See CONTRIBUTING.md for detailed guidelines.

Related Issues

Closes https://lifechurch.atlassian.net/browse/YPE-757
Relates to #

Additional Context

Reviewer Notes

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements the Verse of the Day (VOTD) API endpoint for the Android/Kotlin side of the React Native SDK, providing feature parity with the existing iOS implementation.

  • Adds YVPVotdApi object with a suspend function to fetch verse of the day data from the platform core API
  • Introduces YouVersionVerseOfTheDayRecord data class to properly map the response to Expo modules' Record type
  • Exposes the verseOfTheDay async function in the React Native module using Expo's Coroutine support

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
android/src/main/java/com/youversion/reactnativesdk/api/YVPVotdApi.kt Implements the API layer that calls the platform core VOTD API and returns the mapped record
android/src/main/java/com/youversion/reactnativesdk/api/YVPRecords.kt Defines the YouVersionVerseOfTheDayRecord data class that maps the platform model to an Expo-compatible Record
android/src/main/java/com/youversion/reactnativesdk/RNYouVersionPlatformModule.kt Registers the verseOfTheDay async function as a coroutine-based module function

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread android/src/main/java/com/youversion/reactnativesdk/api/YVPVotdApi.kt Outdated
Comment thread android/src/main/java/com/youversion/reactnativesdk/api/YVPRecords.kt Outdated
Comment thread android/src/main/java/com/youversion/reactnativesdk/RNYouVersionPlatformModule.kt Outdated
@mic-mart

Copy link
Copy Markdown
Collaborator

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@dsrees dsrees left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I have no other comments on this PR but I'm also not as involved in the RN SDK so I'll defer to others for a final review

@mic-mart mic-mart left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I made some comments, but no definite blockers.

Base automatically changed from as/set-api-host to main November 29, 2025 18:01
@sidorchukandrew sidorchukandrew merged commit 59e6874 into main Nov 29, 2025
1 check passed
@sidorchukandrew sidorchukandrew deleted the as/votd-api branch November 29, 2025 18:02
jhampton pushed a commit that referenced this pull request Jan 16, 2026
## 0.8.0 (2026-01-16)

* chore: Depend on most recent Swift SDK version and update breaking changes (#27) ([a042211](a042211)), closes [#27](#27)
* chore(ci): Disable NPM tokens in release workflow (#28) ([c63c21a](c63c21a)), closes [#28](#28)
* chore(ci): update semantic-release to support OIDC workflow (#29) ([de337dc](de337dc)), closes [#29](#29)
* chore(ci): YPE-1050 Modify release.yml for permissions and Node.js version ([2c86c6f](2c86c6f))
* Add NODE_AUTH_TOKEN to release workflow ([2bdc89c](2bdc89c))
* Add provenance option to npm release configuration ([d746acf](d746acf))
* Enable NPM_CONFIG_PROVENANCE in release workflow ([e027853](e027853))
* Update Node.js version and add NPM upgrade step ([ee94aa2](ee94aa2))
* feat: add support for `configure` in Kotlin (#16) ([d9bca2d](d9bca2d)), closes [#16](#16)
* feat: implement `setApiHost` and `getAccessToken` in Kotlin (#17) ([a4ee43c](a4ee43c)), closes [#17](#17)
* feat: Implement `SignInWithYouVersionButton` for Kotlin (#26) ([5072471](5072471)), closes [#26](#26)
* feat: Implement API utils for Kotlin/Android (#25) ([9a88926](9a88926)), closes [#25](#25)
* feat: implement votd API endpoint for Kotlin (#19) ([59e6874](59e6874)), closes [#19](#19)
* docs: add AI agent code review guidelines (#23) ([8218cec](8218cec)), closes [#23](#23)
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 0.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants