Skip to content

feat: Add support for RN 0.72 #519

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

Closed
wants to merge 1 commit into from
Closed

Conversation

mrousavy
Copy link

@mrousavy mrousavy commented Jul 3, 2023

Adds namespace to build.gradle (this is required by Gradle 8, which RN 0.72 uses)

Adds `namespace` to `build.gradle` (this is required by Gradle 8, which RN 0.72 uses)
@@ -31,6 +31,7 @@ def getExtOrIntegerDefault(name) {
}

android {
namespace 'com.reactnativecommunity.slider'

Choose a reason for hiding this comment

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

Might be better to check for the agp version

Suggested change
namespace 'com.reactnativecommunity.slider'
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
namespace "com.reactnativecommunity.slider"
}

Copy link
Member

Choose a reason for hiding this comment

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

It's only available from 7.3+, not 7, so this check will fail if user is on an older version.

@satya164
Copy link
Member

Here is the diff that accounts for backward compatibility and avoids warnings https://gist.github.com/satya164/e508e1be04650a68d76a993f5384ffd0

@BartoszKlonowski
Copy link
Member

Superseded by #553

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.

5 participants