hirbod / react-native-volume-manager

React Native module which adds the ability to change the system volume on iOS and Android, listen to volume changes and supress the native volume UI to build your own volume slider or UX. It can listen to iOS mute switch and ringer mode changes on Android (and let you set the ringer mode)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Upgrade kotlin version for react-native-volume-manager to support kotlin-android-extensions plugin 1.6.20

MartsTech opened this issue · comments

Description

The Android Gradle plugin requires kotlin-android-extensions Gradle plugin version 1.6.20 or higher. However, the current version of the react-native-volume-manager dependency is using org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10, which does not satisfy the required version. As a result, building the project fails with the following error message:

The Android Gradle plugin supports only kotlin-android-extensions Gradle plugin version 1.6.20 and higher. The following dependencies do not satisfy the required version: project ':react-native-volume-manager' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10.

Solution:

To resolve this issue, we need to upgrade the kotlin version to 1.6.20 or higher in the react-native-volume-manager dependency. This can be achieved by updating the version number of the kotlin-gradle-plugin in the build.gradle file of the react-native-volume-manager module to 1.6.20 or higher.

commented

Thanks for raising this. I'll take care this weekend. This will most likely target RN 0.71+ only though, so I'll make a breaking change release.

Hi @hirbod, just checking in to see if there has been any progress on upgrading the kotlin version for react-native-volume-manager. Thank you for looking into this issue!

commented

Sorry @MartsTech I was caught up and will be back after easter. Will tackle this after.

commented

Hi @MartsTech, I started working on it. Expect a release soon!

Hi @hirbod, Is there any ETA for this fix?

commented

New release is ready in ~1 hour

commented

Version 1.3.0 has been released. This issue is resolved now.