invertase / react-native-apple-authentication

A React Native library providing support for Apple Authentication on iOS and Android.
Other
1.36k stars 215 forks source link

Had a problem with gradle-plugin #308

Closed evaei closed 1 year ago

evaei commented 1 year ago

I am using RN version 0.64 and this module version is 2.1.2 I also tried updated to latest version but it not working last Friday It was working fine.

image

How can I solve this problem

rawatnaresh commented 1 year ago

adding this solution fixed it for me https://github.com/facebook/react-native/issues/35210#issuecomment-1304536693

def REACT_NATIVE_VERSION = new File(['node', '--print',"JSON.parse(require('fs').readFileSync(require.resolve('react-native/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim())

allprojects {
    configurations.all {
        resolutionStrategy {
            // Remove this override in 0.66, as a proper fix is included in react-native itself.
            force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
        }
    }
mikehardy commented 1 year ago

Right, this is a problem not related to this module. This module compiles just fine on android assuming react-native is working, https://github.com/facebook/react-native/issues/35210 is the right place to go for that