diff --git a/MixpanelReactNative.podspec b/MixpanelReactNative.podspec index 95f1b2fa..89463d00 100644 --- a/MixpanelReactNative.podspec +++ b/MixpanelReactNative.podspec @@ -19,5 +19,5 @@ Pod::Spec.new do |s| s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } s.dependency "React-Core" - s.dependency "Mixpanel-swift", '4.2.4' + s.dependency "Mixpanel-swift", '4.2.5' end diff --git a/android/build.gradle b/android/build.gradle index 2ccee745..28e50b12 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -13,9 +13,9 @@ apply plugin: 'com.android.library' android { compileSdkVersion 33 buildToolsVersion "30.0.3" - + def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION - + if (agpVersion.tokenize('.')[0].toInteger() >= 7) { namespace "com.mixpanel.reactnative" } @@ -41,5 +41,5 @@ repositories { dependencies { implementation 'com.facebook.react:react-native:+' - implementation 'com.mixpanel.android:mixpanel-android:7.3.2' + implementation 'com.mixpanel.android:mixpanel-android:7.5.0' } diff --git a/index.js b/index.js index 4b9ac418..902f19f4 100644 --- a/index.js +++ b/index.js @@ -300,7 +300,7 @@ export class Mixpanel { if (!ObjectHelper.isValidOrUndefined(properties)) { ObjectHelper.raiseError(PARAMS.PROPERTIES); } - MixpanelReactNative.track(this.token, eventName, { + this.mixpanelImpl.track(this.token, eventName, { ...Helper.getMetaData(), ...properties, }); @@ -343,7 +343,7 @@ export class Mixpanel { if (!ObjectHelper.isValidOrUndefined(properties)) { ObjectHelper.raiseError(PARAMS.PROPERTIES); } - MixpanelReactNative.trackWithGroups( + this.mixpanelImpl.trackWithGroups( this.token, eventName, {