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
// | |
// UIViewController+MBSensitiveInformationInScreenshotPrevention.h | |
// | |
// Created by Manuel Binna on 05.05.11. | |
// Copyright 2011 Manuel Binna. All rights reserved. | |
// | |
@interface UIViewController (MBSensitiveInformationInScreenshotPrevention) |
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2357277/hack.sh | sh | |
# |
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
Add the script include-version-info.sh into a new run script build phase of your application target. The build phase | |
should be located after the build phase "Copy Bundle Resources". |
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
# The approach used here is adopted from the following source: | |
# http://nsscreencast.com/episodes/12-importing-into-core-data | |
# | |
# Since version 1.27, mogenerator automatically uses the current version of the data model | |
MODELS_DIR="MyModels" | |
DATA_MODEL="${MODELS_DIR}/MOPIncrementalStoreModel.xcdatamodeld" | |
# Homebrew stores mogenerator in /usr/local/bin | |
PATH=/usr/local/bin:${PATH} |
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
#!/usr/bin/env bash | |
rm -rf "${HOME}/Library/Caches/CocoaPods" | |
rm -rf "`pwd`/Pods/" | |
pod update |
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
#!/bin/sh | |
# Launch application using ios-sim and set up environment to inject test bundle into application | |
# Source: http://stackoverflow.com/a/12682617/504494 | |
if [ "$RUN_APPLICATION_TESTS_WITH_IOS_SIM" = "YES" ]; then | |
test_bundle_path="$BUILT_PRODUCTS_DIR/$PRODUCT_NAME.$WRAPPER_EXTENSION" | |
environment_args="--setenv DYLD_INSERT_LIBRARIES=/../../Library/PrivateFrameworks/IDEBundleInjection.framework/IDEBundleInjection --setenv XCInjectBundle=$test_bundle_path --setenv XCInjectBundleInto=$TEST_HOST" | |
ios-sim launch $(dirname $TEST_HOST) $environment_args --args -SenTest All $test_bundle_path | |
echo "Finished running tests with ios-sim" |
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
/usr/local/bin/appledoc \ | |
--templates "/usr/local/opt/appledoc/Templates" \ | |
--project-name "${PROJECT_NAME}" \ | |
--project-company "Manuel Binna" \ | |
--company-id "de.binna" \ | |
--output "Documentation" \ | |
--logformat xcode \ | |
. |
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
#import "MBAEntityFetcher.h" | |
#import "MBAAPIBaseURL.h" | |
#import "MBAResponseDescriptorProvider.h" | |
#import <Kiwi/Kiwi.h> | |
#import <Nocilla/LSNocilla.h> | |
#import <RestKit/RestKit.h> | |
#import <RestKit/Testing.h> |
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
static BOOL isRunningTests(void) { | |
NSDictionary *environment = [[NSProcessInfo processInfo] environment]; | |
NSString *injectBundle = environment[@"XCInjectBundle"]; | |
return [[injectBundle pathExtension] isEqualToString:@"octest"]; | |
} |
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
# Reference: http://clang.llvm.org/docs/ClangFormatStyleOptions.html | |
BasedOnStyle: WebKit | |
AccessModifierOffset: -4 | |
AlignEscapedNewlinesLeft: false | |
AlignTrailingComments: false | |
AllowAllParametersOfDeclarationOnNextLine: true | |
AllowShortFunctionsOnASingleLine: false | |
AllowShortIfStatementsOnASingleLine: false |
OlderNewer