react-native-disable-battery-optimizations-android icon indicating copy to clipboard operation
react-native-disable-battery-optimizations-android copied to clipboard

Lib is not being installed because of usage of compile in build.gradle

Open roni-castro opened this issue 1 year ago • 0 comments

I tried installing the lib in an app with react-native 0.69 version, but it's not allowing me to build the app because it's using the compile keyword, which was removed in grade 7 Screenshot 2024-06-05 at 12 01 54

Error message Screenshot 2024-06-05 at 12 15 23

I believe the solution would be to generate a new lib version, as this PR was merged, but never deployed, and the latest release is from 2019

Installing the lib like this in package.json is the only solution for now

"react-native-disable-battery-optimizations-android": "https://github.com/rasheedk/react-native-disable-battery-optimizations-android#master"

roni-castro avatar Jun 05 '24 15:06 roni-castro