Skip to content

Commit 8bc65be

Browse files
committed
Method conflicts with System.Net package
Method is not used yet so removing until a fix can be found.
1 parent d4f801e commit 8bc65be

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

source/Plugins/GoogleAnalyticsV3/GAIHandler.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -114,17 +114,6 @@ public string _get(string parameterName){
114114
return get(parameterName);
115115
}
116116

117-
[DllImport("__Internal")]
118-
private static extern void send(string parametersString);
119-
public void _send(Dictionary<string, string> parameters){
120-
string parametersString = "";
121-
foreach(KeyValuePair<string, string> kvp in parameters)
122-
{
123-
parametersString += kvp.Key + "=" + kvp.Value + "\n";
124-
}
125-
send(parametersString);
126-
}
127-
128117
[DllImport("__Internal")]
129118
private static extern void dispatch();
130119
public void _dispatchHits(){
@@ -149,7 +138,6 @@ public void _sendEvent(EventHitBuilder builder){
149138
sendEvent(builder.GetEventCategory(), builder.GetEventAction(), builder.GetEventLabel(), builder.GetEventValue());
150139
}
151140

152-
//NOT TESTED
153141
[DllImport("__Internal")]
154142
private static extern void sendTransaction(string transactionID, string affiliation, double revenue, double tax, double shipping, string currencyCode);
155143
public void _sendTransaction(TransactionHitBuilder builder){

source/Plugins/iOS/GAIHandler.m

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -238,22 +238,4 @@ void sendTiming(const char * timingCategory, const long long timingInterval, con
238238
[tracker send:[builder build]];
239239
}
240240

241-
void send(const char* parameters) {
242-
id tracker = [[GAI sharedInstance] defaultTracker];
243-
NSString *attris = [NSString stringWithUTF8String:parameters];
244-
NSArray *attributesArray = [attris componentsSeparatedByString:@"\n"];
245-
246-
NSMutableDictionary *oAttributes = [[NSMutableDictionary alloc] init];
247-
for (int i=0; i < [attributesArray count]; i++) {
248-
NSString *keyValuePair = [attributesArray objectAtIndex:i];
249-
NSRange range = [keyValuePair rangeOfString:@"="];
250-
if (range.location != NSNotFound) {
251-
NSString *key = [keyValuePair substringToIndex:range.location];
252-
NSString *value = [keyValuePair substringFromIndex:range.location+1];
253-
[oAttributes setObject:value forKey:key];
254-
}
255-
}
256-
[tracker send:oAttributes];
257-
}
258-
259241
@end

0 commit comments

Comments
 (0)