Skip to content

Commit 62ccd46

Browse files
committed
fix: update Android's info() usages
- open the upper bound for the transitive android-core dependency
1 parent bd63ad8 commit 62ccd46

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ dependencies {
4747
//
4848
// (See https://github.com/mparticle/mparticle-android-sdk for the latest version)
4949
//
50-
compileOnly 'com.mparticle:android-core:[5.9.3, 5.38.2]'
50+
compileOnly 'com.mparticle:android-core:[5.9.3, )'
5151

5252
//
5353
// And, if you want to include kits, you can do so as follows:

android/src/main/java/com/mparticle/react/MParticleModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void logEvent(final String name, int type, final ReadableMap attributesMa
6868
MParticle.EventType eventType = ConvertEventType(type);
6969

7070
MPEvent event = new MPEvent.Builder(name, eventType)
71-
.info(attributes)
71+
.customAttributes(attributes)
7272
.build();
7373
MParticle.getInstance().logEvent(event);
7474
}
@@ -510,7 +510,7 @@ private static MPEvent ConvertMPEvent(ReadableMap map) {
510510
if (map.hasKey("info")) {
511511
ReadableMap customInfoMap = map.getMap("info");
512512
Map<String, String> customInfo = ConvertStringMap(customInfoMap);
513-
builder.info(customInfo);
513+
builder.customAttributes(customInfo);
514514
}
515515

516516
if (map.hasKey("customFlags")) {

0 commit comments

Comments
 (0)