Skip to content

chore: add support to customize ios and android sdk versions#4

Merged
mfazekas merged 1 commit intomainfrom
mfazekas/custom-native-version
Oct 30, 2025
Merged

chore: add support to customize ios and android sdk versions#4
mfazekas merged 1 commit intomainfrom
mfazekas/custom-native-version

Conversation

@mfazekas
Copy link
Copy Markdown
Collaborator

Adds support for customizing Rive native SDK versions on iOS and Android.

  • default native sdk versions moved to package.json (runtimeVersions.ios and runtimeVersions.android)
  • allow users to customize the versions. In ios/Podfile.properties.jsonset "RiveRuntimeIOSVersion":"6.13.0" key. In android/gradle.properties Rive_RiveRuntimeAndroidVersion=10.6.0

@mfazekas mfazekas marked this pull request as ready for review October 29, 2025 18:34
@mfazekas mfazekas requested a review from HayesGordon October 29, 2025 18:34
"url": "https://github.com/rive-app/rive-nitro-react-native/issues"
},
"homepage": "https://github.com/rive-app/rive-nitro-react-native#readme",
"runtimeVersions": {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

So nice

def kotlin_version = getExtOrDefault("kotlinVersion")

def getRiveAndroidVersion() {
if (rootProject.ext.has('RiveRuntimeAndroidVersion')) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

When/how will this be set? Should we document this option as well?

I see on iOS we also have an environment option. Does Android need the same?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I've looked into various libraries, some use this ext method some env variables. iOS/Podfile.properties.json, android/gradle.properties sounds the most straightforward to me considering expo, I've documented only that.

Not sure we need all 3. What do you think?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No, I also don't think we need all the options. But is there then an argument to remove the option completely. Instead of just not documenting?


rive_ios_version = nil

if ENV['RIVE_RUNTIME_IOS_VERSION']
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we document the environment option as well?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Or alternatively simplify and only support one option (for now)

Copy link
Copy Markdown
Contributor

@HayesGordon HayesGordon left a comment

Choose a reason for hiding this comment

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

LGTM! Some questions about docs and unifying iOS and Android - but likely my misunderstanding.

What do we think of exposing the same to the old Rive React Native runtime?

@mfazekas mfazekas merged commit 34c2053 into main Oct 30, 2025
5 checks passed
@mfazekas
Copy link
Copy Markdown
Collaborator Author

What do we think of exposing the same to the old Rive React Native runtime?

Yes we should do that, for sure!

@HayesGordon HayesGordon deleted the mfazekas/custom-native-version branch December 9, 2025 16:25
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