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/bash | |
########################################################################### | |
# Choose your ffmpeg version and your currently-installed iOS SDK version: | |
# | |
VERSION="2.0.2" | |
SDKVERSION="7.0" | |
ARCHS="armv7 armv7s i386" | |
# | |
# |
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
#Set here your Environment.plist name | |
ENVIRONMENT="DEV" | |
#Environment.plist path | |
ENVIRONMENT_PLIST="$PROJECT_DIR/AppName/Environments.plist" | |
#Get app name from Environment.plist | |
APP_NAME=$(/usr/libexec/PlistBuddy -c "Print :$ENVIRONMENT:APP_NAME" "$ENVIRONMENT_PLIST") | |
#Get bundle identifier from Environment.plist | |
BUNDLE_ID=$(/usr/libexec/PlistBuddy -c "Print :$ENVIRONMENT:BUNDLE_IDENTIFIER" "$ENVIRONMENT_PLIST") |
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
restore_derived_data_from_develop: | |
steps: | |
# We need to perform git fetch in order to find nearest develop SHA | |
- run: | |
name: Git Fetch | |
command: git fetch --no-tags | |
# This will create file with nearest develop commit SHA usually this will be point from where we stared this cranch | |
# We need to store it to file just to be able to use it as a key inside `restore_cache` command. | |
# Because it is not possible to directly embed it inside {{ }} |
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
save_derived_data: | |
steps: | |
# This will create file with current commit SHA from develop branch | |
# We need to store it to file just to be able to use it as a key inside `save_cache` command. | |
# Because it is not possible to directly embed it inside {{ }} | |
- run: | |
name: Add current develop commit SHA environment variable | |
command: | | |
echo $(git show --format="%H" --no-patch) > /tmp/current_dev_commit_sha |
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/bash | |
# This will print SHA to closest develop as a parent | |
echo $(git log --decorate | grep 'commit' | grep 'origin/develop' | head -n 1 | awk '{ print $2 }' | tr -d "\n") |
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
// | |
// CoreDataContextWatcher.swift | |
// ContextWatcher | |
// | |
// Created by Michal Zaborowski on 10.05.2016. | |
// Copyright © 2016 Inspace Labs Sp z o. o. Spółka Komandytowa. All rights reserved. | |
// | |
import Foundation | |
import CoreData |
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
// http://stackoverflow.com/questions/17535918/aes-gets-different-results-in-ios-and-java | |
- (NSData *)AES256EncryptWithKey:(NSString *)key { | |
// 'key' should be 32 bytes for AES256, will be null-padded otherwise | |
char keyPtr[kCCKeySizeAES256+1]; // room for terminator (unused) | |
bzero(keyPtr, sizeof(keyPtr)); // fill with zeroes (for padding) | |
// fetch key data | |
[key getCString:keyPtr maxLength:sizeof(keyPtr) encoding:NSUTF8StringEncoding]; | |
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 | |
if [ "$#" != 3 ]; then | |
echo "Illegal number of parameters, usage: ./make_cert.sh apn_file key_file output_filename" | |
fi | |
eval "openssl x509 -in $1.cer -inform DER -out $1.pem -outform PEM" | |
eval "openssl pkcs12 -nodes -export -inkey $2.key -in $1.pem -out $1.p12" | |
eval "openssl pkcs12 -nodes -nocerts -out $2.pem -in $1.p12" | |
eval "cat $1.pem $2.pem > $3.pem" |
NewerOlder