diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..d491400 Binary files /dev/null and b/.DS_Store differ diff --git a/Podfile b/Podfile new file mode 100644 index 0000000..633d28b --- /dev/null +++ b/Podfile @@ -0,0 +1,20 @@ +# Uncomment the next line to define a global platform for your project +# platform :ios, '9.0' + +target 'testing' do + # Comment the next line if you're not using Swift and don't want to use dynamic frameworks + use_frameworks! + pod 'PryntTrimmerView' + # Pods for testing + + target 'testingTests' do + inherit! :search_paths + pod 'FDTake' + end + + target 'testingUITests' do + inherit! :search_paths + # Pods for testing + end + +end diff --git a/Podfile.lock b/Podfile.lock new file mode 100644 index 0000000..a6480d6 --- /dev/null +++ b/Podfile.lock @@ -0,0 +1,20 @@ +PODS: + - FDTake (2.0.0) + - PryntTrimmerView (2.0.1) + +DEPENDENCIES: + - FDTake + - PryntTrimmerView + +SPEC REPOS: + https://github.com/CocoaPods/Specs.git: + - FDTake + - PryntTrimmerView + +SPEC CHECKSUMS: + FDTake: 21152c660ddf075a859f86af83f9d17dc4b5a539 + PryntTrimmerView: 4260ae497a2f3e1bbfc0b71247eb74ab92bf0490 + +PODFILE CHECKSUM: 2b8d33bd57a2ab3ba64f8ffdbf4ecd4cccf326e1 + +COCOAPODS: 1.5.0 diff --git a/Pods/FDTake/LICENSE b/Pods/FDTake/LICENSE new file mode 100644 index 0000000..352d909 --- /dev/null +++ b/Pods/FDTake/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2016 William Entriken + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. \ No newline at end of file diff --git a/Pods/FDTake/README.md b/Pods/FDTake/README.md new file mode 100644 index 0000000..58d1ff1 --- /dev/null +++ b/Pods/FDTake/README.md @@ -0,0 +1,179 @@ +# FDTake + +[![CI Status](http://img.shields.io/travis/fulldecent/FDTake.svg?style=flat)](https://travis-ci.org/fulldecent/FDTake) +[![Version](https://img.shields.io/cocoapods/v/FDTake.svg?style=flat)](http://cocoapods.org/pods/FDTake) +[![License](https://img.shields.io/cocoapods/l/FDTake.svg?style=flat)](http://cocoapods.org/pods/FDTake) +[![Platform](https://img.shields.io/cocoapods/p/FDTake.svg?style=flat)](http://cocoapods.org/pods/FDTake) +[![Readme Score](http://readme-score-api.herokuapp.com/score.svg?url=fulldecent/FDTake)](http://clayallsopp.github.io/readme-score?url=fulldecent/FDTake) + + +## Usage + +To run the example project, clone the repo, and run `pod install` from the Example directory first. + +To use it in your project, add an `FDTakeController` to your view controller and implement: + + fdTakeController.didGetPhoto = { + (_ photo: UIImage, _ info: [AnyHashable : Any]) in + } + +then call: + + fdTakeController.present() + +The full API is: + +```swift +/// Public initializer +public override init() + +/// Convenience method for getting a photo +open class func getPhotoWithCallback(getPhotoWithCallback callback: @escaping (_ photo: UIImage, _ info: [AnyHashable : Any]) -> Void) -> <> + +/// Convenience method for getting a video +open class func getVideoWithCallback(getVideoWithCallback callback: @escaping (_ video: URL, _ info: [AnyHashable : Any]) -> Void) + +/// Whether to allow selecting a photo +open var allowsPhoto: Bool + +/// Whether to allow selecting a video +open var allowsVideo: Bool + +/// Whether to allow capturing a photo/video with the camera +open var allowsTake: Bool + +/// Whether to allow selecting existing media +open var allowsSelectFromLibrary: Bool + +/// Whether to allow editing the media after capturing/selection +open var allowsEditing: Bool + +/// Whether to use full screen camera preview on the iPad +open var iPadUsesFullScreenCamera: Bool + +/// Enable selfie mode by default +open var defaultsToFrontCamera: Bool + +/// The UIBarButtonItem to present from (may be replaced by a overloaded methods) +open var presentingBarButtonItem: UIBarButtonItem? + +/// The UIView to present from (may be replaced by a overloaded methods) +open var presentingView: UIView? + +/// The UIRect to present from (may be replaced by a overloaded methods) +open var presentingRect: CGRect? + +/// The UITabBar to present from (may be replaced by a overloaded methods) +open var presentingTabBar: UITabBar? + +/// The UIViewController to present from (may be replaced by a overloaded methods) +open lazy var presentingViewController: UIViewController { get set } + +/// A photo was selected +open var didGetPhoto: ((_ photo: UIImage, _ info: [AnyHashable : Any]) -> Void)? + +/// A video was selected +open var didGetVideo: ((_ video: URL, _ info: [AnyHashable : Any]) -> Void)? + +/// The user selected did not attempt to select a photo +open var didDeny: (() -> Void)? + +/// The user started selecting a photo or took a photo and then hit cancel +open var didCancel: (() -> Void)? + +/// A photo or video was selected but the ImagePicker had NIL for EditedImage and OriginalImage +open var didFail: (() -> Void)? + +/// Custom UI text (skips localization) +open var cancelText: String? + +/// Custom UI text (skips localization) +open var chooseFromLibraryText: String? + +/// Custom UI text (skips localization) +open var chooseFromPhotoRollText: String? + +/// Custom UI text (skips localization) +open var noSourcesText: String? + +/// Custom UI text (skips localization) +open var takePhotoText: String? + +/// Custom UI text (skips localization) +open var takeVideoText: String? + +/// Presents the user with an option to take a photo or choose a photo from the library +open func present() + +/// Dismisses the displayed view. Especially handy if the sheet is displayed while suspending the app, +open func dismiss() +``` + +Other available options are documented at CocoaDocs for FDTake. + + +## How it works + + 1. See if device has camera + 2. Create action sheet with appropriate options ("Take Photo" or "Choose from Library"), as available + 3. Localize "Take Photo" and "Choose from Library" into user's language + 4. Wait for response + 5. Bring up image picker with selected image picking method + 6. Default to selfie mode if so configured + 7. Get response, extract image from a dictionary + 8. Dismiss picker, send image to delegate + + +## Support + + * Supports iPhones, iPods, iPads and tvOS (but not tested) + * Supported languages: + - English + - Chinese Simplified + - Turkish (thanks Suleyman Melikoglu) + - French (thanks Guillaume Algis) + - Dutch (thanks Mathijs Kadijk) + - Chinese Traditional (thanks Qing Ao) + - German (thanks Lars Häuser) + - Russian (thanks Alexander Zubkov) + - Norwegian (thanks Sindre Sorhus) + - Arabic (thanks HadiIOS) + - Polish (thanks Jacek Kwiecień) + - Spanish (thanks David Jorge) + - Hebrew (thanks Asaf Siman-Tov) + - Danish (thanks kaspernissen) + - Sweedish (thanks Paul Peelen) + - Portugese (thanks Natan Rolnik) + - Greek (thanks Konstantinos) + - Italian (thanks Giuseppe Filograno) + - Hungarian (thanks Andras Kadar) + - Please help translate `FDTake.strings` to more languages + * Pure Swift support and iOS 8+ required + * Compile testing running on Travis CI + * In progress: functional test cases ([please help](https://github.com/fulldecent/FDTake/issues/72)) + * In progress: UI test cases ([please help](https://github.com/fulldecent/FDTake/issues/72)) + * In progress: select last photo used ([please help](https://github.com/fulldecent/FDTake/issues/22)) + + +## Installation + +FDTake is available through [CocoaPods](http://cocoapods.org). To install +it, simply add the following line to your Podfile: + +```ruby +pod 'FDTake' +``` + + +## Author + +William Entriken, github.com@phor.net + + +## License + +FDTake is available under the MIT license. See the LICENSE file for more info. + +## Contributing + +This project's layout is based on https://github.com/fulldecent/swift3-module-template If you would like to change the layout, please change that project FIRST. Also you may appreciate that project has "recipes" -- you don't just change code you explain why you are doing things. As a maintainer this makes my job MUCH simpler. In a similar respect, if you are introducing non-minor changes, it will be VERY helpful if you could please reference to another project (like AlamoFire) that has seen and discussed the types of design challenges you are touching.) Thanks again and we all really do appreciate your contributions. diff --git a/Pods/FDTake/Source/FDTake.h b/Pods/FDTake/Source/FDTake.h new file mode 100644 index 0000000..43ee9e1 --- /dev/null +++ b/Pods/FDTake/Source/FDTake.h @@ -0,0 +1,19 @@ +// +// FDTake.h +// FDTake +// +// Created by William Entriken on Sep 17, 2016. +// Copyright © 2016 William Entriken. All rights reserved. +// + +#import + +//! Project version number for FDTake. +FOUNDATION_EXPORT double FDTakeVersionNumber; + +//! Project version string for FDTake. +FOUNDATION_EXPORT const unsigned char FDTakeVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + + diff --git a/Pods/FDTake/Source/FDTakeController.swift b/Pods/FDTake/Source/FDTakeController.swift new file mode 100644 index 0000000..3c712f8 --- /dev/null +++ b/Pods/FDTake/Source/FDTakeController.swift @@ -0,0 +1,357 @@ +// +// FDTakeController.swift +// FDTakeExample +// +// Copyright © 2015 William Entriken. All rights reserved. +// + +import Foundation +import MobileCoreServices +import UIKit + +/// User interface strings +fileprivate enum FDTakeControllerLocalizableStrings: String { + /// Decline to proceed with operation + case cancel = "cancel" + + /// Option to select photo from library + case chooseFromLibrary = "chooseFromLibrary" + + /// Option to select photo from photo roll + case chooseFromPhotoRoll = "chooseFromPhotoRoll" + + /// There are no sources available to select a photo + case noSources = "noSources" + + /// Option to take photo using camera + case takePhoto = "takePhoto" + + /// Option to take video using camera + case takeVideo = "takeVideo" + + public func comment() -> String { + switch self { + case .cancel: + return "Decline to proceed with operation" + case .chooseFromLibrary: + return "Option to select photo/video from library" + case .chooseFromPhotoRoll: + return "Option to select photo from photo roll" + case .noSources: + return "There are no sources available to select a photo" + case .takePhoto: + return "Option to take photo using camera" + case .takeVideo: + return "Option to take video using camera" + } + } +} + +/// A class for select and taking photos +open class FDTakeController: NSObject /* , UIImagePickerControllerDelegate, UINavigationControllerDelegate*/ { + + // MARK: - Initializers & Class Convenience Methods + + /// Public initializer + public override init() { + super.init() + } + + /// Convenience method for getting a photo + open class func getPhotoWithCallback(getPhotoWithCallback callback: @escaping (_ photo: UIImage, _ info: [AnyHashable: Any]) -> Void) { + let fdTake = FDTakeController() + fdTake.allowsVideo = false + fdTake.didGetPhoto = callback + fdTake.present() + } + + /// Convenience method for getting a video + open class func getVideoWithCallback(getVideoWithCallback callback: @escaping (_ video: URL, _ info: [AnyHashable: Any]) -> Void) { + let fdTake = FDTakeController() + fdTake.allowsPhoto = false + fdTake.didGetVideo = callback + fdTake.present() + } + + + // MARK: - Configuration options + + /// Whether to allow selecting a photo + open var allowsPhoto = true + + /// Whether to allow selecting a video + open var allowsVideo = true + + /// Whether to allow capturing a photo/video with the camera + open var allowsTake = true + + /// Whether to allow selecting existing media + open var allowsSelectFromLibrary = true + + /// Whether to allow editing the media after capturing/selection + open var allowsEditing = false + + /// Whether to use full screen camera preview on the iPad + open var iPadUsesFullScreenCamera = false + + /// Enable selfie mode by default + open var defaultsToFrontCamera = false + + /// The UIBarButtonItem to present from (may be replaced by a overloaded methods) + open var presentingBarButtonItem: UIBarButtonItem? = nil + + /// The UIView to present from (may be replaced by a overloaded methods) + open var presentingView: UIView? = nil + + /// The UIRect to present from (may be replaced by a overloaded methods) + open var presentingRect: CGRect? = nil + + /// The UITabBar to present from (may be replaced by a overloaded methods) + open var presentingTabBar: UITabBar? = nil + + /// The UIViewController to present from (may be replaced by a overloaded methods) + open lazy var presentingViewController: UIViewController = { + return UIApplication.shared.keyWindow!.rootViewController! + }() + + + // MARK: - Callbacks + + /// A photo was selected + open var didGetPhoto: ((_ photo: UIImage, _ info: [AnyHashable: Any]) -> Void)? + + /// A video was selected + open var didGetVideo: ((_ video: URL, _ info: [AnyHashable: Any]) -> Void)? + + /// The user selected did not attempt to select a photo + open var didDeny: (() -> Void)? + + /// The user started selecting a photo or took a photo and then hit cancel + open var didCancel: (() -> Void)? + + /// A photo or video was selected but the ImagePicker had NIL for EditedImage and OriginalImage + open var didFail: (() -> Void)? + + + // MARK: - Localization overrides + + /// Custom UI text (skips localization) + open var cancelText: String? = nil + + /// Custom UI text (skips localization) + open var chooseFromLibraryText: String? = nil + + /// Custom UI text (skips localization) + open var chooseFromPhotoRollText: String? = nil + + /// Custom UI text (skips localization) + open var noSourcesText: String? = nil + + /// Custom UI text (skips localization) + open var takePhotoText: String? = nil + + /// Custom UI text (skips localization) + open var takeVideoText: String? = nil + + + // MARK: - Private + + fileprivate lazy var imagePicker: UIImagePickerController = { + [unowned self] in + let retval = UIImagePickerController() + retval.delegate = self + retval.allowsEditing = true + return retval + }() + + fileprivate lazy var popover: UIPopoverController = { + [unowned self] in + return UIPopoverController(contentViewController: self.imagePicker) + }() + + fileprivate var alertController: UIAlertController? = nil + + // This is a hack required on iPad if you want to select a photo and you already have a popup on the screen + // see: http://stackoverflow.com/a/34392409/300224 + fileprivate func topViewController(_ rootViewController: UIViewController) -> UIViewController { + var rootViewController = UIApplication.shared.keyWindow!.rootViewController! + repeat { + guard let presentedViewController = rootViewController.presentedViewController else { + return rootViewController + } + + if let navigationController = rootViewController.presentedViewController as? UINavigationController { + rootViewController = navigationController.topViewController ?? navigationController + + } else { + rootViewController = presentedViewController + } + } while true + } + + // MARK: - Localization + + private func localizeString(_ string:FDTakeControllerLocalizableStrings) -> String { + let bundle = Bundle(for: type(of: self)) + //let stringsURL = bundle.resourceURL!.appendingPathComponent("Localizable.strings") + let bundleLocalization = bundle.localizedString(forKey: string.rawValue, value: nil, table: nil) + //let a = NSLocal + //let bundleLocalization = NSLocalizedString(string.rawValue, tableName: nil, bundle: bundle, value: string.rawValue, comment: string.comment()) + + + switch string { + case .cancel: + return self.cancelText ?? bundleLocalization + case .chooseFromLibrary: + return self.chooseFromLibraryText ?? bundleLocalization + case .chooseFromPhotoRoll: + return self.chooseFromPhotoRollText ?? bundleLocalization + case .noSources: + return self.noSourcesText ?? bundleLocalization + case .takePhoto: + return self.takePhotoText ?? bundleLocalization + case .takeVideo: + return self.takeVideoText ?? bundleLocalization + } + } + + + /// Presents the user with an option to take a photo or choose a photo from the library + open func present() { + //TODO: maybe encapsulate source selection? + var titleToSource = [(buttonTitle: FDTakeControllerLocalizableStrings, source: UIImagePickerControllerSourceType)]() + + if self.allowsTake && UIImagePickerController.isSourceTypeAvailable(.camera) { + if self.allowsPhoto { + titleToSource.append((buttonTitle: .takePhoto, source: .camera)) + } + if self.allowsVideo { + titleToSource.append((buttonTitle: .takeVideo, source: .camera)) + } + } + if self.allowsSelectFromLibrary { + if UIImagePickerController.isSourceTypeAvailable(.photoLibrary) { + titleToSource.append((buttonTitle: .chooseFromLibrary, source: .photoLibrary)) + } else if UIImagePickerController.isSourceTypeAvailable(.savedPhotosAlbum) { + titleToSource.append((buttonTitle: .chooseFromPhotoRoll, source: .savedPhotosAlbum)) + } + } + + guard titleToSource.count > 0 else { + let str = localizeString(.noSources) + + //TODO: Encapsulate this + //TODO: These has got to be a better way to do this + let alert = UIAlertController(title: nil, message: str, preferredStyle: .alert) + alert.addAction(UIAlertAction(title: localizeString(.cancel), style: .default, handler: nil)) + + // http://stackoverflow.com/a/34487871/300224 + let alertWindow = UIWindow(frame: UIScreen.main.bounds) + alertWindow.rootViewController = UIViewController() + alertWindow.windowLevel = UIWindowLevelAlert + 1; + alertWindow.makeKeyAndVisible() + alertWindow.rootViewController?.present(alert, animated: true, completion: nil) + return + } + + var popOverPresentRect : CGRect = self.presentingRect ?? CGRect(x: 0, y: 0, width: 1, height: 1) + if popOverPresentRect.size.height == 0 || popOverPresentRect.size.width == 0 { + popOverPresentRect = CGRect(x: 0, y: 0, width: 1, height: 1) + } + + alertController = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet) + for (title, source) in titleToSource { + let action = UIAlertAction(title: localizeString(title), style: .default) { + (UIAlertAction) -> Void in + self.imagePicker.sourceType = source + if source == .camera && self.defaultsToFrontCamera && UIImagePickerController.isCameraDeviceAvailable(.front) { + self.imagePicker.cameraDevice = .front + } + // set the media type: photo or video + self.imagePicker.allowsEditing = self.allowsEditing + var mediaTypes = [String]() + if self.allowsPhoto { + mediaTypes.append(String(kUTTypeImage)) + } + if self.allowsVideo { + mediaTypes.append(String(kUTTypeMovie)) + } + self.imagePicker.mediaTypes = mediaTypes + + //TODO: Need to encapsulate popover code + var popOverPresentRect: CGRect = self.presentingRect ?? CGRect(x: 0, y: 0, width: 1, height: 1) + if popOverPresentRect.size.height == 0 || popOverPresentRect.size.width == 0 { + popOverPresentRect = CGRect(x: 0, y: 0, width: 1, height: 1) + } + let topVC = self.topViewController(self.presentingViewController) + + // + if UI_USER_INTERFACE_IDIOM() == .phone || (source == .camera && self.iPadUsesFullScreenCamera) { + topVC.present(self.imagePicker, animated: true, completion: nil) + } else { + // On iPad use pop-overs. + self.popover.present(from: popOverPresentRect, in: topVC.view!, permittedArrowDirections: .any, animated: true) + } + } + alertController!.addAction(action) + } + let cancelAction = UIAlertAction(title: localizeString(.cancel), style: .cancel) { + (UIAlertAction) -> Void in + self.didCancel?() + } + alertController!.addAction(cancelAction) + + let topVC = topViewController(presentingViewController) + + alertController?.modalPresentationStyle = .popover + if let presenter = alertController!.popoverPresentationController { + presenter.sourceView = presentingView; + if let presentingRect = self.presentingRect { + presenter.sourceRect = presentingRect + } + //WARNING: on ipad this fails if no SOURCEVIEW AND SOURCE RECT is provided + } + topVC.present(alertController!, animated: true, completion: nil) + } + + /// Dismisses the displayed view. Especially handy if the sheet is displayed while suspending the app, + open func dismiss() { + alertController?.dismiss(animated: true, completion: nil) + imagePicker.dismiss(animated: true, completion: nil) + } +} + +extension FDTakeController : UIImagePickerControllerDelegate, UINavigationControllerDelegate { + /// Conformance for ImagePicker delegate + public func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) { + UIApplication.shared.isStatusBarHidden = true + let mediaType: String = info[UIImagePickerControllerMediaType] as! String + var imageToSave: UIImage + // Handle a still image capture + if mediaType == kUTTypeImage as String { + if let editedImage = info[UIImagePickerControllerEditedImage] as? UIImage { + imageToSave = editedImage + } else if let originalImage = info[UIImagePickerControllerOriginalImage] as? UIImage { + imageToSave = originalImage + } else { + self.didCancel?() + return + } + self.didGetPhoto?(imageToSave, info) + if UI_USER_INTERFACE_IDIOM() == .pad { + self.popover.dismiss(animated: true) + } + } else if mediaType == kUTTypeMovie as String { + self.didGetVideo?(info[UIImagePickerControllerMediaURL] as! URL, info) + } + + picker.dismiss(animated: true, completion: nil) + } + + /// Conformance for image picker delegate + public func imagePickerControllerDidCancel(_ picker: UIImagePickerController) { + UIApplication.shared.isStatusBarHidden = true + picker.dismiss(animated: true, completion: nil) + self.didDeny?() + } +} diff --git a/Pods/FDTake/Source/Info.plist b/Pods/FDTake/Source/Info.plist new file mode 100644 index 0000000..fbe1e6b --- /dev/null +++ b/Pods/FDTake/Source/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + NSPrincipalClass + + + diff --git a/Pods/FDTake/Source/ar.lproj/Localizable.strings b/Pods/FDTake/Source/ar.lproj/Localizable.strings new file mode 100644 index 0000000..181a241 --- /dev/null +++ b/Pods/FDTake/Source/ar.lproj/Localizable.strings @@ -0,0 +1,17 @@ +/* Decline to proceed with operation */ +"cancel" = "إلغاء"; + +/* Option to select photo from library */ +"chooseFromLibrary" = "إختر من المكتبة"; + +/* Option to select photo from photo roll */ +"chooseFromPhotoRoll" = "إختر من معرض الصور"; + +/* There are no sources available to select a photo */ +"noSources" = "لا يوجد مصدر متاح لإختيار الصورة"; + +/* Option to take photo using camera */ +"takePhoto" = "التقط صورة"; + +/* Option to take video using camera */ +"takeVideo" = "التقط فيديو"; diff --git a/Pods/FDTake/Source/da.lproj/Localizable.strings b/Pods/FDTake/Source/da.lproj/Localizable.strings new file mode 100644 index 0000000..dfc956b --- /dev/null +++ b/Pods/FDTake/Source/da.lproj/Localizable.strings @@ -0,0 +1,18 @@ +/* Decline to proceed with operation */ +"cancel" = "Annuller"; + +/* Option to select photo from library */ +"chooseFromLibrary" = "Vælg fra bibliotek"; + +/* Option to select photo from photo roll */ +"chooseFromPhotoRoll" = "Vælg fra kamerarulle"; + +/* There are no sources available to select a photo */ +"noSources" = "Der er ikke muligt at vælge et billede"; + +/* Option to take photo using camera */ +"takePhoto" = "Tag billede"; + +/* Option to take video using camera */ +"takeVideo" = "Optag video"; + diff --git a/Pods/FDTake/Source/de.lproj/Localizable.strings b/Pods/FDTake/Source/de.lproj/Localizable.strings new file mode 100644 index 0000000..dc97c80 --- /dev/null +++ b/Pods/FDTake/Source/de.lproj/Localizable.strings @@ -0,0 +1,17 @@ +/* Decline to proceed with operation */ +"cancel" = "Abbrechen"; + +/* Option to select photo from library */ +"chooseFromLibrary" = "Foto von Bibliothek auswählen"; + +/* Option to select photo from photo roll */ +"chooseFromPhotoRoll" = "Photo von Album auswählen"; + +/* There are no sources available to select a photo */ +"noSources" = "Keine Dateien vorhanden"; + +/* Option to take photo using camera */ +"takePhoto" = "Photo aufnehmen"; + +/* Option to take video using camera */ +"takeVideo" = "Video aufnehmen"; diff --git a/Pods/FDTake/Source/el.lproj/Localizable.strings b/Pods/FDTake/Source/el.lproj/Localizable.strings new file mode 100644 index 0000000..9d393d2 --- /dev/null +++ b/Pods/FDTake/Source/el.lproj/Localizable.strings @@ -0,0 +1,17 @@ +/* Decline to proceed with operation */ +"cancel" = "Ακύρωση"; + +/* Option to select photo from library */ +"chooseFromLibrary" = "Επιλέξτε απο την βιβλιοθήκη"; + +/* Option to select photo from photo roll */ +"chooseFromPhotoRoll" = "Επιλέξτε απο το άλμπουμ της κάμερας"; + +/* There are no sources available to select a photo */ +"noSources" = "Δεν υπάρχουν διαθέσιμες πηγές για να επιλέξετε μια φωτογραφία"; + +/* Option to take photo using camera */ +"takePhoto" = "Τραβήξτε Φωτογραφία"; + +/* Option to take video using camera */ +"takeVideo" = "Τραβήξτε Βίντεο"; diff --git a/Pods/FDTake/Source/en.lproj/Localizable.strings b/Pods/FDTake/Source/en.lproj/Localizable.strings new file mode 100644 index 0000000..e43e9b1 --- /dev/null +++ b/Pods/FDTake/Source/en.lproj/Localizable.strings @@ -0,0 +1,17 @@ +/* Decline to proceed with operation */ +"cancel" = "Cancel"; + +/* Option to select photo from library */ +"chooseFromLibrary" = "Choose from library"; + +/* Option to select photo from photo roll */ +"chooseFromPhotoRoll" = "Choose from photo roll"; + +/* There are no sources available to select a photo */ +"noSources" = "There are no sources available to select a photo"; + +/* Option to take photo using camera */ +"takePhoto" = "Take photo"; + +/* Option to take video using camera */ +"takeVideo" = "Take video"; diff --git a/Pods/FDTake/Source/es.lproj/Localizable.strings b/Pods/FDTake/Source/es.lproj/Localizable.strings new file mode 100644 index 0000000..f75d57a --- /dev/null +++ b/Pods/FDTake/Source/es.lproj/Localizable.strings @@ -0,0 +1,17 @@ +/* Decline to proceed with operation */ +"cancel" = "Cancelar"; + +/* Option to select photo from library */ +"chooseFromLibrary" = "Elegir de la galería"; + +/* Option to select photo from photo roll */ +"chooseFromPhotoRoll" = "Elegir del carrete"; + +/* There are no sources available to select a photo */ +"noSources" = "No hay fuentes disponibles para elegir una foto"; + +/* Option to take photo using camera */ +"takePhoto" = "Hacer foto"; + +/* Option to take video using camera */ +"takeVideo" = "Grabar vídeo"; diff --git a/Pods/FDTake/Source/fr.lproj/Localizable.strings b/Pods/FDTake/Source/fr.lproj/Localizable.strings new file mode 100644 index 0000000..d5cc99f --- /dev/null +++ b/Pods/FDTake/Source/fr.lproj/Localizable.strings @@ -0,0 +1,17 @@ +/* Decline to proceed with operation */ +"cancel" = "Annuler"; + +/* Option to select photo from library */ +"chooseFromLibrary" = "Choisir une photo de la bibliothèque"; + +/* Option to select photo from photo roll */ +"chooseFromPhotoRoll" = "Choisir une photo de la pellicule"; + +/* There are no sources available to select a photo */ +"noSources" = "Aucune source disponible pour le choix de la photo"; + +/* Option to take photo using camera */ +"takePhoto" = "Prendre une photo"; + +/* Option to take video using camera */ +"takeVideo" = "Prendre une vidéo"; diff --git a/Pods/FDTake/Source/he.lproj/Localizable.strings b/Pods/FDTake/Source/he.lproj/Localizable.strings new file mode 100644 index 0000000..ce963f2 --- /dev/null +++ b/Pods/FDTake/Source/he.lproj/Localizable.strings @@ -0,0 +1,17 @@ +/* Decline to proceed with operation */ +"cancel" = "ביטול"; + +/* Option to select photo from library */ +"chooseFromLibrary" = "בחר מתיקייה"; + +/* Option to select photo from photo roll */ +"chooseFromPhotoRoll" = "​בחר תמונה ​קיימת"; + +/* There are no sources available to select a photo */ +"noSources" = "חסרים משאבים כדי לבחור תמונה"; + +/* Option to take photo using camera */ +"takePhoto" = "צלם תמונה"; + +/* Option to take video using camera */ +"takeVideo" = "צלם וידאו"; diff --git a/Pods/FDTake/Source/hu.lproj/Localizable.strings b/Pods/FDTake/Source/hu.lproj/Localizable.strings new file mode 100644 index 0000000..d4df48f --- /dev/null +++ b/Pods/FDTake/Source/hu.lproj/Localizable.strings @@ -0,0 +1,17 @@ +/* Decline to proceed with operation */ +"cancel" = "Mégsem"; + +/* Option to select photo from library */ +"chooseFromLibrary" = "Választás Fotótárból"; + +/* Option to select photo from photo roll */ +"chooseFromPhotoRoll" = "Választás a Fénykép Tekercsből"; + +/* There are no sources available to select a photo */ +"noSources" = "Nincs megfelelő forrás a fotó kiválasztásához."; + +/* Option to take photo using camera */ +"takePhoto" = "Fotó készítése"; + +/* Option to take video using camera */ +"takeVideo" = "Videó készítése"; diff --git a/Pods/FDTake/Source/it.lproj/Localizable.strings b/Pods/FDTake/Source/it.lproj/Localizable.strings new file mode 100644 index 0000000..f0f8fc6 --- /dev/null +++ b/Pods/FDTake/Source/it.lproj/Localizable.strings @@ -0,0 +1,17 @@ +/* Decline to proceed with operation */ +"cancel" = "Annulla"; + +/* Option to select photo from library */ +"chooseFromLibrary" = "Scegli dalla libreria"; + +/* Option to select photo from photo roll */ +"chooseFromPhotoRoll" = "Scegli dal rullino foto"; + +/* There are no sources available to select a photo */ +"noSources" = "Non ci sono sorgenti disponibili per selezionare una foto"; + +/* Option to take photo using camera */ +"takePhoto" = "Scatta foto"; + +/* Option to take video using camera */ +"takeVideo" = "Registra video"; diff --git a/Pods/FDTake/Source/nb.lproj/Localizable.strings b/Pods/FDTake/Source/nb.lproj/Localizable.strings new file mode 100644 index 0000000..7e71476 --- /dev/null +++ b/Pods/FDTake/Source/nb.lproj/Localizable.strings @@ -0,0 +1,17 @@ +/* Decline to proceed with operation */ +"cancel" = "Avbryt"; + +/* Option to select photo from library */ +"chooseFromLibrary" = "Velg eksisterende"; + +/* Option to select photo from photo roll */ +"chooseFromPhotoRoll" = "Velg fra kamerarull"; + +/* There are no sources available to select a photo */ +"noSources" = "Det er ingen tilgjengelige kilder for å velge et bilde"; + +/* Option to take photo using camera */ +"takePhoto" = "Ta bilde"; + +/* Option to take video using camera */ +"takeVideo" = "Ta video"; diff --git a/Pods/FDTake/Source/nl.lproj/Localizable.strings b/Pods/FDTake/Source/nl.lproj/Localizable.strings new file mode 100644 index 0000000..fe620ac --- /dev/null +++ b/Pods/FDTake/Source/nl.lproj/Localizable.strings @@ -0,0 +1,17 @@ +/* Decline to proceed with operation */ +"cancel" = "Annuleer"; + +/* Option to select photo from library */ +"chooseFromLibrary" = "Kies bestaande"; + +/* Option to select photo from photo roll */ +"chooseFromPhotoRoll" = "Kies uit filmrol"; + +/* There are no sources available to select a photo */ +"noSources" = "There are no sources available to select a photo"; + +/* Option to take photo using camera */ +"takePhoto" = "Maak foto"; + +/* Option to take video using camera */ +"takeVideo" = "Maak video"; diff --git a/Pods/FDTake/Source/pl.lproj/Localizable.strings b/Pods/FDTake/Source/pl.lproj/Localizable.strings new file mode 100644 index 0000000..ca1908a --- /dev/null +++ b/Pods/FDTake/Source/pl.lproj/Localizable.strings @@ -0,0 +1,17 @@ +/* Decline to proceed with operation */ +"cancel" = "Anuluj"; + +/* Option to select photo from library */ +"chooseFromLibrary" = "Wybierz z galerii"; + +/* Option to select photo from photo roll */ +"chooseFromPhotoRoll" = "Wybierz z rolki aparatu"; + +/* There are no sources available to select a photo */ +"noSources" = "Brak źródła, z którego można by wybrać zdjęcie"; + +/* Option to take photo using camera */ +"takePhoto" = "Zrób zdjęcie"; + +/* Option to take video using camera */ +"takeVideo" = "Nagraj film"; diff --git a/Pods/FDTake/Source/pt-PT.lproj/Localizable.strings b/Pods/FDTake/Source/pt-PT.lproj/Localizable.strings new file mode 100644 index 0000000..e904b0d --- /dev/null +++ b/Pods/FDTake/Source/pt-PT.lproj/Localizable.strings @@ -0,0 +1,17 @@ +/* Decline to proceed with operation */ +"cancel" = "Cancelar"; + +/* Option to select photo from library */ +"chooseFromLibrary" = "Escolher existente"; + +/* Option to select photo from photo roll */ +"chooseFromPhotoRoll" = "Escolher do rolo da câmera"; + +/* There are no sources available to select a photo */ +"noSources" = "Não há fontes disponíveis para selecionar uma foto"; + +/* Option to take photo using camera */ +"takePhoto" = "Tirar foto"; + +/* Option to take video using camera */ +"takeVideo" = "Filmar vídeo"; diff --git a/Pods/FDTake/Source/ru.lproj/Localizable.strings b/Pods/FDTake/Source/ru.lproj/Localizable.strings new file mode 100644 index 0000000..52cc282 --- /dev/null +++ b/Pods/FDTake/Source/ru.lproj/Localizable.strings @@ -0,0 +1,17 @@ +/* Decline to proceed with operation */ +"cancel" = "Отмена"; + +/* Option to select photo from library */ +"chooseFromLibrary" = "Выберите из библиотеки"; + +/* Option to select photo from photo roll */ +"chooseFromPhotoRoll" = "Выберите из фотопленки"; + +/* There are no sources available to select a photo */ +"noSources" = "Нет доступных источников для выбора фото"; + +/* Option to take photo using camera */ +"takePhoto" = "Сфотографировать"; + +/* Option to take video using camera */ +"takeVideo" = "Снять видео"; diff --git a/Pods/FDTake/Source/sv.lproj/Localizable.strings b/Pods/FDTake/Source/sv.lproj/Localizable.strings new file mode 100644 index 0000000..6f604aa --- /dev/null +++ b/Pods/FDTake/Source/sv.lproj/Localizable.strings @@ -0,0 +1,17 @@ +/* Decline to proceed with operation */ +"cancel" = "Avbryt"; + +/* Option to select photo from library */ +"chooseFromLibrary" = "Välj befintlig"; + +/* Option to select photo from photo roll */ +"chooseFromPhotoRoll" = "Ta bild eller video"; + +/* There are no sources available to select a photo */ +"noSources" = "Det finns inga tillgängliga källor för att välja ett foto"; + +/* Option to take photo using camera */ +"takePhoto" = "Ta bild"; + +/* Option to take video using camera */ +"takeVideo" = "Ta video"; diff --git a/Pods/FDTake/Source/tr.lproj/Localizable.strings b/Pods/FDTake/Source/tr.lproj/Localizable.strings new file mode 100644 index 0000000..4154f3e --- /dev/null +++ b/Pods/FDTake/Source/tr.lproj/Localizable.strings @@ -0,0 +1,17 @@ +/* Decline to proceed with operation */ +"cancel" = "İptal"; + +/* Option to select photo from library */ +"chooseFromLibrary" = "Kütüphaneden seç"; + +/* Option to select photo from photo roll */ +"chooseFromPhotoRoll" = "Kameradan seç"; + +/* There are no sources available to select a photo */ +"noSources" = "Resim seçimi için hiçbir kaynak bulunamadı."; + +/* Option to take photo using camera */ +"takePhoto" = "Fotoğraf çek."; + +/* Option to take video using camera */ +"takeVideo" = "Bir video çekin."; diff --git a/Pods/FDTake/Source/zh-Hans.lproj/Localizable.strings b/Pods/FDTake/Source/zh-Hans.lproj/Localizable.strings new file mode 100644 index 0000000..233592a --- /dev/null +++ b/Pods/FDTake/Source/zh-Hans.lproj/Localizable.strings @@ -0,0 +1,17 @@ +/* Decline to proceed with operation */ +"cancel" = "取消"; + +/* Option to select photo from library */ +"chooseFromLibrary" = "从相册选择"; + +/* Option to select photo from photo roll */ +"chooseFromPhotoRoll" = "从相册选择"; + +/* There are no sources available to select a photo */ +"noSources" = "没有照片可选"; + +/* Option to take photo using camera */ +"takePhoto" = "拍照"; + +/* Option to take video using camera */ +"takeVideo" = "拍视频"; diff --git a/Pods/FDTake/Source/zh-Hant.lproj/Localizable.strings b/Pods/FDTake/Source/zh-Hant.lproj/Localizable.strings new file mode 100644 index 0000000..44990f9 --- /dev/null +++ b/Pods/FDTake/Source/zh-Hant.lproj/Localizable.strings @@ -0,0 +1,17 @@ +/* Decline to proceed with operation */ +"cancel" = "取消"; + +/* Option to select photo from library */ +"chooseFromLibrary" = "從相冊選擇"; + +/* Option to select photo from photo roll */ +"chooseFromPhotoRoll" = "從相冊選擇"; + +/* There are no sources available to select a photo */ +"noSources" = "沒有照片可選"; + +/* Option to take photo using camera */ +"takePhoto" = "拍照"; + +/* Option to take video using camera */ +"takeVideo" = "拍視頻"; diff --git a/Pods/Manifest.lock b/Pods/Manifest.lock new file mode 100644 index 0000000..a6480d6 --- /dev/null +++ b/Pods/Manifest.lock @@ -0,0 +1,20 @@ +PODS: + - FDTake (2.0.0) + - PryntTrimmerView (2.0.1) + +DEPENDENCIES: + - FDTake + - PryntTrimmerView + +SPEC REPOS: + https://github.com/CocoaPods/Specs.git: + - FDTake + - PryntTrimmerView + +SPEC CHECKSUMS: + FDTake: 21152c660ddf075a859f86af83f9d17dc4b5a539 + PryntTrimmerView: 4260ae497a2f3e1bbfc0b71247eb74ab92bf0490 + +PODFILE CHECKSUM: 2b8d33bd57a2ab3ba64f8ffdbf4ecd4cccf326e1 + +COCOAPODS: 1.5.0 diff --git a/Pods/Pods.xcodeproj/project.pbxproj b/Pods/Pods.xcodeproj/project.pbxproj new file mode 100644 index 0000000..1c68fb3 --- /dev/null +++ b/Pods/Pods.xcodeproj/project.pbxproj @@ -0,0 +1,1204 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 48; + objects = { + +/* Begin PBXBuildFile section */ + 026FE915AD8D2818FA656AD643CDBDA0 /* Localizable.strings in Sources */ = {isa = PBXBuildFile; fileRef = 7136601BDCB39CDDBAD093E869E1EF71 /* Localizable.strings */; }; + 0A4F7F1139782166B26076ED2136647C /* Localizable.strings in Sources */ = {isa = PBXBuildFile; fileRef = 3BF89784B25F956888EA829364663475 /* Localizable.strings */; }; + 102A67929A494B567CB5909ED2A5A3C4 /* Localizable.strings in Sources */ = {isa = PBXBuildFile; fileRef = 4B82FC3D23E97C06E539EE609DDDF846 /* Localizable.strings */; }; + 1A61E1BB499964DC3ABBDDE159D35B61 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; + 1FEFAC01D8CCE09D1FB401A00ECB7CCE /* PryntTrimmerView-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 8CA46BA2D1E21E0F3676BE626F0F1A85 /* PryntTrimmerView-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 2D9E61A0900DACA452D6E2C3059F6FED /* Localizable.strings in Sources */ = {isa = PBXBuildFile; fileRef = 32E54E050B67B5888AFABCE04E1FDF7D /* Localizable.strings */; }; + 30287309C19F78204080A84BAF0985E3 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; + 3B81AD6C5A05BC0AFBD01FE30CF1F181 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; + 3C101CEDF2D1678CF899965AF4687351 /* PryntTrimmerView-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 9E89318044790AC4C207A032D87C70A3 /* PryntTrimmerView-dummy.m */; }; + 40A84508B8D2D3A0BDAA4CAAFEAE3242 /* Localizable.strings in Sources */ = {isa = PBXBuildFile; fileRef = 5B47115BEF792A273C04407065A806FE /* Localizable.strings */; }; + 495711649DED7A0BC067AC2C81C36E1D /* CropMaskView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7A015968E6C88EAFBB6D27516BEB96AA /* CropMaskView.swift */; }; + 502BA91E41FEADE1F345F8439AAE1B48 /* Localizable.strings in Sources */ = {isa = PBXBuildFile; fileRef = C6F8F645C3BEE194C20F56F43B41772A /* Localizable.strings */; }; + 555856CB51012D5687D619FC2A5FC158 /* Localizable.strings in Sources */ = {isa = PBXBuildFile; fileRef = A410E38DA3A7230C0AAEA242F1A49819 /* Localizable.strings */; }; + 575F81EEE63F7468CE65625E1ED6A325 /* Localizable.strings in Sources */ = {isa = PBXBuildFile; fileRef = 6C2582256EF269FB9F5C0F0BF0A41B84 /* Localizable.strings */; }; + 683CDD3125BC0FE9AA1E94BE30082521 /* Pods-testingUITests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 9377639F425C6BDAB9B166D6AE51777D /* Pods-testingUITests-dummy.m */; }; + 73F284B4BDD7284CA448586215D019B5 /* Pods-testingUITests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 12FB342931C4CD5BB9EA2B41FE0D2F71 /* Pods-testingUITests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 74E8A1B2F4BD16B1869A5480BED16FED /* ThumbSelectorView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE50EE9ED708B81ABC82C720A39F8884 /* ThumbSelectorView.swift */; }; + 75DC3493D90DA707E02A926E9337013B /* Localizable.strings in Sources */ = {isa = PBXBuildFile; fileRef = 7408E6A2D8ED19B3FBB621FD7818903B /* Localizable.strings */; }; + 776DE97CF5D9AD584D2872369B4D89FB /* Localizable.strings in Sources */ = {isa = PBXBuildFile; fileRef = EC41FE292E0D30A6B74B47F7D3034E5C /* Localizable.strings */; }; + 77942FB82FE4965AADA5FEB194191D8C /* Pods-testingTests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 332AF3D8821AE58A9C64F55005BE0B8A /* Pods-testingTests-dummy.m */; }; + 7AB4095A166568E7843E8F19E4AF185A /* Pods-testing-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D0885E48D0BA2EFE975424F8ABB57DB /* Pods-testing-dummy.m */; }; + 8266744C26905124BFBB3AD70A9A606E /* Info.plist in Sources */ = {isa = PBXBuildFile; fileRef = 8985C62EE5575FA6F1FCC1EC3AD537DD /* Info.plist */; }; + 84555B6F0382C8649063D5E6052DAFA5 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; + 89CF80735E1835357BD29AB02C829EBA /* AssetVideoScrollView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B5E8276ACD973C10F422623FD9697132 /* AssetVideoScrollView.swift */; }; + 8D9A20D1101C3FF4B68B52E16ED19AC7 /* Pods-testing-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 2E6F5684818F562FDF395498F45D361B /* Pods-testing-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 935E6921156427B456DDCDE67CD38BDA /* Pods-testingTests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 49EC4650302449A2A6A8A7E344A37EE6 /* Pods-testingTests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 9777237E6B5F9B0319BEE20B4447DBAA /* VideoScrollView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C06CA9C48E12F43B3031B32DD73E92EA /* VideoScrollView.swift */; }; + 9886001E2360094E02A50472D95B8FEA /* Localizable.strings in Sources */ = {isa = PBXBuildFile; fileRef = 3E15B6B0926BDE079D1FF92C3B55CE17 /* Localizable.strings */; }; + A70BC074093E0921978709274D687FFB /* Localizable.strings in Sources */ = {isa = PBXBuildFile; fileRef = ECD7AD6F63E3217550AEF0FA2A0A5711 /* Localizable.strings */; }; + AC1031D65D075DB09642D9757FEC4D27 /* Localizable.strings in Sources */ = {isa = PBXBuildFile; fileRef = 72C57C66CDD773A01F63E53F79E80DDF /* Localizable.strings */; }; + B0569695B7A16A926C839A6DDD23869B /* Localizable.strings in Sources */ = {isa = PBXBuildFile; fileRef = A9E8031B1678CEC1AD3E0BA4AF2D6B45 /* Localizable.strings */; }; + B4EFF12F68E2B9D70124CD0CB3C97B0F /* PryntTrimmerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 708C5A6BF8663D38BC2AA97803DC0D7D /* PryntTrimmerView.swift */; }; + B7982E847C3F06D09808930ADE53D225 /* Localizable.strings in Sources */ = {isa = PBXBuildFile; fileRef = 68A8ABE8B0C54720B3EACD261F95DCB9 /* Localizable.strings */; }; + B84C090D2DDB55E4634FBD2AC48A299C /* FDTake-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 16EEE482C9BA75FDC1AB08084B395063 /* FDTake-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + BD4B44233D8A5CFA4C1885DC736B94CC /* VideoCropView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEFF44DC45D050093D0B0A245A0E1FB3 /* VideoCropView.swift */; }; + D2D466DCE6393B4BC6A9E9DE5753FA48 /* FDTake-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 3B580392F9B7AD043C4C77A7FFA77611 /* FDTake-dummy.m */; }; + D6FDCD21177F2DF43C7661BD0E13B040 /* HandlerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 90807A0E1F2BDD4965195180F323B0A0 /* HandlerView.swift */; }; + DF0C9690E4E3B068D728ACD53094A43E /* AVAssetTimeSelector.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1274B0857194D206A45128B2124ADBFD /* AVAssetTimeSelector.swift */; }; + E5216D8C71C4E2409AD135ACD001C3ED /* Localizable.strings in Sources */ = {isa = PBXBuildFile; fileRef = 475358B21BEEDF5A2F71C259179ACE97 /* Localizable.strings */; }; + E9A18619BD0757DED90A284BC3770D4A /* Localizable.strings in Sources */ = {isa = PBXBuildFile; fileRef = FCB576725448CC84880D131911F59067 /* Localizable.strings */; }; + EBCDC230259EB16B2665FA8C79B7328D /* FDTake.h in Headers */ = {isa = PBXBuildFile; fileRef = 9D0DE9042A5FD9209875A534761F3BCC /* FDTake.h */; settings = {ATTRIBUTES = (Public, ); }; }; + F0E396AC6DC2D2B172452D28EB3E95D0 /* FDTakeController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0345A5048C08806814C0E55B0E5BE3B8 /* FDTakeController.swift */; }; + F792920BDE0AE9D60C60B78007A861E0 /* Localizable.strings in Sources */ = {isa = PBXBuildFile; fileRef = 5981E8224129325481C90A617758386E /* Localizable.strings */; }; + FDC3B287464DDB37CD43A04402588A16 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; + FE505D8FAF07168C42DDBD885A4D1E21 /* Localizable.strings in Sources */ = {isa = PBXBuildFile; fileRef = 41C84DD5F5A792270E3A477163B5DF94 /* Localizable.strings */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 6F7AE388A81F4DEBDD069C92F3405167 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; + proxyType = 1; + remoteGlobalIDString = 5BDD18CFD25C9C8EB23F1B735E50AE2B; + remoteInfo = PryntTrimmerView; + }; + 8678033C425354C977938039893F71B2 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; + proxyType = 1; + remoteGlobalIDString = E25D1347A59BFC223372DC9BB39811DF; + remoteInfo = FDTake; + }; + C411EC629702070DA4A6A517E1B59634 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; + proxyType = 1; + remoteGlobalIDString = E3C092A1482E6825F5F76AC2561B5806; + remoteInfo = "Pods-testing"; + }; + F552A0115CA6C990248CA8CA206D66DF /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; + proxyType = 1; + remoteGlobalIDString = E3C092A1482E6825F5F76AC2561B5806; + remoteInfo = "Pods-testing"; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 0345A5048C08806814C0E55B0E5BE3B8 /* FDTakeController.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = FDTakeController.swift; path = Source/FDTakeController.swift; sourceTree = ""; }; + 096667F824EF8F9453A9BF1799896D4F /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 1274B0857194D206A45128B2124ADBFD /* AVAssetTimeSelector.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AVAssetTimeSelector.swift; path = PryntTrimmerView/Classes/Parents/AVAssetTimeSelector.swift; sourceTree = ""; }; + 12FB342931C4CD5BB9EA2B41FE0D2F71 /* Pods-testingUITests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-testingUITests-umbrella.h"; sourceTree = ""; }; + 16EEE482C9BA75FDC1AB08084B395063 /* FDTake-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "FDTake-umbrella.h"; sourceTree = ""; }; + 17085A21A932E3C9632A185B09BA2A05 /* Pods-testingTests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-testingTests-frameworks.sh"; sourceTree = ""; }; + 272360D750CF93E8D4B0084C8888B97B /* FDTake.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = FDTake.modulemap; sourceTree = ""; }; + 2B88BB1BA60CC4D8E13B92A43F7A5CB4 /* Pods_testingTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_testingTests.framework; path = "Pods-testingTests.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; + 2D0885E48D0BA2EFE975424F8ABB57DB /* Pods-testing-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-testing-dummy.m"; sourceTree = ""; }; + 2E5459C8B0E7B9B2A30E26D1ECB230B3 /* Pods-testingUITests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-testingUITests.debug.xcconfig"; sourceTree = ""; }; + 2E6F5684818F562FDF395498F45D361B /* Pods-testing-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-testing-umbrella.h"; sourceTree = ""; }; + 319BA5BB5D2BA0C925F26A996F103673 /* FDTake.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = FDTake.framework; path = FDTake.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 32E54E050B67B5888AFABCE04E1FDF7D /* Localizable.strings */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = Localizable.strings; path = sv.lproj/Localizable.strings; sourceTree = ""; }; + 332AF3D8821AE58A9C64F55005BE0B8A /* Pods-testingTests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-testingTests-dummy.m"; sourceTree = ""; }; + 3A270EA56604F6FB806330F4884126D5 /* Pods-testing-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-testing-acknowledgements.plist"; sourceTree = ""; }; + 3A75CF3D61B35949AB24C6D1F9DF829C /* Pods-testingTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-testingTests.debug.xcconfig"; sourceTree = ""; }; + 3B580392F9B7AD043C4C77A7FFA77611 /* FDTake-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "FDTake-dummy.m"; sourceTree = ""; }; + 3BF89784B25F956888EA829364663475 /* Localizable.strings */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = Localizable.strings; path = ru.lproj/Localizable.strings; sourceTree = ""; }; + 3E15B6B0926BDE079D1FF92C3B55CE17 /* Localizable.strings */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = Localizable.strings; path = "zh-Hans.lproj/Localizable.strings"; sourceTree = ""; }; + 4121E2C30798CFF283204E3EF3C2A0D8 /* Pods-testingTests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-testingTests-acknowledgements.plist"; sourceTree = ""; }; + 41C84DD5F5A792270E3A477163B5DF94 /* Localizable.strings */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = Localizable.strings; path = nb.lproj/Localizable.strings; sourceTree = ""; }; + 475358B21BEEDF5A2F71C259179ACE97 /* Localizable.strings */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = Localizable.strings; path = fr.lproj/Localizable.strings; sourceTree = ""; }; + 49EC4650302449A2A6A8A7E344A37EE6 /* Pods-testingTests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-testingTests-umbrella.h"; sourceTree = ""; }; + 4B82FC3D23E97C06E539EE609DDDF846 /* Localizable.strings */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = Localizable.strings; path = tr.lproj/Localizable.strings; sourceTree = ""; }; + 5981E8224129325481C90A617758386E /* Localizable.strings */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = Localizable.strings; path = pl.lproj/Localizable.strings; sourceTree = ""; }; + 5B47115BEF792A273C04407065A806FE /* Localizable.strings */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = Localizable.strings; path = da.lproj/Localizable.strings; sourceTree = ""; }; + 5B88694C3FA4610CFF12473E725D3B8D /* Pods-testingTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-testingTests.release.xcconfig"; sourceTree = ""; }; + 5C3B4C256E15F0EE709690A27B83B290 /* Pods-testingTests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-testingTests.modulemap"; sourceTree = ""; }; + 5CE5282D2FE2B996CE03C11F10E92312 /* Pods-testingUITests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-testingUITests-acknowledgements.markdown"; sourceTree = ""; }; + 60EDA3696DBF1CC264F125F6217D2554 /* FDTake-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "FDTake-prefix.pch"; sourceTree = ""; }; + 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; + 68A8ABE8B0C54720B3EACD261F95DCB9 /* Localizable.strings */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = Localizable.strings; path = nl.lproj/Localizable.strings; sourceTree = ""; }; + 6C2582256EF269FB9F5C0F0BF0A41B84 /* Localizable.strings */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = Localizable.strings; path = en.lproj/Localizable.strings; sourceTree = ""; }; + 6CDCF2916A0DA298B1530B1DE724162A /* Pods-testing-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-testing-resources.sh"; sourceTree = ""; }; + 708C5A6BF8663D38BC2AA97803DC0D7D /* PryntTrimmerView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PryntTrimmerView.swift; path = PryntTrimmerView/Classes/Trimmer/PryntTrimmerView.swift; sourceTree = ""; }; + 7136601BDCB39CDDBAD093E869E1EF71 /* Localizable.strings */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = Localizable.strings; path = el.lproj/Localizable.strings; sourceTree = ""; }; + 71AF641FFE3E5B4F7CE23E7135A6FDAB /* Pods_testingUITests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_testingUITests.framework; path = "Pods-testingUITests.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; + 71D99B7D92F7391BF8528AFA32E311C0 /* Pods-testing.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-testing.release.xcconfig"; sourceTree = ""; }; + 72C57C66CDD773A01F63E53F79E80DDF /* Localizable.strings */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = Localizable.strings; path = hu.lproj/Localizable.strings; sourceTree = ""; }; + 7408E6A2D8ED19B3FBB621FD7818903B /* Localizable.strings */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = Localizable.strings; path = "zh-Hant.lproj/Localizable.strings"; sourceTree = ""; }; + 7940BBDB7A4399B763A96A1CF79AB7FD /* Pods_testing.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_testing.framework; path = "Pods-testing.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; + 7A015968E6C88EAFBB6D27516BEB96AA /* CropMaskView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CropMaskView.swift; path = PryntTrimmerView/Classes/Cropper/CropMaskView.swift; sourceTree = ""; }; + 7B24FC141B5918339C6A7C1DED8FEC43 /* Pods-testingTests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-testingTests-acknowledgements.markdown"; sourceTree = ""; }; + 7D509C95BD51079AE2279608C172A33D /* Pods-testingUITests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-testingUITests.release.xcconfig"; sourceTree = ""; }; + 7F2B71C10A5279C0BE3353AD8B3496E4 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 866078EED01EEB7275BB244E26837624 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 8985C62EE5575FA6F1FCC1EC3AD537DD /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; name = Info.plist; path = Source/Info.plist; sourceTree = ""; }; + 8CA46BA2D1E21E0F3676BE626F0F1A85 /* PryntTrimmerView-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "PryntTrimmerView-umbrella.h"; sourceTree = ""; }; + 8E4D56A77F886ED0741BCE0702D15584 /* PryntTrimmerView.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = PryntTrimmerView.xcconfig; sourceTree = ""; }; + 8E972E0280521E27FBE0CF7E3CEA2281 /* PryntTrimmerView-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "PryntTrimmerView-prefix.pch"; sourceTree = ""; }; + 90807A0E1F2BDD4965195180F323B0A0 /* HandlerView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = HandlerView.swift; path = PryntTrimmerView/Classes/Trimmer/HandlerView.swift; sourceTree = ""; }; + 9377639F425C6BDAB9B166D6AE51777D /* Pods-testingUITests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-testingUITests-dummy.m"; sourceTree = ""; }; + 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + 9D0DE9042A5FD9209875A534761F3BCC /* FDTake.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FDTake.h; path = Source/FDTake.h; sourceTree = ""; }; + 9E89318044790AC4C207A032D87C70A3 /* PryntTrimmerView-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "PryntTrimmerView-dummy.m"; sourceTree = ""; }; + A07AD2CDBB705C84DC914E902228D52C /* Pods-testingUITests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-testingUITests-resources.sh"; sourceTree = ""; }; + A410E38DA3A7230C0AAEA242F1A49819 /* Localizable.strings */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = Localizable.strings; path = "pt-PT.lproj/Localizable.strings"; sourceTree = ""; }; + A4634B85D26355122A632BE383A70E7C /* Pods-testing.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-testing.debug.xcconfig"; sourceTree = ""; }; + A9E8031B1678CEC1AD3E0BA4AF2D6B45 /* Localizable.strings */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = Localizable.strings; path = it.lproj/Localizable.strings; sourceTree = ""; }; + AB21CA6DD150F1A059BEFC7B4D2658AD /* Pods-testingUITests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-testingUITests-acknowledgements.plist"; sourceTree = ""; }; + B3C1DAB57FB44B9850971B2AA533E19F /* Pods-testing.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-testing.modulemap"; sourceTree = ""; }; + B5E8276ACD973C10F422623FD9697132 /* AssetVideoScrollView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AssetVideoScrollView.swift; path = PryntTrimmerView/Classes/Parents/AssetVideoScrollView.swift; sourceTree = ""; }; + BE50EE9ED708B81ABC82C720A39F8884 /* ThumbSelectorView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ThumbSelectorView.swift; path = PryntTrimmerView/Classes/ThumbSelectorView.swift; sourceTree = ""; }; + C06CA9C48E12F43B3031B32DD73E92EA /* VideoScrollView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = VideoScrollView.swift; path = PryntTrimmerView/Classes/Cropper/VideoScrollView.swift; sourceTree = ""; }; + C1772DED9791949B463C956E6879F72E /* FDTake.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = FDTake.xcconfig; sourceTree = ""; }; + C3648C72FB3B960F05EE2F742DE2ACD6 /* Pods-testingUITests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-testingUITests.modulemap"; sourceTree = ""; }; + C6F8F645C3BEE194C20F56F43B41772A /* Localizable.strings */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = Localizable.strings; path = de.lproj/Localizable.strings; sourceTree = ""; }; + CAC5391662E45E39D0303F6268822085 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + D1854469BA008A5ADD641E56EBCCFD31 /* PryntTrimmerView.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = PryntTrimmerView.framework; path = PryntTrimmerView.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + DA17ED458D264BF4731546A01DAC6F41 /* PryntTrimmerView.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = PryntTrimmerView.modulemap; sourceTree = ""; }; + DEFF44DC45D050093D0B0A245A0E1FB3 /* VideoCropView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = VideoCropView.swift; path = PryntTrimmerView/Classes/Cropper/VideoCropView.swift; sourceTree = ""; }; + E201621BB401722649CAE11E21A9CC1A /* Pods-testingTests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-testingTests-resources.sh"; sourceTree = ""; }; + E239BADA8FF1C3282D43AFE1E5471385 /* Pods-testing-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-testing-frameworks.sh"; sourceTree = ""; }; + EC41FE292E0D30A6B74B47F7D3034E5C /* Localizable.strings */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = Localizable.strings; path = ar.lproj/Localizable.strings; sourceTree = ""; }; + ECD7AD6F63E3217550AEF0FA2A0A5711 /* Localizable.strings */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = Localizable.strings; path = he.lproj/Localizable.strings; sourceTree = ""; }; + EEC0626F92C20F18E74C12BDDCCD759B /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + F79AD9BB7066C25F6C446F9D5AF9B3D0 /* Pods-testingUITests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-testingUITests-frameworks.sh"; sourceTree = ""; }; + F8ACFE9CA669818C2E78CC6E8265F526 /* Pods-testing-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-testing-acknowledgements.markdown"; sourceTree = ""; }; + FCB576725448CC84880D131911F59067 /* Localizable.strings */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = Localizable.strings; path = es.lproj/Localizable.strings; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 03AF260CBA49E3E6AF99AEFAC2DDBF01 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 84555B6F0382C8649063D5E6052DAFA5 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 3F233B7CEB69A6DEA1571C333B991692 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + FDC3B287464DDB37CD43A04402588A16 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 4AB80DD5C32937ACE3B4D5D33EA48867 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 30287309C19F78204080A84BAF0985E3 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 78607FD166B80138914D4FB5C7A0C03D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 3B81AD6C5A05BC0AFBD01FE30CF1F181 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 78CE9551D5EA358C30483E19CDA526E8 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 1A61E1BB499964DC3ABBDDE159D35B61 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 001CE547652AF2FF17E17B4B2B9BE910 /* Support Files */ = { + isa = PBXGroup; + children = ( + 096667F824EF8F9453A9BF1799896D4F /* Info.plist */, + DA17ED458D264BF4731546A01DAC6F41 /* PryntTrimmerView.modulemap */, + 8E4D56A77F886ED0741BCE0702D15584 /* PryntTrimmerView.xcconfig */, + 9E89318044790AC4C207A032D87C70A3 /* PryntTrimmerView-dummy.m */, + 8E972E0280521E27FBE0CF7E3CEA2281 /* PryntTrimmerView-prefix.pch */, + 8CA46BA2D1E21E0F3676BE626F0F1A85 /* PryntTrimmerView-umbrella.h */, + ); + name = "Support Files"; + path = "../Target Support Files/PryntTrimmerView"; + sourceTree = ""; + }; + 0F7AEC2768463FCB1B8C4151E54106D3 /* Support Files */ = { + isa = PBXGroup; + children = ( + 272360D750CF93E8D4B0084C8888B97B /* FDTake.modulemap */, + C1772DED9791949B463C956E6879F72E /* FDTake.xcconfig */, + 3B580392F9B7AD043C4C77A7FFA77611 /* FDTake-dummy.m */, + 60EDA3696DBF1CC264F125F6217D2554 /* FDTake-prefix.pch */, + 16EEE482C9BA75FDC1AB08084B395063 /* FDTake-umbrella.h */, + CAC5391662E45E39D0303F6268822085 /* Info.plist */, + ); + name = "Support Files"; + path = "../Target Support Files/FDTake"; + sourceTree = ""; + }; + 1711DAC413E82CBE08630900E68F2D52 /* Targets Support Files */ = { + isa = PBXGroup; + children = ( + 93302BAE3AC23A2B6A49AFDAA91AD9B5 /* Pods-testing */, + 588D9936B868EA87FF6618E42769475B /* Pods-testingTests */, + 82FFBD0ED8DA84013DA98D9B74021E59 /* Pods-testingUITests */, + ); + name = "Targets Support Files"; + sourceTree = ""; + }; + 37EC7835EDD981818AFA39ADE51D9715 /* FDTake */ = { + isa = PBXGroup; + children = ( + 9D0DE9042A5FD9209875A534761F3BCC /* FDTake.h */, + 0345A5048C08806814C0E55B0E5BE3B8 /* FDTakeController.swift */, + 8985C62EE5575FA6F1FCC1EC3AD537DD /* Info.plist */, + 1746E651A87F69E5A5E524124848C4C6 /* Localizable.strings */, + 0F7AEC2768463FCB1B8C4151E54106D3 /* Support Files */, + ); + name = FDTake; + path = FDTake; + sourceTree = ""; + }; + 4F3223DA21A86C0DCC80181AF2F55B3D /* Products */ = { + isa = PBXGroup; + children = ( + 319BA5BB5D2BA0C925F26A996F103673 /* FDTake.framework */, + 7940BBDB7A4399B763A96A1CF79AB7FD /* Pods_testing.framework */, + 2B88BB1BA60CC4D8E13B92A43F7A5CB4 /* Pods_testingTests.framework */, + 71AF641FFE3E5B4F7CE23E7135A6FDAB /* Pods_testingUITests.framework */, + D1854469BA008A5ADD641E56EBCCFD31 /* PryntTrimmerView.framework */, + ); + name = Products; + sourceTree = ""; + }; + 588D9936B868EA87FF6618E42769475B /* Pods-testingTests */ = { + isa = PBXGroup; + children = ( + 866078EED01EEB7275BB244E26837624 /* Info.plist */, + 5C3B4C256E15F0EE709690A27B83B290 /* Pods-testingTests.modulemap */, + 7B24FC141B5918339C6A7C1DED8FEC43 /* Pods-testingTests-acknowledgements.markdown */, + 4121E2C30798CFF283204E3EF3C2A0D8 /* Pods-testingTests-acknowledgements.plist */, + 332AF3D8821AE58A9C64F55005BE0B8A /* Pods-testingTests-dummy.m */, + 17085A21A932E3C9632A185B09BA2A05 /* Pods-testingTests-frameworks.sh */, + E201621BB401722649CAE11E21A9CC1A /* Pods-testingTests-resources.sh */, + 49EC4650302449A2A6A8A7E344A37EE6 /* Pods-testingTests-umbrella.h */, + 3A75CF3D61B35949AB24C6D1F9DF829C /* Pods-testingTests.debug.xcconfig */, + 5B88694C3FA4610CFF12473E725D3B8D /* Pods-testingTests.release.xcconfig */, + ); + name = "Pods-testingTests"; + path = "Target Support Files/Pods-testingTests"; + sourceTree = ""; + }; + 7DB346D0F39D3F0E887471402A8071AB = { + isa = PBXGroup; + children = ( + 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, + BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, + D86CC9DAA020F217BA860300AD098725 /* Pods */, + 4F3223DA21A86C0DCC80181AF2F55B3D /* Products */, + 1711DAC413E82CBE08630900E68F2D52 /* Targets Support Files */, + ); + sourceTree = ""; + }; + 82FFBD0ED8DA84013DA98D9B74021E59 /* Pods-testingUITests */ = { + isa = PBXGroup; + children = ( + EEC0626F92C20F18E74C12BDDCCD759B /* Info.plist */, + C3648C72FB3B960F05EE2F742DE2ACD6 /* Pods-testingUITests.modulemap */, + 5CE5282D2FE2B996CE03C11F10E92312 /* Pods-testingUITests-acknowledgements.markdown */, + AB21CA6DD150F1A059BEFC7B4D2658AD /* Pods-testingUITests-acknowledgements.plist */, + 9377639F425C6BDAB9B166D6AE51777D /* Pods-testingUITests-dummy.m */, + F79AD9BB7066C25F6C446F9D5AF9B3D0 /* Pods-testingUITests-frameworks.sh */, + A07AD2CDBB705C84DC914E902228D52C /* Pods-testingUITests-resources.sh */, + 12FB342931C4CD5BB9EA2B41FE0D2F71 /* Pods-testingUITests-umbrella.h */, + 2E5459C8B0E7B9B2A30E26D1ECB230B3 /* Pods-testingUITests.debug.xcconfig */, + 7D509C95BD51079AE2279608C172A33D /* Pods-testingUITests.release.xcconfig */, + ); + name = "Pods-testingUITests"; + path = "Target Support Files/Pods-testingUITests"; + sourceTree = ""; + }; + 93302BAE3AC23A2B6A49AFDAA91AD9B5 /* Pods-testing */ = { + isa = PBXGroup; + children = ( + 7F2B71C10A5279C0BE3353AD8B3496E4 /* Info.plist */, + B3C1DAB57FB44B9850971B2AA533E19F /* Pods-testing.modulemap */, + F8ACFE9CA669818C2E78CC6E8265F526 /* Pods-testing-acknowledgements.markdown */, + 3A270EA56604F6FB806330F4884126D5 /* Pods-testing-acknowledgements.plist */, + 2D0885E48D0BA2EFE975424F8ABB57DB /* Pods-testing-dummy.m */, + E239BADA8FF1C3282D43AFE1E5471385 /* Pods-testing-frameworks.sh */, + 6CDCF2916A0DA298B1530B1DE724162A /* Pods-testing-resources.sh */, + 2E6F5684818F562FDF395498F45D361B /* Pods-testing-umbrella.h */, + A4634B85D26355122A632BE383A70E7C /* Pods-testing.debug.xcconfig */, + 71D99B7D92F7391BF8528AFA32E311C0 /* Pods-testing.release.xcconfig */, + ); + name = "Pods-testing"; + path = "Target Support Files/Pods-testing"; + sourceTree = ""; + }; + 9AEF8C18B90D1D1AB078025E3CA2B046 /* PryntTrimmerView */ = { + isa = PBXGroup; + children = ( + B5E8276ACD973C10F422623FD9697132 /* AssetVideoScrollView.swift */, + 1274B0857194D206A45128B2124ADBFD /* AVAssetTimeSelector.swift */, + 7A015968E6C88EAFBB6D27516BEB96AA /* CropMaskView.swift */, + 90807A0E1F2BDD4965195180F323B0A0 /* HandlerView.swift */, + 708C5A6BF8663D38BC2AA97803DC0D7D /* PryntTrimmerView.swift */, + BE50EE9ED708B81ABC82C720A39F8884 /* ThumbSelectorView.swift */, + DEFF44DC45D050093D0B0A245A0E1FB3 /* VideoCropView.swift */, + C06CA9C48E12F43B3031B32DD73E92EA /* VideoScrollView.swift */, + 001CE547652AF2FF17E17B4B2B9BE910 /* Support Files */, + ); + name = PryntTrimmerView; + path = PryntTrimmerView; + sourceTree = ""; + }; + BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { + isa = PBXGroup; + children = ( + D35AF013A5F0BAD4F32504907A52519E /* iOS */, + ); + name = Frameworks; + sourceTree = ""; + }; + D35AF013A5F0BAD4F32504907A52519E /* iOS */ = { + isa = PBXGroup; + children = ( + 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */, + ); + name = iOS; + sourceTree = ""; + }; + D86CC9DAA020F217BA860300AD098725 /* Pods */ = { + isa = PBXGroup; + children = ( + 37EC7835EDD981818AFA39ADE51D9715 /* FDTake */, + 9AEF8C18B90D1D1AB078025E3CA2B046 /* PryntTrimmerView */, + ); + name = Pods; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 5FF35A548715E5AA33C195615A18838F /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 73F284B4BDD7284CA448586215D019B5 /* Pods-testingUITests-umbrella.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6F89E0CB8928D38F247FC4B58F4E0CB2 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + B84C090D2DDB55E4634FBD2AC48A299C /* FDTake-umbrella.h in Headers */, + EBCDC230259EB16B2665FA8C79B7328D /* FDTake.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 863711AA42FD9955CA4E4A5AB46285F4 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 1FEFAC01D8CCE09D1FB401A00ECB7CCE /* PryntTrimmerView-umbrella.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 8B3CEE34590E507CFD8796C17E6FE7C3 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 8D9A20D1101C3FF4B68B52E16ED19AC7 /* Pods-testing-umbrella.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + C120894978445BA5C6EF623B8F8DC267 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 935E6921156427B456DDCDE67CD38BDA /* Pods-testingTests-umbrella.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 13EC75FB8C4F8E86C1902F61532295B1 /* Pods-testingTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 81CB7AE2DB1370BD67FF9B667FECF86E /* Build configuration list for PBXNativeTarget "Pods-testingTests" */; + buildPhases = ( + 61E86897EEF88F97ED0FCB24ADA7B557 /* Sources */, + 78607FD166B80138914D4FB5C7A0C03D /* Frameworks */, + C120894978445BA5C6EF623B8F8DC267 /* Headers */, + ); + buildRules = ( + ); + dependencies = ( + 00C51205C8089089D663FB70B9BA0F75 /* PBXTargetDependency */, + A5E492A58914ADD204F1B705FD973F57 /* PBXTargetDependency */, + ); + name = "Pods-testingTests"; + productName = "Pods-testingTests"; + productReference = 2B88BB1BA60CC4D8E13B92A43F7A5CB4 /* Pods_testingTests.framework */; + productType = "com.apple.product-type.framework"; + }; + 4177AD824684801C04322854F4313540 /* Pods-testingUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 1DD7D91480D6918B9235D125CE8337BE /* Build configuration list for PBXNativeTarget "Pods-testingUITests" */; + buildPhases = ( + 04DDCC676AC9DF5D7929BA421D2F92F2 /* Sources */, + 3F233B7CEB69A6DEA1571C333B991692 /* Frameworks */, + 5FF35A548715E5AA33C195615A18838F /* Headers */, + ); + buildRules = ( + ); + dependencies = ( + 2EC8A96E59FC810C825F0FBCA721352E /* PBXTargetDependency */, + ); + name = "Pods-testingUITests"; + productName = "Pods-testingUITests"; + productReference = 71AF641FFE3E5B4F7CE23E7135A6FDAB /* Pods_testingUITests.framework */; + productType = "com.apple.product-type.framework"; + }; + 5BDD18CFD25C9C8EB23F1B735E50AE2B /* PryntTrimmerView */ = { + isa = PBXNativeTarget; + buildConfigurationList = F43AF1DD09792CD97BF035BF86AD032D /* Build configuration list for PBXNativeTarget "PryntTrimmerView" */; + buildPhases = ( + EFAED8DF0BDC7569D354A9927054A40B /* Sources */, + 4AB80DD5C32937ACE3B4D5D33EA48867 /* Frameworks */, + 863711AA42FD9955CA4E4A5AB46285F4 /* Headers */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = PryntTrimmerView; + productName = PryntTrimmerView; + productReference = D1854469BA008A5ADD641E56EBCCFD31 /* PryntTrimmerView.framework */; + productType = "com.apple.product-type.framework"; + }; + E25D1347A59BFC223372DC9BB39811DF /* FDTake */ = { + isa = PBXNativeTarget; + buildConfigurationList = 0E3B3FE2704E405ECA11F49B00632B84 /* Build configuration list for PBXNativeTarget "FDTake" */; + buildPhases = ( + 95EFBA07F16C18D54854BF077BB1217E /* Sources */, + 03AF260CBA49E3E6AF99AEFAC2DDBF01 /* Frameworks */, + 6F89E0CB8928D38F247FC4B58F4E0CB2 /* Headers */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = FDTake; + productName = FDTake; + productReference = 319BA5BB5D2BA0C925F26A996F103673 /* FDTake.framework */; + productType = "com.apple.product-type.framework"; + }; + E3C092A1482E6825F5F76AC2561B5806 /* Pods-testing */ = { + isa = PBXNativeTarget; + buildConfigurationList = E4C55E3D3FB19EBEB64043A7807DBB7D /* Build configuration list for PBXNativeTarget "Pods-testing" */; + buildPhases = ( + 5FF2F97E1D06C3678B518360874F811F /* Sources */, + 78CE9551D5EA358C30483E19CDA526E8 /* Frameworks */, + 8B3CEE34590E507CFD8796C17E6FE7C3 /* Headers */, + ); + buildRules = ( + ); + dependencies = ( + D4DE1F58A57274961697B257A7E037CB /* PBXTargetDependency */, + ); + name = "Pods-testing"; + productName = "Pods-testing"; + productReference = 7940BBDB7A4399B763A96A1CF79AB7FD /* Pods_testing.framework */; + productType = "com.apple.product-type.framework"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0930; + LastUpgradeCheck = 0930; + }; + buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 7DB346D0F39D3F0E887471402A8071AB; + productRefGroup = 4F3223DA21A86C0DCC80181AF2F55B3D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + E25D1347A59BFC223372DC9BB39811DF /* FDTake */, + E3C092A1482E6825F5F76AC2561B5806 /* Pods-testing */, + 13EC75FB8C4F8E86C1902F61532295B1 /* Pods-testingTests */, + 4177AD824684801C04322854F4313540 /* Pods-testingUITests */, + 5BDD18CFD25C9C8EB23F1B735E50AE2B /* PryntTrimmerView */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXSourcesBuildPhase section */ + 04DDCC676AC9DF5D7929BA421D2F92F2 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 683CDD3125BC0FE9AA1E94BE30082521 /* Pods-testingUITests-dummy.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 5FF2F97E1D06C3678B518360874F811F /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 7AB4095A166568E7843E8F19E4AF185A /* Pods-testing-dummy.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 61E86897EEF88F97ED0FCB24ADA7B557 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 77942FB82FE4965AADA5FEB194191D8C /* Pods-testingTests-dummy.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 95EFBA07F16C18D54854BF077BB1217E /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + D2D466DCE6393B4BC6A9E9DE5753FA48 /* FDTake-dummy.m in Sources */, + F0E396AC6DC2D2B172452D28EB3E95D0 /* FDTakeController.swift in Sources */, + 8266744C26905124BFBB3AD70A9A606E /* Info.plist in Sources */, + 502BA91E41FEADE1F345F8439AAE1B48 /* Localizable.strings in Sources */, + 026FE915AD8D2818FA656AD643CDBDA0 /* Localizable.strings in Sources */, + 575F81EEE63F7468CE65625E1ED6A325 /* Localizable.strings in Sources */, + E9A18619BD0757DED90A284BC3770D4A /* Localizable.strings in Sources */, + E5216D8C71C4E2409AD135ACD001C3ED /* Localizable.strings in Sources */, + A70BC074093E0921978709274D687FFB /* Localizable.strings in Sources */, + AC1031D65D075DB09642D9757FEC4D27 /* Localizable.strings in Sources */, + B0569695B7A16A926C839A6DDD23869B /* Localizable.strings in Sources */, + FE505D8FAF07168C42DDBD885A4D1E21 /* Localizable.strings in Sources */, + B7982E847C3F06D09808930ADE53D225 /* Localizable.strings in Sources */, + F792920BDE0AE9D60C60B78007A861E0 /* Localizable.strings in Sources */, + 555856CB51012D5687D619FC2A5FC158 /* Localizable.strings in Sources */, + 0A4F7F1139782166B26076ED2136647C /* Localizable.strings in Sources */, + 2D9E61A0900DACA452D6E2C3059F6FED /* Localizable.strings in Sources */, + 102A67929A494B567CB5909ED2A5A3C4 /* Localizable.strings in Sources */, + 9886001E2360094E02A50472D95B8FEA /* Localizable.strings in Sources */, + 75DC3493D90DA707E02A926E9337013B /* Localizable.strings in Sources */, + 40A84508B8D2D3A0BDAA4CAAFEAE3242 /* Localizable.strings in Sources */, + 776DE97CF5D9AD584D2872369B4D89FB /* Localizable.strings in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + EFAED8DF0BDC7569D354A9927054A40B /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 89CF80735E1835357BD29AB02C829EBA /* AssetVideoScrollView.swift in Sources */, + DF0C9690E4E3B068D728ACD53094A43E /* AVAssetTimeSelector.swift in Sources */, + 495711649DED7A0BC067AC2C81C36E1D /* CropMaskView.swift in Sources */, + D6FDCD21177F2DF43C7661BD0E13B040 /* HandlerView.swift in Sources */, + 3C101CEDF2D1678CF899965AF4687351 /* PryntTrimmerView-dummy.m in Sources */, + B4EFF12F68E2B9D70124CD0CB3C97B0F /* PryntTrimmerView.swift in Sources */, + 74E8A1B2F4BD16B1869A5480BED16FED /* ThumbSelectorView.swift in Sources */, + BD4B44233D8A5CFA4C1885DC736B94CC /* VideoCropView.swift in Sources */, + 9777237E6B5F9B0319BEE20B4447DBAA /* VideoScrollView.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 00C51205C8089089D663FB70B9BA0F75 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = FDTake; + target = E25D1347A59BFC223372DC9BB39811DF /* FDTake */; + targetProxy = 8678033C425354C977938039893F71B2 /* PBXContainerItemProxy */; + }; + 2EC8A96E59FC810C825F0FBCA721352E /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = "Pods-testing"; + target = E3C092A1482E6825F5F76AC2561B5806 /* Pods-testing */; + targetProxy = C411EC629702070DA4A6A517E1B59634 /* PBXContainerItemProxy */; + }; + A5E492A58914ADD204F1B705FD973F57 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = "Pods-testing"; + target = E3C092A1482E6825F5F76AC2561B5806 /* Pods-testing */; + targetProxy = F552A0115CA6C990248CA8CA206D66DF /* PBXContainerItemProxy */; + }; + D4DE1F58A57274961697B257A7E037CB /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = PryntTrimmerView; + target = 5BDD18CFD25C9C8EB23F1B735E50AE2B /* PryntTrimmerView */; + targetProxy = 6F7AE388A81F4DEBDD069C92F3405167 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 1746E651A87F69E5A5E524124848C4C6 /* Localizable.strings */ = { + isa = PBXVariantGroup; + children = ( + 7408E6A2D8ED19B3FBB621FD7818903B /* Localizable.strings */, + 5B47115BEF792A273C04407065A806FE /* Localizable.strings */, + C6F8F645C3BEE194C20F56F43B41772A /* Localizable.strings */, + 7136601BDCB39CDDBAD093E869E1EF71 /* Localizable.strings */, + 6C2582256EF269FB9F5C0F0BF0A41B84 /* Localizable.strings */, + FCB576725448CC84880D131911F59067 /* Localizable.strings */, + 475358B21BEEDF5A2F71C259179ACE97 /* Localizable.strings */, + ECD7AD6F63E3217550AEF0FA2A0A5711 /* Localizable.strings */, + 72C57C66CDD773A01F63E53F79E80DDF /* Localizable.strings */, + A9E8031B1678CEC1AD3E0BA4AF2D6B45 /* Localizable.strings */, + 41C84DD5F5A792270E3A477163B5DF94 /* Localizable.strings */, + 68A8ABE8B0C54720B3EACD261F95DCB9 /* Localizable.strings */, + 5981E8224129325481C90A617758386E /* Localizable.strings */, + A410E38DA3A7230C0AAEA242F1A49819 /* Localizable.strings */, + 3BF89784B25F956888EA829364663475 /* Localizable.strings */, + 32E54E050B67B5888AFABCE04E1FDF7D /* Localizable.strings */, + 4B82FC3D23E97C06E539EE609DDDF846 /* Localizable.strings */, + 3E15B6B0926BDE079D1FF92C3B55CE17 /* Localizable.strings */, + EC41FE292E0D30A6B74B47F7D3034E5C /* Localizable.strings */, + ); + name = Localizable.strings; + path = Source; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 08638A96A528B1EC32DE62F8A728389D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGNING_ALLOWED = NO; + CODE_SIGNING_REQUIRED = NO; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_PREPROCESSOR_DEFINITIONS = ( + "POD_CONFIGURATION_RELEASE=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; + MTL_ENABLE_DEBUG_INFO = NO; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRIP_INSTALLED_PRODUCT = NO; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Release; + }; + 271432A61C0FAAF763C87C1AFFDE09FA /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 2E5459C8B0E7B9B2A30E26D1ECB230B3 /* Pods-testingUITests.debug.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + CLANG_ENABLE_OBJC_WEAK = NO; + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "Target Support Files/Pods-testingUITests/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-testingUITests/Pods-testingUITests.modulemap"; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 33726F95F0889A25D3379EEBE6F10E5F /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 3A75CF3D61B35949AB24C6D1F9DF829C /* Pods-testingTests.debug.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + CLANG_ENABLE_OBJC_WEAK = NO; + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "Target Support Files/Pods-testingTests/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-testingTests/Pods-testingTests.modulemap"; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 405FFF58886EA6FC709B506F17093BEE /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = C1772DED9791949B463C956E6879F72E /* FDTake.xcconfig */; + buildSettings = { + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + GCC_PREFIX_HEADER = "Target Support Files/FDTake/FDTake-prefix.pch"; + INFOPLIST_FILE = "Target Support Files/FDTake/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MODULEMAP_FILE = "Target Support Files/FDTake/FDTake.modulemap"; + PRODUCT_MODULE_NAME = FDTake; + PRODUCT_NAME = FDTake; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 5F63344A83649B94EF5DE5A27FEBA6F3 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 5B88694C3FA4610CFF12473E725D3B8D /* Pods-testingTests.release.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + CLANG_ENABLE_OBJC_WEAK = NO; + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "Target Support Files/Pods-testingTests/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-testingTests/Pods-testingTests.modulemap"; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 8057A8CDCF76E82E21B109C50A9B0404 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 8E4D56A77F886ED0741BCE0702D15584 /* PryntTrimmerView.xcconfig */; + buildSettings = { + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + GCC_PREFIX_HEADER = "Target Support Files/PryntTrimmerView/PryntTrimmerView-prefix.pch"; + INFOPLIST_FILE = "Target Support Files/PryntTrimmerView/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MODULEMAP_FILE = "Target Support Files/PryntTrimmerView/PryntTrimmerView.modulemap"; + PRODUCT_MODULE_NAME = PryntTrimmerView; + PRODUCT_NAME = PryntTrimmerView; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 9DAE5233986C01ADB6E67169C53A3FD2 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGNING_ALLOWED = NO; + CODE_SIGNING_REQUIRED = NO; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "POD_CONFIGURATION_DEBUG=1", + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRIP_INSTALLED_PRODUCT = NO; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Debug; + }; + A1620E3E81DFA1D4052C30406603878D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 8E4D56A77F886ED0741BCE0702D15584 /* PryntTrimmerView.xcconfig */; + buildSettings = { + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + GCC_PREFIX_HEADER = "Target Support Files/PryntTrimmerView/PryntTrimmerView-prefix.pch"; + INFOPLIST_FILE = "Target Support Files/PryntTrimmerView/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MODULEMAP_FILE = "Target Support Files/PryntTrimmerView/PryntTrimmerView.modulemap"; + PRODUCT_MODULE_NAME = PryntTrimmerView; + PRODUCT_NAME = PryntTrimmerView; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + B66F368B9E47D8785E5784D3A654A0CC /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = C1772DED9791949B463C956E6879F72E /* FDTake.xcconfig */; + buildSettings = { + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + GCC_PREFIX_HEADER = "Target Support Files/FDTake/FDTake-prefix.pch"; + INFOPLIST_FILE = "Target Support Files/FDTake/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MODULEMAP_FILE = "Target Support Files/FDTake/FDTake.modulemap"; + PRODUCT_MODULE_NAME = FDTake; + PRODUCT_NAME = FDTake; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + E15C875F7C1393B2A3972F4F65F226BE /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7D509C95BD51079AE2279608C172A33D /* Pods-testingUITests.release.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + CLANG_ENABLE_OBJC_WEAK = NO; + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "Target Support Files/Pods-testingUITests/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-testingUITests/Pods-testingUITests.modulemap"; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + E3C213DE3360277D0E043F837DCB3173 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 71D99B7D92F7391BF8528AFA32E311C0 /* Pods-testing.release.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + CLANG_ENABLE_OBJC_WEAK = NO; + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "Target Support Files/Pods-testing/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-testing/Pods-testing.modulemap"; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + F830330E8608670EF01A543E80794D38 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = A4634B85D26355122A632BE383A70E7C /* Pods-testing.debug.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + CLANG_ENABLE_OBJC_WEAK = NO; + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "Target Support Files/Pods-testing/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-testing/Pods-testing.modulemap"; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 0E3B3FE2704E405ECA11F49B00632B84 /* Build configuration list for PBXNativeTarget "FDTake" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + B66F368B9E47D8785E5784D3A654A0CC /* Debug */, + 405FFF58886EA6FC709B506F17093BEE /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 1DD7D91480D6918B9235D125CE8337BE /* Build configuration list for PBXNativeTarget "Pods-testingUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 271432A61C0FAAF763C87C1AFFDE09FA /* Debug */, + E15C875F7C1393B2A3972F4F65F226BE /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 9DAE5233986C01ADB6E67169C53A3FD2 /* Debug */, + 08638A96A528B1EC32DE62F8A728389D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 81CB7AE2DB1370BD67FF9B667FECF86E /* Build configuration list for PBXNativeTarget "Pods-testingTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33726F95F0889A25D3379EEBE6F10E5F /* Debug */, + 5F63344A83649B94EF5DE5A27FEBA6F3 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + E4C55E3D3FB19EBEB64043A7807DBB7D /* Build configuration list for PBXNativeTarget "Pods-testing" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + F830330E8608670EF01A543E80794D38 /* Debug */, + E3C213DE3360277D0E043F837DCB3173 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + F43AF1DD09792CD97BF035BF86AD032D /* Build configuration list for PBXNativeTarget "PryntTrimmerView" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 8057A8CDCF76E82E21B109C50A9B0404 /* Debug */, + A1620E3E81DFA1D4052C30406603878D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; +} diff --git a/Pods/Pods.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/FDTake.xcscheme b/Pods/Pods.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/FDTake.xcscheme new file mode 100644 index 0000000..84465bb --- /dev/null +++ b/Pods/Pods.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/FDTake.xcscheme @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Pods/Pods.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/Pods-testing.xcscheme b/Pods/Pods.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/Pods-testing.xcscheme new file mode 100644 index 0000000..c745b99 --- /dev/null +++ b/Pods/Pods.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/Pods-testing.xcscheme @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Pods/Pods.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/Pods-testingTests.xcscheme b/Pods/Pods.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/Pods-testingTests.xcscheme new file mode 100644 index 0000000..c19fc45 --- /dev/null +++ b/Pods/Pods.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/Pods-testingTests.xcscheme @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Pods/Pods.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/Pods-testingUITests.xcscheme b/Pods/Pods.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/Pods-testingUITests.xcscheme new file mode 100644 index 0000000..ffacb00 --- /dev/null +++ b/Pods/Pods.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/Pods-testingUITests.xcscheme @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Pods/Pods.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/PryntTrimmerView.xcscheme b/Pods/Pods.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/PryntTrimmerView.xcscheme new file mode 100644 index 0000000..aa6082e --- /dev/null +++ b/Pods/Pods.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/PryntTrimmerView.xcscheme @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Pods/Pods.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/xcschememanagement.plist b/Pods/Pods.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..dacdbe7 --- /dev/null +++ b/Pods/Pods.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,46 @@ + + + + + SchemeUserState + + FDTake.xcscheme + + isShown + + orderHint + 0 + + Pods-testing.xcscheme + + isShown + + orderHint + 1 + + Pods-testingTests.xcscheme + + isShown + + orderHint + 2 + + Pods-testingUITests.xcscheme + + isShown + + orderHint + 3 + + PryntTrimmerView.xcscheme + + isShown + + orderHint + 4 + + + SuppressBuildableAutocreation + + + diff --git a/Pods/PryntTrimmerView/LICENSE b/Pods/PryntTrimmerView/LICENSE new file mode 100644 index 0000000..0d593ec --- /dev/null +++ b/Pods/PryntTrimmerView/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017 Prynt + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Pods/PryntTrimmerView/PryntTrimmerView/Classes/Cropper/CropMaskView.swift b/Pods/PryntTrimmerView/PryntTrimmerView/Classes/Cropper/CropMaskView.swift new file mode 100644 index 0000000..15709c1 --- /dev/null +++ b/Pods/PryntTrimmerView/PryntTrimmerView/Classes/Cropper/CropMaskView.swift @@ -0,0 +1,114 @@ +// +// CropMaskView.swift +// PryntTrimmerView +// +// Created by Henry on 10/04/2017. +// Copyright © 2017 CocoaPods. All rights reserved. +// + +import UIKit + +class CropMaskView: UIView { + + let cropBoxView = UIView() + let frameView = UIView() + let maskLayer = CAShapeLayer() + let frameLayer = CAShapeLayer() + + private let lineWidth: CGFloat = 4.0 + private var cropFrame: CGRect = CGRect.zero + + override init(frame: CGRect) { + super.init(frame: frame) + setupSubviews() + } + + required init?(coder aDecoder: NSCoder) { + super.init(coder: aDecoder) + setupSubviews() + } + + private func setupSubviews() { + + maskLayer.fillRule = kCAFillRuleEvenOdd + maskLayer.fillColor = UIColor.black.cgColor + maskLayer.opacity = 1.0 + + frameLayer.strokeColor = UIColor.white.cgColor + frameLayer.fillColor = UIColor.clear.cgColor + + frameView.layer.addSublayer(frameLayer) + cropBoxView.layer.mask = maskLayer + + cropBoxView.translatesAutoresizingMaskIntoConstraints = false + cropBoxView.backgroundColor = UIColor.white.withAlphaComponent(0.7) + addSubview(cropBoxView) + addSubview(frameView) + + cropBoxView.leftAnchor.constraint(equalTo: leftAnchor).isActive = true + cropBoxView.rightAnchor.constraint(equalTo: rightAnchor).isActive = true + cropBoxView.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true + cropBoxView.topAnchor.constraint(equalTo: topAnchor).isActive = true + } + + override func layoutSubviews() { + super.layoutSubviews() + + let path = UIBezierPath(rect: bounds) + let framePath = UIBezierPath(rect: cropFrame) + path.append(framePath) + path.usesEvenOddFillRule = true + maskLayer.path = path.cgPath + + framePath.lineWidth = lineWidth + frameLayer.path = framePath.cgPath + } + + func setCropFrame(_ frame: CGRect, animated: Bool) { + + cropFrame = frame + guard animated else { + setNeedsLayout() + return + } + + let (path, framePath) = getPaths(with: cropFrame) + + CATransaction.begin() + + let animation = getPathAnimation(with: path) + maskLayer.path = maskLayer.presentation()?.path + frameLayer.path = frameLayer.presentation()?.path + + maskLayer.removeAnimation(forKey: "maskPath") + maskLayer.add(animation, forKey: "maskPath") + + animation.toValue = framePath + frameLayer.removeAnimation(forKey: "framePath") + frameLayer.add(animation, forKey: "framePath") + CATransaction.commit() + } + + private func getPaths(with cropFrame: CGRect) -> (path: CGPath, framePath: CGPath) { + + let path = UIBezierPath(rect: bounds) + let framePath = UIBezierPath(rect: cropFrame) + framePath.lineWidth = lineWidth + path.append(framePath) + path.usesEvenOddFillRule = true + + return (path.cgPath, framePath.cgPath) + } + + private func getPathAnimation(with path: CGPath) -> CABasicAnimation { + + let animation = CABasicAnimation(keyPath: "path") + animation.toValue = path + animation.duration = 0.3 + animation.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseInEaseOut) + animation.fillMode = kCAFillModeBoth + animation.isRemovedOnCompletion = false + + return animation + } +} diff --git a/Pods/PryntTrimmerView/PryntTrimmerView/Classes/Cropper/VideoCropView.swift b/Pods/PryntTrimmerView/PryntTrimmerView/Classes/Cropper/VideoCropView.swift new file mode 100644 index 0000000..713cc77 --- /dev/null +++ b/Pods/PryntTrimmerView/PryntTrimmerView/Classes/Cropper/VideoCropView.swift @@ -0,0 +1,123 @@ +// +// VideoCropView.swift +// PryntTrimmerView +// +// Created by Henry on 07/04/2017. +// Copyright © 2017 CocoaPods. All rights reserved. +// + +import UIKit +import AVFoundation + +private let margin: CGFloat = 16 + +/// A view to preview a video inside an `AVPlayer`, with a scroll view to be able to select a specific area of the video. +/// Simply set the `asset` property to load you video inside the view, and use the `getImageCropFrame` method to retrieve the +/// selected frame of the video. +public class VideoCropView: UIView { + + let videoScrollView = VideoScrollView() + let cropMaskView = CropMaskView() + + /// The asset being cropped. Setting the property will load the asset in the `AVPlayer` contained in the scroll view. + public var asset: AVAsset? { + didSet { + if let asset = asset { + videoScrollView.setupVideo(with: asset) + } + } + } + + var cropFrame = CGRect.zero + + /// The current aspect ratio of the crop view. + public private(set) var aspectRatio = CGSize(width: 1, height: 1) + + /// The player used in the scroll view. Use it if you want to seek a specific time of your video. + public var player: AVPlayer? { + return videoScrollView.player + } + + override init(frame: CGRect) { + super.init(frame: frame) + setupSubviews() + } + + required public init?(coder aDecoder: NSCoder) { + super.init(coder: aDecoder) + setupSubviews() + } + + private func setupSubviews() { + + videoScrollView.translatesAutoresizingMaskIntoConstraints = false + addSubview(videoScrollView) + + videoScrollView.leftAnchor.constraint(equalTo: leftAnchor).isActive = true + videoScrollView.rightAnchor.constraint(equalTo: rightAnchor).isActive = true + videoScrollView.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true + videoScrollView.topAnchor.constraint(equalTo: topAnchor).isActive = true + + cropMaskView.isUserInteractionEnabled = false + cropMaskView.translatesAutoresizingMaskIntoConstraints = false + + addSubview(cropMaskView) + + cropMaskView.leftAnchor.constraint(equalTo: leftAnchor).isActive = true + cropMaskView.rightAnchor.constraint(equalTo: rightAnchor).isActive = true + cropMaskView.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true + cropMaskView.topAnchor.constraint(equalTo: topAnchor).isActive = true + + setAspectRatio(aspectRatio, animated: false) + } + + /// Set the aspect ratio for the cropping box. + /// + /// [Issue #3]: https://github.com/prynt/PryntTrimmerView/issues/3 + /// - Parameters: + /// - aspectRatio: The desired aspect ratio. + /// - animated: true if you want to animate the change. TODO: the animation glitches sometimes. See [Issue #3] + public func setAspectRatio(_ aspectRatio: CGSize, animated: Bool) { + + self.aspectRatio = aspectRatio + let ratio = aspectRatio.width / aspectRatio.height + let cropBoxWidth = ratio > 1 ? (bounds.width - 2 * margin) : (bounds.height - 2 * margin) * ratio + let cropBoxHeight = cropBoxWidth / ratio + let origin = CGPoint(x: (bounds.width - cropBoxWidth) / 2, y: (bounds.height - cropBoxHeight) / 2) + cropFrame = CGRect(origin: origin, size: CGSize(width: cropBoxWidth, height: cropBoxHeight)) + + let edgeInsets = UIEdgeInsets(top: origin.y, left: origin.x, bottom: origin.y, right: origin.x) + let duration: TimeInterval = animated ? 0.15 : 0.0 + + cropMaskView.setCropFrame(cropFrame, animated: animated) + UIView.animate(withDuration: duration, delay: 0, options: [.beginFromCurrentState, .curveEaseInOut], animations: { + self.videoScrollView.scrollView.contentInset = edgeInsets + }, completion: nil) + videoScrollView.setZoomScaleAndCenter(animated: animated) + } + + /// Get the currently selected frame of the asset. You can then use it to perform the actual cropping of the video or of an + /// isolated image + public func getImageCropFrame() -> CGRect { + + let imageSize = videoScrollView.assetSize + let contentSize = videoScrollView.scrollView.contentSize + let cropBoxFrame = cropFrame + let contentOffset = videoScrollView.scrollView.contentOffset + let edgeInsets = videoScrollView.scrollView.contentInset + + var frame = CGRect.zero + frame.origin.x = floor((contentOffset.x + edgeInsets.left) * (imageSize.width / contentSize.width)) + frame.origin.x = max(0, frame.origin.x) + + frame.origin.y = floor((contentOffset.y + edgeInsets.top) * (imageSize.height / contentSize.height)) + frame.origin.y = max(0, frame.origin.y) + + frame.size.width = ceil(cropBoxFrame.size.width * (imageSize.width / contentSize.width)) + frame.size.width = min(imageSize.width, frame.size.width) + + frame.size.height = ceil(cropBoxFrame.size.height * (imageSize.height / contentSize.height)) + frame.size.height = min(imageSize.height, frame.size.height) + return frame + } +} diff --git a/Pods/PryntTrimmerView/PryntTrimmerView/Classes/Cropper/VideoScrollView.swift b/Pods/PryntTrimmerView/PryntTrimmerView/Classes/Cropper/VideoScrollView.swift new file mode 100644 index 0000000..572be42 --- /dev/null +++ b/Pods/PryntTrimmerView/PryntTrimmerView/Classes/Cropper/VideoScrollView.swift @@ -0,0 +1,103 @@ +// +// VideoScrollView.swift +// PryntTrimmerView +// +// Created by Henry on 10/04/2017. +// Copyright © 2017 CocoaPods. All rights reserved. +// + +import UIKit +import AVFoundation + +class VideoScrollView: UIView { + + let scrollView = UIScrollView() + var contentView = UIView() + var assetSize = CGSize.zero + + var playerItem: AVPlayerItem? + var player: AVPlayer? + var playerLayer: AVPlayerLayer? + + override init(frame: CGRect) { + super.init(frame: frame) + setupSubviews() + } + + required init?(coder aDecoder: NSCoder) { + super.init(coder: aDecoder) + setupSubviews() + } + + private func setupSubviews() { + + scrollView.showsVerticalScrollIndicator = false + scrollView.showsHorizontalScrollIndicator = false + scrollView.translatesAutoresizingMaskIntoConstraints = false + scrollView.addSubview(contentView) + scrollView.delegate = self + addSubview(scrollView) + + scrollView.leftAnchor.constraint(equalTo: leftAnchor).isActive = true + scrollView.rightAnchor.constraint(equalTo: rightAnchor).isActive = true + scrollView.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true + scrollView.topAnchor.constraint(equalTo: topAnchor).isActive = true + } + + func setupVideo(with asset: AVAsset) { + + guard let track = asset.tracks(withMediaType: AVMediaType.video).first else { return } + let trackSize = track.naturalSize.applying(track.preferredTransform) + assetSize = CGSize(width: fabs(trackSize.width), height: fabs(trackSize.height)) + + scrollView.zoomScale = 1.0 // Reset zoom scale before changing the frame of the content view. + playerItem = AVPlayerItem(asset: asset) + let playerFrame = CGRect(x: 0, y: 0, width: assetSize.width, height: assetSize.height) + addVideoLayer(with: playerFrame) + + scrollView.contentSize = assetSize + setZoomScaleAndCenter(animated: false) + } + + private func addVideoLayer(with playerFrame: CGRect) { + + playerLayer?.removeFromSuperlayer() + player = AVPlayer(playerItem: playerItem) + playerLayer = AVPlayerLayer(player: player) + playerLayer?.frame = playerFrame + playerLayer?.videoGravity = AVLayerVideoGravity.resizeAspectFill + + contentView.frame = playerFrame + contentView.layer.addSublayer(playerLayer!) + } + + func setZoomScaleAndCenter(animated: Bool) { + + guard assetSize != CGSize.zero else { return } + + let scrollWidth = scrollView.bounds.width - scrollView.contentInset.left - scrollView.contentInset.right + let scrollHeight = scrollView.bounds.height - scrollView.contentInset.top - scrollView.contentInset.bottom + let scale = max(scrollWidth / assetSize.width, scrollHeight / assetSize.height) + scrollView.minimumZoomScale = scale + scrollView.maximumZoomScale = 3.0 + + var offset = scrollView.contentOffset + offset.x = -scrollView.contentInset.left - (scrollWidth - assetSize.width * scale) / 2 + offset.y = -scrollView.contentInset.top - (scrollHeight - assetSize.height * scale) / 2 + + scrollView.setZoomScale(scale, animated: animated) + scrollView.setContentOffset(offset, animated: animated) + } +} + +extension VideoScrollView: UIScrollViewDelegate { + + func viewForZooming(in scrollView: UIScrollView) -> UIView? { + return contentView + } + + func scrollViewDidEndZooming(_ scrollView: UIScrollView, with view: UIView?, atScale scale: CGFloat) { + let scaledAssetSize = CGSize(width: assetSize.width * scale, height: assetSize.height * scale) + scrollView.contentSize = scaledAssetSize + } +} diff --git a/Pods/PryntTrimmerView/PryntTrimmerView/Classes/Parents/AVAssetTimeSelector.swift b/Pods/PryntTrimmerView/PryntTrimmerView/Classes/Parents/AVAssetTimeSelector.swift new file mode 100644 index 0000000..d4673d4 --- /dev/null +++ b/Pods/PryntTrimmerView/PryntTrimmerView/Classes/Parents/AVAssetTimeSelector.swift @@ -0,0 +1,85 @@ +// +// AVAssetTimeSelector.swift +// Pods +// +// Created by Henry on 06/04/2017. +// +// + +import UIKit +import AVFoundation + +/// A generic class to display an asset into a scroll view with thumbnail images, and make the equivalence between a time in +// the asset and a position in the scroll view +public class AVAssetTimeSelector: UIView, UIScrollViewDelegate { + + let assetPreview = AssetVideoScrollView() + + /// The asset to be displayed in the underlying scroll view. Setting a new asset will automatically refresh the thumbnails. + public var asset: AVAsset? { + didSet { + assetDidChange(newAsset: asset) + } + } + + override init(frame: CGRect) { + super.init(frame: frame) + setupSubviews() + } + + required public init?(coder aDecoder: NSCoder) { + super.init(coder: aDecoder) + setupSubviews() + } + + func setupSubviews() { + setupAssetPreview() + constrainAssetPreview() + } + + // MARK: - Asset Preview + + func setupAssetPreview() { + + assetPreview.translatesAutoresizingMaskIntoConstraints = false + assetPreview.delegate = self + addSubview(assetPreview) + } + + func constrainAssetPreview() { + assetPreview.leftAnchor.constraint(equalTo: leftAnchor).isActive = true + assetPreview.rightAnchor.constraint(equalTo: rightAnchor).isActive = true + assetPreview.topAnchor.constraint(equalTo: topAnchor).isActive = true + assetPreview.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true + } + + func assetDidChange(newAsset: AVAsset?) { + if let asset = newAsset { + assetPreview.regenerateThumbnails(for: asset) + } + } + + // MARK: - Time & Position Equivalence + + var durationSize: CGFloat { + return assetPreview.contentSize.width + } + + func getTime(from position: CGFloat) -> CMTime? { + guard let asset = asset else { + return nil + } + let normalizedRatio = max(min(1, position / durationSize), 0) + let positionTimeValue = Double(normalizedRatio) * Double(asset.duration.value) + return CMTime(value: Int64(positionTimeValue), timescale: asset.duration.timescale) + } + + func getPosition(from time: CMTime) -> CGFloat? { + guard let asset = asset else { + return nil + } + let timeRatio = CGFloat(time.value) * CGFloat(asset.duration.timescale) / + (CGFloat(time.timescale) * CGFloat(asset.duration.value)) + return timeRatio * durationSize + } +} diff --git a/Pods/PryntTrimmerView/PryntTrimmerView/Classes/Parents/AssetVideoScrollView.swift b/Pods/PryntTrimmerView/PryntTrimmerView/Classes/Parents/AssetVideoScrollView.swift new file mode 100644 index 0000000..0a30267 --- /dev/null +++ b/Pods/PryntTrimmerView/PryntTrimmerView/Classes/Parents/AssetVideoScrollView.swift @@ -0,0 +1,166 @@ +// +// AssetVideoScrollView.swift +// PryntTrimmerView +// +// Created by HHK on 28/03/2017. +// Copyright © 2017 Prynt. All rights reserved. +// + +import AVFoundation +import UIKit + +class AssetVideoScrollView: UIScrollView { + + private var widthConstraint: NSLayoutConstraint? + + let contentView = UIView() + var maxDuration: Double = 15 + private var generator: AVAssetImageGenerator? + + override init(frame: CGRect) { + super.init(frame: frame) + setupSubviews() + } + + required init?(coder aDecoder: NSCoder) { + super.init(coder: aDecoder) + setupSubviews() + } + + private func setupSubviews() { + + backgroundColor = .clear + showsVerticalScrollIndicator = false + showsHorizontalScrollIndicator = false + clipsToBounds = true + + contentView.backgroundColor = .clear + contentView.translatesAutoresizingMaskIntoConstraints = false + contentView.tag = -1 + addSubview(contentView) + + contentView.leftAnchor.constraint(equalTo: leftAnchor).isActive = true + contentView.topAnchor.constraint(equalTo: topAnchor).isActive = true + contentView.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true + widthConstraint = contentView.widthAnchor.constraint(equalTo: widthAnchor, multiplier: 1.0) + widthConstraint?.isActive = true + } + + override func layoutSubviews() { + super.layoutSubviews() + contentSize = contentView.bounds.size + } + + internal func regenerateThumbnails(for asset: AVAsset) { + guard let thumbnailSize = getThumbnailFrameSize(from: asset), thumbnailSize.width != 0 else { + print("Could not calculate the thumbnail size.") + return + } + + generator?.cancelAllCGImageGeneration() + removeFormerThumbnails() + let newContentSize = setContentSize(for: asset) + let visibleThumbnailsCount = Int(ceil(frame.width / thumbnailSize.width)) + let thumbnailCount = Int(ceil(newContentSize.width / thumbnailSize.width)) + addThumbnailViews(thumbnailCount, size: thumbnailSize) + let timesForThumbnail = getThumbnailTimes(for: asset, numberOfThumbnails: thumbnailCount) + generateImages(for: asset, at: timesForThumbnail, with: thumbnailSize, visibleThumnails: visibleThumbnailsCount) + } + + private func getThumbnailFrameSize(from asset: AVAsset) -> CGSize? { + guard let track = asset.tracks(withMediaType: AVMediaType.video).first else { return nil} + + let assetSize = track.naturalSize.applying(track.preferredTransform) + + let height = frame.height + let ratio = assetSize.width / assetSize.height + let width = height * ratio + return CGSize(width: fabs(width), height: fabs(height)) + } + + private func removeFormerThumbnails() { + contentView.subviews.forEach({ $0.removeFromSuperview() }) + } + + private func setContentSize(for asset: AVAsset) -> CGSize { + + let contentWidthFactor = CGFloat(max(1, asset.duration.seconds / maxDuration)) + widthConstraint?.isActive = false + widthConstraint = contentView.widthAnchor.constraint(equalTo: widthAnchor, multiplier: contentWidthFactor) + widthConstraint?.isActive = true + layoutIfNeeded() + return contentView.bounds.size + } + + private func addThumbnailViews(_ count: Int, size: CGSize) { + + for index in 0.. contentView.frame.width { + thumbnailView.frame.size = CGSize(width: size.width + (contentView.frame.width - viewEndX), height: size.height) + thumbnailView.contentMode = .scaleAspectFill + } else { + thumbnailView.frame.size = size + thumbnailView.contentMode = .scaleAspectFit + } + + thumbnailView.frame.origin = CGPoint(x: CGFloat(index) * size.width, y: 0) + thumbnailView.tag = index + contentView.addSubview(thumbnailView) + } + } + + private func getThumbnailTimes(for asset: AVAsset, numberOfThumbnails: Int) -> [NSValue] { + + let timeIncrement = (asset.duration.seconds * 1000) / Double(numberOfThumbnails) + var timesForThumbnails = [NSValue]() + for index in 0.. Void in + + if count == 0 { + self?.displayFirstImage(cgimage, visibleThumbnails: visibleThumnails) + } + self?.displayImage(cgimage, at: count) + count += 1 + }) + } + } + + generator?.generateCGImagesAsynchronously(forTimes: times, completionHandler: handler) + } + + private func displayFirstImage(_ cgImage: CGImage, visibleThumbnails: Int) { + for i in 0...visibleThumbnails { + displayImage(cgImage, at: i) + } + } + + private func displayImage(_ cgImage: CGImage, at index: Int) { + if let imageView = contentView.viewWithTag(index) as? UIImageView { + let uiimage = UIImage(cgImage: cgImage, scale: 1.0, orientation: UIImageOrientation.up) + imageView.image = uiimage + } + } +} diff --git a/Pods/PryntTrimmerView/PryntTrimmerView/Classes/ThumbSelectorView.swift b/Pods/PryntTrimmerView/PryntTrimmerView/Classes/ThumbSelectorView.swift new file mode 100644 index 0000000..0b64831 --- /dev/null +++ b/Pods/PryntTrimmerView/PryntTrimmerView/Classes/ThumbSelectorView.swift @@ -0,0 +1,178 @@ +// +// ThumbSelectorView.swift +// Pods +// +// Created by Henry on 06/04/2017. +// +// + +import UIKit +import AVFoundation + +/// A delegate to be notified of when the thumb position has changed. Useful to link an instance of the ThumbSelectorView to a +/// video preview like an `AVPlayer`. +public protocol ThumbSelectorViewDelegate: class { + func didChangeThumbPosition(_ imageTime: CMTime) +} + +/// A view to select a specific time of an `AVAsset`. It is composed of an asset preview within a scroll view, and a thumb view +/// to select a precise time of the video. Set the `asset` property to load the video, and use the `selectedTime` property to +// retrieve the exact frame of the asset that was selected. +public class ThumbSelectorView: AVAssetTimeSelector { + + public var thumbBorderColor: UIColor = .white { + didSet { + thumbView.layer.borderColor = thumbBorderColor.cgColor + } + } + + private let thumbView = UIImageView() + private let dimmingView = UIView() + + private var leftThumbConstraint: NSLayoutConstraint? + private var currentThumbConstraint: CGFloat = 0 + + private var generator: AVAssetImageGenerator? + + public weak var delegate: ThumbSelectorViewDelegate? + + // MARK: - View & constraints configurations + + override func setupSubviews() { + super.setupSubviews() + setupDimmingView() + setupThumbView() + } + + private func setupDimmingView() { + + dimmingView.translatesAutoresizingMaskIntoConstraints = false + dimmingView.isUserInteractionEnabled = false + dimmingView.backgroundColor = UIColor.white.withAlphaComponent(0.7) + addSubview(dimmingView) + dimmingView.leftAnchor.constraint(equalTo: leftAnchor).isActive = true + dimmingView.rightAnchor.constraint(equalTo: rightAnchor).isActive = true + dimmingView.topAnchor.constraint(equalTo: topAnchor).isActive = true + dimmingView.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true + } + + private func setupThumbView() { + + thumbView.translatesAutoresizingMaskIntoConstraints = false + thumbView.layer.borderWidth = 2.0 + thumbView.layer.borderColor = thumbBorderColor.cgColor + thumbView.isUserInteractionEnabled = true + thumbView.contentMode = .scaleAspectFill + thumbView.clipsToBounds = true + addSubview(thumbView) + + leftThumbConstraint = thumbView.leftAnchor.constraint(equalTo: leftAnchor) + leftThumbConstraint?.isActive = true + thumbView.widthAnchor.constraint(equalTo: thumbView.heightAnchor).isActive = true + thumbView.heightAnchor.constraint(equalTo: heightAnchor).isActive = true + thumbView.centerYAnchor.constraint(equalTo: centerYAnchor).isActive = true + + let panGestureRecognizer = UIPanGestureRecognizer(target: self, action: #selector(ThumbSelectorView.handlePanGesture(_:))) + thumbView.addGestureRecognizer(panGestureRecognizer) + } + + // MARK: - Gesture handling + + @objc func handlePanGesture(_ gestureRecognizer: UIPanGestureRecognizer) { + guard let superView = gestureRecognizer.view?.superview else { return } + + switch gestureRecognizer.state { + + case .began: + currentThumbConstraint = leftThumbConstraint!.constant + updateSelectedTime() + case .changed: + + let translation = gestureRecognizer.translation(in: superView) + updateThumbConstraint(with: translation) + layoutIfNeeded() + updateSelectedTime() + + case .cancelled, .ended, .failed: + updateSelectedTime() + default: break + } + } + + private func updateThumbConstraint(with translation: CGPoint) { + let maxConstraint = frame.width - thumbView.frame.width + let newConstraint = min(max(0, currentThumbConstraint + translation.x), maxConstraint) + leftThumbConstraint?.constant = newConstraint + } + + // MARK: - Thumbnail Generation + + override func assetDidChange(newAsset: AVAsset?) { + if let asset = newAsset { + setupThumbnailGenerator(with: asset) + leftThumbConstraint?.constant = 0 + updateSelectedTime() + } + super.assetDidChange(newAsset: newAsset) + } + + private func setupThumbnailGenerator(with asset: AVAsset) { + generator = AVAssetImageGenerator(asset: asset) + generator?.appliesPreferredTrackTransform = true + generator?.requestedTimeToleranceAfter = kCMTimeZero + generator?.requestedTimeToleranceBefore = kCMTimeZero + generator?.maximumSize = getThumbnailFrameSize(from: asset) ?? CGSize.zero + } + + private func getThumbnailFrameSize(from asset: AVAsset) -> CGSize? { + guard let track = asset.tracks(withMediaType: AVMediaType.video).first else { return nil} + + let assetSize = track.naturalSize.applying(track.preferredTransform) + + let maxDimension = max(assetSize.width, assetSize.height) + let minDimension = min(assetSize.width, assetSize.height) + let ratio = maxDimension / minDimension + let side = thumbView.frame.height * ratio * UIScreen.main.scale + return CGSize(width: side, height: side) + } + + private func generateThumbnailImage(for time: CMTime) { + + generator?.generateCGImagesAsynchronously(forTimes: [time as NSValue], + completionHandler: { (_, image, _, _, _) in + guard let image = image else { + return + } + DispatchQueue.main.async { + self.generator?.cancelAllCGImageGeneration() + let uiimage = UIImage(cgImage: image) + self.thumbView.image = uiimage + } + }) + } + + // MARK: - Time & Position Equivalence + + override var durationSize: CGFloat { + return assetPreview.contentSize.width - thumbView.frame.width + } + + /// The currently selected time of the asset. + public var selectedTime: CMTime? { + let thumbPosition = thumbView.center.x + assetPreview.contentOffset.x - (thumbView.frame.width / 2) + return getTime(from: thumbPosition) + } + + private func updateSelectedTime() { + if let selectedTime = selectedTime { + delegate?.didChangeThumbPosition(selectedTime) + generateThumbnailImage(for: selectedTime) + } + } + + // MARK: - UIScrollViewDelegate + + public func scrollViewDidScroll(_ scrollView: UIScrollView) { + updateSelectedTime() + } +} diff --git a/Pods/PryntTrimmerView/PryntTrimmerView/Classes/Trimmer/HandlerView.swift b/Pods/PryntTrimmerView/PryntTrimmerView/Classes/Trimmer/HandlerView.swift new file mode 100644 index 0000000..ce3b70d --- /dev/null +++ b/Pods/PryntTrimmerView/PryntTrimmerView/Classes/Trimmer/HandlerView.swift @@ -0,0 +1,22 @@ +// +// HandlerView.swift +// PryntTrimmerView +// +// Created by HHK on 27/03/2017. +// Copyright © 2017 Prynt. All rights reserved. +// + +import Foundation +import UIKit + +class HandlerView: UIView { + + override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? { + let hitFrame = bounds.insetBy(dx: -20, dy: -20) + return hitFrame.contains(point) ? self : nil + } + override func point(inside point: CGPoint, with event: UIEvent?) -> Bool { + let hitFrame = bounds.insetBy(dx: -20, dy: -20) + return hitFrame.contains(point) + } +} diff --git a/Pods/PryntTrimmerView/PryntTrimmerView/Classes/Trimmer/PryntTrimmerView.swift b/Pods/PryntTrimmerView/PryntTrimmerView/Classes/Trimmer/PryntTrimmerView.swift new file mode 100644 index 0000000..ac97d6a --- /dev/null +++ b/Pods/PryntTrimmerView/PryntTrimmerView/Classes/Trimmer/PryntTrimmerView.swift @@ -0,0 +1,352 @@ +// +// PryntTrimmerView.swift +// PryntTrimmerView +// +// Created by HHK on 27/03/2017. +// Copyright © 2017 Prynt. All rights reserved. +// + +import AVFoundation +import UIKit + +public protocol TrimmerViewDelegate: class { + func didChangePositionBar(_ playerTime: CMTime) + func positionBarStoppedMoving(_ playerTime: CMTime) +} + +/// A view to select a specific time range of a video. It consists of an asset preview with thumbnails inside a scroll view, two +/// handles on the side to select the beginning and the end of the range, and a position bar to synchronize the control with a +/// video preview, typically with an `AVPlayer`. +/// Load the video by setting the `asset` property. Access the `startTime` and `endTime` of the view to get the selected time +// range +@IBDesignable public class TrimmerView: AVAssetTimeSelector { + + // MARK: - Properties + + // MARK: Color Customization + + /// The color of the main border of the view + @IBInspectable public var mainColor: UIColor = UIColor.orange { + didSet { + updateMainColor() + } + } + + /// The color of the handles on the side of the view + @IBInspectable public var handleColor: UIColor = UIColor.gray { + didSet { + updateHandleColor() + } + } + + /// The color of the position indicator + @IBInspectable public var positionBarColor: UIColor = UIColor.white { + didSet { + positionBar.backgroundColor = positionBarColor + } + } + + // MARK: Interface + + public weak var delegate: TrimmerViewDelegate? + + // MARK: Subviews + + private let trimView = UIView() + private let leftHandleView = HandlerView() + private let rightHandleView = HandlerView() + private let positionBar = UIView() + private let leftHandleKnob = UIView() + private let rightHandleKnob = UIView() + private let leftMaskView = UIView() + private let rightMaskView = UIView() + + // MARK: Constraints + + private var currentLeftConstraint: CGFloat = 0 + private var currentRightConstraint: CGFloat = 0 + private var leftConstraint: NSLayoutConstraint? + private var rightConstraint: NSLayoutConstraint? + private var positionConstraint: NSLayoutConstraint? + + private let handleWidth: CGFloat = 15 + + /// The maximum duration allowed for the trimming. Change it before setting the asset, as the asset preview + public var maxDuration: Double = 15 { + didSet { + assetPreview.maxDuration = maxDuration + } + } + + /// The minimum duration allowed for the trimming. The handles won't pan further if the minimum duration is attained. + public var minDuration: Double = 2 + + // MARK: - View & constraints configurations + + override func setupSubviews() { + + super.setupSubviews() + backgroundColor = UIColor.clear + layer.zPosition = 1 + setupTrimmerView() + setupHandleView() + setupMaskView() + setupPositionBar() + setupGestures() + updateMainColor() + updateHandleColor() + } + + override func constrainAssetPreview() { + assetPreview.leftAnchor.constraint(equalTo: leftAnchor, constant: handleWidth).isActive = true + assetPreview.rightAnchor.constraint(equalTo: rightAnchor, constant: -handleWidth).isActive = true + assetPreview.topAnchor.constraint(equalTo: topAnchor).isActive = true + assetPreview.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true + } + + private func setupTrimmerView() { + + trimView.layer.borderWidth = 2.0 + trimView.layer.cornerRadius = 2.0 + trimView.translatesAutoresizingMaskIntoConstraints = false + trimView.isUserInteractionEnabled = false + addSubview(trimView) + + trimView.topAnchor.constraint(equalTo: topAnchor).isActive = true + trimView.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true + leftConstraint = trimView.leftAnchor.constraint(equalTo: leftAnchor) + rightConstraint = trimView.rightAnchor.constraint(equalTo: rightAnchor) + leftConstraint?.isActive = true + rightConstraint?.isActive = true + } + + private func setupHandleView() { + + leftHandleView.isUserInteractionEnabled = true + leftHandleView.layer.cornerRadius = 2.0 + leftHandleView.translatesAutoresizingMaskIntoConstraints = false + addSubview(leftHandleView) + + leftHandleView.heightAnchor.constraint(equalTo: heightAnchor).isActive = true + leftHandleView.widthAnchor.constraint(equalToConstant: handleWidth).isActive = true + leftHandleView.leftAnchor.constraint(equalTo: trimView.leftAnchor).isActive = true + leftHandleView.centerYAnchor.constraint(equalTo: centerYAnchor).isActive = true + + leftHandleKnob.translatesAutoresizingMaskIntoConstraints = false + leftHandleView.addSubview(leftHandleKnob) + + leftHandleKnob.heightAnchor.constraint(equalTo: heightAnchor, multiplier: 0.5).isActive = true + leftHandleKnob.widthAnchor.constraint(equalToConstant: 2).isActive = true + leftHandleKnob.centerYAnchor.constraint(equalTo: leftHandleView.centerYAnchor).isActive = true + leftHandleKnob.centerXAnchor.constraint(equalTo: leftHandleView.centerXAnchor).isActive = true + + rightHandleView.isUserInteractionEnabled = true + rightHandleView.layer.cornerRadius = 2.0 + rightHandleView.translatesAutoresizingMaskIntoConstraints = false + addSubview(rightHandleView) + + rightHandleView.heightAnchor.constraint(equalTo: heightAnchor).isActive = true + rightHandleView.widthAnchor.constraint(equalToConstant: handleWidth).isActive = true + rightHandleView.rightAnchor.constraint(equalTo: trimView.rightAnchor).isActive = true + rightHandleView.centerYAnchor.constraint(equalTo: centerYAnchor).isActive = true + + rightHandleKnob.translatesAutoresizingMaskIntoConstraints = false + rightHandleView.addSubview(rightHandleKnob) + + rightHandleKnob.heightAnchor.constraint(equalTo: heightAnchor, multiplier: 0.5).isActive = true + rightHandleKnob.widthAnchor.constraint(equalToConstant: 2).isActive = true + rightHandleKnob.centerYAnchor.constraint(equalTo: rightHandleView.centerYAnchor).isActive = true + rightHandleKnob.centerXAnchor.constraint(equalTo: rightHandleView.centerXAnchor).isActive = true + } + + private func setupMaskView() { + + leftMaskView.isUserInteractionEnabled = false + leftMaskView.backgroundColor = .white + leftMaskView.alpha = 0.7 + leftMaskView.translatesAutoresizingMaskIntoConstraints = false + insertSubview(leftMaskView, belowSubview: leftHandleView) + + leftMaskView.leftAnchor.constraint(equalTo: leftAnchor).isActive = true + leftMaskView.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true + leftMaskView.topAnchor.constraint(equalTo: topAnchor).isActive = true + leftMaskView.rightAnchor.constraint(equalTo: leftHandleView.centerXAnchor).isActive = true + + rightMaskView.isUserInteractionEnabled = false + rightMaskView.backgroundColor = .white + rightMaskView.alpha = 0.7 + rightMaskView.translatesAutoresizingMaskIntoConstraints = false + insertSubview(rightMaskView, belowSubview: rightHandleView) + + rightMaskView.rightAnchor.constraint(equalTo: rightAnchor).isActive = true + rightMaskView.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true + rightMaskView.topAnchor.constraint(equalTo: topAnchor).isActive = true + rightMaskView.leftAnchor.constraint(equalTo: rightHandleView.centerXAnchor).isActive = true + } + + private func setupPositionBar() { + + positionBar.frame = CGRect(x: 0, y: 0, width: 3, height: frame.height) + positionBar.backgroundColor = positionBarColor + positionBar.center = CGPoint(x: leftHandleView.frame.maxX, y: center.y) + positionBar.layer.cornerRadius = 1 + positionBar.translatesAutoresizingMaskIntoConstraints = false + positionBar.isUserInteractionEnabled = false + addSubview(positionBar) + + positionBar.centerYAnchor.constraint(equalTo: centerYAnchor).isActive = true + positionBar.widthAnchor.constraint(equalToConstant: 3).isActive = true + positionBar.heightAnchor.constraint(equalTo: heightAnchor).isActive = true + positionConstraint = positionBar.leftAnchor.constraint(equalTo: leftHandleView.rightAnchor, constant: 0) + positionConstraint?.isActive = true + } + + private func setupGestures() { + + let leftPanGestureRecognizer = UIPanGestureRecognizer(target: self, action: #selector(TrimmerView.handlePanGesture)) + leftHandleView.addGestureRecognizer(leftPanGestureRecognizer) + let rightPanGestureRecognizer = UIPanGestureRecognizer(target: self, action: #selector(TrimmerView.handlePanGesture)) + rightHandleView.addGestureRecognizer(rightPanGestureRecognizer) + } + + private func updateMainColor() { + trimView.layer.borderColor = mainColor.cgColor + leftHandleView.backgroundColor = mainColor + rightHandleView.backgroundColor = mainColor + } + + private func updateHandleColor() { + leftHandleKnob.backgroundColor = handleColor + rightHandleKnob.backgroundColor = handleColor + } + + // MARK: - Trim Gestures + + @objc func handlePanGesture(_ gestureRecognizer: UIPanGestureRecognizer) { + guard let view = gestureRecognizer.view, let superView = gestureRecognizer.view?.superview else { return } + let isLeftGesture = view == leftHandleView + switch gestureRecognizer.state { + + case .began: + print("gestureRecognizer.state : began") + if isLeftGesture { + print("isLeftGesture") + currentLeftConstraint = leftConstraint!.constant + } else { + print("! isLeftGesture") + currentRightConstraint = rightConstraint!.constant + } + updateSelectedTime(stoppedMoving: false) + case .changed: + print("gestureRecognizer.state : changed") + let translation = gestureRecognizer.translation(in: superView) + if isLeftGesture { + updateLeftConstraint(with: translation) + } else { + updateRightConstraint(with: translation) + } + layoutIfNeeded() + if let startTime = startTime, isLeftGesture { + seek(to: startTime) + } else if let endTime = endTime { + seek(to: endTime) + } + updateSelectedTime(stoppedMoving: false) + + case .cancelled, .ended, .failed: + updateSelectedTime(stoppedMoving: true) + default: break + } + } + + private func updateLeftConstraint(with translation: CGPoint) { + let maxConstraint = max(rightHandleView.frame.origin.x - handleWidth - minimumDistanceBetweenHandle, 0) + let newConstraint = min(max(0, currentLeftConstraint + translation.x), maxConstraint) + leftConstraint?.constant = newConstraint + } + + private func updateRightConstraint(with translation: CGPoint) { + let maxConstraint = min(2 * handleWidth - frame.width + leftHandleView.frame.origin.x + minimumDistanceBetweenHandle, 0) + let newConstraint = max(min(0, currentRightConstraint + translation.x), maxConstraint) + rightConstraint?.constant = newConstraint + } + + // MARK: - Asset loading + + override func assetDidChange(newAsset: AVAsset?) { + super.assetDidChange(newAsset: newAsset) + resetHandleViewPosition() + } + + private func resetHandleViewPosition() { + leftConstraint?.constant = 0 + rightConstraint?.constant = 0 + layoutIfNeeded() + } + + // MARK: - Time Equivalence + + /// Move the position bar to the given time. + public func seek(to time: CMTime) { + if let newPosition = getPosition(from: time) { + + let offsetPosition = newPosition - assetPreview.contentOffset.x - leftHandleView.frame.origin.x + let maxPosition = rightHandleView.frame.origin.x - (leftHandleView.frame.origin.x + handleWidth) + - positionBar.frame.width + let normalizedPosition = min(max(0, offsetPosition), maxPosition) + positionConstraint?.constant = normalizedPosition + layoutIfNeeded() + } + } + + /// The selected start time for the current asset. + public var startTime: CMTime? { + let startPosition = leftHandleView.frame.origin.x + assetPreview.contentOffset.x + return getTime(from: startPosition) + } + + /// The selected end time for the current asset. + public var endTime: CMTime? { + let endPosition = rightHandleView.frame.origin.x + assetPreview.contentOffset.x - handleWidth + return getTime(from: endPosition) + } + + private func updateSelectedTime(stoppedMoving: Bool) { + + guard let playerTime = positionBarTime else { + return + } + if stoppedMoving { + delegate?.positionBarStoppedMoving(playerTime) + } else { + delegate?.didChangePositionBar(playerTime) + } + } + + private var positionBarTime: CMTime? { + let barPosition = positionBar.frame.origin.x + assetPreview.contentOffset.x - handleWidth + return getTime(from: barPosition) + } + + private var minimumDistanceBetweenHandle: CGFloat { + guard let asset = asset else { return 0 } + let distance = CGFloat(minDuration) * assetPreview.contentView.frame.width / CGFloat(asset.duration.seconds) + print("minimum distance: \(distance)") + return distance + } + + // MARK: - Scroll View Delegate + + public func scrollViewDidEndDecelerating(_ scrollView: UIScrollView) { + updateSelectedTime(stoppedMoving: true) + } + + public func scrollViewDidEndDragging(_ scrollView: UIScrollView, willDecelerate decelerate: Bool) { + if !decelerate { + updateSelectedTime(stoppedMoving: true) + } + } + public func scrollViewDidScroll(_ scrollView: UIScrollView) { + updateSelectedTime(stoppedMoving: false) + } +} diff --git a/Pods/PryntTrimmerView/README.md b/Pods/PryntTrimmerView/README.md new file mode 100644 index 0000000..1d11607 --- /dev/null +++ b/Pods/PryntTrimmerView/README.md @@ -0,0 +1,66 @@ +# PryntTrimmerView + +[![codebeat badge](https://codebeat.co/badges/ac008534-7f30-4b04-8434-0c6d69251e4b)](https://codebeat.co/projects/github-com-prynt-prynttrimmerview-master) +[![Platform](https://img.shields.io/cocoapods/p/PryntTrimmerView.svg?style=flat)](http://cocoapods.org/pods/PryntTrimmerView) +[![License](https://img.shields.io/cocoapods/l/PryntTrimmerView.svg?style=flat)](http://cocoapods.org/pods/PryntTrimmerView) +[![Version](https://img.shields.io/cocoapods/v/PryntTrimmerView.svg?style=flat)](http://cocoapods.org/pods/PryntTrimmerView) + +A set of tools written in swift to crop and trim videos. + + +## Example + +To run the example project, clone the repo, and run `pod install` from the Example directory first. + +### Trimming + +![](https://media.giphy.com/media/GwZGkLiKxZcTm/giphy.gif) + +### Cropping + +![](https://media.giphy.com/media/10FsDfHS7616XC/giphy.gif) + +## Requirements + +PryntTrimmerView requires iOS9: It uses Layout Anchors to define the constraints. + +## Installation + +PryntTrimmerView is available through [CocoaPods](http://cocoapods.org). To install +it, simply add the following line to your Podfile: + +```ruby +pod "PryntTrimmerView" +``` + +For swift 3 compatibility, you can use version 1.0.1 or below. + +## Usage + +### Trimming + +Create a `TrimmerView` instance (in interface builder or through code), and add it to your view hierarchy. + +``` +trimmerView.asset = asset +trimmerView.delegate = self +``` + +Access the `startTime` and `endTime` property to know where to trim your asset. You can use the `TrimmerViewDelegate` to link the trimmer with an `AVPlayer` and provide the end user with a preview. See the `VideoTrimmerViewController` inside the project to see an example. + +You can also customize the trimmer view by changing its colors: +``` +trimmerView.handleColor = UIColor.white +trimmerView.mainColor = UIColor.orange +trimmerView.positionBarColor = UIColor.white +``` + +### Cropping + +Create an instance of the `VideoCropView` and add it to your view hierarchy, then load your video into the crop view: `videoCropView.asset = asset`. + +You can set the aspect ratio you want using the `setAspectRatio` method. Once you are satisfied with the portion of the asset you want to crop, call `getImageCropFrame` to retrieve the select frame. See the `VideoCropperViewController` in the example app for an actual example of how to crop the video for export. + +## License + +PryntTrimmerView is available under the MIT license. See the LICENSE file for more info. diff --git a/Pods/Target Support Files/FDTake/FDTake-dummy.m b/Pods/Target Support Files/FDTake/FDTake-dummy.m new file mode 100644 index 0000000..ce35789 --- /dev/null +++ b/Pods/Target Support Files/FDTake/FDTake-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_FDTake : NSObject +@end +@implementation PodsDummy_FDTake +@end diff --git a/Pods/Target Support Files/FDTake/FDTake-prefix.pch b/Pods/Target Support Files/FDTake/FDTake-prefix.pch new file mode 100644 index 0000000..beb2a24 --- /dev/null +++ b/Pods/Target Support Files/FDTake/FDTake-prefix.pch @@ -0,0 +1,12 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + diff --git a/Pods/Target Support Files/FDTake/FDTake-umbrella.h b/Pods/Target Support Files/FDTake/FDTake-umbrella.h new file mode 100644 index 0000000..1f2bf95 --- /dev/null +++ b/Pods/Target Support Files/FDTake/FDTake-umbrella.h @@ -0,0 +1,17 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "FDTake.h" + +FOUNDATION_EXPORT double FDTakeVersionNumber; +FOUNDATION_EXPORT const unsigned char FDTakeVersionString[]; + diff --git a/Pods/Target Support Files/FDTake/FDTake.modulemap b/Pods/Target Support Files/FDTake/FDTake.modulemap new file mode 100644 index 0000000..914f0a9 --- /dev/null +++ b/Pods/Target Support Files/FDTake/FDTake.modulemap @@ -0,0 +1,6 @@ +framework module FDTake { + umbrella header "FDTake-umbrella.h" + + export * + module * { export * } +} diff --git a/Pods/Target Support Files/FDTake/FDTake.xcconfig b/Pods/Target Support Files/FDTake/FDTake.xcconfig new file mode 100644 index 0000000..66acbd3 --- /dev/null +++ b/Pods/Target Support Files/FDTake/FDTake.xcconfig @@ -0,0 +1,9 @@ +CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/FDTake +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" +PODS_BUILD_DIR = ${BUILD_DIR} +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_ROOT = ${SRCROOT} +PODS_TARGET_SRCROOT = ${PODS_ROOT}/FDTake +PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} +SKIP_INSTALL = YES diff --git a/Pods/Target Support Files/FDTake/Info.plist b/Pods/Target Support Files/FDTake/Info.plist new file mode 100644 index 0000000..0a12077 --- /dev/null +++ b/Pods/Target Support Files/FDTake/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + ${PRODUCT_BUNDLE_IDENTIFIER} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + FMWK + CFBundleShortVersionString + 2.0.0 + CFBundleSignature + ???? + CFBundleVersion + ${CURRENT_PROJECT_VERSION} + NSPrincipalClass + + + diff --git a/Pods/Target Support Files/Pods-testing/Info.plist b/Pods/Target Support Files/Pods-testing/Info.plist new file mode 100644 index 0000000..2243fe6 --- /dev/null +++ b/Pods/Target Support Files/Pods-testing/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + ${PRODUCT_BUNDLE_IDENTIFIER} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0.0 + CFBundleSignature + ???? + CFBundleVersion + ${CURRENT_PROJECT_VERSION} + NSPrincipalClass + + + diff --git a/Pods/Target Support Files/Pods-testing/Pods-testing-acknowledgements.markdown b/Pods/Target Support Files/Pods-testing/Pods-testing-acknowledgements.markdown new file mode 100644 index 0000000..a83ad01 --- /dev/null +++ b/Pods/Target Support Files/Pods-testing/Pods-testing-acknowledgements.markdown @@ -0,0 +1,28 @@ +# Acknowledgements +This application makes use of the following third party libraries: + +## PryntTrimmerView + +MIT License + +Copyright (c) 2017 Prynt + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Generated by CocoaPods - https://cocoapods.org diff --git a/Pods/Target Support Files/Pods-testing/Pods-testing-acknowledgements.plist b/Pods/Target Support Files/Pods-testing/Pods-testing-acknowledgements.plist new file mode 100644 index 0000000..638a571 --- /dev/null +++ b/Pods/Target Support Files/Pods-testing/Pods-testing-acknowledgements.plist @@ -0,0 +1,60 @@ + + + + + PreferenceSpecifiers + + + FooterText + This application makes use of the following third party libraries: + Title + Acknowledgements + Type + PSGroupSpecifier + + + FooterText + MIT License + +Copyright (c) 2017 Prynt + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + License + MIT + Title + PryntTrimmerView + Type + PSGroupSpecifier + + + FooterText + Generated by CocoaPods - https://cocoapods.org + Title + + Type + PSGroupSpecifier + + + StringsTable + Acknowledgements + Title + Acknowledgements + + diff --git a/Pods/Target Support Files/Pods-testing/Pods-testing-dummy.m b/Pods/Target Support Files/Pods-testing/Pods-testing-dummy.m new file mode 100644 index 0000000..43cc05e --- /dev/null +++ b/Pods/Target Support Files/Pods-testing/Pods-testing-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Pods_testing : NSObject +@end +@implementation PodsDummy_Pods_testing +@end diff --git a/Pods/Target Support Files/Pods-testing/Pods-testing-frameworks.sh b/Pods/Target Support Files/Pods-testing/Pods-testing-frameworks.sh new file mode 100755 index 0000000..b79df09 --- /dev/null +++ b/Pods/Target Support Files/Pods-testing/Pods-testing-frameworks.sh @@ -0,0 +1,153 @@ +#!/bin/sh +set -e +set -u +set -o pipefail + +if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then + # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy + # frameworks to, so exit 0 (signalling the script phase was successful). + exit 0 +fi + +echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" +mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + +COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" +SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" + +# Used as a return value for each invocation of `strip_invalid_archs` function. +STRIP_BINARY_RETVAL=0 + +# This protects against multiple targets copying the same framework dependency at the same time. The solution +# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html +RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") + +# Copies and strips a vendored framework +install_framework() +{ + if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then + local source="${BUILT_PRODUCTS_DIR}/$1" + elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then + local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" + elif [ -r "$1" ]; then + local source="$1" + fi + + local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + + if [ -L "${source}" ]; then + echo "Symlinked..." + source="$(readlink "${source}")" + fi + + # Use filter instead of exclude so missing patterns don't throw errors. + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" + + local basename + basename="$(basename -s .framework "$1")" + binary="${destination}/${basename}.framework/${basename}" + if ! [ -r "$binary" ]; then + binary="${destination}/${basename}" + fi + + # Strip invalid architectures so "fat" simulator / device frameworks work on device + if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then + strip_invalid_archs "$binary" + fi + + # Resign the code if required by the build settings to avoid unstable apps + code_sign_if_enabled "${destination}/$(basename "$1")" + + # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. + if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then + local swift_runtime_libs + swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) + for lib in $swift_runtime_libs; do + echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" + rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" + code_sign_if_enabled "${destination}/${lib}" + done + fi +} + +# Copies and strips a vendored dSYM +install_dsym() { + local source="$1" + if [ -r "$source" ]; then + # Copy the dSYM into a the targets temp dir. + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" + + local basename + basename="$(basename -s .framework.dSYM "$source")" + binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" + + # Strip invalid architectures so "fat" simulator / device frameworks work on device + if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then + strip_invalid_archs "$binary" + fi + + if [[ $STRIP_BINARY_RETVAL == 1 ]]; then + # Move the stripped file into its final destination. + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" + else + # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. + touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" + fi + fi +} + +# Signs a framework with the provided identity +code_sign_if_enabled() { + if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then + # Use the current code_sign_identitiy + echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" + local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" + + if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then + code_sign_cmd="$code_sign_cmd &" + fi + echo "$code_sign_cmd" + eval "$code_sign_cmd" + fi +} + +# Strip invalid architectures +strip_invalid_archs() { + binary="$1" + # Get architectures for current target binary + binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" + # Intersect them with the architectures we are building for + intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" + # If there are no archs supported by this binary then warn the user + if [[ -z "$intersected_archs" ]]; then + echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." + STRIP_BINARY_RETVAL=0 + return + fi + stripped="" + for arch in $binary_archs; do + if ! [[ "${ARCHS}" == *"$arch"* ]]; then + # Strip non-valid architectures in-place + lipo -remove "$arch" -output "$binary" "$binary" || exit 1 + stripped="$stripped $arch" + fi + done + if [[ "$stripped" ]]; then + echo "Stripped $binary of architectures:$stripped" + fi + STRIP_BINARY_RETVAL=1 +} + + +if [[ "$CONFIGURATION" == "Debug" ]]; then + install_framework "${BUILT_PRODUCTS_DIR}/PryntTrimmerView/PryntTrimmerView.framework" +fi +if [[ "$CONFIGURATION" == "Release" ]]; then + install_framework "${BUILT_PRODUCTS_DIR}/PryntTrimmerView/PryntTrimmerView.framework" +fi +if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then + wait +fi diff --git a/Pods/Target Support Files/Pods-testing/Pods-testing-resources.sh b/Pods/Target Support Files/Pods-testing/Pods-testing-resources.sh new file mode 100755 index 0000000..fe3f9c7 --- /dev/null +++ b/Pods/Target Support Files/Pods-testing/Pods-testing-resources.sh @@ -0,0 +1,118 @@ +#!/bin/sh +set -e +set -u +set -o pipefail + +if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then + # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy + # resources to, so exit 0 (signalling the script phase was successful). + exit 0 +fi + +mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" + +RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt +> "$RESOURCES_TO_COPY" + +XCASSET_FILES=() + +# This protects against multiple targets copying the same framework dependency at the same time. The solution +# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html +RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") + +case "${TARGETED_DEVICE_FAMILY:-}" in + 1,2) + TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" + ;; + 1) + TARGET_DEVICE_ARGS="--target-device iphone" + ;; + 2) + TARGET_DEVICE_ARGS="--target-device ipad" + ;; + 3) + TARGET_DEVICE_ARGS="--target-device tv" + ;; + 4) + TARGET_DEVICE_ARGS="--target-device watch" + ;; + *) + TARGET_DEVICE_ARGS="--target-device mac" + ;; +esac + +install_resource() +{ + if [[ "$1" = /* ]] ; then + RESOURCE_PATH="$1" + else + RESOURCE_PATH="${PODS_ROOT}/$1" + fi + if [[ ! -e "$RESOURCE_PATH" ]] ; then + cat << EOM +error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. +EOM + exit 1 + fi + case $RESOURCE_PATH in + *.storyboard) + echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true + ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} + ;; + *.xib) + echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true + ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} + ;; + *.framework) + echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true + mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + ;; + *.xcdatamodel) + echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true + xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" + ;; + *.xcdatamodeld) + echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true + xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" + ;; + *.xcmappingmodel) + echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true + xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" + ;; + *.xcassets) + ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" + XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") + ;; + *) + echo "$RESOURCE_PATH" || true + echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" + ;; + esac +} + +mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then + mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" + rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +fi +rm -f "$RESOURCES_TO_COPY" + +if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] +then + # Find all other xcassets (this unfortunately includes those of path pods and other targets). + OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) + while read line; do + if [[ $line != "${PODS_ROOT}*" ]]; then + XCASSET_FILES+=("$line") + fi + done <<<"$OTHER_XCASSETS" + + if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then + printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" + else + printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_BUILD_DIR}/assetcatalog_generated_info.plist" + fi +fi diff --git a/Pods/Target Support Files/Pods-testing/Pods-testing-umbrella.h b/Pods/Target Support Files/Pods-testing/Pods-testing-umbrella.h new file mode 100644 index 0000000..14368e6 --- /dev/null +++ b/Pods/Target Support Files/Pods-testing/Pods-testing-umbrella.h @@ -0,0 +1,16 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + + +FOUNDATION_EXPORT double Pods_testingVersionNumber; +FOUNDATION_EXPORT const unsigned char Pods_testingVersionString[]; + diff --git a/Pods/Target Support Files/Pods-testing/Pods-testing.debug.xcconfig b/Pods/Target Support Files/Pods-testing/Pods-testing.debug.xcconfig new file mode 100644 index 0000000..533cced --- /dev/null +++ b/Pods/Target Support Files/Pods-testing/Pods-testing.debug.xcconfig @@ -0,0 +1,11 @@ +ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/PryntTrimmerView" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' +OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/PryntTrimmerView/PryntTrimmerView.framework/Headers" +OTHER_LDFLAGS = $(inherited) -framework "PryntTrimmerView" +OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" +PODS_BUILD_DIR = ${BUILD_DIR} +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_PODFILE_DIR_PATH = ${SRCROOT}/. +PODS_ROOT = ${SRCROOT}/Pods diff --git a/Pods/Target Support Files/Pods-testing/Pods-testing.modulemap b/Pods/Target Support Files/Pods-testing/Pods-testing.modulemap new file mode 100644 index 0000000..348f007 --- /dev/null +++ b/Pods/Target Support Files/Pods-testing/Pods-testing.modulemap @@ -0,0 +1,6 @@ +framework module Pods_testing { + umbrella header "Pods-testing-umbrella.h" + + export * + module * { export * } +} diff --git a/Pods/Target Support Files/Pods-testing/Pods-testing.release.xcconfig b/Pods/Target Support Files/Pods-testing/Pods-testing.release.xcconfig new file mode 100644 index 0000000..533cced --- /dev/null +++ b/Pods/Target Support Files/Pods-testing/Pods-testing.release.xcconfig @@ -0,0 +1,11 @@ +ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/PryntTrimmerView" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' +OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/PryntTrimmerView/PryntTrimmerView.framework/Headers" +OTHER_LDFLAGS = $(inherited) -framework "PryntTrimmerView" +OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" +PODS_BUILD_DIR = ${BUILD_DIR} +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_PODFILE_DIR_PATH = ${SRCROOT}/. +PODS_ROOT = ${SRCROOT}/Pods diff --git a/Pods/Target Support Files/Pods-testingTests/Info.plist b/Pods/Target Support Files/Pods-testingTests/Info.plist new file mode 100644 index 0000000..2243fe6 --- /dev/null +++ b/Pods/Target Support Files/Pods-testingTests/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + ${PRODUCT_BUNDLE_IDENTIFIER} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0.0 + CFBundleSignature + ???? + CFBundleVersion + ${CURRENT_PROJECT_VERSION} + NSPrincipalClass + + + diff --git a/Pods/Target Support Files/Pods-testingTests/Pods-testingTests-acknowledgements.markdown b/Pods/Target Support Files/Pods-testingTests/Pods-testingTests-acknowledgements.markdown new file mode 100644 index 0000000..b3cc271 --- /dev/null +++ b/Pods/Target Support Files/Pods-testingTests/Pods-testingTests-acknowledgements.markdown @@ -0,0 +1,25 @@ +# Acknowledgements +This application makes use of the following third party libraries: + +## FDTake + +Copyright (c) 2016 William Entriken + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +Generated by CocoaPods - https://cocoapods.org diff --git a/Pods/Target Support Files/Pods-testingTests/Pods-testingTests-acknowledgements.plist b/Pods/Target Support Files/Pods-testingTests/Pods-testingTests-acknowledgements.plist new file mode 100644 index 0000000..4e31cf6 --- /dev/null +++ b/Pods/Target Support Files/Pods-testingTests/Pods-testingTests-acknowledgements.plist @@ -0,0 +1,57 @@ + + + + + PreferenceSpecifiers + + + FooterText + This application makes use of the following third party libraries: + Title + Acknowledgements + Type + PSGroupSpecifier + + + FooterText + Copyright (c) 2016 William Entriken + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + License + MIT + Title + FDTake + Type + PSGroupSpecifier + + + FooterText + Generated by CocoaPods - https://cocoapods.org + Title + + Type + PSGroupSpecifier + + + StringsTable + Acknowledgements + Title + Acknowledgements + + diff --git a/Pods/Target Support Files/Pods-testingTests/Pods-testingTests-dummy.m b/Pods/Target Support Files/Pods-testingTests/Pods-testingTests-dummy.m new file mode 100644 index 0000000..0490bd6 --- /dev/null +++ b/Pods/Target Support Files/Pods-testingTests/Pods-testingTests-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Pods_testingTests : NSObject +@end +@implementation PodsDummy_Pods_testingTests +@end diff --git a/Pods/Target Support Files/Pods-testingTests/Pods-testingTests-frameworks.sh b/Pods/Target Support Files/Pods-testingTests/Pods-testingTests-frameworks.sh new file mode 100755 index 0000000..db05d37 --- /dev/null +++ b/Pods/Target Support Files/Pods-testingTests/Pods-testingTests-frameworks.sh @@ -0,0 +1,153 @@ +#!/bin/sh +set -e +set -u +set -o pipefail + +if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then + # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy + # frameworks to, so exit 0 (signalling the script phase was successful). + exit 0 +fi + +echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" +mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + +COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" +SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" + +# Used as a return value for each invocation of `strip_invalid_archs` function. +STRIP_BINARY_RETVAL=0 + +# This protects against multiple targets copying the same framework dependency at the same time. The solution +# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html +RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") + +# Copies and strips a vendored framework +install_framework() +{ + if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then + local source="${BUILT_PRODUCTS_DIR}/$1" + elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then + local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" + elif [ -r "$1" ]; then + local source="$1" + fi + + local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + + if [ -L "${source}" ]; then + echo "Symlinked..." + source="$(readlink "${source}")" + fi + + # Use filter instead of exclude so missing patterns don't throw errors. + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" + + local basename + basename="$(basename -s .framework "$1")" + binary="${destination}/${basename}.framework/${basename}" + if ! [ -r "$binary" ]; then + binary="${destination}/${basename}" + fi + + # Strip invalid architectures so "fat" simulator / device frameworks work on device + if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then + strip_invalid_archs "$binary" + fi + + # Resign the code if required by the build settings to avoid unstable apps + code_sign_if_enabled "${destination}/$(basename "$1")" + + # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. + if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then + local swift_runtime_libs + swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) + for lib in $swift_runtime_libs; do + echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" + rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" + code_sign_if_enabled "${destination}/${lib}" + done + fi +} + +# Copies and strips a vendored dSYM +install_dsym() { + local source="$1" + if [ -r "$source" ]; then + # Copy the dSYM into a the targets temp dir. + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" + + local basename + basename="$(basename -s .framework.dSYM "$source")" + binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" + + # Strip invalid architectures so "fat" simulator / device frameworks work on device + if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then + strip_invalid_archs "$binary" + fi + + if [[ $STRIP_BINARY_RETVAL == 1 ]]; then + # Move the stripped file into its final destination. + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" + else + # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. + touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" + fi + fi +} + +# Signs a framework with the provided identity +code_sign_if_enabled() { + if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then + # Use the current code_sign_identitiy + echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" + local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" + + if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then + code_sign_cmd="$code_sign_cmd &" + fi + echo "$code_sign_cmd" + eval "$code_sign_cmd" + fi +} + +# Strip invalid architectures +strip_invalid_archs() { + binary="$1" + # Get architectures for current target binary + binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" + # Intersect them with the architectures we are building for + intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" + # If there are no archs supported by this binary then warn the user + if [[ -z "$intersected_archs" ]]; then + echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." + STRIP_BINARY_RETVAL=0 + return + fi + stripped="" + for arch in $binary_archs; do + if ! [[ "${ARCHS}" == *"$arch"* ]]; then + # Strip non-valid architectures in-place + lipo -remove "$arch" -output "$binary" "$binary" || exit 1 + stripped="$stripped $arch" + fi + done + if [[ "$stripped" ]]; then + echo "Stripped $binary of architectures:$stripped" + fi + STRIP_BINARY_RETVAL=1 +} + + +if [[ "$CONFIGURATION" == "Debug" ]]; then + install_framework "${BUILT_PRODUCTS_DIR}/FDTake/FDTake.framework" +fi +if [[ "$CONFIGURATION" == "Release" ]]; then + install_framework "${BUILT_PRODUCTS_DIR}/FDTake/FDTake.framework" +fi +if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then + wait +fi diff --git a/Pods/Target Support Files/Pods-testingTests/Pods-testingTests-resources.sh b/Pods/Target Support Files/Pods-testingTests/Pods-testingTests-resources.sh new file mode 100755 index 0000000..fe3f9c7 --- /dev/null +++ b/Pods/Target Support Files/Pods-testingTests/Pods-testingTests-resources.sh @@ -0,0 +1,118 @@ +#!/bin/sh +set -e +set -u +set -o pipefail + +if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then + # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy + # resources to, so exit 0 (signalling the script phase was successful). + exit 0 +fi + +mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" + +RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt +> "$RESOURCES_TO_COPY" + +XCASSET_FILES=() + +# This protects against multiple targets copying the same framework dependency at the same time. The solution +# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html +RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") + +case "${TARGETED_DEVICE_FAMILY:-}" in + 1,2) + TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" + ;; + 1) + TARGET_DEVICE_ARGS="--target-device iphone" + ;; + 2) + TARGET_DEVICE_ARGS="--target-device ipad" + ;; + 3) + TARGET_DEVICE_ARGS="--target-device tv" + ;; + 4) + TARGET_DEVICE_ARGS="--target-device watch" + ;; + *) + TARGET_DEVICE_ARGS="--target-device mac" + ;; +esac + +install_resource() +{ + if [[ "$1" = /* ]] ; then + RESOURCE_PATH="$1" + else + RESOURCE_PATH="${PODS_ROOT}/$1" + fi + if [[ ! -e "$RESOURCE_PATH" ]] ; then + cat << EOM +error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. +EOM + exit 1 + fi + case $RESOURCE_PATH in + *.storyboard) + echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true + ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} + ;; + *.xib) + echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true + ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} + ;; + *.framework) + echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true + mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + ;; + *.xcdatamodel) + echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true + xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" + ;; + *.xcdatamodeld) + echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true + xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" + ;; + *.xcmappingmodel) + echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true + xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" + ;; + *.xcassets) + ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" + XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") + ;; + *) + echo "$RESOURCE_PATH" || true + echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" + ;; + esac +} + +mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then + mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" + rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +fi +rm -f "$RESOURCES_TO_COPY" + +if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] +then + # Find all other xcassets (this unfortunately includes those of path pods and other targets). + OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) + while read line; do + if [[ $line != "${PODS_ROOT}*" ]]; then + XCASSET_FILES+=("$line") + fi + done <<<"$OTHER_XCASSETS" + + if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then + printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" + else + printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_BUILD_DIR}/assetcatalog_generated_info.plist" + fi +fi diff --git a/Pods/Target Support Files/Pods-testingTests/Pods-testingTests-umbrella.h b/Pods/Target Support Files/Pods-testingTests/Pods-testingTests-umbrella.h new file mode 100644 index 0000000..244e4df --- /dev/null +++ b/Pods/Target Support Files/Pods-testingTests/Pods-testingTests-umbrella.h @@ -0,0 +1,16 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + + +FOUNDATION_EXPORT double Pods_testingTestsVersionNumber; +FOUNDATION_EXPORT const unsigned char Pods_testingTestsVersionString[]; + diff --git a/Pods/Target Support Files/Pods-testingTests/Pods-testingTests.debug.xcconfig b/Pods/Target Support Files/Pods-testingTests/Pods-testingTests.debug.xcconfig new file mode 100644 index 0000000..d59f2ee --- /dev/null +++ b/Pods/Target Support Files/Pods-testingTests/Pods-testingTests.debug.xcconfig @@ -0,0 +1,11 @@ +ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/FDTake" "${PODS_CONFIGURATION_BUILD_DIR}/PryntTrimmerView" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' +OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/FDTake/FDTake.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/PryntTrimmerView/PryntTrimmerView.framework/Headers" +OTHER_LDFLAGS = $(inherited) -framework "FDTake" +OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" +PODS_BUILD_DIR = ${BUILD_DIR} +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_PODFILE_DIR_PATH = ${SRCROOT}/. +PODS_ROOT = ${SRCROOT}/Pods diff --git a/Pods/Target Support Files/Pods-testingTests/Pods-testingTests.modulemap b/Pods/Target Support Files/Pods-testingTests/Pods-testingTests.modulemap new file mode 100644 index 0000000..2ac788f --- /dev/null +++ b/Pods/Target Support Files/Pods-testingTests/Pods-testingTests.modulemap @@ -0,0 +1,6 @@ +framework module Pods_testingTests { + umbrella header "Pods-testingTests-umbrella.h" + + export * + module * { export * } +} diff --git a/Pods/Target Support Files/Pods-testingTests/Pods-testingTests.release.xcconfig b/Pods/Target Support Files/Pods-testingTests/Pods-testingTests.release.xcconfig new file mode 100644 index 0000000..d59f2ee --- /dev/null +++ b/Pods/Target Support Files/Pods-testingTests/Pods-testingTests.release.xcconfig @@ -0,0 +1,11 @@ +ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/FDTake" "${PODS_CONFIGURATION_BUILD_DIR}/PryntTrimmerView" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' +OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/FDTake/FDTake.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/PryntTrimmerView/PryntTrimmerView.framework/Headers" +OTHER_LDFLAGS = $(inherited) -framework "FDTake" +OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" +PODS_BUILD_DIR = ${BUILD_DIR} +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_PODFILE_DIR_PATH = ${SRCROOT}/. +PODS_ROOT = ${SRCROOT}/Pods diff --git a/Pods/Target Support Files/Pods-testingUITests/Info.plist b/Pods/Target Support Files/Pods-testingUITests/Info.plist new file mode 100644 index 0000000..2243fe6 --- /dev/null +++ b/Pods/Target Support Files/Pods-testingUITests/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + ${PRODUCT_BUNDLE_IDENTIFIER} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0.0 + CFBundleSignature + ???? + CFBundleVersion + ${CURRENT_PROJECT_VERSION} + NSPrincipalClass + + + diff --git a/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests-acknowledgements.markdown b/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests-acknowledgements.markdown new file mode 100644 index 0000000..102af75 --- /dev/null +++ b/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests-acknowledgements.markdown @@ -0,0 +1,3 @@ +# Acknowledgements +This application makes use of the following third party libraries: +Generated by CocoaPods - https://cocoapods.org diff --git a/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests-acknowledgements.plist b/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests-acknowledgements.plist new file mode 100644 index 0000000..7acbad1 --- /dev/null +++ b/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests-acknowledgements.plist @@ -0,0 +1,29 @@ + + + + + PreferenceSpecifiers + + + FooterText + This application makes use of the following third party libraries: + Title + Acknowledgements + Type + PSGroupSpecifier + + + FooterText + Generated by CocoaPods - https://cocoapods.org + Title + + Type + PSGroupSpecifier + + + StringsTable + Acknowledgements + Title + Acknowledgements + + diff --git a/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests-dummy.m b/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests-dummy.m new file mode 100644 index 0000000..98acb57 --- /dev/null +++ b/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Pods_testingUITests : NSObject +@end +@implementation PodsDummy_Pods_testingUITests +@end diff --git a/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests-frameworks.sh b/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests-frameworks.sh new file mode 100755 index 0000000..08e3eaa --- /dev/null +++ b/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests-frameworks.sh @@ -0,0 +1,146 @@ +#!/bin/sh +set -e +set -u +set -o pipefail + +if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then + # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy + # frameworks to, so exit 0 (signalling the script phase was successful). + exit 0 +fi + +echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" +mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + +COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" +SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" + +# Used as a return value for each invocation of `strip_invalid_archs` function. +STRIP_BINARY_RETVAL=0 + +# This protects against multiple targets copying the same framework dependency at the same time. The solution +# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html +RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") + +# Copies and strips a vendored framework +install_framework() +{ + if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then + local source="${BUILT_PRODUCTS_DIR}/$1" + elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then + local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" + elif [ -r "$1" ]; then + local source="$1" + fi + + local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + + if [ -L "${source}" ]; then + echo "Symlinked..." + source="$(readlink "${source}")" + fi + + # Use filter instead of exclude so missing patterns don't throw errors. + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" + + local basename + basename="$(basename -s .framework "$1")" + binary="${destination}/${basename}.framework/${basename}" + if ! [ -r "$binary" ]; then + binary="${destination}/${basename}" + fi + + # Strip invalid architectures so "fat" simulator / device frameworks work on device + if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then + strip_invalid_archs "$binary" + fi + + # Resign the code if required by the build settings to avoid unstable apps + code_sign_if_enabled "${destination}/$(basename "$1")" + + # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. + if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then + local swift_runtime_libs + swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) + for lib in $swift_runtime_libs; do + echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" + rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" + code_sign_if_enabled "${destination}/${lib}" + done + fi +} + +# Copies and strips a vendored dSYM +install_dsym() { + local source="$1" + if [ -r "$source" ]; then + # Copy the dSYM into a the targets temp dir. + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" + + local basename + basename="$(basename -s .framework.dSYM "$source")" + binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" + + # Strip invalid architectures so "fat" simulator / device frameworks work on device + if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then + strip_invalid_archs "$binary" + fi + + if [[ $STRIP_BINARY_RETVAL == 1 ]]; then + # Move the stripped file into its final destination. + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" + else + # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. + touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" + fi + fi +} + +# Signs a framework with the provided identity +code_sign_if_enabled() { + if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then + # Use the current code_sign_identitiy + echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" + local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" + + if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then + code_sign_cmd="$code_sign_cmd &" + fi + echo "$code_sign_cmd" + eval "$code_sign_cmd" + fi +} + +# Strip invalid architectures +strip_invalid_archs() { + binary="$1" + # Get architectures for current target binary + binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" + # Intersect them with the architectures we are building for + intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" + # If there are no archs supported by this binary then warn the user + if [[ -z "$intersected_archs" ]]; then + echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." + STRIP_BINARY_RETVAL=0 + return + fi + stripped="" + for arch in $binary_archs; do + if ! [[ "${ARCHS}" == *"$arch"* ]]; then + # Strip non-valid architectures in-place + lipo -remove "$arch" -output "$binary" "$binary" || exit 1 + stripped="$stripped $arch" + fi + done + if [[ "$stripped" ]]; then + echo "Stripped $binary of architectures:$stripped" + fi + STRIP_BINARY_RETVAL=1 +} + +if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then + wait +fi diff --git a/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests-resources.sh b/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests-resources.sh new file mode 100755 index 0000000..fe3f9c7 --- /dev/null +++ b/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests-resources.sh @@ -0,0 +1,118 @@ +#!/bin/sh +set -e +set -u +set -o pipefail + +if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then + # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy + # resources to, so exit 0 (signalling the script phase was successful). + exit 0 +fi + +mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" + +RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt +> "$RESOURCES_TO_COPY" + +XCASSET_FILES=() + +# This protects against multiple targets copying the same framework dependency at the same time. The solution +# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html +RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") + +case "${TARGETED_DEVICE_FAMILY:-}" in + 1,2) + TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" + ;; + 1) + TARGET_DEVICE_ARGS="--target-device iphone" + ;; + 2) + TARGET_DEVICE_ARGS="--target-device ipad" + ;; + 3) + TARGET_DEVICE_ARGS="--target-device tv" + ;; + 4) + TARGET_DEVICE_ARGS="--target-device watch" + ;; + *) + TARGET_DEVICE_ARGS="--target-device mac" + ;; +esac + +install_resource() +{ + if [[ "$1" = /* ]] ; then + RESOURCE_PATH="$1" + else + RESOURCE_PATH="${PODS_ROOT}/$1" + fi + if [[ ! -e "$RESOURCE_PATH" ]] ; then + cat << EOM +error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. +EOM + exit 1 + fi + case $RESOURCE_PATH in + *.storyboard) + echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true + ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} + ;; + *.xib) + echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true + ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} + ;; + *.framework) + echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true + mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + ;; + *.xcdatamodel) + echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true + xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" + ;; + *.xcdatamodeld) + echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true + xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" + ;; + *.xcmappingmodel) + echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true + xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" + ;; + *.xcassets) + ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" + XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") + ;; + *) + echo "$RESOURCE_PATH" || true + echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" + ;; + esac +} + +mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then + mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" + rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +fi +rm -f "$RESOURCES_TO_COPY" + +if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] +then + # Find all other xcassets (this unfortunately includes those of path pods and other targets). + OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) + while read line; do + if [[ $line != "${PODS_ROOT}*" ]]; then + XCASSET_FILES+=("$line") + fi + done <<<"$OTHER_XCASSETS" + + if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then + printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" + else + printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_BUILD_DIR}/assetcatalog_generated_info.plist" + fi +fi diff --git a/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests-umbrella.h b/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests-umbrella.h new file mode 100644 index 0000000..1cb2777 --- /dev/null +++ b/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests-umbrella.h @@ -0,0 +1,16 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + + +FOUNDATION_EXPORT double Pods_testingUITestsVersionNumber; +FOUNDATION_EXPORT const unsigned char Pods_testingUITestsVersionString[]; + diff --git a/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests.debug.xcconfig b/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests.debug.xcconfig new file mode 100644 index 0000000..510ccbd --- /dev/null +++ b/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests.debug.xcconfig @@ -0,0 +1,8 @@ +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/PryntTrimmerView" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' +OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/PryntTrimmerView/PryntTrimmerView.framework/Headers" +PODS_BUILD_DIR = ${BUILD_DIR} +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_PODFILE_DIR_PATH = ${SRCROOT}/. +PODS_ROOT = ${SRCROOT}/Pods diff --git a/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests.modulemap b/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests.modulemap new file mode 100644 index 0000000..c9ff1f2 --- /dev/null +++ b/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests.modulemap @@ -0,0 +1,6 @@ +framework module Pods_testingUITests { + umbrella header "Pods-testingUITests-umbrella.h" + + export * + module * { export * } +} diff --git a/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests.release.xcconfig b/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests.release.xcconfig new file mode 100644 index 0000000..510ccbd --- /dev/null +++ b/Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests.release.xcconfig @@ -0,0 +1,8 @@ +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/PryntTrimmerView" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' +OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/PryntTrimmerView/PryntTrimmerView.framework/Headers" +PODS_BUILD_DIR = ${BUILD_DIR} +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_PODFILE_DIR_PATH = ${SRCROOT}/. +PODS_ROOT = ${SRCROOT}/Pods diff --git a/Pods/Target Support Files/PryntTrimmerView/Info.plist b/Pods/Target Support Files/PryntTrimmerView/Info.plist new file mode 100644 index 0000000..bdac57c --- /dev/null +++ b/Pods/Target Support Files/PryntTrimmerView/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + ${PRODUCT_BUNDLE_IDENTIFIER} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + FMWK + CFBundleShortVersionString + 2.0.1 + CFBundleSignature + ???? + CFBundleVersion + ${CURRENT_PROJECT_VERSION} + NSPrincipalClass + + + diff --git a/Pods/Target Support Files/PryntTrimmerView/PryntTrimmerView-dummy.m b/Pods/Target Support Files/PryntTrimmerView/PryntTrimmerView-dummy.m new file mode 100644 index 0000000..be8848d --- /dev/null +++ b/Pods/Target Support Files/PryntTrimmerView/PryntTrimmerView-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_PryntTrimmerView : NSObject +@end +@implementation PodsDummy_PryntTrimmerView +@end diff --git a/Pods/Target Support Files/PryntTrimmerView/PryntTrimmerView-prefix.pch b/Pods/Target Support Files/PryntTrimmerView/PryntTrimmerView-prefix.pch new file mode 100644 index 0000000..beb2a24 --- /dev/null +++ b/Pods/Target Support Files/PryntTrimmerView/PryntTrimmerView-prefix.pch @@ -0,0 +1,12 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + diff --git a/Pods/Target Support Files/PryntTrimmerView/PryntTrimmerView-umbrella.h b/Pods/Target Support Files/PryntTrimmerView/PryntTrimmerView-umbrella.h new file mode 100644 index 0000000..eaf5b4c --- /dev/null +++ b/Pods/Target Support Files/PryntTrimmerView/PryntTrimmerView-umbrella.h @@ -0,0 +1,16 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + + +FOUNDATION_EXPORT double PryntTrimmerViewVersionNumber; +FOUNDATION_EXPORT const unsigned char PryntTrimmerViewVersionString[]; + diff --git a/Pods/Target Support Files/PryntTrimmerView/PryntTrimmerView.modulemap b/Pods/Target Support Files/PryntTrimmerView/PryntTrimmerView.modulemap new file mode 100644 index 0000000..a166777 --- /dev/null +++ b/Pods/Target Support Files/PryntTrimmerView/PryntTrimmerView.modulemap @@ -0,0 +1,6 @@ +framework module PryntTrimmerView { + umbrella header "PryntTrimmerView-umbrella.h" + + export * + module * { export * } +} diff --git a/Pods/Target Support Files/PryntTrimmerView/PryntTrimmerView.xcconfig b/Pods/Target Support Files/PryntTrimmerView/PryntTrimmerView.xcconfig new file mode 100644 index 0000000..fa71881 --- /dev/null +++ b/Pods/Target Support Files/PryntTrimmerView/PryntTrimmerView.xcconfig @@ -0,0 +1,9 @@ +CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/PryntTrimmerView +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" +PODS_BUILD_DIR = ${BUILD_DIR} +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_ROOT = ${SRCROOT} +PODS_TARGET_SRCROOT = ${PODS_ROOT}/PryntTrimmerView +PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} +SKIP_INSTALL = YES diff --git a/testing.xcodeproj/project.pbxproj b/testing.xcodeproj/project.pbxproj new file mode 100644 index 0000000..97a627a --- /dev/null +++ b/testing.xcodeproj/project.pbxproj @@ -0,0 +1,746 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 48; + objects = { + +/* Begin PBXBuildFile section */ + 841B0FD62085BA6A008E6573 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 841B0FD52085BA6A008E6573 /* AppDelegate.swift */; }; + 841B0FD82085BA6A008E6573 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 841B0FD72085BA6A008E6573 /* ViewController.swift */; }; + 841B0FDB2085BA6A008E6573 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 841B0FD92085BA6A008E6573 /* Main.storyboard */; }; + 841B0FDE2085BA6A008E6573 /* testing.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 841B0FDC2085BA6A008E6573 /* testing.xcdatamodeld */; }; + 841B0FE02085BA6A008E6573 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 841B0FDF2085BA6A008E6573 /* Assets.xcassets */; }; + 841B0FE32085BA6A008E6573 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 841B0FE12085BA6A008E6573 /* LaunchScreen.storyboard */; }; + 841B0FEE2085BA6B008E6573 /* testingTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 841B0FED2085BA6B008E6573 /* testingTests.swift */; }; + 841B0FF92085BA6B008E6573 /* testingUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 841B0FF82085BA6B008E6573 /* testingUITests.swift */; }; + 842EFDDE20906BBA00C18542 /* VideoClippingVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 842EFDDD20906BBA00C18542 /* VideoClippingVC.swift */; }; + 842F6C1B209082DA004860AC /* AssetSelectionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 842F6C1A209082DA004860AC /* AssetSelectionViewController.swift */; }; + 84392CAB20889FAC00FB94D4 /* progressRingVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84392CAA20889FAC00FB94D4 /* progressRingVC.swift */; }; + 860944A0FF89E0CBEEB885C7 /* Pods_testing.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2DA372636C45CF1BFF92B4AE /* Pods_testing.framework */; }; + DC9CA930689B7671478E7688 /* Pods_testingUITests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F0E3581CCF1909A91F1A53A2 /* Pods_testingUITests.framework */; }; + E3194AEAC8D1463C764CCCD5 /* Pods_testingTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 88CF623F5AC287AC3EA617CA /* Pods_testingTests.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 841B0FEA2085BA6B008E6573 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 841B0FCA2085BA6A008E6573 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 841B0FD12085BA6A008E6573; + remoteInfo = testing; + }; + 841B0FF52085BA6B008E6573 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 841B0FCA2085BA6A008E6573 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 841B0FD12085BA6A008E6573; + remoteInfo = testing; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 2DA372636C45CF1BFF92B4AE /* Pods_testing.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_testing.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 3059F3AE41F807AE5DA6DE14 /* Pods-testing.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-testing.release.xcconfig"; path = "Pods/Target Support Files/Pods-testing/Pods-testing.release.xcconfig"; sourceTree = ""; }; + 4AC154524ACF130C1AB7041C /* Pods-testing.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-testing.debug.xcconfig"; path = "Pods/Target Support Files/Pods-testing/Pods-testing.debug.xcconfig"; sourceTree = ""; }; + 68FD495B01AAF4BC117F0AFD /* Pods-testingTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-testingTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-testingTests/Pods-testingTests.debug.xcconfig"; sourceTree = ""; }; + 6D58C41EE54096AD8058FAC1 /* Pods-testingUITests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-testingUITests.release.xcconfig"; path = "Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests.release.xcconfig"; sourceTree = ""; }; + 841B0FD22085BA6A008E6573 /* testing.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = testing.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 841B0FD52085BA6A008E6573 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 841B0FD72085BA6A008E6573 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 841B0FDA2085BA6A008E6573 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 841B0FDD2085BA6A008E6573 /* testing.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = testing.xcdatamodel; sourceTree = ""; }; + 841B0FDF2085BA6A008E6573 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 841B0FE22085BA6A008E6573 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 841B0FE42085BA6A008E6573 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 841B0FE92085BA6B008E6573 /* testingTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = testingTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 841B0FED2085BA6B008E6573 /* testingTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = testingTests.swift; sourceTree = ""; }; + 841B0FEF2085BA6B008E6573 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 841B0FF42085BA6B008E6573 /* testingUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = testingUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 841B0FF82085BA6B008E6573 /* testingUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = testingUITests.swift; sourceTree = ""; }; + 841B0FFA2085BA6B008E6573 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 842EFDDD20906BBA00C18542 /* VideoClippingVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VideoClippingVC.swift; sourceTree = ""; }; + 842F6C1A209082DA004860AC /* AssetSelectionViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssetSelectionViewController.swift; sourceTree = ""; }; + 84392CAA20889FAC00FB94D4 /* progressRingVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = progressRingVC.swift; sourceTree = ""; }; + 88CF623F5AC287AC3EA617CA /* Pods_testingTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_testingTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + CEAAFA48316C82FC99FC6FAD /* Pods-testingTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-testingTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-testingTests/Pods-testingTests.release.xcconfig"; sourceTree = ""; }; + EF667326652297FA1236B8F8 /* Pods-testingUITests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-testingUITests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-testingUITests/Pods-testingUITests.debug.xcconfig"; sourceTree = ""; }; + F0E3581CCF1909A91F1A53A2 /* Pods_testingUITests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_testingUITests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 841B0FCF2085BA6A008E6573 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 860944A0FF89E0CBEEB885C7 /* Pods_testing.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 841B0FE62085BA6B008E6573 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + E3194AEAC8D1463C764CCCD5 /* Pods_testingTests.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 841B0FF12085BA6B008E6573 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + DC9CA930689B7671478E7688 /* Pods_testingUITests.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 40796927586142E3C7FE1BA4 /* Pods */ = { + isa = PBXGroup; + children = ( + 4AC154524ACF130C1AB7041C /* Pods-testing.debug.xcconfig */, + 3059F3AE41F807AE5DA6DE14 /* Pods-testing.release.xcconfig */, + 68FD495B01AAF4BC117F0AFD /* Pods-testingTests.debug.xcconfig */, + CEAAFA48316C82FC99FC6FAD /* Pods-testingTests.release.xcconfig */, + EF667326652297FA1236B8F8 /* Pods-testingUITests.debug.xcconfig */, + 6D58C41EE54096AD8058FAC1 /* Pods-testingUITests.release.xcconfig */, + ); + name = Pods; + sourceTree = ""; + }; + 841B0FC92085BA6A008E6573 = { + isa = PBXGroup; + children = ( + 841B0FD42085BA6A008E6573 /* testing */, + 841B0FEC2085BA6B008E6573 /* testingTests */, + 841B0FF72085BA6B008E6573 /* testingUITests */, + 841B0FD32085BA6A008E6573 /* Products */, + 40796927586142E3C7FE1BA4 /* Pods */, + D738AADE74FB8E775E776F4C /* Frameworks */, + ); + sourceTree = ""; + }; + 841B0FD32085BA6A008E6573 /* Products */ = { + isa = PBXGroup; + children = ( + 841B0FD22085BA6A008E6573 /* testing.app */, + 841B0FE92085BA6B008E6573 /* testingTests.xctest */, + 841B0FF42085BA6B008E6573 /* testingUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 841B0FD42085BA6A008E6573 /* testing */ = { + isa = PBXGroup; + children = ( + 842F6C19209082CB004860AC /* videoTrimming */, + 841B0FD52085BA6A008E6573 /* AppDelegate.swift */, + 841B0FD72085BA6A008E6573 /* ViewController.swift */, + 841B0FD92085BA6A008E6573 /* Main.storyboard */, + 841B0FDF2085BA6A008E6573 /* Assets.xcassets */, + 841B0FE12085BA6A008E6573 /* LaunchScreen.storyboard */, + 841B0FE42085BA6A008E6573 /* Info.plist */, + 841B0FDC2085BA6A008E6573 /* testing.xcdatamodeld */, + 84392CAA20889FAC00FB94D4 /* progressRingVC.swift */, + ); + path = testing; + sourceTree = ""; + }; + 841B0FEC2085BA6B008E6573 /* testingTests */ = { + isa = PBXGroup; + children = ( + 841B0FED2085BA6B008E6573 /* testingTests.swift */, + 841B0FEF2085BA6B008E6573 /* Info.plist */, + ); + path = testingTests; + sourceTree = ""; + }; + 841B0FF72085BA6B008E6573 /* testingUITests */ = { + isa = PBXGroup; + children = ( + 841B0FF82085BA6B008E6573 /* testingUITests.swift */, + 841B0FFA2085BA6B008E6573 /* Info.plist */, + ); + path = testingUITests; + sourceTree = ""; + }; + 842F6C19209082CB004860AC /* videoTrimming */ = { + isa = PBXGroup; + children = ( + 842F6C1A209082DA004860AC /* AssetSelectionViewController.swift */, + 842EFDDD20906BBA00C18542 /* VideoClippingVC.swift */, + ); + path = videoTrimming; + sourceTree = ""; + }; + D738AADE74FB8E775E776F4C /* Frameworks */ = { + isa = PBXGroup; + children = ( + 2DA372636C45CF1BFF92B4AE /* Pods_testing.framework */, + 88CF623F5AC287AC3EA617CA /* Pods_testingTests.framework */, + F0E3581CCF1909A91F1A53A2 /* Pods_testingUITests.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 841B0FD12085BA6A008E6573 /* testing */ = { + isa = PBXNativeTarget; + buildConfigurationList = 841B0FFD2085BA6B008E6573 /* Build configuration list for PBXNativeTarget "testing" */; + buildPhases = ( + CEDFF8BB3CA4156CD61A51C9 /* [CP] Check Pods Manifest.lock */, + 841B0FCE2085BA6A008E6573 /* Sources */, + 841B0FCF2085BA6A008E6573 /* Frameworks */, + 841B0FD02085BA6A008E6573 /* Resources */, + 8FEEE31F3022B72E3904306D /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = testing; + productName = testing; + productReference = 841B0FD22085BA6A008E6573 /* testing.app */; + productType = "com.apple.product-type.application"; + }; + 841B0FE82085BA6B008E6573 /* testingTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 841B10002085BA6B008E6573 /* Build configuration list for PBXNativeTarget "testingTests" */; + buildPhases = ( + 768BF32DBE99DE733C65C782 /* [CP] Check Pods Manifest.lock */, + 841B0FE52085BA6B008E6573 /* Sources */, + 841B0FE62085BA6B008E6573 /* Frameworks */, + 841B0FE72085BA6B008E6573 /* Resources */, + 54A53805B147638C30CE278B /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + 841B0FEB2085BA6B008E6573 /* PBXTargetDependency */, + ); + name = testingTests; + productName = testingTests; + productReference = 841B0FE92085BA6B008E6573 /* testingTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 841B0FF32085BA6B008E6573 /* testingUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 841B10032085BA6B008E6573 /* Build configuration list for PBXNativeTarget "testingUITests" */; + buildPhases = ( + 462CFB089885010F51E58781 /* [CP] Check Pods Manifest.lock */, + 841B0FF02085BA6B008E6573 /* Sources */, + 841B0FF12085BA6B008E6573 /* Frameworks */, + 841B0FF22085BA6B008E6573 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 841B0FF62085BA6B008E6573 /* PBXTargetDependency */, + ); + name = testingUITests; + productName = testingUITests; + productReference = 841B0FF42085BA6B008E6573 /* testingUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 841B0FCA2085BA6A008E6573 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0920; + LastUpgradeCheck = 0920; + ORGANIZATIONNAME = admin; + TargetAttributes = { + 841B0FD12085BA6A008E6573 = { + CreatedOnToolsVersion = 9.2; + ProvisioningStyle = Automatic; + }; + 841B0FE82085BA6B008E6573 = { + CreatedOnToolsVersion = 9.2; + ProvisioningStyle = Automatic; + TestTargetID = 841B0FD12085BA6A008E6573; + }; + 841B0FF32085BA6B008E6573 = { + CreatedOnToolsVersion = 9.2; + ProvisioningStyle = Automatic; + TestTargetID = 841B0FD12085BA6A008E6573; + }; + }; + }; + buildConfigurationList = 841B0FCD2085BA6A008E6573 /* Build configuration list for PBXProject "testing" */; + compatibilityVersion = "Xcode 8.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 841B0FC92085BA6A008E6573; + productRefGroup = 841B0FD32085BA6A008E6573 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 841B0FD12085BA6A008E6573 /* testing */, + 841B0FE82085BA6B008E6573 /* testingTests */, + 841B0FF32085BA6B008E6573 /* testingUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 841B0FD02085BA6A008E6573 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 841B0FE32085BA6A008E6573 /* LaunchScreen.storyboard in Resources */, + 841B0FE02085BA6A008E6573 /* Assets.xcassets in Resources */, + 841B0FDB2085BA6A008E6573 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 841B0FE72085BA6B008E6573 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 841B0FF22085BA6B008E6573 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 462CFB089885010F51E58781 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-testingUITests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 54A53805B147638C30CE278B /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${SRCROOT}/Pods/Target Support Files/Pods-testingTests/Pods-testingTests-frameworks.sh", + "${BUILT_PRODUCTS_DIR}/FDTake/FDTake.framework", + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FDTake.framework", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-testingTests/Pods-testingTests-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + 768BF32DBE99DE733C65C782 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-testingTests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 8FEEE31F3022B72E3904306D /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${SRCROOT}/Pods/Target Support Files/Pods-testing/Pods-testing-frameworks.sh", + "${BUILT_PRODUCTS_DIR}/PryntTrimmerView/PryntTrimmerView.framework", + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/PryntTrimmerView.framework", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-testing/Pods-testing-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + CEDFF8BB3CA4156CD61A51C9 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-testing-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 841B0FCE2085BA6A008E6573 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 842F6C1B209082DA004860AC /* AssetSelectionViewController.swift in Sources */, + 842EFDDE20906BBA00C18542 /* VideoClippingVC.swift in Sources */, + 841B0FD82085BA6A008E6573 /* ViewController.swift in Sources */, + 84392CAB20889FAC00FB94D4 /* progressRingVC.swift in Sources */, + 841B0FD62085BA6A008E6573 /* AppDelegate.swift in Sources */, + 841B0FDE2085BA6A008E6573 /* testing.xcdatamodeld in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 841B0FE52085BA6B008E6573 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 841B0FEE2085BA6B008E6573 /* testingTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 841B0FF02085BA6B008E6573 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 841B0FF92085BA6B008E6573 /* testingUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 841B0FEB2085BA6B008E6573 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 841B0FD12085BA6A008E6573 /* testing */; + targetProxy = 841B0FEA2085BA6B008E6573 /* PBXContainerItemProxy */; + }; + 841B0FF62085BA6B008E6573 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 841B0FD12085BA6A008E6573 /* testing */; + targetProxy = 841B0FF52085BA6B008E6573 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 841B0FD92085BA6A008E6573 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 841B0FDA2085BA6A008E6573 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 841B0FE12085BA6A008E6573 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 841B0FE22085BA6A008E6573 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 841B0FFB2085BA6B008E6573 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 11.2; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 841B0FFC2085BA6B008E6573 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 11.2; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 841B0FFE2085BA6B008E6573 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 4AC154524ACF130C1AB7041C /* Pods-testing.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 7X6AR44722; + INFOPLIST_FILE = testing/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.brainplow.testing; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 841B0FFF2085BA6B008E6573 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 3059F3AE41F807AE5DA6DE14 /* Pods-testing.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 7X6AR44722; + INFOPLIST_FILE = testing/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.brainplow.testing; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + 841B10012085BA6B008E6573 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 68FD495B01AAF4BC117F0AFD /* Pods-testingTests.debug.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 7X6AR44722; + INFOPLIST_FILE = testingTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.brainplow.testingTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/testing.app/testing"; + }; + name = Debug; + }; + 841B10022085BA6B008E6573 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = CEAAFA48316C82FC99FC6FAD /* Pods-testingTests.release.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 7X6AR44722; + INFOPLIST_FILE = testingTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.brainplow.testingTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/testing.app/testing"; + }; + name = Release; + }; + 841B10042085BA6B008E6573 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = EF667326652297FA1236B8F8 /* Pods-testingUITests.debug.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 7X6AR44722; + INFOPLIST_FILE = testingUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.brainplow.testingUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = testing; + }; + name = Debug; + }; + 841B10052085BA6B008E6573 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 6D58C41EE54096AD8058FAC1 /* Pods-testingUITests.release.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 7X6AR44722; + INFOPLIST_FILE = testingUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.brainplow.testingUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = testing; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 841B0FCD2085BA6A008E6573 /* Build configuration list for PBXProject "testing" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 841B0FFB2085BA6B008E6573 /* Debug */, + 841B0FFC2085BA6B008E6573 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 841B0FFD2085BA6B008E6573 /* Build configuration list for PBXNativeTarget "testing" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 841B0FFE2085BA6B008E6573 /* Debug */, + 841B0FFF2085BA6B008E6573 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 841B10002085BA6B008E6573 /* Build configuration list for PBXNativeTarget "testingTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 841B10012085BA6B008E6573 /* Debug */, + 841B10022085BA6B008E6573 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 841B10032085BA6B008E6573 /* Build configuration list for PBXNativeTarget "testingUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 841B10042085BA6B008E6573 /* Debug */, + 841B10052085BA6B008E6573 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + +/* Begin XCVersionGroup section */ + 841B0FDC2085BA6A008E6573 /* testing.xcdatamodeld */ = { + isa = XCVersionGroup; + children = ( + 841B0FDD2085BA6A008E6573 /* testing.xcdatamodel */, + ); + currentVersion = 841B0FDD2085BA6A008E6573 /* testing.xcdatamodel */; + path = testing.xcdatamodeld; + sourceTree = ""; + versionGroupType = wrapper.xcdatamodel; + }; +/* End XCVersionGroup section */ + }; + rootObject = 841B0FCA2085BA6A008E6573 /* Project object */; +} diff --git a/testing.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/testing.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..0c0559c --- /dev/null +++ b/testing.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/testing.xcodeproj/project.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate b/testing.xcodeproj/project.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..9e0123a Binary files /dev/null and b/testing.xcodeproj/project.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/testing.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/xcschememanagement.plist b/testing.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..be3f0a9 --- /dev/null +++ b/testing.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + testing.xcscheme + + orderHint + 5 + + + + diff --git a/testing.xcworkspace/contents.xcworkspacedata b/testing.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..e90ac63 --- /dev/null +++ b/testing.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/testing.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate b/testing.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..85dc892 Binary files /dev/null and b/testing.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/testing.xcworkspace/xcuserdata/admin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/testing.xcworkspace/xcuserdata/admin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 0000000..ed9a9b4 --- /dev/null +++ b/testing.xcworkspace/xcuserdata/admin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,5 @@ + + + diff --git a/testing/AppDelegate.swift b/testing/AppDelegate.swift new file mode 100644 index 0000000..5de2970 --- /dev/null +++ b/testing/AppDelegate.swift @@ -0,0 +1,93 @@ +// +// AppDelegate.swift +// testing +// +// Created by admin on 4/17/18. +// Copyright © 2018 admin. All rights reserved. +// + +import UIKit +import CoreData + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + func applicationWillResignActive(_ application: UIApplication) { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. + } + + func applicationDidEnterBackground(_ application: UIApplication) { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. + } + + func applicationWillEnterForeground(_ application: UIApplication) { + // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. + } + + func applicationDidBecomeActive(_ application: UIApplication) { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + } + + func applicationWillTerminate(_ application: UIApplication) { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + // Saves changes in the application's managed object context before the application terminates. + self.saveContext() + } + + // MARK: - Core Data stack + + lazy var persistentContainer: NSPersistentContainer = { + /* + The persistent container for the application. This implementation + creates and returns a container, having loaded the store for the + application to it. This property is optional since there are legitimate + error conditions that could cause the creation of the store to fail. + */ + let container = NSPersistentContainer(name: "testing") + container.loadPersistentStores(completionHandler: { (storeDescription, error) in + if let error = error as NSError? { + // Replace this implementation with code to handle the error appropriately. + // fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. + + /* + Typical reasons for an error here include: + * The parent directory does not exist, cannot be created, or disallows writing. + * The persistent store is not accessible, due to permissions or data protection when the device is locked. + * The device is out of space. + * The store could not be migrated to the current model version. + Check the error message to determine what the actual problem was. + */ + fatalError("Unresolved error \(error), \(error.userInfo)") + } + }) + return container + }() + + // MARK: - Core Data Saving support + + func saveContext () { + let context = persistentContainer.viewContext + if context.hasChanges { + do { + try context.save() + } catch { + // Replace this implementation with code to handle the error appropriately. + // fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. + let nserror = error as NSError + fatalError("Unresolved error \(nserror), \(nserror.userInfo)") + } + } + } + +} + diff --git a/testing/Assets.xcassets/AppIcon.appiconset/Contents.json b/testing/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..1d060ed --- /dev/null +++ b/testing/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,93 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/testing/Base.lproj/LaunchScreen.storyboard b/testing/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..f83f6fd --- /dev/null +++ b/testing/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/testing/Base.lproj/Main.storyboard b/testing/Base.lproj/Main.storyboard new file mode 100644 index 0000000..457ddfc --- /dev/null +++ b/testing/Base.lproj/Main.storyboard @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/testing/Info.plist b/testing/Info.plist new file mode 100644 index 0000000..284e68e --- /dev/null +++ b/testing/Info.plist @@ -0,0 +1,47 @@ + + + + + NSPhotoLibraryUsageDescription + For testing + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/testing/ViewController.swift b/testing/ViewController.swift new file mode 100644 index 0000000..74ee78a --- /dev/null +++ b/testing/ViewController.swift @@ -0,0 +1,57 @@ +// +// ViewController.swift +// testing +// +// Created by admin on 4/17/18. +// Copyright © 2018 admin. All rights reserved. +// + +import UIKit + +class ViewController: UIViewController { + + var tableDataSource = ["Row 1", "Row 2", "Row 3", "Row 4", "Row 5"] + + override func viewDidLoad() { + super.viewDidLoad() + clearBackButtonText(vc: self) + + } + + func clearBackButtonText(vc : UIViewController) { + let backItem = UIBarButtonItem() + backItem.title = "" + vc.navigationItem.backBarButtonItem = backItem + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } + + @objc func labelSwipedLeft(sender: UITapGestureRecognizer) { + print("labelSwipedLeft called for row \(sender.view!.tag)") + } + +} + +extension ViewController : UITableViewDataSource, UITableViewDelegate { + func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { + return 5 + } + func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { + + let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath) + cell.textLabel?.text = tableDataSource[indexPath.row] + cell.textLabel?.tag = indexPath.row + //cell.textLabel?.isUserInteractionEnabled = true + //let swipeLeft = UITapGestureRecognizer(target: self, action:#selector(self.labelSwipedLeft(sender:))) + + //cell.textLabel?.addGestureRecognizer(swipeLeft) + return cell + } + func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { + + performSegue(withIdentifier: "test", sender: self) + } +} diff --git a/testing/progressRingVC.swift b/testing/progressRingVC.swift new file mode 100644 index 0000000..9080f40 --- /dev/null +++ b/testing/progressRingVC.swift @@ -0,0 +1,87 @@ +// +// progressRingVC.swift +// testing +// +// Created by admin on 4/19/18. +// Copyright © 2018 admin. All rights reserved. +// + +import UIKit + +class progressRingVC: UIViewController { + + + let percentageLabel : UILabel = { + let label = UILabel() + label.text = "0%" + label.textAlignment = .center + label.font = UIFont.boldSystemFont(ofSize: 30) + return label + }() + override func viewDidLoad() { + super.viewDidLoad() + + let shapeLayer = CAShapeLayer() + + let center = view.center + //create my track lyer + let trackLayer = CAShapeLayer() + let ninety = CGFloat.pi / 2 + let cicularPath = UIBezierPath.init(arcCenter: center, radius: 100, startAngle: ( -CGFloat.pi/2 ), endAngle: (2 * CGFloat.pi) - ninety , clockwise: true) + trackLayer.path = cicularPath.cgPath + trackLayer.strokeColor = UIColor.lightGray.cgColor + trackLayer.lineWidth = 10 + trackLayer.fillColor = UIColor.white.cgColor + trackLayer.lineCap = kCALineCapRound + view.layer.addSublayer(trackLayer) + + + shapeLayer.path = cicularPath.cgPath + shapeLayer.strokeColor = #colorLiteral(red: 0.8566855788, green: 0.1049235985, blue: 0.136507839, alpha: 1) + shapeLayer.lineWidth = 10 + shapeLayer.fillColor = UIColor.white.cgColor + shapeLayer.lineCap = kCALineCapRound + + + shapeLayer.strokeEnd = 0 + view.layer.addSublayer(shapeLayer) + + + animateCircle(shapeLayer) + + percentageLabel.frame = CGRect(x: 0, y: 0 , width: 100, height: 100) + percentageLabel.center = view.center + view.addSubview(percentageLabel) + + //adding label + + } + + fileprivate func animateCircle(_ shapeLayer: CAShapeLayer) { + //keypath is the thing that we want animation on + let basicAnimation = CABasicAnimation(keyPath: "strokeEnd") + basicAnimation.toValue = 0.5 + basicAnimation.duration = 2 + basicAnimation.fillMode = kCAFillModeForwards + basicAnimation.isRemovedOnCompletion = false + + shapeLayer.add(basicAnimation, forKey: "urSoBasic") + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } + + + /* + // MARK: - Navigation + + // In a storyboard-based application, you will often want to do a little preparation before navigation + override func prepare(for segue: UIStoryboardSegue, sender: Any?) { + // Get the new view controller using segue.destinationViewController. + // Pass the selected object to the new view controller. + } + */ + +} diff --git a/testing/testing.xcdatamodeld/.xccurrentversion b/testing/testing.xcdatamodeld/.xccurrentversion new file mode 100644 index 0000000..e41add6 --- /dev/null +++ b/testing/testing.xcdatamodeld/.xccurrentversion @@ -0,0 +1,8 @@ + + + + + _XCCurrentVersionName + testing.xcdatamodel + + diff --git a/testing/testing.xcdatamodeld/testing.xcdatamodel/contents b/testing/testing.xcdatamodeld/testing.xcdatamodel/contents new file mode 100644 index 0000000..476e5b6 --- /dev/null +++ b/testing/testing.xcdatamodeld/testing.xcdatamodel/contents @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/testing/videoTrimming/AssetSelectionViewController.swift b/testing/videoTrimming/AssetSelectionViewController.swift new file mode 100755 index 0000000..9939046 --- /dev/null +++ b/testing/videoTrimming/AssetSelectionViewController.swift @@ -0,0 +1,52 @@ +// +// AssetSelectionViewController.swift +// PryntTrimmerView +// +// Created by Henry on 25/06/2017. +// Copyright © 2017 CocoaPods. All rights reserved. +// + +import UIKit +import Photos + +class AssetSelectionViewController: UIViewController { + + var fetchResult: PHFetchResult? + + override func viewDidLoad() { + super.viewDidLoad() + loadLibrary() + } + + func loadLibrary() { + PHPhotoLibrary.requestAuthorization { (status) in + if status == .authorized { + self.fetchResult = PHAsset.fetchAssets(with: .video, options: nil) + } + } + } + + func loadAssetRandomly() { + guard let fetchResult = fetchResult, fetchResult.count > 0 else { + let alert = UIAlertController(title: "No Video Found", message: "No Video Found on your device.", preferredStyle: .alert) + alert.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.destructive, handler: nil)) + self.present(alert, animated: true, completion: nil) + print("Error loading assets.") + return + } + + let randomAssetIndex = Int(arc4random_uniform(UInt32(fetchResult.count - 1))) + let asset = fetchResult.object(at: randomAssetIndex) + PHCachingImageManager().requestAVAsset(forVideo: asset, options: nil) { (avAsset, _, _) in + DispatchQueue.main.async { + if let avAsset = avAsset { + self.loadAsset(avAsset) + } + } + } + } + + func loadAsset(_ asset: AVAsset) { + // override in subclass + } +} diff --git a/testing/videoTrimming/VideoClippingVC.swift b/testing/videoTrimming/VideoClippingVC.swift new file mode 100644 index 0000000..d6cd752 --- /dev/null +++ b/testing/videoTrimming/VideoClippingVC.swift @@ -0,0 +1,145 @@ +// +// VideoClippingVC.swift +// testing +// +// Created by admin on 4/25/18. +// Copyright © 2018 admin. All rights reserved. +// + +import UIKit +import PryntTrimmerView +import AVKit + +/// A view controller to demonstrate the trimming of a video. Make sure the scene is selected as the initial +// view controller in the storyboard + +class VideoClippingVC: AssetSelectionViewController { + + @IBOutlet weak var trimmerView: TrimmerView! + @IBOutlet weak var playerView: UIView! + + @IBOutlet weak var btnPlay: UIButton! + var player: AVPlayer? + var playbackTimeCheckerTimer: Timer? + var trimmerPositionChangedTimer: Timer? + + + override func viewDidLoad() { + super.viewDidLoad() + //trimmerView.delegate = self + trimmerView.handleColor = UIColor.white + trimmerView.mainColor = UIColor.darkGray + //trimmerView.ass + + + // Do any additional setup after loading the view. + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } + + + private func addVideoPlayer(with asset: AVAsset, playerView: UIView) { + let playerItem = AVPlayerItem(asset: asset) + player = AVPlayer(playerItem: playerItem) + + NotificationCenter.default.addObserver(self, selector: #selector(VideoClippingVC.itemDidFinishPlaying(_:)), + name: NSNotification.Name.AVPlayerItemDidPlayToEndTime, object: playerItem) + + let layer: AVPlayerLayer = AVPlayerLayer(player: player) + layer.backgroundColor = UIColor.white.cgColor + layer.frame = CGRect(x: 0, y: 0, width: playerView.frame.width, height: playerView.frame.height) + layer.videoGravity = AVLayerVideoGravity.resizeAspectFill + playerView.layer.sublayers?.forEach({$0.removeFromSuperlayer()}) + playerView.layer.addSublayer(layer) + } + + @objc func itemDidFinishPlaying(_ notification: Notification) { + if let startTime = trimmerView.startTime { + player?.seek(to: startTime) + + } + } + + func startPlaybackTimeChecker() { + + stopPlaybackTimeChecker() + playbackTimeCheckerTimer = Timer.scheduledTimer(timeInterval: 0.1, target: self, + selector: + #selector(VideoClippingVC.onPlaybackTimeChecker), userInfo: nil, repeats: true) + } + + func stopPlaybackTimeChecker() { + + playbackTimeCheckerTimer?.invalidate() + playbackTimeCheckerTimer = nil + } + + @objc func onPlaybackTimeChecker() { + + guard let startTime = trimmerView.startTime, let endTime = trimmerView.endTime, let player = player else { + return + } + + let playBackTime = player.currentTime() + trimmerView.seek(to: playBackTime) + + if playBackTime >= endTime { + player.seek(to: startTime, toleranceBefore: kCMTimeZero, toleranceAfter: kCMTimeZero) + trimmerView.seek(to: startTime) + } + } + + //MARK:- Actions + @IBAction func play(_ sender: Any) { + + guard let player = player else { return } + + if !player.isPlaying { + player.play() + startPlaybackTimeChecker() + } else { + player.pause() + + stopPlaybackTimeChecker() + } + } + + @IBAction func selectAsset(_ sender: Any) { + loadAssetRandomly() + + } + + override func loadAsset(_ asset: AVAsset) { + + trimmerView.asset = asset + trimmerView.delegate = self + addVideoPlayer(with: asset, playerView: playerView) + } + +} + +extension VideoClippingVC: TrimmerViewDelegate { + func positionBarStoppedMoving(_ playerTime: CMTime) { + player?.seek(to: playerTime, toleranceBefore: kCMTimeZero, toleranceAfter: kCMTimeZero) + player?.play() + startPlaybackTimeChecker() + } + + func didChangePositionBar(_ playerTime: CMTime) { + stopPlaybackTimeChecker() + player?.pause() + player?.seek(to: playerTime, toleranceBefore: kCMTimeZero, toleranceAfter: kCMTimeZero) + let duration = (trimmerView.endTime! - trimmerView.startTime!).seconds + print(duration) + } +} + +extension AVPlayer { + + var isPlaying: Bool { + return self.rate != 0 && self.error == nil + } +} diff --git a/testingTests/Info.plist b/testingTests/Info.plist new file mode 100644 index 0000000..6c40a6c --- /dev/null +++ b/testingTests/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/testingTests/testingTests.swift b/testingTests/testingTests.swift new file mode 100644 index 0000000..117b458 --- /dev/null +++ b/testingTests/testingTests.swift @@ -0,0 +1,36 @@ +// +// testingTests.swift +// testingTests +// +// Created by admin on 4/17/18. +// Copyright © 2018 admin. All rights reserved. +// + +import XCTest +@testable import testing + +class testingTests: XCTestCase { + + override func setUp() { + super.setUp() + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDown() { + // Put teardown code here. This method is called after the invocation of each test method in the class. + super.tearDown() + } + + func testExample() { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testPerformanceExample() { + // This is an example of a performance test case. + self.measure { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/testingUITests/Info.plist b/testingUITests/Info.plist new file mode 100644 index 0000000..6c40a6c --- /dev/null +++ b/testingUITests/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/testingUITests/testingUITests.swift b/testingUITests/testingUITests.swift new file mode 100644 index 0000000..cfe7b1b --- /dev/null +++ b/testingUITests/testingUITests.swift @@ -0,0 +1,36 @@ +// +// testingUITests.swift +// testingUITests +// +// Created by admin on 4/17/18. +// Copyright © 2018 admin. All rights reserved. +// + +import XCTest + +class testingUITests: XCTestCase { + + override func setUp() { + super.setUp() + + // Put setup code here. This method is called before the invocation of each test method in the class. + + // In UI tests it is usually best to stop immediately when a failure occurs. + continueAfterFailure = false + // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. + XCUIApplication().launch() + + // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. + } + + override func tearDown() { + // Put teardown code here. This method is called after the invocation of each test method in the class. + super.tearDown() + } + + func testExample() { + // Use recording to get started writing UI tests. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + +}