增加fb的appevent上传, 升级google和facebook的包
This commit is contained in:
parent
c35e684acb
commit
30964adfad
@ -10,6 +10,7 @@
|
|||||||
#import "UIViewController+Logger.h"
|
#import "UIViewController+Logger.h"
|
||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
#import "NSString+Customer.h"
|
#import "NSString+Customer.h"
|
||||||
|
#import <FBSDKCoreKit/FBSDKCoreKit.h>
|
||||||
@import FirebaseAnalytics;
|
@import FirebaseAnalytics;
|
||||||
|
|
||||||
@implementation UIViewController (Logger)
|
@implementation UIViewController (Logger)
|
||||||
@ -39,13 +40,13 @@
|
|||||||
}
|
}
|
||||||
NSString *name = jsonDict[@"name"];
|
NSString *name = jsonDict[@"name"];
|
||||||
if ([NSString isStringEmpty:name]) {
|
if ([NSString isStringEmpty:name]) {
|
||||||
name = @"name";
|
name = @"custom_event";
|
||||||
}
|
}
|
||||||
[FIRAnalytics logEventWithName:@"custom_event" parameters:@{
|
[FIRAnalytics logEventWithName: name parameters: jsonDict];
|
||||||
@"content": content
|
[[FBSDKAppEvents shared] logEvent: name parameters: jsonDict];
|
||||||
}];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
extern "C" void nativeLogEvent(const char *content) {
|
extern "C" void nativeLogEvent(const char *content) {
|
||||||
NSString *contentStr = [NSString stringWithCString:content encoding: NSUTF8StringEncoding];
|
NSString *contentStr = [NSString stringWithCString:content encoding: NSUTF8StringEncoding];
|
||||||
dispatch_async(dispatch_get_main_queue(), ^{
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
|
@ -59,6 +59,8 @@
|
|||||||
<string>3e29f2606ae15a99bb3824d2ef1a9d0b</string>
|
<string>3e29f2606ae15a99bb3824d2ef1a9d0b</string>
|
||||||
<key>FacebookDisplayName</key>
|
<key>FacebookDisplayName</key>
|
||||||
<string>CEBG</string>
|
<string>CEBG</string>
|
||||||
|
<key>FacebookAutoLogAppEventsEnabled</key>
|
||||||
|
<true/>
|
||||||
<key>LSApplicationQueriesSchemes</key>
|
<key>LSApplicationQueriesSchemes</key>
|
||||||
<array>
|
<array>
|
||||||
<string>fbapi</string>
|
<string>fbapi</string>
|
||||||
|
2
Podfile
2
Podfile
@ -1,4 +1,4 @@
|
|||||||
platform :ios, '9.0'
|
platform :ios, '12.0'
|
||||||
use_frameworks!
|
use_frameworks!
|
||||||
|
|
||||||
target 'Unity-iPhone' do
|
target 'Unity-iPhone' do
|
||||||
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -180,5 +180,53 @@
|
|||||||
landmarkType = "9">
|
landmarkType = "9">
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
</BreakpointProxy>
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
uuid = "F0E66E91-A0D4-413E-A47A-7D94782DDEE0"
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Classes_cocos/UIViewController+Logger.mm"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "32"
|
||||||
|
endingLineNumber = "32"
|
||||||
|
landmarkName = "-logEvent:"
|
||||||
|
landmarkType = "7">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
uuid = "196DD24B-12E2-4F6C-A3D6-D305C921996C"
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Classes_cocos/UIViewController+Logger.mm"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "45"
|
||||||
|
endingLineNumber = "45"
|
||||||
|
landmarkName = "-logEvent:"
|
||||||
|
landmarkType = "7">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
uuid = "891AD390-7124-4EFA-B40D-9730394DF38B"
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Classes/UnityAppController.mm"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "402"
|
||||||
|
endingLineNumber = "402"
|
||||||
|
landmarkName = "-application:didFinishLaunchingWithOptions:"
|
||||||
|
landmarkType = "7">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
</Breakpoints>
|
</Breakpoints>
|
||||||
</Bucket>
|
</Bucket>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user