Skip to content

Commit 0677344

Browse files
feat(android): Use android.namespace for AGP 8 and RN 0.73 (#3133)
Co-authored-by: Peter Lazar <[email protected]> Co-authored-by: Kryštof Woldřich <[email protected]>
1 parent f93cfbe commit 0677344

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Features
6+
7+
- Use `android.namespace` for AGP 8 and RN 0.73 ([#3133](https://github.com/getsentry/sentry-react-native/pull/3133))
8+
59
### Dependencies
610

711
- Bump JavaScript SDK from v7.54.0 to v7.56.0 ([#3119](https://github.com/getsentry/sentry-react-native/pull/3119))

android/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ if (isNewArchitectureEnabled()) {
1414
android {
1515
compileSdkVersion safeExtGet('compileSdkVersion', 31)
1616

17+
// Conditional for compatibility with AGP <4.2.
18+
if (project.android.hasProperty("namespace")) {
19+
namespace = "io.sentry.react"
20+
}
21+
1722
defaultConfig {
1823
minSdkVersion safeExtGet('minSdkVersion', 21)
1924
targetSdkVersion safeExtGet('targetSdkVersion', 31)

0 commit comments

Comments
 (0)