Skip to content

Commit c84d03a

Browse files
jamesnroktclaude
andauthored
fix: bound android kit upper version in expo config plugin (#332)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent cd3494d commit c84d03a

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

plugin/src/withMParticleAndroid.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,12 @@ const withMParticleAppBuildGradle: ConfigPlugin<MParticlePluginProps> = (
364364
}
365365

366366
// Generate kit dependency lines
367-
// Use + for version to auto-match core SDK version
367+
// Bounded range matches the core SDK range in android/build.gradle so the
368+
// kit and core stay paired on a 5.x line. An unbounded `+` would resolve
369+
// to a pre-release (e.g. 6.0.0-rc.1) and transitively drag the core past
370+
// the bridge's compiled-against API surface.
368371
const kitDependencies = props.androidKits
369-
.map(kit => ` implementation "com.mparticle:${kit}:+"`)
372+
.map(kit => ` implementation "com.mparticle:${kit}:[5.79.0, 6.0)"`)
370373
.join('\n');
371374

372375
// Use mergeContents for idempotent injection

0 commit comments

Comments
 (0)