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
ACTION = build | |
AD_HOC_CODE_SIGNING_ALLOWED = NO | |
ALTERNATE_GROUP = staff | |
ALTERNATE_MODE = u+w,go-w,a+rX | |
ALTERNATE_OWNER = grantdavis | |
ALWAYS_SEARCH_USER_PATHS = NO | |
ALWAYS_USE_SEPARATE_HEADERMAPS = YES | |
APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer | |
APPLE_INTERNAL_DIR = /AppleInternal | |
APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation |
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
lane :distribute_to_zander do |options| | |
UI.user_error!("`changelog` param is missing") if options[:changelog].nil? | |
UI.message("`app_identifier` param is missing, using identifier from env variable...") if options[:app_identifier].nil? | |
app_id = options[:app_identifier] ||= ENV["BUNDLE_IDENTIFIER"] | |
UI.message("`version` param is missing, using version from the project...") if options[:version].nil? | |
version = options[:version] ||= get_version_number | |
UI.message("`build_number` param is missing, using build number from the project...") if options[:build_number].nil? |
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
module Fastlane | |
module Actions | |
module SharedValues | |
ZANDER_DOWNLOAD_LINK = :ZANDER_DOWNLOAD_LINK | |
ZANDER_BUILD_INFORMATION = :ZANDER_BUILD_INFORMATION # contains all keys/values from the Zander API, like :buildNumber, :releaseNotes | |
end | |
class ZanderAction < Action | |
def self.connection(options) | |
require 'faraday' |
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
find . -path ./Pods -prune -o -name "*.swift" -print0 | xargs -0 wc -l |
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
protocol TextValidating { | |
func validateText(_ text: String) throws | |
} | |
class PasswordValidator: TextValidating { | |
let minimumAllowedCharacters = 6 | |
enum Error: Swift.Error, CustomStringConvertible { | |
case passwordTooShort | |
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 UIKit | |
// TASK: | |
var array: [Int] = [1, 2, 3] | |
for currentIndex in 0..<array.count { | |
let randomIndex = Int(arc4random_uniform(UInt32(array.count))) | |
let tmp = array[currentIndex] |
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
Have you accidentially made a hard reset to some of your commits? | |
git reset --hard HEAD~1 | |
You can simply check git reflog, | |
because Every time the current HEAD gets updated a new entry will be added to the reflog. | |
git reflog | |
Find the desired commit and make a hard reset to it. | |
git reset --hard <commit> |