diff --git a/Assets/Amplitude/Amplitude.cs b/Assets/Amplitude/Amplitude.cs index 2adfa3f..9eb8ad7 100644 --- a/Assets/Amplitude/Amplitude.cs +++ b/Assets/Amplitude/Amplitude.cs @@ -175,7 +175,7 @@ public class Amplitude { private static extern void _Amplitude_appendUserPropertyLongArray(string instanceName, string property, long[] value, int length); [DllImport ("__Internal")] private static extern void _Amplitude_appendUserPropertyStringArray(string instanceName, string property, string[] value, int length); - //prepend + //prepend [DllImport ("__Internal")] private static extern void _Amplitude_prependUserPropertyBool(string instanceName, string property, bool value); [DllImport ("__Internal")] @@ -292,6 +292,7 @@ public class Amplitude { [DllImport ("__Internal")] private static extern void _Amplitude_removeUserPropertyStringArray(string instanceName, string property, string[] value, int length); #endif + public static Amplitude getInstance() { return getInstance(null); } diff --git a/Assets/Plugins/iOS/Amplitude/AmplitudeCWrapper.m b/Assets/Plugins/iOS/Amplitude/AmplitudeCWrapper.m index b13e372..7520411 100644 --- a/Assets/Plugins/iOS/Amplitude/AmplitudeCWrapper.m +++ b/Assets/Plugins/iOS/Amplitude/AmplitudeCWrapper.m @@ -588,7 +588,6 @@ void _Amplitude_appendUserPropertyStringArray(const char* instanceName, const ch [[Amplitude instanceWithName:ToNSString(instanceName)] identify:identify]; } -//prepend void _Amplitude_prependUserPropertyBool(const char* instanceName, const char* property, const bool value) { AMPIdentify *identify = [[AMPIdentify identify] prepend:ToNSString(property) value:[NSNumber numberWithBool:value]]; [[Amplitude instanceWithName:ToNSString(instanceName)] identify:identify]; @@ -693,7 +692,6 @@ void _Amplitude_prependUserPropertyStringArray(const char* instanceName, const c [[Amplitude instanceWithName:ToNSString(instanceName)] identify:identify]; } -//preInsert void _Amplitude_preInsertUserPropertyBool(const char* instanceName, const char* property, const bool value) { AMPIdentify *identify = [[AMPIdentify identify] preInsert:ToNSString(property) value:[NSNumber numberWithBool:value]]; [[Amplitude instanceWithName:ToNSString(instanceName)] identify:identify]; @@ -798,7 +796,6 @@ void _Amplitude_preInsertUserPropertyStringArray(const char* instanceName, const [[Amplitude instanceWithName:ToNSString(instanceName)] identify:identify]; } -//postInsert void _Amplitude_postInsertUserPropertyBool(const char* instanceName, const char* property, const bool value) { AMPIdentify *identify = [[AMPIdentify identify] postInsert:ToNSString(property) value:[NSNumber numberWithBool:value]]; [[Amplitude instanceWithName:ToNSString(instanceName)] identify:identify]; @@ -903,7 +900,6 @@ void _Amplitude_postInsertUserPropertyStringArray(const char* instanceName, cons [[Amplitude instanceWithName:ToNSString(instanceName)] identify:identify]; } -//remove void _Amplitude_removeUserPropertyBool(const char* instanceName, const char* property, const bool value) { AMPIdentify *identify = [[AMPIdentify identify] remove:ToNSString(property) value:[NSNumber numberWithBool:value]]; [[Amplitude instanceWithName:ToNSString(instanceName)] identify:identify]; diff --git a/ProjectSettings/AndroidResolverDependencies.xml b/ProjectSettings/AndroidResolverDependencies.xml index 73f78f2..6c0f59f 100644 --- a/ProjectSettings/AndroidResolverDependencies.xml +++ b/ProjectSettings/AndroidResolverDependencies.xml @@ -1,4 +1,4 @@ -t + com.amplitude:android-sdk:2.31.3 com.squareup.okhttp3:okhttp:4.2.2