Last active
December 15, 2015 02:29
-
-
Save mhupman/5187589 to your computer and use it in GitHub Desktop.
Temporary, block-based method swizzling.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// privateBundleIdentifier is our custom implementation of bundleIdentifier in a NSBundle category | |
[NSBundle swizzle:@selector(bundleIdentifier) toMethod:@selector(privateBundleIdentifier) forBlock:^{ | |
[Crashlytics startWithAPIKey:CRASHLYTICS_API_KEY]; | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment