invertase / react-native-apple-authentication

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

Had a problem with gradle-plugin #308

Closed evaei closed 2 years ago

evaei commented 2 years 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 2 years 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 2 years 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