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

chore: bump iOS and Android dependencies to get latest bug fixes #232

Merged
merged 2 commits into from
Apr 4, 2024

Conversation

philter
Copy link
Contributor

@philter philter commented Apr 3, 2024

Bumping iOS to 5.10.0 and Android 9.3.0

Notes:

  • Needed to bump the minSDKVersion to 24 to resolve dexing errors when building. Its possible there were other dependency conflicts which weren't obvious, so perhaps this change isn't necessary.

@@ -31,7 +31,7 @@ android {
compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
buildToolsVersion getExtOrDefault('buildToolsVersion')
defaultConfig {
minSdkVersion 21
minSdkVersion 24
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This solved the following error:

Execution failed for task ':app:mergeExtDexDebug'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform rive-android-9.2.2.aar (app.rive:rive-android:9.2.2) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=21, org.gradle.category=library, org.gradle.status=release, org.gradle.usage=java-runtime, org.jetbrains.kotlin.platform.type=androidJvm}.
      > Execution failed for DexingWithClasspathTransform: /Users/philrive/.gradle/caches/transforms-3/defcb3a484b64167fc84e6cd1cef719b/transformed/jetified-rive-android-9.2.2-runtime.jar.
         > Error while dexing.
   > Failed to transform kotlin-stdlib-1.9.22.jar (org.jetbrains.kotlin:kotlin-stdlib:1.9.22) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=21, org.gradle.category=library, org.gradle.jvm.environment=standard-jvm, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime, org.jetbrains.kotlin.platform.type=jvm}.
      > Execution failed for DexingWithClasspathTransform: /Users/philrive/.gradle/caches/transforms-3/755bc55d71b5f70c0d2fe3d2d5f63094/transformed/jetified-kotlin-stdlib-1.9.22.jar.
         > Error while dexing.

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 we don't need to update the minSDKVersion here, and it'll only be needed in the example/build.gradle to get the example compiling.

I also suspect that there is just some other config we need to update in the example project, instead of bumping the minSDK.

@@ -135,7 +135,7 @@ dependencies {
implementation 'androidx.core:core-ktx:1.12.0'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1'
implementation 'app.rive:rive-android:8.7.0'
implementation 'app.rive:rive-android:9.2.2'
Copy link
Contributor

@umberto-sonnino umberto-sonnino Apr 3, 2024

Choose a reason for hiding this comment

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

🚀
Although, I think the latest is 9.3.0?

Copy link
Contributor

@umberto-sonnino umberto-sonnino left a comment

Choose a reason for hiding this comment

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

Woot, thanks for sorting this out!
Does this also need an OOB test/example for folks that want to figure how to use it?

@philter
Copy link
Contributor Author

philter commented Apr 3, 2024

Woot, thanks for sorting this out! Does this also need an OOB test/example for folks that want to figure how to use it?

I haven't added any code in this commit to expose OOB to the React layer. Looks like @zplata had a start to it here for iOS.

Copy link
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! Thanks for getting this in

@philter philter merged commit 0d32be5 into main Apr 4, 2024
1 check passed
@philter philter deleted the bump_ios_android_latest branch April 4, 2024 18:48
@anirudhsama
Copy link

Hi, is a new release with these changes coming soon? Thanks!

@philter
Copy link
Contributor Author

philter commented Apr 8, 2024

@anirudhsama Release 7.0.0 has been published!

@anirudhsama
Copy link

Thank you very much 🙏

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.

4 participants