killserver / react-native-screenshot-prevent

MIT License
98 stars 38 forks source link

Upgrade causing stack overflow error #14

Closed smbryar closed 1 year ago

smbryar commented 1 year ago

I have upgraded from v1.0.7 to v1.0.9 and am now getting these build failures when building using eas. I believe it is an issue with v1.0.8 but I am not sure.

/home/expo/workingdir/build/node_modules/react-native-screenshot-prevent/android/src/main/java/com/killserver/screenshotprev/RNScreenshotPreventModule.java:28: error: cannot find symbol
      final Activity activity = this.reactContext.getCurrentActivity();
            ^
  symbol:   class Activity
  location: class RNScreenshotPreventModule
Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)
killserver commented 1 year ago

thx. upload fix to npm in version 1.0.10. pls - check

riorafe commented 1 year ago

Still get an error after upgrading to 1.0.10 @killserver image

image

killserver commented 1 year ago

Still get an error after upgrading to 1.0.10 @killserver image

image

thx. fix this bug in 1.0.11 version. pls - try

riorafe commented 1 year ago

Thankyou @killserver Android build has succeded, Im testing on android and IOS. I will update to you soon.

riorafe commented 1 year ago

Tested on android and IOS, build succeed and working properly 👍🏻 Thankyou very much @killserver