Skip to content

Commit

Permalink
style and type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhao900914 committed May 10, 2021
1 parent 3fcbc6b commit 4ebd97b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Assets/Amplitude/Amplitude.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down Expand Up @@ -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);
}
Expand Down
4 changes: 0 additions & 4 deletions Assets/Plugins/iOS/Amplitude/AmplitudeCWrapper.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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];
Expand Down Expand Up @@ -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];
Expand Down Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion ProjectSettings/AndroidResolverDependencies.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
t <dependencies>
<dependencies>
<packages>
<package>com.amplitude:android-sdk:2.31.3</package>
<package>com.squareup.okhttp3:okhttp:4.2.2</package>
Expand Down

0 comments on commit 4ebd97b

Please sign in to comment.