Skip to content

Commit efc6cd4

Browse files
MarcinusXclaude
andauthored
fix(android): use a unique namespace to avoid collision with analytics-kotlin (#215)
The core plugin declared namespace 'com.segment.analytics', which is also the manifest package of com.segment.analytics.kotlin:android. When both end up in an app's dependency graph (e.g. via an SDK that embeds analytics-kotlin), AGP 9 fails the build with a duplicate-namespace manifest-merger error. Rename to com.segment.analytics.flutter and drop the deprecated manifest package= attribute. Dart API and Kotlin source packages are unchanged. Fixes #214 Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 934541d commit efc6cd4

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎packages/core/android/build.gradle‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ apply plugin: 'com.android.library'
2525
apply plugin: 'kotlin-android'
2626

2727
android {
28-
namespace 'com.segment.analytics'
28+
namespace 'com.segment.analytics.flutter'
2929
compileSdkVersion 35 //Patch for for Github issue #147
3030

3131
compileOptions {
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.segment.analytics">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
</manifest>

0 commit comments

Comments
 (0)