Skip to content

Conversation

@mfazekas
Copy link
Collaborator

Summary

  • Adds optional SPM integration for RiveRuntime 6.15.0 (experimental API)
  • Implements RiveFile.getEnums() using the new @_spi(RiveExperimental) API on iOS
  • Android uses existing File.enums property
  • Conditional compilation (#if RIVE_EXPERIMENTAL_API) ensures backward compatibility with CocoaPods

Usage

USE_RIVE_SPM=1 pod install

Without the flag, getEnums() throws "not implemented".

return Promise.async {
val file = riveFile ?: return@async emptyArray()
try {
file.enums.map { enum ->
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [ktlint] standard:chain-method-continuation reported by reviewdog 🐶
Expected newline before '.'

@mfazekas mfazekas force-pushed the feat/rive-ios-experimental branch from 491c96b to 95816cf Compare January 23, 2026 11:15
Add RiveFile.getEnums() to retrieve enum definitions from Rive files.
iOS uses the new experimental API (RiveRuntime 6.15.0 via SPM),
Android uses existing File.enums property.
Conditional compilation ensures it builds with both SPM and CocoaPods.
Set USE_RIVE_SPM=1 with pod install to enable.
@mfazekas mfazekas force-pushed the feat/rive-ios-experimental branch from 95816cf to 4fe9e12 Compare January 23, 2026 11:23
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