28 1424.0 ToyPhotoGallery (2497) :0
27 813.0 Main Thread 0x11afef :0
26 libdyld.dylib 764.0 start
25 ToyPhotoGallery 764.0 main /Users/voxels/Documents/ToyPhotoGallery/src/ToyPhotoGallery/ToyPhotoGallery/View/Gallery/GalleryCollectionViewImageCell.swift:14
24 UIKit 763.0 UIApplicationMain
23 GraphicsServices 759.0 GSEventRunModal
22 CoreFoundation 759.0 CFRunLoopRunSpecific
21 CoreFoundation 759.0 __CFRunLoopRun
20 CoreFoundation 432.0 __CFRunLoopDoObservers
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
// | |
// BucketHandlerDelegate.swift | |
// ToyPhotoGallery | |
// | |
// Created by Voxels on 7/2/18. | |
// Copyright © 2018 Michael Edgcumbe. All rights reserved. | |
// | |
import Foundation | |
import AWSCore |
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
// | |
// NetworkSessionInterface.swift | |
// ToyPhotoGallery | |
// | |
// Created by Voxels on 7/6/18. | |
// Copyright © 2018 Michael Edgcumbe. All rights reserved. | |
// | |
import Foundation |
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
// | |
// NetworkSessionInterface.swift | |
// ToyPhotoGallery | |
// | |
// Created by Voxels on 7/6/18. | |
// Copyright © 2018 Michael Edgcumbe. All rights reserved. | |
// | |
import Foundation |
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
// | |
// BufferedImageView.swift | |
// | |
// Created by Boris Bügling on 11/03/15. | |
// Customized by Michael Edgcumbe on 07/06/18 | |
// Copyright (c) 2018 Michael Edgcumbe. All rights reserved. | |
// | |
import UIKit |
Author: Michael Edgcumbe Date: 07/10/18
The design goals of the object map include:
- Provide abstract protocols for common services so that libraries can be swapped if needed
- Hide API interfaces behind model controllers
- Provide launch safety for reachability or other issues
- Provide thread safe access to network fetching and local storage
- (void) toSingleChannel:(CMSampleBufferRef)sampleBuffer
{
CVImageBufferRef imageBuffer = CMSampleBufferGetImageBuffer(sampleBuffer);
CVPixelBufferLockBaseAddress(imageBuffer, 0);
size_t width = CVPixelBufferGetWidthOfPlane(imageBuffer, 0);
size_t height = CVPixelBufferGetHeightOfPlane(imageBuffer, 0);
size_t bytesPerRow = CVPixelBufferGetBytesPerRowOfPlane(imageBuffer, 0);
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
# This XCode scheme archive post-action script combines the device and iOS simulator frameworks into a single binary | |
# so that the encapsulated library can be run in both contexts. PLEASE NOTE: the iOS Simulator framework must be REMOVED | |
# before submitting this binary to the app store | |
# Source: https://gist.github.com/voxels/0ec095d567bcb0bc30a7c80122b17396 | |
# Based on: https://gist.github.com/atsepkov/1673c2d899470270e3eb313912aafc6f | |
# Resources: | |
# - https://developer.apple.com/library/content/technotes/tn2215/_index.html | |
# - https://pewpewthespells.com/blog/buildsettings.html |
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
APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}" | |
# This script loops through the frameworks embedded in the application and | |
# removes unused architectures. | |
find "$APP_PATH" -name '*.framework' -type d | while read -r FRAMEWORK | |
do | |
FRAMEWORK_EXECUTABLE_NAME=$(defaults read "$FRAMEWORK/Info.plist" CFBundleExecutable) | |
FRAMEWORK_EXECUTABLE_PATH="$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME" | |
echo "Executable is $FRAMEWORK_EXECUTABLE_PATH" |
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 Foundation | |
/// An abstract class that makes building simple asynchronous operations easy. | |
/// Subclasses must implement `execute()` to perform any work and call | |
/// `finish()` when they are done. All `NSOperation` work will be handled | |
/// automatically. | |
open class Operation: Foundation.Operation { | |
// MARK: - Properties |