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

fix(android): declare namespace / buildconfig options for gradle plugin 8+ compatibility #329

Closed ivanignatiev closed 1 year ago

ivanignatiev commented 1 year ago

Change is required as per announce in community: https://github.com/react-native-community/discussions-and-proposals/issues/671

Fixes #328

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.

OHHAKO commented 1 year ago

@ivanignatiev hi, thanks for fixing it! you specified the agp version. but why? I contributed to another repository, but didn't use the terms like you. Because of course I didn't know it was necessary.

def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION if (agpVersion.tokenize('.')[0].toInteger() >= 7)

ivanignatiev commented 1 year ago

@OHHAKO hi !

I am not sure that it is really really necessary (I am not Java/Grandle expert). Before React Native requirements upgrades, the namespace was taken from AndroidManifest.xml.

For me, it is just a safe formula for backward compatibility for guys who will use the module with older versions of React Native.

mikehardy commented 1 year ago

After updating the example app + CI so things would actually build, I pulled this and ran it locally, and it works fine. CI will check it after a merge to main as well