Skip to content

Commit

Permalink
Adds FB SDK integration for ad tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
lkpttn committed Apr 27, 2016
1 parent 6917670 commit d0caeeb
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Lets Do This.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,11 @@ fi
<string>iPhone Developer</string>
<key>CODE_SIGN_IDENTITY[sdk=iphoneos*]</key>
<string>iPhone Developer</string>
<key>FRAMEWORK_SEARCH_PATHS</key>
<array>
<string>$(inherited)</string>
<string>$(PROJECT_DIR)/Pods</string>
</array>
<key>GCC_PREFIX_HEADER</key>
<string>Lets Do This/LetsDoThis.pch</string>
<key>INFOPLIST_FILE</key>
Expand Down Expand Up @@ -2622,6 +2627,11 @@ fi
<string>iPhone Developer</string>
<key>CODE_SIGN_IDENTITY[sdk=iphoneos*]</key>
<string>iPhone Developer</string>
<key>FRAMEWORK_SEARCH_PATHS</key>
<array>
<string>$(inherited)</string>
<string>$(PROJECT_DIR)/Pods</string>
</array>
<key>GCC_PREFIX_HEADER</key>
<string>Lets Do This/LetsDoThis.pch</string>
<key>INFOPLIST_FILE</key>
Expand Down Expand Up @@ -2654,6 +2664,11 @@ fi
<string>iPhone Developer</string>
<key>CODE_SIGN_IDENTITY[sdk=iphoneos*]</key>
<string>iPhone Developer</string>
<key>FRAMEWORK_SEARCH_PATHS</key>
<array>
<string>$(inherited)</string>
<string>$(PROJECT_DIR)/Pods</string>
</array>
<key>GCC_PREFIX_HEADER</key>
<string>Lets Do This/LetsDoThis.pch</string>
<key>INFOPLIST_FILE</key>
Expand Down
5 changes: 5 additions & 0 deletions Lets Do This/Classes/LDTAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#import <Fabric/Fabric.h>
#import <Crashlytics/Crashlytics.h>
#import <RCTEventDispatcher.h>
#import <FBSDKCoreKit/FBSDKCoreKit.h>

@interface LDTAppDelegate()

Expand Down Expand Up @@ -114,6 +115,10 @@ - (void)applicationWillEnterForeground:(UIApplication *)application {

- (void)applicationDidBecomeActive:(UIApplication *)application {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.


// Facebook install tracking
[FBSDKAppEvents activateApp];
}

- (void)applicationWillTerminate:(UIApplication *)application {
Expand Down
36 changes: 36 additions & 0 deletions Lets Do This/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,42 @@
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>

<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fb[APP ID #]</string>
</array>
</dict>
</array>
<key>FacebookAppID</key>
<string>[APP ID #]</string>
<key>FacebookDisplayName</key>
<string>DoSomething</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>facebook.com</key>
<dict>
<key>NSIncludesSubdomains</key> <true/>
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key> <false/>
</dict>
<key>fbcdn.net</key>
<dict>
<key>NSIncludesSubdomains</key> <true/>
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key> <false/>
</dict>
<key>akamaihd.net</key>
<dict>
<key>NSIncludesSubdomains</key> <true/>
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key> <false/>
</dict>
</dict>
</dict>

<key>Fabric</key>
<dict>
<key>Kits</key>
Expand Down
1 change: 1 addition & 0 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ target 'Lets Do This' do
pod 'GoogleAnalytics', '3.13.0'
pod 'NewRelicAgent', '5.3.4'
pod 'NSString+RemoveEmoji', '0.1.0'
pod 'FBSDKCoreKit'
end

xcodeproj 'Lets Do This', 'Thor' => :release, 'Debug' => :debug, 'Release' => :release
Expand Down

0 comments on commit d0caeeb

Please sign in to comment.