View protocolExtension.swift
protocol Nameable { | |
/// This func is required by anyone who conforms to this protocol | |
func lastName() -> String | |
} | |
extension Nameable { | |
/// This will be the default implementation if the conforming class doesn't override this implementation. | |
func firstname() -> String { | |
return "John Appleseed" | |
} |
View Tag each beta
lane :beta do | |
ensure_git_status_clean | |
latestBuildNumber = bump_build_number | |
# Git tag must not already exist. If it does, check if we forgot to bump version or | |
# delete previous tag on remote. | |
git_tag_name = "v#{version}(#{latestBuildNumber})" | |
UI.crash!("Git tag #{git_tag_name} already exists.") if git_tag_exists(tag: git_tag_name) | |
build_app(scheme: "Volante") |
View pushMe.sh
#!/bin/sh | |
message="$1" | |
curl -so \ | |
- --data "title=$message&token=[token-here]" \ | |
https://pushmeapi.jagcesar.se | |
View .git-commit-template
#------------------------------------------------| | |
#----------------------------------------------------------------------| |
View Fastfile
# Customise this file, documentation can be found here: | |
# https://github.com/fastlane/fastlane/tree/master/docs | |
# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md | |
# can also be listed using the `fastlane actions` command | |
# Change the syntax highlighting to Ruby | |
# All lines starting with a # are ignored when running `fastlane` | |
# If you want to automatically update fastlane if a new version is available: | |
# update_fastlane |
View .travis.yml
language: objective-c | |
before_script: | |
- chmod +x scripts/travis/add-key.sh | |
- chmod +x scripts/travis/remove-key.sh | |
- chmod +x scripts/travis/testflight.sh | |
- ./scripts/travis/add-key.sh | |
script: xctool -workspace [Workspace name].xcworkspace -scheme '[Scheme to use]' -configuration [Build configuration name] -sdk iphoneos7.1 CONFIGURATION_BUILD_DIR='~/build/' build | |
after_success: | |
- ./scripts/travis/testflight.sh | |
after_script: |