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

Add namespace in build.gradle for RN 73 compatibility #190

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add namespace in build.gradle for RN 73 compatibility
  • Loading branch information
VelocityPulse committed Apr 12, 2024
commit d536051e8ed4836b66e8e67c7b252bb445e0acf7
5 changes: 5 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
apply plugin: 'com.android.library'

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

compileSdkVersion project.hasProperty('compileSdkVersion') ? project.compileSdkVersion : 27
buildToolsVersion project.hasProperty('buildToolsVersion') ? project.buildToolsVersion : "27.0.3"

Expand Down
6 changes: 1 addition & 5 deletions android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.rollbar">

</manifest>
<manifest package="com.rollbar" />