-
-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(android): 🌟 add support for React Native 0.73 #421
Conversation
@@ -1,13 +1,11 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |||
package="com.proyecto26.inappbrowser"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does remove backwards compatability
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@peterlazar1993 please revert this 🙏
@@ -27,6 +27,7 @@ def DEFAULT_MIN_SDK_VERSION = 16 | |||
def DEFAULT_TARGET_SDK_VERSION = 31 | |||
|
|||
android { | |||
namespace = "com.proyecto26.inappbrowser" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you verify the gradle plugin version to have backward compatability please? e.g:
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')[0].toInteger()
if (agpVersion >= 7) {
namespace 'com.proyecto26.inappbrowser'
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More examples here:
- https://github.com/th3rdwave/react-native-safe-area-context/blob/main/android/build.gradle#L43
- https://github.com/react-native-netinfo/react-native-netinfo/blob/master/android/build.gradle#L34
- https://github.com/invertase/react-native-firebase/blob/main/packages/app/android/build.gradle#L62
@peterlazar1993 thanks for your contribution, I added some comments, please let me know and thanks for your help! <3 |
I want to publish a new version of this lib after fixing this issue 🙏 |
Overview
Starting from React Native v0.73 , all libraries will need to be updated with namespace due to the upgrade to AGP 8
react-native-community/discussions-and-proposals#671
Test Plan
I tested the changes on RN 0.71.11 and everything works!
Sorry I did not use the default template. I felt that the default template does not apply to this, I'll follow the template if required!