This file contains hidden or 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
Pod::Spec.new do |s| | |
s.name = 'UrbanAirship-iOS-SDK' | |
s.version = '1.3.7.fixed' | |
s.license = 'BSD' | |
s.platform = :ios | |
s.summary = 'A simple way to integrate Urban Airship services into your iOS applications.' | |
s.homepage = 'https://github.com/urbanairship/ios-library' | |
s.author = { 'Urban Airship' => '[email protected]' } | |
s.source = { :git => 'https://github.com/urbanairship/ios-library.git', :tag => 'v1.3.7' } |
This file contains hidden or 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
PreCommit: | |
NoFocusedExamples: | |
include: ['*Tests/*.swift', '*Tests/*.m'] | |
enabled: true | |
description: 'Checking for temporary focused examples' |
This file contains hidden or 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
Find and Replace following regular expression with empty string to remove copyright headers | |
//\n//.+\n//.+\n//\n//.+\n// Copyright.+$\n//\n\n | |
// | |
// FileName.m | |
// ProjectName | |
// | |
// Created by Author on Date. | |
// Copyright 2015 iPhone Developer. All rights reserved. | |
// |
This file contains hidden or 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/bash | |
# Usage: | |
# $ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates | |
# $ bash ~/remove-boilerplate-comments-from-xcode-templates.sh | |
# Repeat for /Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates | |
find -E . -type f \ | |
\( -regex '.*\.[chm]' -or -regex '.*\.swift' \) \ | |
-exec sed -i '' '1,/^$/d' '{}' ';' |
This file contains hidden or 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
PreCommit: | |
NoXcodeTemplateComments: | |
description: 'Checking for Xcode template comments' | |
enabled: true | |
quiet: true | |
exclude: | |
- 'Pods/**/*.*' | |
include: | |
- '**/*.h' | |
- '**/*.m' |
This file contains hidden or 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
before_script: | |
- sudo systemsetup -settimezone America/Los_Angeles |
This file contains hidden or 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/bash -l | |
brew install ios-sim | |
brew link ios-sim | |
DEVICE_TYPE_ID="com.apple.CoreSimulator.SimDeviceType.iPhone-6s, 9.3" | |
available=$(ios-sim showdevicetypes | grep "$DEVICE_TYPE_ID" -c) | |
if (( available >= 1 )) | |
then | |
dir=`mktemp -d` && pushd $dir |
This file contains hidden or 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
post_install do |installer| | |
ignore_overriding_contains_swift(installer, 'MyFramework') | |
end | |
def ignore_overriding_contains_swift(installer, framework_target) | |
target = installer.aggregate_targets.find{|t| t.name == "Pods-#{framework_target}"} | |
raise "failed to find #{framework_target} among: #{installer.aggregate_targets}" unless target | |
target.xcconfigs.each_value do |config| | |
config.attributes.delete('EMBEDDED_CONTENT_CONTAINS_SWIFT') | |
end |
This file contains hidden or 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
# Here is how to set up often used aliases: | |
# | |
# alias.co checkout | |
# alias.st status | |
# alias.amend commit --amend -C HEAD | |
# | |
git config --global alias.amend "commit --amend -C HEAD" | |
git config --global alias.st status | |
git config --global alias.co checkout | |
git config --global pager.tag false |
This file contains hidden or 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
func startScrolling() { | |
scrollLimit = Int(contentImageView.bounds.size.width - scrollView.bounds.size.width) | |
scrollByFraction(.Start) | |
UIView.animateWithDuration(15, | |
delay: 0, | |
options: [.Autoreverse,.Repeat,.BeginFromCurrentState], | |
animations: {self.scrollByFraction(.End)}, | |
completion: {_ in self.centerContent()}) | |
} |
OlderNewer