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 “$PROJECT_DIR/Carthage/Build/iOS” -name ‘*.framework’ -type d | while read -r FRAMEWORK | |
do | |
PATH_COUNT=$(echo “$FRAMEWORK/” | grep -o ‘/’ | wc -l) | |
FILE_NAME=$(echo $FRAMEWORK | cut -d ‘/’ -f $PATH_COUNT | cut -d ‘.’ -f 1) | |
EXECUTE_FILE=“$FRAMEWORK/$FILE_NAME” | |
echo $EXECUTE_FILE | |
if $(lipo $EXECUTE_FILE -verify_arch i386) ; then | |
lipo -remove i386 $EXECUTE_FILE -o $EXECUTE_FILE |
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
import Foundation | |
import AVFoundation | |
@objc | |
protocol CameraCaptureDelegate: class { | |
func captureVideoOutput(sampleBuffer: CMSampleBuffer) | |
@objc optional func captureAudioOutput(sampleBuffer: CMSampleBuffer) | |
} | |
class CameraManager: NSObject { |
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
#import <Foundation/Foundation.h> | |
typedef void(^AsyncBlock)(dispatch_block_t completionHandler); | |
@interface AsyncBlockOperation : NSOperation | |
@property (nonatomic, readonly, copy) AsyncBlock block; | |
+ (instancetype)asyncBlockOperationWithBlock:(AsyncBlock)block; |