Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

peterlazar1993
Copy link

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

OS Implemented
iOS
Android

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!

@@ -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">

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

Copy link
Member

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"
Copy link
Member

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'
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jdnichollsc
Copy link
Member

@peterlazar1993 thanks for your contribution, I added some comments, please let me know and thanks for your help! <3

@jdnichollsc
Copy link
Member

I want to publish a new version of this lib after fixing this issue 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants