faizalshap / react-native-otp-verify

React native sms verification without additional permissions
MIT License
239 stars 92 forks source link

fix: android build fail due to CREDENTIALS_API #109

Closed WooWan closed 6 months ago

WooWan commented 6 months ago

Fixes build error Build was failed, and i got following error:

`Note: Recompile with -Xlint:deprecation for details. /Users/steavenbc/Documents/codes/ws-mobile/ws-mobile/node_modules/react-native-otp-verify/android/src/main/java/com/faizal/OtpVerify/OtpVerifyModule.java:54: error: cannot find symbol .addApi(Auth.CREDENTIALS_API) ^ symbol: variable CREDENTIALS_API location: class Auth Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 1 error

FAILURE: Build failed with an exception.

What went wrong: Execution failed for task ':react-native-otp-verify:compileReleaseJavaWithJavac'.

fixes: #108

faizalshap commented 6 months ago

I am on it

shubhamdehaat commented 6 months ago

@faizalshap - Any way to make this work in older versions? Since the older version of my app has a good installation base.

faizalshap commented 6 months ago

Which version?

shubhamdehaat commented 6 months ago

Which version?

1.1.4 but I think that version is working fine. Please fix issue in 1.1.6

Piyush023 commented 6 months ago

Please Fix this issue asap

IndrakumarR commented 6 months ago

Working

how ?

i-am-dev-Siddhesh commented 6 months ago

\node_modules\react-native-otp-verify\android\src\main\java\com\faizal\OtpVerify\OtpVerifyModule.java:54: error: cannot find symbol .addApi(Auth.CREDENTIALS_API)

got above error. Please update as soon as possible

dravecky commented 6 months ago

@faizalshap please approve and merge asap

faizalshap commented 6 months ago

Ok

samcasmmm commented 5 months ago

having same issue with 1.1.4

KManiKumarReddy commented 5 months ago

having same issue with 1.1.4

there's no way it will automatically work for previous versions, if you need to definitely use old versions you need to either patch it or if possible set playServicesVersion or googlePlayServicesVersion in your build.gradle. Refer to this comment for more details: https://github.com/faizalshap/react-native-otp-verify/issues/108#issuecomment-1947943784

samcasmmm commented 5 months ago

updated to 1.1.6. now working. thanks for reply