Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

进行 debug build 时不使用 Fabric #7

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github "Alamofire/Alamofire" "2.0.2"
github "onevcat/Kingfisher" "1.6.0"
github "onevcat/Kingfisher" "1.6.1"
4 changes: 3 additions & 1 deletion beauties/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
Fabric.with([Crashlytics()])
if !DEBUG {
Fabric.with([Crashlytics()])
}
UITabBar.appearance().tintColor = ThemeColor
UINavigationBar.appearance().tintColor = ThemeColor
UITableViewCell.appearance().tintColor = ThemeColor
Expand Down
7 changes: 4 additions & 3 deletions beauty.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
4B1366381B3EF8A100986654 /* Sources */,
4B1366391B3EF8A100986654 /* Frameworks */,
4B13663A1B3EF8A100986654 /* Resources */,
4BD0DD3C1B42C7FC00F08CF5 /* ShellScript */,
4BD0DD3C1B42C7FC00F08CF5 /* Run Script */,
4BE566CF1B74F1B10079197A /* ShellScript */,
);
buildRules = (
Expand Down Expand Up @@ -293,7 +293,7 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
4BD0DD3C1B42C7FC00F08CF5 /* ShellScript */ = {
4BD0DD3C1B42C7FC00F08CF5 /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
Expand All @@ -302,6 +302,7 @@
"$(SRCROOT)/Carthage/Build/iOS/Kingfisher.framework",
"$(SRCROOT)/Carthage/Build/iOS/Alamofire.framework",
);
name = "Run Script";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
Expand All @@ -319,7 +320,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "./Fabric.framework/run 5b6d196a58f4acbc481f40758c365e9b14ae8732 3490fc62e207b8c7ec5ae2d4a8578db972041bdd761c9d59f51f7b5ca63b611f";
shellScript = "if [ \"${CONFIGURATION}\" = \"Release\" ]; then\n\n./Fabric.framework/run 5b6d196a58f4acbc481f40758c365e9b14ae8732 3490fc62e207b8c7ec5ae2d4a8578db972041bdd761c9d59f51f7b5ca63b611f\n\nfi\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down