achorein / expo-share-intent

🚀 Simple share intent in an Expo Native Module
MIT License
119 stars 10 forks source link

App build fails on Expo v51 #58

Closed dr-zr closed 2 months ago

dr-zr commented 2 months ago

After updating Expo to v51 the library reports the following warning:

» android: expo-share-intent: your Expo SDK version does not match requirements! v1.5.2 needs ^50, found 51.0.0. Please refer to the compatibility table. https://github.com/achorein/expo-share-intent/#versioning

Soon after gradle starts building the app the following error appears:

[RUN_GRADLEW] * What went wrong:
[RUN_GRADLEW] A problem occurred evaluating project ':expo'.
[RUN_GRADLEW] > A problem occurred configuring project ':expo-share-intent'.
[RUN_GRADLEW]    > Failed to notify project evaluation listener.
[RUN_GRADLEW]       > compileSdkVersion is not specified. Please add it to build.gradle
[RUN_GRADLEW]       > Could not get unknown property 'release' for SoftwareComponent container of type org.gradle.api.internal.component.DefaultSoftwareComponentContainer.
[RUN_GRADLEW] * Try:
[RUN_GRADLEW] > Run with --stacktrace option to get the stack trace.
[RUN_GRADLEW] > Run with --info or --debug option to get more log output.
[RUN_GRADLEW] > Run with --scan to get full insights.
[RUN_GRADLEW] > Get more help at https://help.gradle.org.
[RUN_GRADLEW] ==============================================================================
[RUN_GRADLEW] 2: Task failed with an exception.
[RUN_GRADLEW] -----------
[RUN_GRADLEW] * Where:
[RUN_GRADLEW] Script '/private/var/folders/g8/v5pcrf9d3gd27n0pq0737jrh0000gn/T/eas-build-local-nodejs/8f5a95c2-435f-4a92-890d-6ce5db14afaf/build/node_modules/expo-modules-core/android/ExpoModulesCorePlugin.gradle' line: 85
[RUN_GRADLEW] * What went wrong:
[RUN_GRADLEW] A problem occurred configuring project ':expo'.
[RUN_GRADLEW] > Could not get unknown property 'release' for SoftwareComponent container of type org.gradle.api.internal.component.DefaultSoftwareComponentContainer.
[RUN_GRADLEW] * Try:
[RUN_GRADLEW] > Run with --stacktrace option to get the stack trace.
[RUN_GRADLEW] > Run with --info or --debug option to get more log output.
[RUN_GRADLEW] > Run with --scan to get full insights.
[RUN_GRADLEW] > Get more help at https://help.gradle.org.
[RUN_GRADLEW] ==============================================================================
[RUN_GRADLEW] BUILD FAILED in 23s
achorein commented 2 months ago

This package is not compatible yet. I will provide a new expo 51 version soon.

uamcloudadrian commented 2 months ago

Thank you for working on this feature in Pull Request #59

thank you very much 🤓

achorein commented 2 months ago

Expo 51 is now supported in the v2.0.0 release ! Let me know if you have any other issue with it.