diff --git a/Android/PlayerProj/animplayer/build.gradle b/Android/PlayerProj/animplayer/build.gradle index ae62d52e..1e6904c8 100644 --- a/Android/PlayerProj/animplayer/build.gradle +++ b/Android/PlayerProj/animplayer/build.gradle @@ -3,12 +3,12 @@ apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { - compileSdkVersion 28 + compileSdkVersion 31 defaultConfig { - minSdkVersion 16 - targetSdkVersion 28 - versionCode 1 + minSdkVersion 31 + targetSdkVersion 31 + versionCode 31 versionName "1.0" } diff --git a/Android/PlayerProj/app/build.gradle b/Android/PlayerProj/app/build.gradle index e7c9ad14..c79504ce 100644 --- a/Android/PlayerProj/app/build.gradle +++ b/Android/PlayerProj/app/build.gradle @@ -4,11 +4,11 @@ apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { - compileSdkVersion 28 + compileSdkVersion 31 defaultConfig { applicationId "com.tencent.qgame.playerproj" - minSdkVersion 16 - targetSdkVersion 28 + minSdkVersion 31 + targetSdkVersion 31 versionCode 1 versionName "1.0" } @@ -26,5 +26,6 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" - implementation project(":animplayer") +// implementation project(":animplayer") + implementation 'io.github.tencent:vap:2.0.16' } diff --git a/Android/PlayerProj/bintrayv1.gradle b/Android/PlayerProj/bintrayv1.gradle index 31cd053e..e195835e 100644 --- a/Android/PlayerProj/bintrayv1.gradle +++ b/Android/PlayerProj/bintrayv1.gradle @@ -13,7 +13,8 @@ if (project.hasProperty("android")) { // Android libraries classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) } } else { // Java libraries - task sourcesJar(type: Jar, dependsOn: classes) { + task sourcesJar(type: Jar + , dependsOn: classes) { classifier = 'sources' from sourceSets.main.allSource } diff --git a/Android/PlayerProj/build.gradle b/Android/PlayerProj/build.gradle index 27143119..37b64a9b 100644 --- a/Android/PlayerProj/build.gradle +++ b/Android/PlayerProj/build.gradle @@ -1,7 +1,7 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - ext.kotlin_version = '1.3.50' + ext.kotlin_version = '1.5.20' repositories { google() // jcenter() diff --git a/Android/PlayerProj/gradle/wrapper/gradle-wrapper.properties b/Android/PlayerProj/gradle/wrapper/gradle-wrapper.properties index 9a4163a4..2188a95d 100644 --- a/Android/PlayerProj/gradle/wrapper/gradle-wrapper.properties +++ b/Android/PlayerProj/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,6 @@ +#Tue Apr 29 17:17:27 CST 2025 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/iOS/QGVAPlayer/QGVAPlayer.xcodeproj/project.pbxproj b/iOS/QGVAPlayer/QGVAPlayer.xcodeproj/project.pbxproj index 561d8a17..a5b6fe5f 100644 --- a/iOS/QGVAPlayer/QGVAPlayer.xcodeproj/project.pbxproj +++ b/iOS/QGVAPlayer/QGVAPlayer.xcodeproj/project.pbxproj @@ -761,12 +761,13 @@ CODE_SIGN_IDENTITY = ""; CODE_SIGN_STYLE = Automatic; DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = 6W55574XBS; + DEVELOPMENT_TEAM = YQ2BBNYL5U; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; INFOPLIST_FILE = QGVAPlayer/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 12; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -785,12 +786,13 @@ CODE_SIGN_IDENTITY = ""; CODE_SIGN_STYLE = Automatic; DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = 6W55574XBS; + DEVELOPMENT_TEAM = YQ2BBNYL5U; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; INFOPLIST_FILE = QGVAPlayer/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 12; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -807,8 +809,9 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = 6W55574XBS; + DEVELOPMENT_TEAM = YQ2BBNYL5U; INFOPLIST_FILE = QGVAPlayerTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 12; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -824,8 +827,9 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = 6W55574XBS; + DEVELOPMENT_TEAM = YQ2BBNYL5U; INFOPLIST_FILE = QGVAPlayerTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 12; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/iOS/QGVAPlayer/QGVAPlayer/Classes/Controllers/QGVAPConfigManager.h b/iOS/QGVAPlayer/QGVAPlayer/Classes/Controllers/QGVAPConfigManager.h index c368017b..5df0c194 100644 --- a/iOS/QGVAPlayer/QGVAPlayer/Classes/Controllers/QGVAPConfigManager.h +++ b/iOS/QGVAPlayer/QGVAPlayer/Classes/Controllers/QGVAPConfigManager.h @@ -26,7 +26,8 @@ @optional - (NSString *)vap_contentForTag:(NSString *)tag resource:(QGVAPSourceInfo *)info; //替换配置中的资源占位符(不处理直接返回tag) - (void)vap_loadImageWithURL:(NSString *)urlStr context:(NSDictionary *)context completion:(VAPImageCompletionBlock)completionBlock; - +/// 自定义字体文字加载 +- (UIImage *)loadVapContent:(NSString *)content context:(NSDictionary *)context; @end @interface QGVAPConfigManager : NSObject diff --git a/iOS/QGVAPlayer/QGVAPlayer/Classes/Controllers/QGVAPConfigManager.m b/iOS/QGVAPlayer/QGVAPlayer/Classes/Controllers/QGVAPConfigManager.m index 3ccd5140..d3c41f75 100644 --- a/iOS/QGVAPlayer/QGVAPlayer/Classes/Controllers/QGVAPConfigManager.m +++ b/iOS/QGVAPlayer/QGVAPlayer/Classes/Controllers/QGVAPConfigManager.m @@ -85,7 +85,17 @@ - (void)loadConfigResources { NSString *tagContent = resource.contentTagValue; if ([resource.type isEqualToString:kQGAGAttachmentSourceTypeText] && [resource.loadType isEqualToString:QGAGAttachmentSourceLoadTypeLocal]) { - resource.sourceImage = [QGVAPTextureLoader drawingImageForText:tagContent color:resource.color size:resource.size bold:[resource.style isEqualToString:kQGAGAttachmentSourceStyleBoldText]]; + NSDictionary *context = @{@"resource":resource}; + if ([self.delegate respondsToSelector:@selector(loadVapContent:context:)]) { + UIImage * img = [self.delegate loadVapContent:tagContent context:context]; + if (img) { + resource.sourceImage = img; + } else { + resource.sourceImage = [QGVAPTextureLoader drawingImageForText:tagContent color:resource.color size:resource.size bold:[resource.style isEqualToString:kQGAGAttachmentSourceStyleBoldText]]; + } + } else { + resource.sourceImage = [QGVAPTextureLoader drawingImageForText:tagContent color:resource.color size:resource.size bold:[resource.style isEqualToString:kQGAGAttachmentSourceStyleBoldText]]; + } } if ([resource.type isEqualToString:kQGAGAttachmentSourceTypeImg] && [resource.loadType isEqualToString:QGAGAttachmentSourceLoadTypeNet]) { diff --git a/iOS/QGVAPlayer/QGVAPlayer/Classes/Models/QGVAPTextureLoader.h b/iOS/QGVAPlayer/QGVAPlayer/Classes/Models/QGVAPTextureLoader.h index 159434d2..85568cca 100644 --- a/iOS/QGVAPlayer/QGVAPlayer/Classes/Models/QGVAPTextureLoader.h +++ b/iOS/QGVAPlayer/QGVAPlayer/Classes/Models/QGVAPTextureLoader.h @@ -15,9 +15,10 @@ #import #import - +typedef UIFont * (^LoadCustomFontBlock)(CGFloat,BOOL); @interface QGVAPTextureLoader : NSObject + + (id)loadVapColorFillBufferWith:(UIColor *)color device:(id)device; + (id)loadTextureWithImage:(UIImage *)image device:(id)device; @@ -28,4 +29,7 @@ + (UIFont *)getAppropriateFontWith:(NSString *)text rect:(CGRect)fitFrame designedSize:(CGFloat)designedFontSize bold:(BOOL)isBold textSize:(CGSize *)textSize; ++(void)loadCustomFont: (nullable LoadCustomFontBlock ) fontBlock; + ++ (nullable UIImage *)drawingCustomImageForText:(NSString *)textStr color:(UIColor *)color size:(CGSize)size bold:(BOOL)bold fontBlock: (LoadCustomFontBlock)fontBlock; @end diff --git a/iOS/QGVAPlayer/QGVAPlayer/Classes/Models/QGVAPTextureLoader.m b/iOS/QGVAPlayer/QGVAPlayer/Classes/Models/QGVAPTextureLoader.m index aafdb2ff..eda4e6b5 100644 --- a/iOS/QGVAPlayer/QGVAPlayer/Classes/Models/QGVAPTextureLoader.m +++ b/iOS/QGVAPlayer/QGVAPlayer/Classes/Models/QGVAPTextureLoader.m @@ -19,6 +19,9 @@ #import "QGVAPLogger.h" #import "UIDevice+VAPUtil.h" + +static LoadCustomFontBlock staticFontBlock; + @implementation QGVAPTextureLoader #if TARGET_OS_SIMULATOR//模拟器 @@ -58,6 +61,11 @@ + (UIFont *)getAppropriateFontWith:(NSString *)text rect:(CGRect)fitFrame design } return [self cg_loadTextureWithImage:image device:device]; } ++(void)loadCustomFont: (nullable LoadCustomFontBlock) fontBlock { + staticFontBlock = fontBlock; +} + + + (UIImage *)drawingImageForText:(NSString *)textStr color:(UIColor *)color size:(CGSize)size bold:(BOOL)bold { @@ -157,7 +165,7 @@ + (UIImage *)drawingImageForText:(NSString *)textStr color:(UIColor *)color size //根据指定的字符内容和容器大小计算合适的字体 + (UIFont *)getAppropriateFontWith:(NSString *)text rect:(CGRect)fitFrame designedSize:(CGFloat)designedFontSize bold:(BOOL)isBold textSize:(CGSize *)textSize { - UIFont *designedFont = isBold? [UIFont boldSystemFontOfSize:designedFontSize] : [UIFont systemFontOfSize:designedFontSize]; + UIFont *designedFont = [self judgeFontWithFontSize:designedFontSize isBold:isBold]; if (text.length == 0 || CGRectEqualToRect(CGRectZero, fitFrame) || !designedFont) { *textSize = fitFrame.size; return designedFont ; @@ -168,7 +176,7 @@ + (UIFont *)getAppropriateFontWith:(NSString *)text rect:(CGRect)fitFrame design while (stringSize.width > fitFrame.size.width && fontSize > 2.0 && remainExcuteCount > 0) { fontSize *= 0.9; remainExcuteCount -= 1; - designedFont = isBold? [UIFont boldSystemFontOfSize:fontSize] : [UIFont systemFontOfSize:fontSize]; + designedFont = [self judgeFontWithFontSize:fontSize isBold:isBold]; stringSize = [text sizeWithAttributes:@{NSFontAttributeName:designedFont}]; } if (remainExcuteCount < 1 || fontSize < 5.0) { @@ -178,6 +186,82 @@ + (UIFont *)getAppropriateFontWith:(NSString *)text rect:(CGRect)fitFrame design return designedFont; } ++(UIFont *)judgeFontWithFontSize: (CGFloat)fontSize isBold: (BOOL)isBold { + if (staticFontBlock) { + UIFont * designedFont = staticFontBlock(fontSize,isBold); + if (designedFont) { + return designedFont; + } + } + UIFont *designedFont = isBold? [UIFont boldSystemFontOfSize:fontSize] : [UIFont systemFontOfSize:fontSize]; + return designedFont; +} + + ++ (UIImage *)drawingCustomImageForText:(NSString *)textStr color:(UIColor *)color size:(CGSize)size bold:(BOOL)bold fontBlock: (LoadCustomFontBlock)fontBlock { + + if (textStr.length == 0) { + VAP_Error(kQGVAPModuleCommon, @"draw text resource fail cuz text is nil !!"); + return nil; + } + if (!color) { + color = [UIColor blackColor]; + } + CGRect rect = CGRectMake(0, 0, size.width/2.0, size.height/2.0); + CGSize textSize = CGSizeZero; + UIFont *font = [QGVAPTextureLoader getAppropriateCustomFontWith:textStr rect:rect designedSize:rect.size.height*0.8 bold:bold textSize:&textSize fontBlock: fontBlock]; + if (!font) { + VAP_Error(kQGVAPModuleCommon, @"draw text resource:%@ fail cuz font is nil !!", textStr); + return nil; + } + NSMutableParagraphStyle *paragraphStyle = [NSMutableParagraphStyle new]; + paragraphStyle.alignment = NSTextAlignmentCenter; + paragraphStyle.lineBreakMode = NSLineBreakByTruncatingTail; + NSDictionary *attr = @{NSFontAttributeName:font, NSParagraphStyleAttributeName:paragraphStyle, NSForegroundColorAttributeName:color}; + UIGraphicsBeginImageContextWithOptions(rect.size, NO, [UIScreen mainScreen].scale); + rect.origin.y = (rect.size.height - font.lineHeight)/2.0; + [textStr drawWithRect:rect options:NSStringDrawingUsesLineFragmentOrigin attributes:attr context:nil]; + UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); + UIGraphicsEndImageContext(); + if (!image) { + VAP_Error(kQGVAPModuleCommon, @"draw text resource:%@ fail cuz UIGraphics fail.", textStr); + return nil; + } + return image; +} +//根据指定的字符内容和容器大小计算合适的字体 ++ (UIFont *)getAppropriateCustomFontWith:(NSString *)text rect:(CGRect)fitFrame designedSize:(CGFloat)designedFontSize bold:(BOOL)isBold textSize:(CGSize *)textSize fontBlock: (LoadCustomFontBlock)fontBlock { + + UIFont *designedFont = [self judgeCustomFontWithFontSize:designedFontSize isBold:isBold fontBlock:fontBlock]; + if (text.length == 0 || CGRectEqualToRect(CGRectZero, fitFrame) || !designedFont) { + *textSize = fitFrame.size; + return designedFont ; + } + CGSize stringSize = [text sizeWithAttributes:@{NSFontAttributeName:designedFont}]; + CGFloat fontSize = designedFontSize; + NSInteger remainExcuteCount = 100; + while (stringSize.width > fitFrame.size.width && fontSize > 2.0 && remainExcuteCount > 0) { + fontSize *= 0.9; + remainExcuteCount -= 1; + designedFont = [self judgeCustomFontWithFontSize:fontSize isBold:isBold fontBlock:fontBlock]; + stringSize = [text sizeWithAttributes:@{NSFontAttributeName:designedFont}]; + } + if (remainExcuteCount < 1 || fontSize < 5.0) { + VAP_Event(kQGVAPModuleCommon, @"data exception content:%@ rect:%@ designedSize:%@ isBold:%@", text, [NSValue valueWithCGRect:fitFrame], @(designedFontSize), @(isBold)); + } + *textSize = stringSize; + return designedFont; +} ++(UIFont *)judgeCustomFontWithFontSize: (CGFloat)fontSize isBold: (BOOL)isBold fontBlock: (LoadCustomFontBlock)fontBlock { + if (fontBlock) { + UIFont * designedFont = fontBlock(fontSize,isBold); + if (designedFont) { + return designedFont; + } + } + UIFont *designedFont = isBold? [UIFont boldSystemFontOfSize:fontSize] : [UIFont systemFontOfSize:fontSize]; + return designedFont; +} #endif @end diff --git a/iOS/QGVAPlayer/QGVAPlayer/Classes/QGVAPWrapView.h b/iOS/QGVAPlayer/QGVAPlayer/Classes/QGVAPWrapView.h index 2ed2d6db..5c317f46 100644 --- a/iOS/QGVAPlayer/QGVAPlayer/Classes/QGVAPWrapView.h +++ b/iOS/QGVAPlayer/QGVAPlayer/Classes/QGVAPWrapView.h @@ -23,6 +23,8 @@ typedef NS_ENUM(NSUInteger, QGVAPWrapViewContentMode) { QGVAPWrapViewContentModeScaleToFill, QGVAPWrapViewContentModeAspectFit, QGVAPWrapViewContentModeAspectFill, + QGVAPWrapViewContentModeTop, + QGVAPWrapViewContentModeBottom, }; @protocol VAPWrapViewDelegate @@ -40,7 +42,8 @@ typedef NS_ENUM(NSUInteger, QGVAPWrapViewContentMode) { //vap APIs - (NSString *)vapWrapview_contentForVapTag:(NSString *)tag resource:(QGVAPSourceInfo *)info; //替换配置中的资源占位符(不处理直接返回tag) - (void)vapWrapView_loadVapImageWithURL:(NSString *)urlStr context:(NSDictionary *)context completion:(VAPImageCompletionBlock)completionBlock; //由于组件内不包含网络图片加载的模块,因此需要外部支持图片加载。 - +/// 自定义字体文字加载 +- (nullable UIImage * )vapWrapView_loadVapContent:(NSString *)content context:(NSDictionary *)context; @end /* diff --git a/iOS/QGVAPlayer/QGVAPlayer/Classes/QGVAPWrapView.m b/iOS/QGVAPlayer/QGVAPlayer/Classes/QGVAPWrapView.m index e3a04a1c..0ad737f4 100644 --- a/iOS/QGVAPlayer/QGVAPlayer/Classes/QGVAPWrapView.m +++ b/iOS/QGVAPlayer/QGVAPlayer/Classes/QGVAPWrapView.m @@ -21,7 +21,7 @@ @interface QGVAPWrapView() @property (nonatomic, weak) id delegate; @property (nonatomic, strong) VAPView *vapView; - +@property (nonatomic,strong) QGVAPConfigModel * cacheConfig; @end @implementation QGVAPWrapView @@ -32,7 +32,14 @@ - (instancetype)init { } return self; } - +- (instancetype)initWithCoder:(NSCoder *)coder +{ + self = [super initWithCoder:coder]; + if (self) { + [self commonInit]; + } + return self; +} - (instancetype)initWithFrame:(CGRect)frame { if (self = [super initWithFrame:frame]) { [self commonInit]; @@ -48,6 +55,7 @@ - (void)commonInit { - (void)initVAPViewIfNeed { if (!_vapView) { _vapView = [[VAPView alloc] initWithFrame:self.bounds]; + _vapView.hwd_enterBackgroundOP = self.hwd_enterBackgroundOP; [self addSubview:_vapView]; } } @@ -109,7 +117,12 @@ - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event { } #pragma mark - Private - +- (void)layoutSubviews { + [super layoutSubviews]; + if (self.cacheConfig) { + [self p_setupContentModeWithConfig:self.cacheConfig]; + } +} - (void)p_setupContentModeWithConfig:(QGVAPConfigModel *)config { CGFloat realWidth = 0.; CGFloat realHeight = 0.; @@ -122,7 +135,7 @@ - (void)p_setupContentModeWithConfig:(QGVAPConfigModel *)config { switch (self.contentMode) { case QGVAPWrapViewContentModeScaleToFill: { - + self.vapView.frame = self.bounds; } break; case QGVAPWrapViewContentModeAspectFit: { @@ -135,7 +148,7 @@ - (void)p_setupContentModeWithConfig:(QGVAPConfigModel *)config { } self.vapView.frame = CGRectMake(0, 0, realWidth, realHeight); - self.vapView.center = self.center; + self.vapView.center = CGPointMake(self.bounds.size.width / 2, self.bounds.size.height / 2); } break;; case QGVAPWrapViewContentModeAspectFill: { @@ -148,9 +161,24 @@ - (void)p_setupContentModeWithConfig:(QGVAPConfigModel *)config { } self.vapView.frame = CGRectMake(0, 0, realWidth, realHeight); - self.vapView.center = self.center; + self.vapView.center = CGPointMake(self.bounds.size.width / 2, self.bounds.size.height / 2); } - break;; + break; + case QGVAPWrapViewContentModeTop: { + realWidth = layoutWidth; + realHeight = realWidth / videoRatio; + + self.vapView.frame = CGRectMake(0, 0, realWidth, realHeight); + + } + break; + case QGVAPWrapViewContentModeBottom: { + realWidth = layoutWidth; + realHeight = realWidth / videoRatio; + CGFloat realTop = layoutHeight - realHeight; + self.vapView.frame = CGRectMake(0, realTop, realWidth, realHeight); + } + break; default: break; } @@ -195,7 +223,7 @@ - (void)viewDidStopPlayMP4:(NSInteger)lastFrameIndex view:(UIView *)container { - (BOOL)shouldStartPlayMP4:(VAPView *)container config:(QGVAPConfigModel *)config { [self p_setupContentModeWithConfig:config]; - + self.cacheConfig = config; if ([self.delegate respondsToSelector:@selector(vapWrap_viewshouldStartPlayMP4:config:)]) { return [self.delegate vapWrap_viewshouldStartPlayMP4:container config:config]; } @@ -225,5 +253,10 @@ - (void)loadVapImageWithURL:(NSString *)urlStr context:(NSDictionary *)context c [self.delegate vapWrapView_loadVapImageWithURL:urlStr context:context completion:completionBlock]; } } - +-(UIImage *)loadVapContent:(NSString *)content context:(NSDictionary *)context { + if ([self.delegate respondsToSelector:@selector(vapWrapView_loadVapContent:context:)]) { + return [self.delegate vapWrapView_loadVapContent:content context:context]; + } + return nil; +} @end diff --git a/iOS/QGVAPlayer/QGVAPlayer/Classes/UIView+VAP.h b/iOS/QGVAPlayer/QGVAPlayer/Classes/UIView+VAP.h index 3e27285b..9e6e4e5d 100644 --- a/iOS/QGVAPlayer/QGVAPlayer/Classes/UIView+VAP.h +++ b/iOS/QGVAPlayer/QGVAPlayer/Classes/UIView+VAP.h @@ -41,7 +41,8 @@ typedef NS_ENUM(NSUInteger, HWDMP4EBOperationType) { //vap APIs - (NSString *)contentForVapTag:(NSString *)tag resource:(QGVAPSourceInfo *)info; //替换配置中的资源占位符(不处理直接返回tag) - (void)loadVapImageWithURL:(NSString *)urlStr context:(NSDictionary *)context completion:(VAPImageCompletionBlock)completionBlock; //由于组件内不包含网络图片加载的模块,因此需要外部支持图片加载。 - +/// 自定义字体文字加载 +- (UIImage *)loadVapContent:(NSString *)content context:(NSDictionary *)context; @end @interface UIView (VAP) diff --git a/iOS/QGVAPlayer/QGVAPlayer/Classes/UIView+VAP.m b/iOS/QGVAPlayer/QGVAPlayer/Classes/UIView+VAP.m index 1aabbd26..5c1642c8 100644 --- a/iOS/QGVAPlayer/QGVAPlayer/Classes/UIView+VAP.m +++ b/iOS/QGVAPlayer/QGVAPlayer/Classes/UIView+VAP.m @@ -561,7 +561,12 @@ - (NSString *)vap_contentForTag:(NSString *)tag resource:(QGVAPSourceInfo *)info } return nil; } - +- (UIImage *)loadVapContent:(NSString *)content context:(NSDictionary *)context { + if ([self.hwd_Delegate respondsToSelector:@selector(loadVapContent:context:)]) { + return [self.hwd_Delegate loadVapContent:content context:context]; + } + return nil; +} - (void)vap_loadImageWithURL:(NSString *)urlStr context:(NSDictionary *)context completion:(VAPImageCompletionBlock)completionBlock { if ([self.hwd_Delegate respondsToSelector:@selector(loadVapImageWithURL:context:completion:)]) { [self.hwd_Delegate loadVapImageWithURL:urlStr context:context completion:completionBlock]; diff --git a/iOS/QGVAPlayerDemo/Podfile b/iOS/QGVAPlayerDemo/Podfile new file mode 100644 index 00000000..ee6f7fd7 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Podfile @@ -0,0 +1,19 @@ +# Uncomment the next line to define a global platform for your project + platform :ios, '12.0' + +target 'QGVAPlayerDemo' do + # Comment the next line if you don't want to use dynamic frameworks + use_frameworks! + + # Pods for QGVAPlayerDemo + pod "Masonry" + target 'QGVAPlayerDemoTests' do + inherit! :search_paths + # Pods for testing + end + + target 'QGVAPlayerDemoUITests' do + # Pods for testing + end + +end diff --git a/iOS/QGVAPlayerDemo/Podfile.lock b/iOS/QGVAPlayerDemo/Podfile.lock new file mode 100644 index 00000000..d1030402 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Podfile.lock @@ -0,0 +1,16 @@ +PODS: + - Masonry (1.1.0) + +DEPENDENCIES: + - Masonry + +SPEC REPOS: + trunk: + - Masonry + +SPEC CHECKSUMS: + Masonry: 678fab65091a9290e40e2832a55e7ab731aad201 + +PODFILE CHECKSUM: 155c0373c1c2ce1ea0feb7e3230760c444edfb37 + +COCOAPODS: 1.16.2 diff --git a/iOS/QGVAPlayerDemo/Pods/Manifest.lock b/iOS/QGVAPlayerDemo/Pods/Manifest.lock new file mode 100644 index 00000000..d1030402 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Manifest.lock @@ -0,0 +1,16 @@ +PODS: + - Masonry (1.1.0) + +DEPENDENCIES: + - Masonry + +SPEC REPOS: + trunk: + - Masonry + +SPEC CHECKSUMS: + Masonry: 678fab65091a9290e40e2832a55e7ab731aad201 + +PODFILE CHECKSUM: 155c0373c1c2ce1ea0feb7e3230760c444edfb37 + +COCOAPODS: 1.16.2 diff --git a/iOS/QGVAPlayerDemo/Pods/Masonry/LICENSE b/iOS/QGVAPlayerDemo/Pods/Masonry/LICENSE new file mode 100644 index 00000000..a843c00c --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2011-2012 Masonry Team - https://github.com/Masonry + +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/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASCompositeConstraint.h b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASCompositeConstraint.h new file mode 100644 index 00000000..934c6f16 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASCompositeConstraint.h @@ -0,0 +1,26 @@ +// +// MASCompositeConstraint.h +// Masonry +// +// Created by Jonas Budelmann on 21/07/13. +// Copyright (c) 2013 cloudling. All rights reserved. +// + +#import "MASConstraint.h" +#import "MASUtilities.h" + +/** + * A group of MASConstraint objects + */ +@interface MASCompositeConstraint : MASConstraint + +/** + * Creates a composite with a predefined array of children + * + * @param children child MASConstraints + * + * @return a composite constraint + */ +- (id)initWithChildren:(NSArray *)children; + +@end diff --git a/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASCompositeConstraint.m b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASCompositeConstraint.m new file mode 100644 index 00000000..2002a405 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASCompositeConstraint.m @@ -0,0 +1,183 @@ +// +// MASCompositeConstraint.m +// Masonry +// +// Created by Jonas Budelmann on 21/07/13. +// Copyright (c) 2013 cloudling. All rights reserved. +// + +#import "MASCompositeConstraint.h" +#import "MASConstraint+Private.h" + +@interface MASCompositeConstraint () + +@property (nonatomic, strong) id mas_key; +@property (nonatomic, strong) NSMutableArray *childConstraints; + +@end + +@implementation MASCompositeConstraint + +- (id)initWithChildren:(NSArray *)children { + self = [super init]; + if (!self) return nil; + + _childConstraints = [children mutableCopy]; + for (MASConstraint *constraint in _childConstraints) { + constraint.delegate = self; + } + + return self; +} + +#pragma mark - MASConstraintDelegate + +- (void)constraint:(MASConstraint *)constraint shouldBeReplacedWithConstraint:(MASConstraint *)replacementConstraint { + NSUInteger index = [self.childConstraints indexOfObject:constraint]; + NSAssert(index != NSNotFound, @"Could not find constraint %@", constraint); + [self.childConstraints replaceObjectAtIndex:index withObject:replacementConstraint]; +} + +- (MASConstraint *)constraint:(MASConstraint __unused *)constraint addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute { + id strongDelegate = self.delegate; + MASConstraint *newConstraint = [strongDelegate constraint:self addConstraintWithLayoutAttribute:layoutAttribute]; + newConstraint.delegate = self; + [self.childConstraints addObject:newConstraint]; + return newConstraint; +} + +#pragma mark - NSLayoutConstraint multiplier proxies + +- (MASConstraint * (^)(CGFloat))multipliedBy { + return ^id(CGFloat multiplier) { + for (MASConstraint *constraint in self.childConstraints) { + constraint.multipliedBy(multiplier); + } + return self; + }; +} + +- (MASConstraint * (^)(CGFloat))dividedBy { + return ^id(CGFloat divider) { + for (MASConstraint *constraint in self.childConstraints) { + constraint.dividedBy(divider); + } + return self; + }; +} + +#pragma mark - MASLayoutPriority proxy + +- (MASConstraint * (^)(MASLayoutPriority))priority { + return ^id(MASLayoutPriority priority) { + for (MASConstraint *constraint in self.childConstraints) { + constraint.priority(priority); + } + return self; + }; +} + +#pragma mark - NSLayoutRelation proxy + +- (MASConstraint * (^)(id, NSLayoutRelation))equalToWithRelation { + return ^id(id attr, NSLayoutRelation relation) { + for (MASConstraint *constraint in self.childConstraints.copy) { + constraint.equalToWithRelation(attr, relation); + } + return self; + }; +} + +#pragma mark - attribute chaining + +- (MASConstraint *)addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute { + [self constraint:self addConstraintWithLayoutAttribute:layoutAttribute]; + return self; +} + +#pragma mark - Animator proxy + +#if TARGET_OS_MAC && !(TARGET_OS_IPHONE || TARGET_OS_TV) + +- (MASConstraint *)animator { + for (MASConstraint *constraint in self.childConstraints) { + [constraint animator]; + } + return self; +} + +#endif + +#pragma mark - debug helpers + +- (MASConstraint * (^)(id))key { + return ^id(id key) { + self.mas_key = key; + int i = 0; + for (MASConstraint *constraint in self.childConstraints) { + constraint.key([NSString stringWithFormat:@"%@[%d]", key, i++]); + } + return self; + }; +} + +#pragma mark - NSLayoutConstraint constant setters + +- (void)setInsets:(MASEdgeInsets)insets { + for (MASConstraint *constraint in self.childConstraints) { + constraint.insets = insets; + } +} + +- (void)setInset:(CGFloat)inset { + for (MASConstraint *constraint in self.childConstraints) { + constraint.inset = inset; + } +} + +- (void)setOffset:(CGFloat)offset { + for (MASConstraint *constraint in self.childConstraints) { + constraint.offset = offset; + } +} + +- (void)setSizeOffset:(CGSize)sizeOffset { + for (MASConstraint *constraint in self.childConstraints) { + constraint.sizeOffset = sizeOffset; + } +} + +- (void)setCenterOffset:(CGPoint)centerOffset { + for (MASConstraint *constraint in self.childConstraints) { + constraint.centerOffset = centerOffset; + } +} + +#pragma mark - MASConstraint + +- (void)activate { + for (MASConstraint *constraint in self.childConstraints) { + [constraint activate]; + } +} + +- (void)deactivate { + for (MASConstraint *constraint in self.childConstraints) { + [constraint deactivate]; + } +} + +- (void)install { + for (MASConstraint *constraint in self.childConstraints) { + constraint.updateExisting = self.updateExisting; + [constraint install]; + } +} + +- (void)uninstall { + for (MASConstraint *constraint in self.childConstraints) { + [constraint uninstall]; + } +} + +@end diff --git a/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASConstraint+Private.h b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASConstraint+Private.h new file mode 100644 index 00000000..ee0fd960 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASConstraint+Private.h @@ -0,0 +1,66 @@ +// +// MASConstraint+Private.h +// Masonry +// +// Created by Nick Tymchenko on 29/04/14. +// Copyright (c) 2014 cloudling. All rights reserved. +// + +#import "MASConstraint.h" + +@protocol MASConstraintDelegate; + + +@interface MASConstraint () + +/** + * Whether or not to check for an existing constraint instead of adding constraint + */ +@property (nonatomic, assign) BOOL updateExisting; + +/** + * Usually MASConstraintMaker but could be a parent MASConstraint + */ +@property (nonatomic, weak) id delegate; + +/** + * Based on a provided value type, is equal to calling: + * NSNumber - setOffset: + * NSValue with CGPoint - setPointOffset: + * NSValue with CGSize - setSizeOffset: + * NSValue with MASEdgeInsets - setInsets: + */ +- (void)setLayoutConstantWithValue:(NSValue *)value; + +@end + + +@interface MASConstraint (Abstract) + +/** + * Sets the constraint relation to given NSLayoutRelation + * returns a block which accepts one of the following: + * MASViewAttribute, UIView, NSValue, NSArray + * see readme for more details. + */ +- (MASConstraint * (^)(id, NSLayoutRelation))equalToWithRelation; + +/** + * Override to set a custom chaining behaviour + */ +- (MASConstraint *)addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute; + +@end + + +@protocol MASConstraintDelegate + +/** + * Notifies the delegate when the constraint needs to be replaced with another constraint. For example + * A MASViewConstraint may turn into a MASCompositeConstraint when an array is passed to one of the equality blocks + */ +- (void)constraint:(MASConstraint *)constraint shouldBeReplacedWithConstraint:(MASConstraint *)replacementConstraint; + +- (MASConstraint *)constraint:(MASConstraint *)constraint addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute; + +@end diff --git a/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASConstraint.h b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASConstraint.h new file mode 100644 index 00000000..3eaa8a10 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASConstraint.h @@ -0,0 +1,272 @@ +// +// MASConstraint.h +// Masonry +// +// Created by Jonas Budelmann on 22/07/13. +// Copyright (c) 2013 cloudling. All rights reserved. +// + +#import "MASUtilities.h" + +/** + * Enables Constraints to be created with chainable syntax + * Constraint can represent single NSLayoutConstraint (MASViewConstraint) + * or a group of NSLayoutConstraints (MASComposisteConstraint) + */ +@interface MASConstraint : NSObject + +// Chaining Support + +/** + * Modifies the NSLayoutConstraint constant, + * only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following + * NSLayoutAttributeTop, NSLayoutAttributeLeft, NSLayoutAttributeBottom, NSLayoutAttributeRight + */ +- (MASConstraint * (^)(MASEdgeInsets insets))insets; + +/** + * Modifies the NSLayoutConstraint constant, + * only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following + * NSLayoutAttributeTop, NSLayoutAttributeLeft, NSLayoutAttributeBottom, NSLayoutAttributeRight + */ +- (MASConstraint * (^)(CGFloat inset))inset; + +/** + * Modifies the NSLayoutConstraint constant, + * only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following + * NSLayoutAttributeWidth, NSLayoutAttributeHeight + */ +- (MASConstraint * (^)(CGSize offset))sizeOffset; + +/** + * Modifies the NSLayoutConstraint constant, + * only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following + * NSLayoutAttributeCenterX, NSLayoutAttributeCenterY + */ +- (MASConstraint * (^)(CGPoint offset))centerOffset; + +/** + * Modifies the NSLayoutConstraint constant + */ +- (MASConstraint * (^)(CGFloat offset))offset; + +/** + * Modifies the NSLayoutConstraint constant based on a value type + */ +- (MASConstraint * (^)(NSValue *value))valueOffset; + +/** + * Sets the NSLayoutConstraint multiplier property + */ +- (MASConstraint * (^)(CGFloat multiplier))multipliedBy; + +/** + * Sets the NSLayoutConstraint multiplier to 1.0/dividedBy + */ +- (MASConstraint * (^)(CGFloat divider))dividedBy; + +/** + * Sets the NSLayoutConstraint priority to a float or MASLayoutPriority + */ +- (MASConstraint * (^)(MASLayoutPriority priority))priority; + +/** + * Sets the NSLayoutConstraint priority to MASLayoutPriorityLow + */ +- (MASConstraint * (^)(void))priorityLow; + +/** + * Sets the NSLayoutConstraint priority to MASLayoutPriorityMedium + */ +- (MASConstraint * (^)(void))priorityMedium; + +/** + * Sets the NSLayoutConstraint priority to MASLayoutPriorityHigh + */ +- (MASConstraint * (^)(void))priorityHigh; + +/** + * Sets the constraint relation to NSLayoutRelationEqual + * returns a block which accepts one of the following: + * MASViewAttribute, UIView, NSValue, NSArray + * see readme for more details. + */ +- (MASConstraint * (^)(id attr))equalTo; + +/** + * Sets the constraint relation to NSLayoutRelationGreaterThanOrEqual + * returns a block which accepts one of the following: + * MASViewAttribute, UIView, NSValue, NSArray + * see readme for more details. + */ +- (MASConstraint * (^)(id attr))greaterThanOrEqualTo; + +/** + * Sets the constraint relation to NSLayoutRelationLessThanOrEqual + * returns a block which accepts one of the following: + * MASViewAttribute, UIView, NSValue, NSArray + * see readme for more details. + */ +- (MASConstraint * (^)(id attr))lessThanOrEqualTo; + +/** + * Optional semantic property which has no effect but improves the readability of constraint + */ +- (MASConstraint *)with; + +/** + * Optional semantic property which has no effect but improves the readability of constraint + */ +- (MASConstraint *)and; + +/** + * Creates a new MASCompositeConstraint with the called attribute and reciever + */ +- (MASConstraint *)left; +- (MASConstraint *)top; +- (MASConstraint *)right; +- (MASConstraint *)bottom; +- (MASConstraint *)leading; +- (MASConstraint *)trailing; +- (MASConstraint *)width; +- (MASConstraint *)height; +- (MASConstraint *)centerX; +- (MASConstraint *)centerY; +- (MASConstraint *)baseline; + +#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100) + +- (MASConstraint *)firstBaseline; +- (MASConstraint *)lastBaseline; + +#endif + +#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) + +- (MASConstraint *)leftMargin; +- (MASConstraint *)rightMargin; +- (MASConstraint *)topMargin; +- (MASConstraint *)bottomMargin; +- (MASConstraint *)leadingMargin; +- (MASConstraint *)trailingMargin; +- (MASConstraint *)centerXWithinMargins; +- (MASConstraint *)centerYWithinMargins; + +#endif + + +/** + * Sets the constraint debug name + */ +- (MASConstraint * (^)(id key))key; + +// NSLayoutConstraint constant Setters +// for use outside of mas_updateConstraints/mas_makeConstraints blocks + +/** + * Modifies the NSLayoutConstraint constant, + * only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following + * NSLayoutAttributeTop, NSLayoutAttributeLeft, NSLayoutAttributeBottom, NSLayoutAttributeRight + */ +- (void)setInsets:(MASEdgeInsets)insets; + +/** + * Modifies the NSLayoutConstraint constant, + * only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following + * NSLayoutAttributeTop, NSLayoutAttributeLeft, NSLayoutAttributeBottom, NSLayoutAttributeRight + */ +- (void)setInset:(CGFloat)inset; + +/** + * Modifies the NSLayoutConstraint constant, + * only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following + * NSLayoutAttributeWidth, NSLayoutAttributeHeight + */ +- (void)setSizeOffset:(CGSize)sizeOffset; + +/** + * Modifies the NSLayoutConstraint constant, + * only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following + * NSLayoutAttributeCenterX, NSLayoutAttributeCenterY + */ +- (void)setCenterOffset:(CGPoint)centerOffset; + +/** + * Modifies the NSLayoutConstraint constant + */ +- (void)setOffset:(CGFloat)offset; + + +// NSLayoutConstraint Installation support + +#if TARGET_OS_MAC && !(TARGET_OS_IPHONE || TARGET_OS_TV) +/** + * Whether or not to go through the animator proxy when modifying the constraint + */ +@property (nonatomic, copy, readonly) MASConstraint *animator; +#endif + +/** + * Activates an NSLayoutConstraint if it's supported by an OS. + * Invokes install otherwise. + */ +- (void)activate; + +/** + * Deactivates previously installed/activated NSLayoutConstraint. + */ +- (void)deactivate; + +/** + * Creates a NSLayoutConstraint and adds it to the appropriate view. + */ +- (void)install; + +/** + * Removes previously installed NSLayoutConstraint + */ +- (void)uninstall; + +@end + + +/** + * Convenience auto-boxing macros for MASConstraint methods. + * + * Defining MAS_SHORTHAND_GLOBALS will turn on auto-boxing for default syntax. + * A potential drawback of this is that the unprefixed macros will appear in global scope. + */ +#define mas_equalTo(...) equalTo(MASBoxValue((__VA_ARGS__))) +#define mas_greaterThanOrEqualTo(...) greaterThanOrEqualTo(MASBoxValue((__VA_ARGS__))) +#define mas_lessThanOrEqualTo(...) lessThanOrEqualTo(MASBoxValue((__VA_ARGS__))) + +#define mas_offset(...) valueOffset(MASBoxValue((__VA_ARGS__))) + + +#ifdef MAS_SHORTHAND_GLOBALS + +#define equalTo(...) mas_equalTo(__VA_ARGS__) +#define greaterThanOrEqualTo(...) mas_greaterThanOrEqualTo(__VA_ARGS__) +#define lessThanOrEqualTo(...) mas_lessThanOrEqualTo(__VA_ARGS__) + +#define offset(...) mas_offset(__VA_ARGS__) + +#endif + + +@interface MASConstraint (AutoboxingSupport) + +/** + * Aliases to corresponding relation methods (for shorthand macros) + * Also needed to aid autocompletion + */ +- (MASConstraint * (^)(id attr))mas_equalTo; +- (MASConstraint * (^)(id attr))mas_greaterThanOrEqualTo; +- (MASConstraint * (^)(id attr))mas_lessThanOrEqualTo; + +/** + * A dummy method to aid autocompletion + */ +- (MASConstraint * (^)(id offset))mas_offset; + +@end diff --git a/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASConstraint.m b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASConstraint.m new file mode 100644 index 00000000..52de590c --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASConstraint.m @@ -0,0 +1,301 @@ +// +// MASConstraint.m +// Masonry +// +// Created by Nick Tymchenko on 1/20/14. +// + +#import "MASConstraint.h" +#import "MASConstraint+Private.h" + +#define MASMethodNotImplemented() \ + @throw [NSException exceptionWithName:NSInternalInconsistencyException \ + reason:[NSString stringWithFormat:@"You must override %@ in a subclass.", NSStringFromSelector(_cmd)] \ + userInfo:nil] + +@implementation MASConstraint + +#pragma mark - Init + +- (id)init { + NSAssert(![self isMemberOfClass:[MASConstraint class]], @"MASConstraint is an abstract class, you should not instantiate it directly."); + return [super init]; +} + +#pragma mark - NSLayoutRelation proxies + +- (MASConstraint * (^)(id))equalTo { + return ^id(id attribute) { + return self.equalToWithRelation(attribute, NSLayoutRelationEqual); + }; +} + +- (MASConstraint * (^)(id))mas_equalTo { + return ^id(id attribute) { + return self.equalToWithRelation(attribute, NSLayoutRelationEqual); + }; +} + +- (MASConstraint * (^)(id))greaterThanOrEqualTo { + return ^id(id attribute) { + return self.equalToWithRelation(attribute, NSLayoutRelationGreaterThanOrEqual); + }; +} + +- (MASConstraint * (^)(id))mas_greaterThanOrEqualTo { + return ^id(id attribute) { + return self.equalToWithRelation(attribute, NSLayoutRelationGreaterThanOrEqual); + }; +} + +- (MASConstraint * (^)(id))lessThanOrEqualTo { + return ^id(id attribute) { + return self.equalToWithRelation(attribute, NSLayoutRelationLessThanOrEqual); + }; +} + +- (MASConstraint * (^)(id))mas_lessThanOrEqualTo { + return ^id(id attribute) { + return self.equalToWithRelation(attribute, NSLayoutRelationLessThanOrEqual); + }; +} + +#pragma mark - MASLayoutPriority proxies + +- (MASConstraint * (^)(void))priorityLow { + return ^id{ + self.priority(MASLayoutPriorityDefaultLow); + return self; + }; +} + +- (MASConstraint * (^)(void))priorityMedium { + return ^id{ + self.priority(MASLayoutPriorityDefaultMedium); + return self; + }; +} + +- (MASConstraint * (^)(void))priorityHigh { + return ^id{ + self.priority(MASLayoutPriorityDefaultHigh); + return self; + }; +} + +#pragma mark - NSLayoutConstraint constant proxies + +- (MASConstraint * (^)(MASEdgeInsets))insets { + return ^id(MASEdgeInsets insets){ + self.insets = insets; + return self; + }; +} + +- (MASConstraint * (^)(CGFloat))inset { + return ^id(CGFloat inset){ + self.inset = inset; + return self; + }; +} + +- (MASConstraint * (^)(CGSize))sizeOffset { + return ^id(CGSize offset) { + self.sizeOffset = offset; + return self; + }; +} + +- (MASConstraint * (^)(CGPoint))centerOffset { + return ^id(CGPoint offset) { + self.centerOffset = offset; + return self; + }; +} + +- (MASConstraint * (^)(CGFloat))offset { + return ^id(CGFloat offset){ + self.offset = offset; + return self; + }; +} + +- (MASConstraint * (^)(NSValue *value))valueOffset { + return ^id(NSValue *offset) { + NSAssert([offset isKindOfClass:NSValue.class], @"expected an NSValue offset, got: %@", offset); + [self setLayoutConstantWithValue:offset]; + return self; + }; +} + +- (MASConstraint * (^)(id offset))mas_offset { + // Will never be called due to macro + return nil; +} + +#pragma mark - NSLayoutConstraint constant setter + +- (void)setLayoutConstantWithValue:(NSValue *)value { + if ([value isKindOfClass:NSNumber.class]) { + self.offset = [(NSNumber *)value doubleValue]; + } else if (strcmp(value.objCType, @encode(CGPoint)) == 0) { + CGPoint point; + [value getValue:&point]; + self.centerOffset = point; + } else if (strcmp(value.objCType, @encode(CGSize)) == 0) { + CGSize size; + [value getValue:&size]; + self.sizeOffset = size; + } else if (strcmp(value.objCType, @encode(MASEdgeInsets)) == 0) { + MASEdgeInsets insets; + [value getValue:&insets]; + self.insets = insets; + } else { + NSAssert(NO, @"attempting to set layout constant with unsupported value: %@", value); + } +} + +#pragma mark - Semantic properties + +- (MASConstraint *)with { + return self; +} + +- (MASConstraint *)and { + return self; +} + +#pragma mark - Chaining + +- (MASConstraint *)addConstraintWithLayoutAttribute:(NSLayoutAttribute __unused)layoutAttribute { + MASMethodNotImplemented(); +} + +- (MASConstraint *)left { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeft]; +} + +- (MASConstraint *)top { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTop]; +} + +- (MASConstraint *)right { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeRight]; +} + +- (MASConstraint *)bottom { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeBottom]; +} + +- (MASConstraint *)leading { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeading]; +} + +- (MASConstraint *)trailing { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTrailing]; +} + +- (MASConstraint *)width { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeWidth]; +} + +- (MASConstraint *)height { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeHeight]; +} + +- (MASConstraint *)centerX { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterX]; +} + +- (MASConstraint *)centerY { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterY]; +} + +- (MASConstraint *)baseline { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeBaseline]; +} + +#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100) + +- (MASConstraint *)firstBaseline { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeFirstBaseline]; +} +- (MASConstraint *)lastBaseline { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLastBaseline]; +} + +#endif + +#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) + +- (MASConstraint *)leftMargin { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeftMargin]; +} + +- (MASConstraint *)rightMargin { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeRightMargin]; +} + +- (MASConstraint *)topMargin { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTopMargin]; +} + +- (MASConstraint *)bottomMargin { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeBottomMargin]; +} + +- (MASConstraint *)leadingMargin { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeadingMargin]; +} + +- (MASConstraint *)trailingMargin { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTrailingMargin]; +} + +- (MASConstraint *)centerXWithinMargins { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterXWithinMargins]; +} + +- (MASConstraint *)centerYWithinMargins { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterYWithinMargins]; +} + +#endif + +#pragma mark - Abstract + +- (MASConstraint * (^)(CGFloat multiplier))multipliedBy { MASMethodNotImplemented(); } + +- (MASConstraint * (^)(CGFloat divider))dividedBy { MASMethodNotImplemented(); } + +- (MASConstraint * (^)(MASLayoutPriority priority))priority { MASMethodNotImplemented(); } + +- (MASConstraint * (^)(id, NSLayoutRelation))equalToWithRelation { MASMethodNotImplemented(); } + +- (MASConstraint * (^)(id key))key { MASMethodNotImplemented(); } + +- (void)setInsets:(MASEdgeInsets __unused)insets { MASMethodNotImplemented(); } + +- (void)setInset:(CGFloat __unused)inset { MASMethodNotImplemented(); } + +- (void)setSizeOffset:(CGSize __unused)sizeOffset { MASMethodNotImplemented(); } + +- (void)setCenterOffset:(CGPoint __unused)centerOffset { MASMethodNotImplemented(); } + +- (void)setOffset:(CGFloat __unused)offset { MASMethodNotImplemented(); } + +#if TARGET_OS_MAC && !(TARGET_OS_IPHONE || TARGET_OS_TV) + +- (MASConstraint *)animator { MASMethodNotImplemented(); } + +#endif + +- (void)activate { MASMethodNotImplemented(); } + +- (void)deactivate { MASMethodNotImplemented(); } + +- (void)install { MASMethodNotImplemented(); } + +- (void)uninstall { MASMethodNotImplemented(); } + +@end diff --git a/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASConstraintMaker.h b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASConstraintMaker.h new file mode 100644 index 00000000..d9b58f4f --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASConstraintMaker.h @@ -0,0 +1,146 @@ +// +// MASConstraintMaker.h +// Masonry +// +// Created by Jonas Budelmann on 20/07/13. +// Copyright (c) 2013 cloudling. All rights reserved. +// + +#import "MASConstraint.h" +#import "MASUtilities.h" + +typedef NS_OPTIONS(NSInteger, MASAttribute) { + MASAttributeLeft = 1 << NSLayoutAttributeLeft, + MASAttributeRight = 1 << NSLayoutAttributeRight, + MASAttributeTop = 1 << NSLayoutAttributeTop, + MASAttributeBottom = 1 << NSLayoutAttributeBottom, + MASAttributeLeading = 1 << NSLayoutAttributeLeading, + MASAttributeTrailing = 1 << NSLayoutAttributeTrailing, + MASAttributeWidth = 1 << NSLayoutAttributeWidth, + MASAttributeHeight = 1 << NSLayoutAttributeHeight, + MASAttributeCenterX = 1 << NSLayoutAttributeCenterX, + MASAttributeCenterY = 1 << NSLayoutAttributeCenterY, + MASAttributeBaseline = 1 << NSLayoutAttributeBaseline, + +#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100) + + MASAttributeFirstBaseline = 1 << NSLayoutAttributeFirstBaseline, + MASAttributeLastBaseline = 1 << NSLayoutAttributeLastBaseline, + +#endif + +#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) + + MASAttributeLeftMargin = 1 << NSLayoutAttributeLeftMargin, + MASAttributeRightMargin = 1 << NSLayoutAttributeRightMargin, + MASAttributeTopMargin = 1 << NSLayoutAttributeTopMargin, + MASAttributeBottomMargin = 1 << NSLayoutAttributeBottomMargin, + MASAttributeLeadingMargin = 1 << NSLayoutAttributeLeadingMargin, + MASAttributeTrailingMargin = 1 << NSLayoutAttributeTrailingMargin, + MASAttributeCenterXWithinMargins = 1 << NSLayoutAttributeCenterXWithinMargins, + MASAttributeCenterYWithinMargins = 1 << NSLayoutAttributeCenterYWithinMargins, + +#endif + +}; + +/** + * Provides factory methods for creating MASConstraints. + * Constraints are collected until they are ready to be installed + * + */ +@interface MASConstraintMaker : NSObject + +/** + * The following properties return a new MASViewConstraint + * with the first item set to the makers associated view and the appropriate MASViewAttribute + */ +@property (nonatomic, strong, readonly) MASConstraint *left; +@property (nonatomic, strong, readonly) MASConstraint *top; +@property (nonatomic, strong, readonly) MASConstraint *right; +@property (nonatomic, strong, readonly) MASConstraint *bottom; +@property (nonatomic, strong, readonly) MASConstraint *leading; +@property (nonatomic, strong, readonly) MASConstraint *trailing; +@property (nonatomic, strong, readonly) MASConstraint *width; +@property (nonatomic, strong, readonly) MASConstraint *height; +@property (nonatomic, strong, readonly) MASConstraint *centerX; +@property (nonatomic, strong, readonly) MASConstraint *centerY; +@property (nonatomic, strong, readonly) MASConstraint *baseline; + +#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100) + +@property (nonatomic, strong, readonly) MASConstraint *firstBaseline; +@property (nonatomic, strong, readonly) MASConstraint *lastBaseline; + +#endif + +#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) + +@property (nonatomic, strong, readonly) MASConstraint *leftMargin; +@property (nonatomic, strong, readonly) MASConstraint *rightMargin; +@property (nonatomic, strong, readonly) MASConstraint *topMargin; +@property (nonatomic, strong, readonly) MASConstraint *bottomMargin; +@property (nonatomic, strong, readonly) MASConstraint *leadingMargin; +@property (nonatomic, strong, readonly) MASConstraint *trailingMargin; +@property (nonatomic, strong, readonly) MASConstraint *centerXWithinMargins; +@property (nonatomic, strong, readonly) MASConstraint *centerYWithinMargins; + +#endif + +/** + * Returns a block which creates a new MASCompositeConstraint with the first item set + * to the makers associated view and children corresponding to the set bits in the + * MASAttribute parameter. Combine multiple attributes via binary-or. + */ +@property (nonatomic, strong, readonly) MASConstraint *(^attributes)(MASAttribute attrs); + +/** + * Creates a MASCompositeConstraint with type MASCompositeConstraintTypeEdges + * which generates the appropriate MASViewConstraint children (top, left, bottom, right) + * with the first item set to the makers associated view + */ +@property (nonatomic, strong, readonly) MASConstraint *edges; + +/** + * Creates a MASCompositeConstraint with type MASCompositeConstraintTypeSize + * which generates the appropriate MASViewConstraint children (width, height) + * with the first item set to the makers associated view + */ +@property (nonatomic, strong, readonly) MASConstraint *size; + +/** + * Creates a MASCompositeConstraint with type MASCompositeConstraintTypeCenter + * which generates the appropriate MASViewConstraint children (centerX, centerY) + * with the first item set to the makers associated view + */ +@property (nonatomic, strong, readonly) MASConstraint *center; + +/** + * Whether or not to check for an existing constraint instead of adding constraint + */ +@property (nonatomic, assign) BOOL updateExisting; + +/** + * Whether or not to remove existing constraints prior to installing + */ +@property (nonatomic, assign) BOOL removeExisting; + +/** + * initialises the maker with a default view + * + * @param view any MASConstraint are created with this view as the first item + * + * @return a new MASConstraintMaker + */ +- (id)initWithView:(MAS_VIEW *)view; + +/** + * Calls install method on any MASConstraints which have been created by this maker + * + * @return an array of all the installed MASConstraints + */ +- (NSArray *)install; + +- (MASConstraint * (^)(dispatch_block_t))group; + +@end diff --git a/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASConstraintMaker.m b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASConstraintMaker.m new file mode 100644 index 00000000..f11492ab --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASConstraintMaker.m @@ -0,0 +1,273 @@ +// +// MASConstraintMaker.m +// Masonry +// +// Created by Jonas Budelmann on 20/07/13. +// Copyright (c) 2013 cloudling. All rights reserved. +// + +#import "MASConstraintMaker.h" +#import "MASViewConstraint.h" +#import "MASCompositeConstraint.h" +#import "MASConstraint+Private.h" +#import "MASViewAttribute.h" +#import "View+MASAdditions.h" + +@interface MASConstraintMaker () + +@property (nonatomic, weak) MAS_VIEW *view; +@property (nonatomic, strong) NSMutableArray *constraints; + +@end + +@implementation MASConstraintMaker + +- (id)initWithView:(MAS_VIEW *)view { + self = [super init]; + if (!self) return nil; + + self.view = view; + self.constraints = NSMutableArray.new; + + return self; +} + +- (NSArray *)install { + if (self.removeExisting) { + NSArray *installedConstraints = [MASViewConstraint installedConstraintsForView:self.view]; + for (MASConstraint *constraint in installedConstraints) { + [constraint uninstall]; + } + } + NSArray *constraints = self.constraints.copy; + for (MASConstraint *constraint in constraints) { + constraint.updateExisting = self.updateExisting; + [constraint install]; + } + [self.constraints removeAllObjects]; + return constraints; +} + +#pragma mark - MASConstraintDelegate + +- (void)constraint:(MASConstraint *)constraint shouldBeReplacedWithConstraint:(MASConstraint *)replacementConstraint { + NSUInteger index = [self.constraints indexOfObject:constraint]; + NSAssert(index != NSNotFound, @"Could not find constraint %@", constraint); + [self.constraints replaceObjectAtIndex:index withObject:replacementConstraint]; +} + +- (MASConstraint *)constraint:(MASConstraint *)constraint addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute { + MASViewAttribute *viewAttribute = [[MASViewAttribute alloc] initWithView:self.view layoutAttribute:layoutAttribute]; + MASViewConstraint *newConstraint = [[MASViewConstraint alloc] initWithFirstViewAttribute:viewAttribute]; + if ([constraint isKindOfClass:MASViewConstraint.class]) { + //replace with composite constraint + NSArray *children = @[constraint, newConstraint]; + MASCompositeConstraint *compositeConstraint = [[MASCompositeConstraint alloc] initWithChildren:children]; + compositeConstraint.delegate = self; + [self constraint:constraint shouldBeReplacedWithConstraint:compositeConstraint]; + return compositeConstraint; + } + if (!constraint) { + newConstraint.delegate = self; + [self.constraints addObject:newConstraint]; + } + return newConstraint; +} + +- (MASConstraint *)addConstraintWithAttributes:(MASAttribute)attrs { + __unused MASAttribute anyAttribute = (MASAttributeLeft | MASAttributeRight | MASAttributeTop | MASAttributeBottom | MASAttributeLeading + | MASAttributeTrailing | MASAttributeWidth | MASAttributeHeight | MASAttributeCenterX + | MASAttributeCenterY | MASAttributeBaseline +#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100) + | MASAttributeFirstBaseline | MASAttributeLastBaseline +#endif +#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) + | MASAttributeLeftMargin | MASAttributeRightMargin | MASAttributeTopMargin | MASAttributeBottomMargin + | MASAttributeLeadingMargin | MASAttributeTrailingMargin | MASAttributeCenterXWithinMargins + | MASAttributeCenterYWithinMargins +#endif + ); + + NSAssert((attrs & anyAttribute) != 0, @"You didn't pass any attribute to make.attributes(...)"); + + NSMutableArray *attributes = [NSMutableArray array]; + + if (attrs & MASAttributeLeft) [attributes addObject:self.view.mas_left]; + if (attrs & MASAttributeRight) [attributes addObject:self.view.mas_right]; + if (attrs & MASAttributeTop) [attributes addObject:self.view.mas_top]; + if (attrs & MASAttributeBottom) [attributes addObject:self.view.mas_bottom]; + if (attrs & MASAttributeLeading) [attributes addObject:self.view.mas_leading]; + if (attrs & MASAttributeTrailing) [attributes addObject:self.view.mas_trailing]; + if (attrs & MASAttributeWidth) [attributes addObject:self.view.mas_width]; + if (attrs & MASAttributeHeight) [attributes addObject:self.view.mas_height]; + if (attrs & MASAttributeCenterX) [attributes addObject:self.view.mas_centerX]; + if (attrs & MASAttributeCenterY) [attributes addObject:self.view.mas_centerY]; + if (attrs & MASAttributeBaseline) [attributes addObject:self.view.mas_baseline]; + +#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100) + + if (attrs & MASAttributeFirstBaseline) [attributes addObject:self.view.mas_firstBaseline]; + if (attrs & MASAttributeLastBaseline) [attributes addObject:self.view.mas_lastBaseline]; + +#endif + +#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) + + if (attrs & MASAttributeLeftMargin) [attributes addObject:self.view.mas_leftMargin]; + if (attrs & MASAttributeRightMargin) [attributes addObject:self.view.mas_rightMargin]; + if (attrs & MASAttributeTopMargin) [attributes addObject:self.view.mas_topMargin]; + if (attrs & MASAttributeBottomMargin) [attributes addObject:self.view.mas_bottomMargin]; + if (attrs & MASAttributeLeadingMargin) [attributes addObject:self.view.mas_leadingMargin]; + if (attrs & MASAttributeTrailingMargin) [attributes addObject:self.view.mas_trailingMargin]; + if (attrs & MASAttributeCenterXWithinMargins) [attributes addObject:self.view.mas_centerXWithinMargins]; + if (attrs & MASAttributeCenterYWithinMargins) [attributes addObject:self.view.mas_centerYWithinMargins]; + +#endif + + NSMutableArray *children = [NSMutableArray arrayWithCapacity:attributes.count]; + + for (MASViewAttribute *a in attributes) { + [children addObject:[[MASViewConstraint alloc] initWithFirstViewAttribute:a]]; + } + + MASCompositeConstraint *constraint = [[MASCompositeConstraint alloc] initWithChildren:children]; + constraint.delegate = self; + [self.constraints addObject:constraint]; + return constraint; +} + +#pragma mark - standard Attributes + +- (MASConstraint *)addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute { + return [self constraint:nil addConstraintWithLayoutAttribute:layoutAttribute]; +} + +- (MASConstraint *)left { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeft]; +} + +- (MASConstraint *)top { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTop]; +} + +- (MASConstraint *)right { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeRight]; +} + +- (MASConstraint *)bottom { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeBottom]; +} + +- (MASConstraint *)leading { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeading]; +} + +- (MASConstraint *)trailing { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTrailing]; +} + +- (MASConstraint *)width { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeWidth]; +} + +- (MASConstraint *)height { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeHeight]; +} + +- (MASConstraint *)centerX { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterX]; +} + +- (MASConstraint *)centerY { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterY]; +} + +- (MASConstraint *)baseline { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeBaseline]; +} + +- (MASConstraint *(^)(MASAttribute))attributes { + return ^(MASAttribute attrs){ + return [self addConstraintWithAttributes:attrs]; + }; +} + +#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100) + +- (MASConstraint *)firstBaseline { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeFirstBaseline]; +} + +- (MASConstraint *)lastBaseline { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLastBaseline]; +} + +#endif + + +#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) + +- (MASConstraint *)leftMargin { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeftMargin]; +} + +- (MASConstraint *)rightMargin { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeRightMargin]; +} + +- (MASConstraint *)topMargin { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTopMargin]; +} + +- (MASConstraint *)bottomMargin { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeBottomMargin]; +} + +- (MASConstraint *)leadingMargin { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeadingMargin]; +} + +- (MASConstraint *)trailingMargin { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTrailingMargin]; +} + +- (MASConstraint *)centerXWithinMargins { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterXWithinMargins]; +} + +- (MASConstraint *)centerYWithinMargins { + return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterYWithinMargins]; +} + +#endif + + +#pragma mark - composite Attributes + +- (MASConstraint *)edges { + return [self addConstraintWithAttributes:MASAttributeTop | MASAttributeLeft | MASAttributeRight | MASAttributeBottom]; +} + +- (MASConstraint *)size { + return [self addConstraintWithAttributes:MASAttributeWidth | MASAttributeHeight]; +} + +- (MASConstraint *)center { + return [self addConstraintWithAttributes:MASAttributeCenterX | MASAttributeCenterY]; +} + +#pragma mark - grouping + +- (MASConstraint *(^)(dispatch_block_t group))group { + return ^id(dispatch_block_t group) { + NSInteger previousCount = self.constraints.count; + group(); + + NSArray *children = [self.constraints subarrayWithRange:NSMakeRange(previousCount, self.constraints.count - previousCount)]; + MASCompositeConstraint *constraint = [[MASCompositeConstraint alloc] initWithChildren:children]; + constraint.delegate = self; + return constraint; + }; +} + +@end diff --git a/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASLayoutConstraint.h b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASLayoutConstraint.h new file mode 100644 index 00000000..699041cb --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASLayoutConstraint.h @@ -0,0 +1,22 @@ +// +// MASLayoutConstraint.h +// Masonry +// +// Created by Jonas Budelmann on 3/08/13. +// Copyright (c) 2013 Jonas Budelmann. All rights reserved. +// + +#import "MASUtilities.h" + +/** + * When you are debugging or printing the constraints attached to a view this subclass + * makes it easier to identify which constraints have been created via Masonry + */ +@interface MASLayoutConstraint : NSLayoutConstraint + +/** + * a key to associate with this constraint + */ +@property (nonatomic, strong) id mas_key; + +@end diff --git a/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASLayoutConstraint.m b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASLayoutConstraint.m new file mode 100644 index 00000000..3483f026 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASLayoutConstraint.m @@ -0,0 +1,13 @@ +// +// MASLayoutConstraint.m +// Masonry +// +// Created by Jonas Budelmann on 3/08/13. +// Copyright (c) 2013 Jonas Budelmann. All rights reserved. +// + +#import "MASLayoutConstraint.h" + +@implementation MASLayoutConstraint + +@end diff --git a/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASUtilities.h b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASUtilities.h new file mode 100644 index 00000000..1dbfd938 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASUtilities.h @@ -0,0 +1,136 @@ +// +// MASUtilities.h +// Masonry +// +// Created by Jonas Budelmann on 19/08/13. +// Copyright (c) 2013 Jonas Budelmann. All rights reserved. +// + +#import + + + +#if TARGET_OS_IPHONE || TARGET_OS_TV + + #import + #define MAS_VIEW UIView + #define MAS_VIEW_CONTROLLER UIViewController + #define MASEdgeInsets UIEdgeInsets + + typedef UILayoutPriority MASLayoutPriority; + static const MASLayoutPriority MASLayoutPriorityRequired = UILayoutPriorityRequired; + static const MASLayoutPriority MASLayoutPriorityDefaultHigh = UILayoutPriorityDefaultHigh; + static const MASLayoutPriority MASLayoutPriorityDefaultMedium = 500; + static const MASLayoutPriority MASLayoutPriorityDefaultLow = UILayoutPriorityDefaultLow; + static const MASLayoutPriority MASLayoutPriorityFittingSizeLevel = UILayoutPriorityFittingSizeLevel; + +#elif TARGET_OS_MAC + + #import + #define MAS_VIEW NSView + #define MASEdgeInsets NSEdgeInsets + + typedef NSLayoutPriority MASLayoutPriority; + static const MASLayoutPriority MASLayoutPriorityRequired = NSLayoutPriorityRequired; + static const MASLayoutPriority MASLayoutPriorityDefaultHigh = NSLayoutPriorityDefaultHigh; + static const MASLayoutPriority MASLayoutPriorityDragThatCanResizeWindow = NSLayoutPriorityDragThatCanResizeWindow; + static const MASLayoutPriority MASLayoutPriorityDefaultMedium = 501; + static const MASLayoutPriority MASLayoutPriorityWindowSizeStayPut = NSLayoutPriorityWindowSizeStayPut; + static const MASLayoutPriority MASLayoutPriorityDragThatCannotResizeWindow = NSLayoutPriorityDragThatCannotResizeWindow; + static const MASLayoutPriority MASLayoutPriorityDefaultLow = NSLayoutPriorityDefaultLow; + static const MASLayoutPriority MASLayoutPriorityFittingSizeCompression = NSLayoutPriorityFittingSizeCompression; + +#endif + +/** + * Allows you to attach keys to objects matching the variable names passed. + * + * view1.mas_key = @"view1", view2.mas_key = @"view2"; + * + * is equivalent to: + * + * MASAttachKeys(view1, view2); + */ +#define MASAttachKeys(...) \ + { \ + NSDictionary *keyPairs = NSDictionaryOfVariableBindings(__VA_ARGS__); \ + for (id key in keyPairs.allKeys) { \ + id obj = keyPairs[key]; \ + NSAssert([obj respondsToSelector:@selector(setMas_key:)], \ + @"Cannot attach mas_key to %@", obj); \ + [obj setMas_key:key]; \ + } \ + } + +/** + * Used to create object hashes + * Based on http://www.mikeash.com/pyblog/friday-qa-2010-06-18-implementing-equality-and-hashing.html + */ +#define MAS_NSUINT_BIT (CHAR_BIT * sizeof(NSUInteger)) +#define MAS_NSUINTROTATE(val, howmuch) ((((NSUInteger)val) << howmuch) | (((NSUInteger)val) >> (MAS_NSUINT_BIT - howmuch))) + +/** + * Given a scalar or struct value, wraps it in NSValue + * Based on EXPObjectify: https://github.com/specta/expecta + */ +static inline id _MASBoxValue(const char *type, ...) { + va_list v; + va_start(v, type); + id obj = nil; + if (strcmp(type, @encode(id)) == 0) { + id actual = va_arg(v, id); + obj = actual; + } else if (strcmp(type, @encode(CGPoint)) == 0) { + CGPoint actual = (CGPoint)va_arg(v, CGPoint); + obj = [NSValue value:&actual withObjCType:type]; + } else if (strcmp(type, @encode(CGSize)) == 0) { + CGSize actual = (CGSize)va_arg(v, CGSize); + obj = [NSValue value:&actual withObjCType:type]; + } else if (strcmp(type, @encode(MASEdgeInsets)) == 0) { + MASEdgeInsets actual = (MASEdgeInsets)va_arg(v, MASEdgeInsets); + obj = [NSValue value:&actual withObjCType:type]; + } else if (strcmp(type, @encode(double)) == 0) { + double actual = (double)va_arg(v, double); + obj = [NSNumber numberWithDouble:actual]; + } else if (strcmp(type, @encode(float)) == 0) { + float actual = (float)va_arg(v, double); + obj = [NSNumber numberWithFloat:actual]; + } else if (strcmp(type, @encode(int)) == 0) { + int actual = (int)va_arg(v, int); + obj = [NSNumber numberWithInt:actual]; + } else if (strcmp(type, @encode(long)) == 0) { + long actual = (long)va_arg(v, long); + obj = [NSNumber numberWithLong:actual]; + } else if (strcmp(type, @encode(long long)) == 0) { + long long actual = (long long)va_arg(v, long long); + obj = [NSNumber numberWithLongLong:actual]; + } else if (strcmp(type, @encode(short)) == 0) { + short actual = (short)va_arg(v, int); + obj = [NSNumber numberWithShort:actual]; + } else if (strcmp(type, @encode(char)) == 0) { + char actual = (char)va_arg(v, int); + obj = [NSNumber numberWithChar:actual]; + } else if (strcmp(type, @encode(bool)) == 0) { + bool actual = (bool)va_arg(v, int); + obj = [NSNumber numberWithBool:actual]; + } else if (strcmp(type, @encode(unsigned char)) == 0) { + unsigned char actual = (unsigned char)va_arg(v, unsigned int); + obj = [NSNumber numberWithUnsignedChar:actual]; + } else if (strcmp(type, @encode(unsigned int)) == 0) { + unsigned int actual = (unsigned int)va_arg(v, unsigned int); + obj = [NSNumber numberWithUnsignedInt:actual]; + } else if (strcmp(type, @encode(unsigned long)) == 0) { + unsigned long actual = (unsigned long)va_arg(v, unsigned long); + obj = [NSNumber numberWithUnsignedLong:actual]; + } else if (strcmp(type, @encode(unsigned long long)) == 0) { + unsigned long long actual = (unsigned long long)va_arg(v, unsigned long long); + obj = [NSNumber numberWithUnsignedLongLong:actual]; + } else if (strcmp(type, @encode(unsigned short)) == 0) { + unsigned short actual = (unsigned short)va_arg(v, unsigned int); + obj = [NSNumber numberWithUnsignedShort:actual]; + } + va_end(v); + return obj; +} + +#define MASBoxValue(value) _MASBoxValue(@encode(__typeof__((value))), (value)) diff --git a/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASViewAttribute.h b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASViewAttribute.h new file mode 100644 index 00000000..601c25d1 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASViewAttribute.h @@ -0,0 +1,49 @@ +// +// MASViewAttribute.h +// Masonry +// +// Created by Jonas Budelmann on 21/07/13. +// Copyright (c) 2013 cloudling. All rights reserved. +// + +#import "MASUtilities.h" + +/** + * An immutable tuple which stores the view and the related NSLayoutAttribute. + * Describes part of either the left or right hand side of a constraint equation + */ +@interface MASViewAttribute : NSObject + +/** + * The view which the reciever relates to. Can be nil if item is not a view. + */ +@property (nonatomic, weak, readonly) MAS_VIEW *view; + +/** + * The item which the reciever relates to. + */ +@property (nonatomic, weak, readonly) id item; + +/** + * The attribute which the reciever relates to + */ +@property (nonatomic, assign, readonly) NSLayoutAttribute layoutAttribute; + +/** + * Convenience initializer. + */ +- (id)initWithView:(MAS_VIEW *)view layoutAttribute:(NSLayoutAttribute)layoutAttribute; + +/** + * The designated initializer. + */ +- (id)initWithView:(MAS_VIEW *)view item:(id)item layoutAttribute:(NSLayoutAttribute)layoutAttribute; + +/** + * Determine whether the layoutAttribute is a size attribute + * + * @return YES if layoutAttribute is equal to NSLayoutAttributeWidth or NSLayoutAttributeHeight + */ +- (BOOL)isSizeAttribute; + +@end diff --git a/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASViewAttribute.m b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASViewAttribute.m new file mode 100644 index 00000000..e573e8bd --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASViewAttribute.m @@ -0,0 +1,46 @@ +// +// MASViewAttribute.m +// Masonry +// +// Created by Jonas Budelmann on 21/07/13. +// Copyright (c) 2013 cloudling. All rights reserved. +// + +#import "MASViewAttribute.h" + +@implementation MASViewAttribute + +- (id)initWithView:(MAS_VIEW *)view layoutAttribute:(NSLayoutAttribute)layoutAttribute { + self = [self initWithView:view item:view layoutAttribute:layoutAttribute]; + return self; +} + +- (id)initWithView:(MAS_VIEW *)view item:(id)item layoutAttribute:(NSLayoutAttribute)layoutAttribute { + self = [super init]; + if (!self) return nil; + + _view = view; + _item = item; + _layoutAttribute = layoutAttribute; + + return self; +} + +- (BOOL)isSizeAttribute { + return self.layoutAttribute == NSLayoutAttributeWidth + || self.layoutAttribute == NSLayoutAttributeHeight; +} + +- (BOOL)isEqual:(MASViewAttribute *)viewAttribute { + if ([viewAttribute isKindOfClass:self.class]) { + return self.view == viewAttribute.view + && self.layoutAttribute == viewAttribute.layoutAttribute; + } + return [super isEqual:viewAttribute]; +} + +- (NSUInteger)hash { + return MAS_NSUINTROTATE([self.view hash], MAS_NSUINT_BIT / 2) ^ self.layoutAttribute; +} + +@end diff --git a/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASViewConstraint.h b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASViewConstraint.h new file mode 100644 index 00000000..ec390d15 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASViewConstraint.h @@ -0,0 +1,48 @@ +// +// MASViewConstraint.h +// Masonry +// +// Created by Jonas Budelmann on 20/07/13. +// Copyright (c) 2013 cloudling. All rights reserved. +// + +#import "MASViewAttribute.h" +#import "MASConstraint.h" +#import "MASLayoutConstraint.h" +#import "MASUtilities.h" + +/** + * A single constraint. + * Contains the attributes neccessary for creating a NSLayoutConstraint and adding it to the appropriate view + */ +@interface MASViewConstraint : MASConstraint + +/** + * First item/view and first attribute of the NSLayoutConstraint + */ +@property (nonatomic, strong, readonly) MASViewAttribute *firstViewAttribute; + +/** + * Second item/view and second attribute of the NSLayoutConstraint + */ +@property (nonatomic, strong, readonly) MASViewAttribute *secondViewAttribute; + +/** + * initialises the MASViewConstraint with the first part of the equation + * + * @param firstViewAttribute view.mas_left, view.mas_width etc. + * + * @return a new view constraint + */ +- (id)initWithFirstViewAttribute:(MASViewAttribute *)firstViewAttribute; + +/** + * Returns all MASViewConstraints installed with this view as a first item. + * + * @param view A view to retrieve constraints for. + * + * @return An array of MASViewConstraints. + */ ++ (NSArray *)installedConstraintsForView:(MAS_VIEW *)view; + +@end diff --git a/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASViewConstraint.m b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASViewConstraint.m new file mode 100644 index 00000000..173eec16 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/MASViewConstraint.m @@ -0,0 +1,401 @@ +// +// MASViewConstraint.m +// Masonry +// +// Created by Jonas Budelmann on 20/07/13. +// Copyright (c) 2013 cloudling. All rights reserved. +// + +#import "MASViewConstraint.h" +#import "MASConstraint+Private.h" +#import "MASCompositeConstraint.h" +#import "MASLayoutConstraint.h" +#import "View+MASAdditions.h" +#import + +@interface MAS_VIEW (MASConstraints) + +@property (nonatomic, readonly) NSMutableSet *mas_installedConstraints; + +@end + +@implementation MAS_VIEW (MASConstraints) + +static char kInstalledConstraintsKey; + +- (NSMutableSet *)mas_installedConstraints { + NSMutableSet *constraints = objc_getAssociatedObject(self, &kInstalledConstraintsKey); + if (!constraints) { + constraints = [NSMutableSet set]; + objc_setAssociatedObject(self, &kInstalledConstraintsKey, constraints, OBJC_ASSOCIATION_RETAIN_NONATOMIC); + } + return constraints; +} + +@end + + +@interface MASViewConstraint () + +@property (nonatomic, strong, readwrite) MASViewAttribute *secondViewAttribute; +@property (nonatomic, weak) MAS_VIEW *installedView; +@property (nonatomic, weak) MASLayoutConstraint *layoutConstraint; +@property (nonatomic, assign) NSLayoutRelation layoutRelation; +@property (nonatomic, assign) MASLayoutPriority layoutPriority; +@property (nonatomic, assign) CGFloat layoutMultiplier; +@property (nonatomic, assign) CGFloat layoutConstant; +@property (nonatomic, assign) BOOL hasLayoutRelation; +@property (nonatomic, strong) id mas_key; +@property (nonatomic, assign) BOOL useAnimator; + +@end + +@implementation MASViewConstraint + +- (id)initWithFirstViewAttribute:(MASViewAttribute *)firstViewAttribute { + self = [super init]; + if (!self) return nil; + + _firstViewAttribute = firstViewAttribute; + self.layoutPriority = MASLayoutPriorityRequired; + self.layoutMultiplier = 1; + + return self; +} + +#pragma mark - NSCoping + +- (id)copyWithZone:(NSZone __unused *)zone { + MASViewConstraint *constraint = [[MASViewConstraint alloc] initWithFirstViewAttribute:self.firstViewAttribute]; + constraint.layoutConstant = self.layoutConstant; + constraint.layoutRelation = self.layoutRelation; + constraint.layoutPriority = self.layoutPriority; + constraint.layoutMultiplier = self.layoutMultiplier; + constraint.delegate = self.delegate; + return constraint; +} + +#pragma mark - Public + ++ (NSArray *)installedConstraintsForView:(MAS_VIEW *)view { + return [view.mas_installedConstraints allObjects]; +} + +#pragma mark - Private + +- (void)setLayoutConstant:(CGFloat)layoutConstant { + _layoutConstant = layoutConstant; + +#if TARGET_OS_MAC && !(TARGET_OS_IPHONE || TARGET_OS_TV) + if (self.useAnimator) { + [self.layoutConstraint.animator setConstant:layoutConstant]; + } else { + self.layoutConstraint.constant = layoutConstant; + } +#else + self.layoutConstraint.constant = layoutConstant; +#endif +} + +- (void)setLayoutRelation:(NSLayoutRelation)layoutRelation { + _layoutRelation = layoutRelation; + self.hasLayoutRelation = YES; +} + +- (BOOL)supportsActiveProperty { + return [self.layoutConstraint respondsToSelector:@selector(isActive)]; +} + +- (BOOL)isActive { + BOOL active = YES; + if ([self supportsActiveProperty]) { + active = [self.layoutConstraint isActive]; + } + + return active; +} + +- (BOOL)hasBeenInstalled { + return (self.layoutConstraint != nil) && [self isActive]; +} + +- (void)setSecondViewAttribute:(id)secondViewAttribute { + if ([secondViewAttribute isKindOfClass:NSValue.class]) { + [self setLayoutConstantWithValue:secondViewAttribute]; + } else if ([secondViewAttribute isKindOfClass:MAS_VIEW.class]) { + _secondViewAttribute = [[MASViewAttribute alloc] initWithView:secondViewAttribute layoutAttribute:self.firstViewAttribute.layoutAttribute]; + } else if ([secondViewAttribute isKindOfClass:MASViewAttribute.class]) { + _secondViewAttribute = secondViewAttribute; + } else { + NSAssert(NO, @"attempting to add unsupported attribute: %@", secondViewAttribute); + } +} + +#pragma mark - NSLayoutConstraint multiplier proxies + +- (MASConstraint * (^)(CGFloat))multipliedBy { + return ^id(CGFloat multiplier) { + NSAssert(!self.hasBeenInstalled, + @"Cannot modify constraint multiplier after it has been installed"); + + self.layoutMultiplier = multiplier; + return self; + }; +} + + +- (MASConstraint * (^)(CGFloat))dividedBy { + return ^id(CGFloat divider) { + NSAssert(!self.hasBeenInstalled, + @"Cannot modify constraint multiplier after it has been installed"); + + self.layoutMultiplier = 1.0/divider; + return self; + }; +} + +#pragma mark - MASLayoutPriority proxy + +- (MASConstraint * (^)(MASLayoutPriority))priority { + return ^id(MASLayoutPriority priority) { + NSAssert(!self.hasBeenInstalled, + @"Cannot modify constraint priority after it has been installed"); + + self.layoutPriority = priority; + return self; + }; +} + +#pragma mark - NSLayoutRelation proxy + +- (MASConstraint * (^)(id, NSLayoutRelation))equalToWithRelation { + return ^id(id attribute, NSLayoutRelation relation) { + if ([attribute isKindOfClass:NSArray.class]) { + NSAssert(!self.hasLayoutRelation, @"Redefinition of constraint relation"); + NSMutableArray *children = NSMutableArray.new; + for (id attr in attribute) { + MASViewConstraint *viewConstraint = [self copy]; + viewConstraint.layoutRelation = relation; + viewConstraint.secondViewAttribute = attr; + [children addObject:viewConstraint]; + } + MASCompositeConstraint *compositeConstraint = [[MASCompositeConstraint alloc] initWithChildren:children]; + compositeConstraint.delegate = self.delegate; + [self.delegate constraint:self shouldBeReplacedWithConstraint:compositeConstraint]; + return compositeConstraint; + } else { + NSAssert(!self.hasLayoutRelation || self.layoutRelation == relation && [attribute isKindOfClass:NSValue.class], @"Redefinition of constraint relation"); + self.layoutRelation = relation; + self.secondViewAttribute = attribute; + return self; + } + }; +} + +#pragma mark - Semantic properties + +- (MASConstraint *)with { + return self; +} + +- (MASConstraint *)and { + return self; +} + +#pragma mark - attribute chaining + +- (MASConstraint *)addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute { + NSAssert(!self.hasLayoutRelation, @"Attributes should be chained before defining the constraint relation"); + + return [self.delegate constraint:self addConstraintWithLayoutAttribute:layoutAttribute]; +} + +#pragma mark - Animator proxy + +#if TARGET_OS_MAC && !(TARGET_OS_IPHONE || TARGET_OS_TV) + +- (MASConstraint *)animator { + self.useAnimator = YES; + return self; +} + +#endif + +#pragma mark - debug helpers + +- (MASConstraint * (^)(id))key { + return ^id(id key) { + self.mas_key = key; + return self; + }; +} + +#pragma mark - NSLayoutConstraint constant setters + +- (void)setInsets:(MASEdgeInsets)insets { + NSLayoutAttribute layoutAttribute = self.firstViewAttribute.layoutAttribute; + switch (layoutAttribute) { + case NSLayoutAttributeLeft: + case NSLayoutAttributeLeading: + self.layoutConstant = insets.left; + break; + case NSLayoutAttributeTop: + self.layoutConstant = insets.top; + break; + case NSLayoutAttributeBottom: + self.layoutConstant = -insets.bottom; + break; + case NSLayoutAttributeRight: + case NSLayoutAttributeTrailing: + self.layoutConstant = -insets.right; + break; + default: + break; + } +} + +- (void)setInset:(CGFloat)inset { + [self setInsets:(MASEdgeInsets){.top = inset, .left = inset, .bottom = inset, .right = inset}]; +} + +- (void)setOffset:(CGFloat)offset { + self.layoutConstant = offset; +} + +- (void)setSizeOffset:(CGSize)sizeOffset { + NSLayoutAttribute layoutAttribute = self.firstViewAttribute.layoutAttribute; + switch (layoutAttribute) { + case NSLayoutAttributeWidth: + self.layoutConstant = sizeOffset.width; + break; + case NSLayoutAttributeHeight: + self.layoutConstant = sizeOffset.height; + break; + default: + break; + } +} + +- (void)setCenterOffset:(CGPoint)centerOffset { + NSLayoutAttribute layoutAttribute = self.firstViewAttribute.layoutAttribute; + switch (layoutAttribute) { + case NSLayoutAttributeCenterX: + self.layoutConstant = centerOffset.x; + break; + case NSLayoutAttributeCenterY: + self.layoutConstant = centerOffset.y; + break; + default: + break; + } +} + +#pragma mark - MASConstraint + +- (void)activate { + [self install]; +} + +- (void)deactivate { + [self uninstall]; +} + +- (void)install { + if (self.hasBeenInstalled) { + return; + } + + if ([self supportsActiveProperty] && self.layoutConstraint) { + self.layoutConstraint.active = YES; + [self.firstViewAttribute.view.mas_installedConstraints addObject:self]; + return; + } + + MAS_VIEW *firstLayoutItem = self.firstViewAttribute.item; + NSLayoutAttribute firstLayoutAttribute = self.firstViewAttribute.layoutAttribute; + MAS_VIEW *secondLayoutItem = self.secondViewAttribute.item; + NSLayoutAttribute secondLayoutAttribute = self.secondViewAttribute.layoutAttribute; + + // alignment attributes must have a secondViewAttribute + // therefore we assume that is refering to superview + // eg make.left.equalTo(@10) + if (!self.firstViewAttribute.isSizeAttribute && !self.secondViewAttribute) { + secondLayoutItem = self.firstViewAttribute.view.superview; + secondLayoutAttribute = firstLayoutAttribute; + } + + MASLayoutConstraint *layoutConstraint + = [MASLayoutConstraint constraintWithItem:firstLayoutItem + attribute:firstLayoutAttribute + relatedBy:self.layoutRelation + toItem:secondLayoutItem + attribute:secondLayoutAttribute + multiplier:self.layoutMultiplier + constant:self.layoutConstant]; + + layoutConstraint.priority = self.layoutPriority; + layoutConstraint.mas_key = self.mas_key; + + if (self.secondViewAttribute.view) { + MAS_VIEW *closestCommonSuperview = [self.firstViewAttribute.view mas_closestCommonSuperview:self.secondViewAttribute.view]; + NSAssert(closestCommonSuperview, + @"couldn't find a common superview for %@ and %@", + self.firstViewAttribute.view, self.secondViewAttribute.view); + self.installedView = closestCommonSuperview; + } else if (self.firstViewAttribute.isSizeAttribute) { + self.installedView = self.firstViewAttribute.view; + } else { + self.installedView = self.firstViewAttribute.view.superview; + } + + + MASLayoutConstraint *existingConstraint = nil; + if (self.updateExisting) { + existingConstraint = [self layoutConstraintSimilarTo:layoutConstraint]; + } + if (existingConstraint) { + // just update the constant + existingConstraint.constant = layoutConstraint.constant; + self.layoutConstraint = existingConstraint; + } else { + [self.installedView addConstraint:layoutConstraint]; + self.layoutConstraint = layoutConstraint; + [firstLayoutItem.mas_installedConstraints addObject:self]; + } +} + +- (MASLayoutConstraint *)layoutConstraintSimilarTo:(MASLayoutConstraint *)layoutConstraint { + // check if any constraints are the same apart from the only mutable property constant + + // go through constraints in reverse as we do not want to match auto-resizing or interface builder constraints + // and they are likely to be added first. + for (NSLayoutConstraint *existingConstraint in self.installedView.constraints.reverseObjectEnumerator) { + if (![existingConstraint isKindOfClass:MASLayoutConstraint.class]) continue; + if (existingConstraint.firstItem != layoutConstraint.firstItem) continue; + if (existingConstraint.secondItem != layoutConstraint.secondItem) continue; + if (existingConstraint.firstAttribute != layoutConstraint.firstAttribute) continue; + if (existingConstraint.secondAttribute != layoutConstraint.secondAttribute) continue; + if (existingConstraint.relation != layoutConstraint.relation) continue; + if (existingConstraint.multiplier != layoutConstraint.multiplier) continue; + if (existingConstraint.priority != layoutConstraint.priority) continue; + + return (id)existingConstraint; + } + return nil; +} + +- (void)uninstall { + if ([self supportsActiveProperty]) { + self.layoutConstraint.active = NO; + [self.firstViewAttribute.view.mas_installedConstraints removeObject:self]; + return; + } + + [self.installedView removeConstraint:self.layoutConstraint]; + self.layoutConstraint = nil; + self.installedView = nil; + + [self.firstViewAttribute.view.mas_installedConstraints removeObject:self]; +} + +@end diff --git a/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/Masonry.h b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/Masonry.h new file mode 100644 index 00000000..d1bd579d --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/Masonry.h @@ -0,0 +1,29 @@ +// +// Masonry.h +// Masonry +// +// Created by Jonas Budelmann on 20/07/13. +// Copyright (c) 2013 cloudling. All rights reserved. +// + +#import + +//! Project version number for Masonry. +FOUNDATION_EXPORT double MasonryVersionNumber; + +//! Project version string for Masonry. +FOUNDATION_EXPORT const unsigned char MasonryVersionString[]; + +#import "MASUtilities.h" +#import "View+MASAdditions.h" +#import "View+MASShorthandAdditions.h" +#import "ViewController+MASAdditions.h" +#import "NSArray+MASAdditions.h" +#import "NSArray+MASShorthandAdditions.h" +#import "MASConstraint.h" +#import "MASCompositeConstraint.h" +#import "MASViewAttribute.h" +#import "MASViewConstraint.h" +#import "MASConstraintMaker.h" +#import "MASLayoutConstraint.h" +#import "NSLayoutConstraint+MASDebugAdditions.h" diff --git a/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/NSArray+MASAdditions.h b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/NSArray+MASAdditions.h new file mode 100644 index 00000000..587618d9 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/NSArray+MASAdditions.h @@ -0,0 +1,72 @@ +// +// NSArray+MASAdditions.h +// +// +// Created by Daniel Hammond on 11/26/13. +// +// + +#import "MASUtilities.h" +#import "MASConstraintMaker.h" +#import "MASViewAttribute.h" + +typedef NS_ENUM(NSUInteger, MASAxisType) { + MASAxisTypeHorizontal, + MASAxisTypeVertical +}; + +@interface NSArray (MASAdditions) + +/** + * Creates a MASConstraintMaker with each view in the callee. + * Any constraints defined are added to the view or the appropriate superview once the block has finished executing on each view + * + * @param block scope within which you can build up the constraints which you wish to apply to each view. + * + * @return Array of created MASConstraints + */ +- (NSArray *)mas_makeConstraints:(void (NS_NOESCAPE ^)(MASConstraintMaker *make))block; + +/** + * Creates a MASConstraintMaker with each view in the callee. + * Any constraints defined are added to each view or the appropriate superview once the block has finished executing on each view. + * If an existing constraint exists then it will be updated instead. + * + * @param block scope within which you can build up the constraints which you wish to apply to each view. + * + * @return Array of created/updated MASConstraints + */ +- (NSArray *)mas_updateConstraints:(void (NS_NOESCAPE ^)(MASConstraintMaker *make))block; + +/** + * Creates a MASConstraintMaker with each view in the callee. + * Any constraints defined are added to each view or the appropriate superview once the block has finished executing on each view. + * All constraints previously installed for the views will be removed. + * + * @param block scope within which you can build up the constraints which you wish to apply to each view. + * + * @return Array of created/updated MASConstraints + */ +- (NSArray *)mas_remakeConstraints:(void (NS_NOESCAPE ^)(MASConstraintMaker *make))block; + +/** + * distribute with fixed spacing + * + * @param axisType which axis to distribute items along + * @param fixedSpacing the spacing between each item + * @param leadSpacing the spacing before the first item and the container + * @param tailSpacing the spacing after the last item and the container + */ +- (void)mas_distributeViewsAlongAxis:(MASAxisType)axisType withFixedSpacing:(CGFloat)fixedSpacing leadSpacing:(CGFloat)leadSpacing tailSpacing:(CGFloat)tailSpacing; + +/** + * distribute with fixed item size + * + * @param axisType which axis to distribute items along + * @param fixedItemLength the fixed length of each item + * @param leadSpacing the spacing before the first item and the container + * @param tailSpacing the spacing after the last item and the container + */ +- (void)mas_distributeViewsAlongAxis:(MASAxisType)axisType withFixedItemLength:(CGFloat)fixedItemLength leadSpacing:(CGFloat)leadSpacing tailSpacing:(CGFloat)tailSpacing; + +@end diff --git a/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/NSArray+MASAdditions.m b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/NSArray+MASAdditions.m new file mode 100644 index 00000000..831d8cda --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/NSArray+MASAdditions.m @@ -0,0 +1,162 @@ +// +// NSArray+MASAdditions.m +// +// +// Created by Daniel Hammond on 11/26/13. +// +// + +#import "NSArray+MASAdditions.h" +#import "View+MASAdditions.h" + +@implementation NSArray (MASAdditions) + +- (NSArray *)mas_makeConstraints:(void(^)(MASConstraintMaker *make))block { + NSMutableArray *constraints = [NSMutableArray array]; + for (MAS_VIEW *view in self) { + NSAssert([view isKindOfClass:[MAS_VIEW class]], @"All objects in the array must be views"); + [constraints addObjectsFromArray:[view mas_makeConstraints:block]]; + } + return constraints; +} + +- (NSArray *)mas_updateConstraints:(void(^)(MASConstraintMaker *make))block { + NSMutableArray *constraints = [NSMutableArray array]; + for (MAS_VIEW *view in self) { + NSAssert([view isKindOfClass:[MAS_VIEW class]], @"All objects in the array must be views"); + [constraints addObjectsFromArray:[view mas_updateConstraints:block]]; + } + return constraints; +} + +- (NSArray *)mas_remakeConstraints:(void(^)(MASConstraintMaker *make))block { + NSMutableArray *constraints = [NSMutableArray array]; + for (MAS_VIEW *view in self) { + NSAssert([view isKindOfClass:[MAS_VIEW class]], @"All objects in the array must be views"); + [constraints addObjectsFromArray:[view mas_remakeConstraints:block]]; + } + return constraints; +} + +- (void)mas_distributeViewsAlongAxis:(MASAxisType)axisType withFixedSpacing:(CGFloat)fixedSpacing leadSpacing:(CGFloat)leadSpacing tailSpacing:(CGFloat)tailSpacing { + if (self.count < 2) { + NSAssert(self.count>1,@"views to distribute need to bigger than one"); + return; + } + + MAS_VIEW *tempSuperView = [self mas_commonSuperviewOfViews]; + if (axisType == MASAxisTypeHorizontal) { + MAS_VIEW *prev; + for (int i = 0; i < self.count; i++) { + MAS_VIEW *v = self[i]; + [v mas_makeConstraints:^(MASConstraintMaker *make) { + if (prev) { + make.width.equalTo(prev); + make.left.equalTo(prev.mas_right).offset(fixedSpacing); + if (i == self.count - 1) {//last one + make.right.equalTo(tempSuperView).offset(-tailSpacing); + } + } + else {//first one + make.left.equalTo(tempSuperView).offset(leadSpacing); + } + + }]; + prev = v; + } + } + else { + MAS_VIEW *prev; + for (int i = 0; i < self.count; i++) { + MAS_VIEW *v = self[i]; + [v mas_makeConstraints:^(MASConstraintMaker *make) { + if (prev) { + make.height.equalTo(prev); + make.top.equalTo(prev.mas_bottom).offset(fixedSpacing); + if (i == self.count - 1) {//last one + make.bottom.equalTo(tempSuperView).offset(-tailSpacing); + } + } + else {//first one + make.top.equalTo(tempSuperView).offset(leadSpacing); + } + + }]; + prev = v; + } + } +} + +- (void)mas_distributeViewsAlongAxis:(MASAxisType)axisType withFixedItemLength:(CGFloat)fixedItemLength leadSpacing:(CGFloat)leadSpacing tailSpacing:(CGFloat)tailSpacing { + if (self.count < 2) { + NSAssert(self.count>1,@"views to distribute need to bigger than one"); + return; + } + + MAS_VIEW *tempSuperView = [self mas_commonSuperviewOfViews]; + if (axisType == MASAxisTypeHorizontal) { + MAS_VIEW *prev; + for (int i = 0; i < self.count; i++) { + MAS_VIEW *v = self[i]; + [v mas_makeConstraints:^(MASConstraintMaker *make) { + make.width.equalTo(@(fixedItemLength)); + if (prev) { + if (i == self.count - 1) {//last one + make.right.equalTo(tempSuperView).offset(-tailSpacing); + } + else { + CGFloat offset = (1-(i/((CGFloat)self.count-1)))*(fixedItemLength+leadSpacing)-i*tailSpacing/(((CGFloat)self.count-1)); + make.right.equalTo(tempSuperView).multipliedBy(i/((CGFloat)self.count-1)).with.offset(offset); + } + } + else {//first one + make.left.equalTo(tempSuperView).offset(leadSpacing); + } + }]; + prev = v; + } + } + else { + MAS_VIEW *prev; + for (int i = 0; i < self.count; i++) { + MAS_VIEW *v = self[i]; + [v mas_makeConstraints:^(MASConstraintMaker *make) { + make.height.equalTo(@(fixedItemLength)); + if (prev) { + if (i == self.count - 1) {//last one + make.bottom.equalTo(tempSuperView).offset(-tailSpacing); + } + else { + CGFloat offset = (1-(i/((CGFloat)self.count-1)))*(fixedItemLength+leadSpacing)-i*tailSpacing/(((CGFloat)self.count-1)); + make.bottom.equalTo(tempSuperView).multipliedBy(i/((CGFloat)self.count-1)).with.offset(offset); + } + } + else {//first one + make.top.equalTo(tempSuperView).offset(leadSpacing); + } + }]; + prev = v; + } + } +} + +- (MAS_VIEW *)mas_commonSuperviewOfViews +{ + MAS_VIEW *commonSuperview = nil; + MAS_VIEW *previousView = nil; + for (id object in self) { + if ([object isKindOfClass:[MAS_VIEW class]]) { + MAS_VIEW *view = (MAS_VIEW *)object; + if (previousView) { + commonSuperview = [view mas_closestCommonSuperview:commonSuperview]; + } else { + commonSuperview = view; + } + previousView = view; + } + } + NSAssert(commonSuperview, @"Can't constrain views that do not share a common superview. Make sure that all the views in this array have been added into the same view hierarchy."); + return commonSuperview; +} + +@end diff --git a/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/NSArray+MASShorthandAdditions.h b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/NSArray+MASShorthandAdditions.h new file mode 100644 index 00000000..8b473697 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/NSArray+MASShorthandAdditions.h @@ -0,0 +1,41 @@ +// +// NSArray+MASShorthandAdditions.h +// Masonry +// +// Created by Jonas Budelmann on 22/07/13. +// Copyright (c) 2013 Jonas Budelmann. All rights reserved. +// + +#import "NSArray+MASAdditions.h" + +#ifdef MAS_SHORTHAND + +/** + * Shorthand array additions without the 'mas_' prefixes, + * only enabled if MAS_SHORTHAND is defined + */ +@interface NSArray (MASShorthandAdditions) + +- (NSArray *)makeConstraints:(void(^)(MASConstraintMaker *make))block; +- (NSArray *)updateConstraints:(void(^)(MASConstraintMaker *make))block; +- (NSArray *)remakeConstraints:(void(^)(MASConstraintMaker *make))block; + +@end + +@implementation NSArray (MASShorthandAdditions) + +- (NSArray *)makeConstraints:(void(^)(MASConstraintMaker *))block { + return [self mas_makeConstraints:block]; +} + +- (NSArray *)updateConstraints:(void(^)(MASConstraintMaker *))block { + return [self mas_updateConstraints:block]; +} + +- (NSArray *)remakeConstraints:(void(^)(MASConstraintMaker *))block { + return [self mas_remakeConstraints:block]; +} + +@end + +#endif diff --git a/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/NSLayoutConstraint+MASDebugAdditions.h b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/NSLayoutConstraint+MASDebugAdditions.h new file mode 100644 index 00000000..1279b4fd --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/NSLayoutConstraint+MASDebugAdditions.h @@ -0,0 +1,16 @@ +// +// NSLayoutConstraint+MASDebugAdditions.h +// Masonry +// +// Created by Jonas Budelmann on 3/08/13. +// Copyright (c) 2013 Jonas Budelmann. All rights reserved. +// + +#import "MASUtilities.h" + +/** + * makes debug and log output of NSLayoutConstraints more readable + */ +@interface NSLayoutConstraint (MASDebugAdditions) + +@end diff --git a/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/NSLayoutConstraint+MASDebugAdditions.m b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/NSLayoutConstraint+MASDebugAdditions.m new file mode 100644 index 00000000..ab539a21 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/NSLayoutConstraint+MASDebugAdditions.m @@ -0,0 +1,146 @@ +// +// NSLayoutConstraint+MASDebugAdditions.m +// Masonry +// +// Created by Jonas Budelmann on 3/08/13. +// Copyright (c) 2013 Jonas Budelmann. All rights reserved. +// + +#import "NSLayoutConstraint+MASDebugAdditions.h" +#import "MASConstraint.h" +#import "MASLayoutConstraint.h" + +@implementation NSLayoutConstraint (MASDebugAdditions) + +#pragma mark - description maps + ++ (NSDictionary *)layoutRelationDescriptionsByValue { + static dispatch_once_t once; + static NSDictionary *descriptionMap; + dispatch_once(&once, ^{ + descriptionMap = @{ + @(NSLayoutRelationEqual) : @"==", + @(NSLayoutRelationGreaterThanOrEqual) : @">=", + @(NSLayoutRelationLessThanOrEqual) : @"<=", + }; + }); + return descriptionMap; +} + ++ (NSDictionary *)layoutAttributeDescriptionsByValue { + static dispatch_once_t once; + static NSDictionary *descriptionMap; + dispatch_once(&once, ^{ + descriptionMap = @{ + @(NSLayoutAttributeTop) : @"top", + @(NSLayoutAttributeLeft) : @"left", + @(NSLayoutAttributeBottom) : @"bottom", + @(NSLayoutAttributeRight) : @"right", + @(NSLayoutAttributeLeading) : @"leading", + @(NSLayoutAttributeTrailing) : @"trailing", + @(NSLayoutAttributeWidth) : @"width", + @(NSLayoutAttributeHeight) : @"height", + @(NSLayoutAttributeCenterX) : @"centerX", + @(NSLayoutAttributeCenterY) : @"centerY", + @(NSLayoutAttributeBaseline) : @"baseline", + +#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100) + @(NSLayoutAttributeFirstBaseline) : @"firstBaseline", + @(NSLayoutAttributeLastBaseline) : @"lastBaseline", +#endif + +#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) + @(NSLayoutAttributeLeftMargin) : @"leftMargin", + @(NSLayoutAttributeRightMargin) : @"rightMargin", + @(NSLayoutAttributeTopMargin) : @"topMargin", + @(NSLayoutAttributeBottomMargin) : @"bottomMargin", + @(NSLayoutAttributeLeadingMargin) : @"leadingMargin", + @(NSLayoutAttributeTrailingMargin) : @"trailingMargin", + @(NSLayoutAttributeCenterXWithinMargins) : @"centerXWithinMargins", + @(NSLayoutAttributeCenterYWithinMargins) : @"centerYWithinMargins", +#endif + + }; + + }); + return descriptionMap; +} + + ++ (NSDictionary *)layoutPriorityDescriptionsByValue { + static dispatch_once_t once; + static NSDictionary *descriptionMap; + dispatch_once(&once, ^{ +#if TARGET_OS_IPHONE || TARGET_OS_TV + descriptionMap = @{ + @(MASLayoutPriorityDefaultHigh) : @"high", + @(MASLayoutPriorityDefaultLow) : @"low", + @(MASLayoutPriorityDefaultMedium) : @"medium", + @(MASLayoutPriorityRequired) : @"required", + @(MASLayoutPriorityFittingSizeLevel) : @"fitting size", + }; +#elif TARGET_OS_MAC + descriptionMap = @{ + @(MASLayoutPriorityDefaultHigh) : @"high", + @(MASLayoutPriorityDragThatCanResizeWindow) : @"drag can resize window", + @(MASLayoutPriorityDefaultMedium) : @"medium", + @(MASLayoutPriorityWindowSizeStayPut) : @"window size stay put", + @(MASLayoutPriorityDragThatCannotResizeWindow) : @"drag cannot resize window", + @(MASLayoutPriorityDefaultLow) : @"low", + @(MASLayoutPriorityFittingSizeCompression) : @"fitting size", + @(MASLayoutPriorityRequired) : @"required", + }; +#endif + }); + return descriptionMap; +} + +#pragma mark - description override + ++ (NSString *)descriptionForObject:(id)obj { + if ([obj respondsToSelector:@selector(mas_key)] && [obj mas_key]) { + return [NSString stringWithFormat:@"%@:%@", [obj class], [obj mas_key]]; + } + return [NSString stringWithFormat:@"%@:%p", [obj class], obj]; +} + +- (NSString *)description { + NSMutableString *description = [[NSMutableString alloc] initWithString:@"<"]; + + [description appendString:[self.class descriptionForObject:self]]; + + [description appendFormat:@" %@", [self.class descriptionForObject:self.firstItem]]; + if (self.firstAttribute != NSLayoutAttributeNotAnAttribute) { + [description appendFormat:@".%@", self.class.layoutAttributeDescriptionsByValue[@(self.firstAttribute)]]; + } + + [description appendFormat:@" %@", self.class.layoutRelationDescriptionsByValue[@(self.relation)]]; + + if (self.secondItem) { + [description appendFormat:@" %@", [self.class descriptionForObject:self.secondItem]]; + } + if (self.secondAttribute != NSLayoutAttributeNotAnAttribute) { + [description appendFormat:@".%@", self.class.layoutAttributeDescriptionsByValue[@(self.secondAttribute)]]; + } + + if (self.multiplier != 1) { + [description appendFormat:@" * %g", self.multiplier]; + } + + if (self.secondAttribute == NSLayoutAttributeNotAnAttribute) { + [description appendFormat:@" %g", self.constant]; + } else { + if (self.constant) { + [description appendFormat:@" %@ %g", (self.constant < 0 ? @"-" : @"+"), ABS(self.constant)]; + } + } + + if (self.priority != MASLayoutPriorityRequired) { + [description appendFormat:@" ^%@", self.class.layoutPriorityDescriptionsByValue[@(self.priority)] ?: [NSNumber numberWithDouble:self.priority]]; + } + + [description appendString:@">"]; + return description; +} + +@end diff --git a/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/View+MASAdditions.h b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/View+MASAdditions.h new file mode 100644 index 00000000..f7343d26 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/View+MASAdditions.h @@ -0,0 +1,111 @@ +// +// UIView+MASAdditions.h +// Masonry +// +// Created by Jonas Budelmann on 20/07/13. +// Copyright (c) 2013 cloudling. All rights reserved. +// + +#import "MASUtilities.h" +#import "MASConstraintMaker.h" +#import "MASViewAttribute.h" + +/** + * Provides constraint maker block + * and convience methods for creating MASViewAttribute which are view + NSLayoutAttribute pairs + */ +@interface MAS_VIEW (MASAdditions) + +/** + * following properties return a new MASViewAttribute with current view and appropriate NSLayoutAttribute + */ +@property (nonatomic, strong, readonly) MASViewAttribute *mas_left; +@property (nonatomic, strong, readonly) MASViewAttribute *mas_top; +@property (nonatomic, strong, readonly) MASViewAttribute *mas_right; +@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottom; +@property (nonatomic, strong, readonly) MASViewAttribute *mas_leading; +@property (nonatomic, strong, readonly) MASViewAttribute *mas_trailing; +@property (nonatomic, strong, readonly) MASViewAttribute *mas_width; +@property (nonatomic, strong, readonly) MASViewAttribute *mas_height; +@property (nonatomic, strong, readonly) MASViewAttribute *mas_centerX; +@property (nonatomic, strong, readonly) MASViewAttribute *mas_centerY; +@property (nonatomic, strong, readonly) MASViewAttribute *mas_baseline; +@property (nonatomic, strong, readonly) MASViewAttribute *(^mas_attribute)(NSLayoutAttribute attr); + +#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100) + +@property (nonatomic, strong, readonly) MASViewAttribute *mas_firstBaseline; +@property (nonatomic, strong, readonly) MASViewAttribute *mas_lastBaseline; + +#endif + +#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) + +@property (nonatomic, strong, readonly) MASViewAttribute *mas_leftMargin; +@property (nonatomic, strong, readonly) MASViewAttribute *mas_rightMargin; +@property (nonatomic, strong, readonly) MASViewAttribute *mas_topMargin; +@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomMargin; +@property (nonatomic, strong, readonly) MASViewAttribute *mas_leadingMargin; +@property (nonatomic, strong, readonly) MASViewAttribute *mas_trailingMargin; +@property (nonatomic, strong, readonly) MASViewAttribute *mas_centerXWithinMargins; +@property (nonatomic, strong, readonly) MASViewAttribute *mas_centerYWithinMargins; + +#endif + +#if (__IPHONE_OS_VERSION_MAX_ALLOWED >= 110000) || (__TV_OS_VERSION_MAX_ALLOWED >= 110000) + +@property (nonatomic, strong, readonly) MASViewAttribute *mas_safeAreaLayoutGuide API_AVAILABLE(ios(11.0),tvos(11.0)); +@property (nonatomic, strong, readonly) MASViewAttribute *mas_safeAreaLayoutGuideTop API_AVAILABLE(ios(11.0),tvos(11.0)); +@property (nonatomic, strong, readonly) MASViewAttribute *mas_safeAreaLayoutGuideBottom API_AVAILABLE(ios(11.0),tvos(11.0)); +@property (nonatomic, strong, readonly) MASViewAttribute *mas_safeAreaLayoutGuideLeft API_AVAILABLE(ios(11.0),tvos(11.0)); +@property (nonatomic, strong, readonly) MASViewAttribute *mas_safeAreaLayoutGuideRight API_AVAILABLE(ios(11.0),tvos(11.0)); + +#endif + +/** + * a key to associate with this view + */ +@property (nonatomic, strong) id mas_key; + +/** + * Finds the closest common superview between this view and another view + * + * @param view other view + * + * @return returns nil if common superview could not be found + */ +- (instancetype)mas_closestCommonSuperview:(MAS_VIEW *)view; + +/** + * Creates a MASConstraintMaker with the callee view. + * Any constraints defined are added to the view or the appropriate superview once the block has finished executing + * + * @param block scope within which you can build up the constraints which you wish to apply to the view. + * + * @return Array of created MASConstraints + */ +- (NSArray *)mas_makeConstraints:(void(NS_NOESCAPE ^)(MASConstraintMaker *make))block; + +/** + * Creates a MASConstraintMaker with the callee view. + * Any constraints defined are added to the view or the appropriate superview once the block has finished executing. + * If an existing constraint exists then it will be updated instead. + * + * @param block scope within which you can build up the constraints which you wish to apply to the view. + * + * @return Array of created/updated MASConstraints + */ +- (NSArray *)mas_updateConstraints:(void(NS_NOESCAPE ^)(MASConstraintMaker *make))block; + +/** + * Creates a MASConstraintMaker with the callee view. + * Any constraints defined are added to the view or the appropriate superview once the block has finished executing. + * All constraints previously installed for the view will be removed. + * + * @param block scope within which you can build up the constraints which you wish to apply to the view. + * + * @return Array of created/updated MASConstraints + */ +- (NSArray *)mas_remakeConstraints:(void(NS_NOESCAPE ^)(MASConstraintMaker *make))block; + +@end diff --git a/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/View+MASAdditions.m b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/View+MASAdditions.m new file mode 100644 index 00000000..4fa07b4f --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/View+MASAdditions.m @@ -0,0 +1,186 @@ +// +// UIView+MASAdditions.m +// Masonry +// +// Created by Jonas Budelmann on 20/07/13. +// Copyright (c) 2013 cloudling. All rights reserved. +// + +#import "View+MASAdditions.h" +#import + +@implementation MAS_VIEW (MASAdditions) + +- (NSArray *)mas_makeConstraints:(void(^)(MASConstraintMaker *))block { + self.translatesAutoresizingMaskIntoConstraints = NO; + MASConstraintMaker *constraintMaker = [[MASConstraintMaker alloc] initWithView:self]; + block(constraintMaker); + return [constraintMaker install]; +} + +- (NSArray *)mas_updateConstraints:(void(^)(MASConstraintMaker *))block { + self.translatesAutoresizingMaskIntoConstraints = NO; + MASConstraintMaker *constraintMaker = [[MASConstraintMaker alloc] initWithView:self]; + constraintMaker.updateExisting = YES; + block(constraintMaker); + return [constraintMaker install]; +} + +- (NSArray *)mas_remakeConstraints:(void(^)(MASConstraintMaker *make))block { + self.translatesAutoresizingMaskIntoConstraints = NO; + MASConstraintMaker *constraintMaker = [[MASConstraintMaker alloc] initWithView:self]; + constraintMaker.removeExisting = YES; + block(constraintMaker); + return [constraintMaker install]; +} + +#pragma mark - NSLayoutAttribute properties + +- (MASViewAttribute *)mas_left { + return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeLeft]; +} + +- (MASViewAttribute *)mas_top { + return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeTop]; +} + +- (MASViewAttribute *)mas_right { + return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeRight]; +} + +- (MASViewAttribute *)mas_bottom { + return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeBottom]; +} + +- (MASViewAttribute *)mas_leading { + return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeLeading]; +} + +- (MASViewAttribute *)mas_trailing { + return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeTrailing]; +} + +- (MASViewAttribute *)mas_width { + return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeWidth]; +} + +- (MASViewAttribute *)mas_height { + return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeHeight]; +} + +- (MASViewAttribute *)mas_centerX { + return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeCenterX]; +} + +- (MASViewAttribute *)mas_centerY { + return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeCenterY]; +} + +- (MASViewAttribute *)mas_baseline { + return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeBaseline]; +} + +- (MASViewAttribute *(^)(NSLayoutAttribute))mas_attribute +{ + return ^(NSLayoutAttribute attr) { + return [[MASViewAttribute alloc] initWithView:self layoutAttribute:attr]; + }; +} + +#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100) + +- (MASViewAttribute *)mas_firstBaseline { + return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeFirstBaseline]; +} +- (MASViewAttribute *)mas_lastBaseline { + return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeLastBaseline]; +} + +#endif + +#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) + +- (MASViewAttribute *)mas_leftMargin { + return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeLeftMargin]; +} + +- (MASViewAttribute *)mas_rightMargin { + return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeRightMargin]; +} + +- (MASViewAttribute *)mas_topMargin { + return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeTopMargin]; +} + +- (MASViewAttribute *)mas_bottomMargin { + return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeBottomMargin]; +} + +- (MASViewAttribute *)mas_leadingMargin { + return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeLeadingMargin]; +} + +- (MASViewAttribute *)mas_trailingMargin { + return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeTrailingMargin]; +} + +- (MASViewAttribute *)mas_centerXWithinMargins { + return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeCenterXWithinMargins]; +} + +- (MASViewAttribute *)mas_centerYWithinMargins { + return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeCenterYWithinMargins]; +} + +#endif + +#if (__IPHONE_OS_VERSION_MAX_ALLOWED >= 110000) || (__TV_OS_VERSION_MAX_ALLOWED >= 110000) + +- (MASViewAttribute *)mas_safeAreaLayoutGuide { + return [[MASViewAttribute alloc] initWithView:self item:self.safeAreaLayoutGuide layoutAttribute:NSLayoutAttributeBottom]; +} +- (MASViewAttribute *)mas_safeAreaLayoutGuideTop { + return [[MASViewAttribute alloc] initWithView:self item:self.safeAreaLayoutGuide layoutAttribute:NSLayoutAttributeTop]; +} +- (MASViewAttribute *)mas_safeAreaLayoutGuideBottom { + return [[MASViewAttribute alloc] initWithView:self item:self.safeAreaLayoutGuide layoutAttribute:NSLayoutAttributeBottom]; +} +- (MASViewAttribute *)mas_safeAreaLayoutGuideLeft { + return [[MASViewAttribute alloc] initWithView:self item:self.safeAreaLayoutGuide layoutAttribute:NSLayoutAttributeLeft]; +} +- (MASViewAttribute *)mas_safeAreaLayoutGuideRight { + return [[MASViewAttribute alloc] initWithView:self item:self.safeAreaLayoutGuide layoutAttribute:NSLayoutAttributeRight]; +} + +#endif + +#pragma mark - associated properties + +- (id)mas_key { + return objc_getAssociatedObject(self, @selector(mas_key)); +} + +- (void)setMas_key:(id)key { + objc_setAssociatedObject(self, @selector(mas_key), key, OBJC_ASSOCIATION_RETAIN_NONATOMIC); +} + +#pragma mark - heirachy + +- (instancetype)mas_closestCommonSuperview:(MAS_VIEW *)view { + MAS_VIEW *closestCommonSuperview = nil; + + MAS_VIEW *secondViewSuperview = view; + while (!closestCommonSuperview && secondViewSuperview) { + MAS_VIEW *firstViewSuperview = self; + while (!closestCommonSuperview && firstViewSuperview) { + if (secondViewSuperview == firstViewSuperview) { + closestCommonSuperview = secondViewSuperview; + } + firstViewSuperview = firstViewSuperview.superview; + } + secondViewSuperview = secondViewSuperview.superview; + } + return closestCommonSuperview; +} + +@end diff --git a/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/View+MASShorthandAdditions.h b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/View+MASShorthandAdditions.h new file mode 100644 index 00000000..1c19a942 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/View+MASShorthandAdditions.h @@ -0,0 +1,133 @@ +// +// UIView+MASShorthandAdditions.h +// Masonry +// +// Created by Jonas Budelmann on 22/07/13. +// Copyright (c) 2013 Jonas Budelmann. All rights reserved. +// + +#import "View+MASAdditions.h" + +#ifdef MAS_SHORTHAND + +/** + * Shorthand view additions without the 'mas_' prefixes, + * only enabled if MAS_SHORTHAND is defined + */ +@interface MAS_VIEW (MASShorthandAdditions) + +@property (nonatomic, strong, readonly) MASViewAttribute *left; +@property (nonatomic, strong, readonly) MASViewAttribute *top; +@property (nonatomic, strong, readonly) MASViewAttribute *right; +@property (nonatomic, strong, readonly) MASViewAttribute *bottom; +@property (nonatomic, strong, readonly) MASViewAttribute *leading; +@property (nonatomic, strong, readonly) MASViewAttribute *trailing; +@property (nonatomic, strong, readonly) MASViewAttribute *width; +@property (nonatomic, strong, readonly) MASViewAttribute *height; +@property (nonatomic, strong, readonly) MASViewAttribute *centerX; +@property (nonatomic, strong, readonly) MASViewAttribute *centerY; +@property (nonatomic, strong, readonly) MASViewAttribute *baseline; +@property (nonatomic, strong, readonly) MASViewAttribute *(^attribute)(NSLayoutAttribute attr); + +#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100) + +@property (nonatomic, strong, readonly) MASViewAttribute *firstBaseline; +@property (nonatomic, strong, readonly) MASViewAttribute *lastBaseline; + +#endif + +#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) + +@property (nonatomic, strong, readonly) MASViewAttribute *leftMargin; +@property (nonatomic, strong, readonly) MASViewAttribute *rightMargin; +@property (nonatomic, strong, readonly) MASViewAttribute *topMargin; +@property (nonatomic, strong, readonly) MASViewAttribute *bottomMargin; +@property (nonatomic, strong, readonly) MASViewAttribute *leadingMargin; +@property (nonatomic, strong, readonly) MASViewAttribute *trailingMargin; +@property (nonatomic, strong, readonly) MASViewAttribute *centerXWithinMargins; +@property (nonatomic, strong, readonly) MASViewAttribute *centerYWithinMargins; + +#endif + +#if (__IPHONE_OS_VERSION_MAX_ALLOWED >= 110000) || (__TV_OS_VERSION_MAX_ALLOWED >= 110000) + +@property (nonatomic, strong, readonly) MASViewAttribute *safeAreaLayoutGuideTop API_AVAILABLE(ios(11.0),tvos(11.0)); +@property (nonatomic, strong, readonly) MASViewAttribute *safeAreaLayoutGuideBottom API_AVAILABLE(ios(11.0),tvos(11.0)); +@property (nonatomic, strong, readonly) MASViewAttribute *safeAreaLayoutGuideLeft API_AVAILABLE(ios(11.0),tvos(11.0)); +@property (nonatomic, strong, readonly) MASViewAttribute *safeAreaLayoutGuideRight API_AVAILABLE(ios(11.0),tvos(11.0)); + +#endif + +- (NSArray *)makeConstraints:(void(^)(MASConstraintMaker *make))block; +- (NSArray *)updateConstraints:(void(^)(MASConstraintMaker *make))block; +- (NSArray *)remakeConstraints:(void(^)(MASConstraintMaker *make))block; + +@end + +#define MAS_ATTR_FORWARD(attr) \ +- (MASViewAttribute *)attr { \ + return [self mas_##attr]; \ +} + +@implementation MAS_VIEW (MASShorthandAdditions) + +MAS_ATTR_FORWARD(top); +MAS_ATTR_FORWARD(left); +MAS_ATTR_FORWARD(bottom); +MAS_ATTR_FORWARD(right); +MAS_ATTR_FORWARD(leading); +MAS_ATTR_FORWARD(trailing); +MAS_ATTR_FORWARD(width); +MAS_ATTR_FORWARD(height); +MAS_ATTR_FORWARD(centerX); +MAS_ATTR_FORWARD(centerY); +MAS_ATTR_FORWARD(baseline); + +#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100) + +MAS_ATTR_FORWARD(firstBaseline); +MAS_ATTR_FORWARD(lastBaseline); + +#endif + +#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) + +MAS_ATTR_FORWARD(leftMargin); +MAS_ATTR_FORWARD(rightMargin); +MAS_ATTR_FORWARD(topMargin); +MAS_ATTR_FORWARD(bottomMargin); +MAS_ATTR_FORWARD(leadingMargin); +MAS_ATTR_FORWARD(trailingMargin); +MAS_ATTR_FORWARD(centerXWithinMargins); +MAS_ATTR_FORWARD(centerYWithinMargins); + +#endif + +#if (__IPHONE_OS_VERSION_MAX_ALLOWED >= 110000) || (__TV_OS_VERSION_MAX_ALLOWED >= 110000) + +MAS_ATTR_FORWARD(safeAreaLayoutGuideTop); +MAS_ATTR_FORWARD(safeAreaLayoutGuideBottom); +MAS_ATTR_FORWARD(safeAreaLayoutGuideLeft); +MAS_ATTR_FORWARD(safeAreaLayoutGuideRight); + +#endif + +- (MASViewAttribute *(^)(NSLayoutAttribute))attribute { + return [self mas_attribute]; +} + +- (NSArray *)makeConstraints:(void(NS_NOESCAPE ^)(MASConstraintMaker *))block { + return [self mas_makeConstraints:block]; +} + +- (NSArray *)updateConstraints:(void(NS_NOESCAPE ^)(MASConstraintMaker *))block { + return [self mas_updateConstraints:block]; +} + +- (NSArray *)remakeConstraints:(void(NS_NOESCAPE ^)(MASConstraintMaker *))block { + return [self mas_remakeConstraints:block]; +} + +@end + +#endif diff --git a/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/ViewController+MASAdditions.h b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/ViewController+MASAdditions.h new file mode 100644 index 00000000..79fd1fa7 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/ViewController+MASAdditions.h @@ -0,0 +1,30 @@ +// +// UIViewController+MASAdditions.h +// Masonry +// +// Created by Craig Siemens on 2015-06-23. +// +// + +#import "MASUtilities.h" +#import "MASConstraintMaker.h" +#import "MASViewAttribute.h" + +#ifdef MAS_VIEW_CONTROLLER + +@interface MAS_VIEW_CONTROLLER (MASAdditions) + +/** + * following properties return a new MASViewAttribute with appropriate UILayoutGuide and NSLayoutAttribute + */ +@property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuide; +@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuide; +@property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuideTop; +@property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuideBottom; +@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuideTop; +@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuideBottom; + + +@end + +#endif diff --git a/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/ViewController+MASAdditions.m b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/ViewController+MASAdditions.m new file mode 100644 index 00000000..2f5139fa --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/Masonry/ViewController+MASAdditions.m @@ -0,0 +1,39 @@ +// +// UIViewController+MASAdditions.m +// Masonry +// +// Created by Craig Siemens on 2015-06-23. +// +// + +#import "ViewController+MASAdditions.h" + +#ifdef MAS_VIEW_CONTROLLER + +@implementation MAS_VIEW_CONTROLLER (MASAdditions) + +- (MASViewAttribute *)mas_topLayoutGuide { + return [[MASViewAttribute alloc] initWithView:self.view item:self.topLayoutGuide layoutAttribute:NSLayoutAttributeBottom]; +} +- (MASViewAttribute *)mas_topLayoutGuideTop { + return [[MASViewAttribute alloc] initWithView:self.view item:self.topLayoutGuide layoutAttribute:NSLayoutAttributeTop]; +} +- (MASViewAttribute *)mas_topLayoutGuideBottom { + return [[MASViewAttribute alloc] initWithView:self.view item:self.topLayoutGuide layoutAttribute:NSLayoutAttributeBottom]; +} + +- (MASViewAttribute *)mas_bottomLayoutGuide { + return [[MASViewAttribute alloc] initWithView:self.view item:self.bottomLayoutGuide layoutAttribute:NSLayoutAttributeTop]; +} +- (MASViewAttribute *)mas_bottomLayoutGuideTop { + return [[MASViewAttribute alloc] initWithView:self.view item:self.bottomLayoutGuide layoutAttribute:NSLayoutAttributeTop]; +} +- (MASViewAttribute *)mas_bottomLayoutGuideBottom { + return [[MASViewAttribute alloc] initWithView:self.view item:self.bottomLayoutGuide layoutAttribute:NSLayoutAttributeBottom]; +} + + + +@end + +#endif diff --git a/iOS/QGVAPlayerDemo/Pods/Masonry/README.md b/iOS/QGVAPlayerDemo/Pods/Masonry/README.md new file mode 100644 index 00000000..d4286576 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Masonry/README.md @@ -0,0 +1,415 @@ +# Masonry [![Build Status](https://travis-ci.org/SnapKit/Masonry.svg?branch=master)](https://travis-ci.org/SnapKit/Masonry) [![Coverage Status](https://img.shields.io/coveralls/SnapKit/Masonry.svg?style=flat-square)](https://coveralls.io/r/SnapKit/Masonry) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) ![Pod Version](https://img.shields.io/cocoapods/v/Masonry.svg?style=flat) + +**Masonry is still actively maintained, we are committed to fixing bugs and merging good quality PRs from the wider community. However if you're using Swift in your project, we recommend using [SnapKit](https://github.com/SnapKit/SnapKit) as it provides better type safety with a simpler API.** + +Masonry is a light-weight layout framework which wraps AutoLayout with a nicer syntax. Masonry has its own layout DSL which provides a chainable way of describing your NSLayoutConstraints which results in layout code that is more concise and readable. +Masonry supports iOS and Mac OS X. + +For examples take a look at the **Masonry iOS Examples** project in the Masonry workspace. You will need to run `pod install` after downloading. + +## What's wrong with NSLayoutConstraints? + +Under the hood Auto Layout is a powerful and flexible way of organising and laying out your views. However creating constraints from code is verbose and not very descriptive. +Imagine a simple example in which you want to have a view fill its superview but inset by 10 pixels on every side +```obj-c +UIView *superview = self.view; + +UIView *view1 = [[UIView alloc] init]; +view1.translatesAutoresizingMaskIntoConstraints = NO; +view1.backgroundColor = [UIColor greenColor]; +[superview addSubview:view1]; + +UIEdgeInsets padding = UIEdgeInsetsMake(10, 10, 10, 10); + +[superview addConstraints:@[ + + //view1 constraints + [NSLayoutConstraint constraintWithItem:view1 + attribute:NSLayoutAttributeTop + relatedBy:NSLayoutRelationEqual + toItem:superview + attribute:NSLayoutAttributeTop + multiplier:1.0 + constant:padding.top], + + [NSLayoutConstraint constraintWithItem:view1 + attribute:NSLayoutAttributeLeft + relatedBy:NSLayoutRelationEqual + toItem:superview + attribute:NSLayoutAttributeLeft + multiplier:1.0 + constant:padding.left], + + [NSLayoutConstraint constraintWithItem:view1 + attribute:NSLayoutAttributeBottom + relatedBy:NSLayoutRelationEqual + toItem:superview + attribute:NSLayoutAttributeBottom + multiplier:1.0 + constant:-padding.bottom], + + [NSLayoutConstraint constraintWithItem:view1 + attribute:NSLayoutAttributeRight + relatedBy:NSLayoutRelationEqual + toItem:superview + attribute:NSLayoutAttributeRight + multiplier:1 + constant:-padding.right], + + ]]; +``` +Even with such a simple example the code needed is quite verbose and quickly becomes unreadable when you have more than 2 or 3 views. +Another option is to use Visual Format Language (VFL), which is a bit less long winded. +However the ASCII type syntax has its own pitfalls and its also a bit harder to animate as `NSLayoutConstraint constraintsWithVisualFormat:` returns an array. + +## Prepare to meet your Maker! + +Heres the same constraints created using MASConstraintMaker + +```obj-c +UIEdgeInsets padding = UIEdgeInsetsMake(10, 10, 10, 10); + +[view1 mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.equalTo(superview.mas_top).with.offset(padding.top); //with is an optional semantic filler + make.left.equalTo(superview.mas_left).with.offset(padding.left); + make.bottom.equalTo(superview.mas_bottom).with.offset(-padding.bottom); + make.right.equalTo(superview.mas_right).with.offset(-padding.right); +}]; +``` +Or even shorter + +```obj-c +[view1 mas_makeConstraints:^(MASConstraintMaker *make) { + make.edges.equalTo(superview).with.insets(padding); +}]; +``` + +Also note in the first example we had to add the constraints to the superview `[superview addConstraints:...`. +Masonry however will automagically add constraints to the appropriate view. + +Masonry will also call `view1.translatesAutoresizingMaskIntoConstraints = NO;` for you. + +## Not all things are created equal + +> `.equalTo` equivalent to **NSLayoutRelationEqual** + +> `.lessThanOrEqualTo` equivalent to **NSLayoutRelationLessThanOrEqual** + +> `.greaterThanOrEqualTo` equivalent to **NSLayoutRelationGreaterThanOrEqual** + +These three equality constraints accept one argument which can be any of the following: + +#### 1. MASViewAttribute + +```obj-c +make.centerX.lessThanOrEqualTo(view2.mas_left); +``` + +MASViewAttribute | NSLayoutAttribute +------------------------- | -------------------------- +view.mas_left | NSLayoutAttributeLeft +view.mas_right | NSLayoutAttributeRight +view.mas_top | NSLayoutAttributeTop +view.mas_bottom | NSLayoutAttributeBottom +view.mas_leading | NSLayoutAttributeLeading +view.mas_trailing | NSLayoutAttributeTrailing +view.mas_width | NSLayoutAttributeWidth +view.mas_height | NSLayoutAttributeHeight +view.mas_centerX | NSLayoutAttributeCenterX +view.mas_centerY | NSLayoutAttributeCenterY +view.mas_baseline | NSLayoutAttributeBaseline + +#### 2. UIView/NSView + +if you want view.left to be greater than or equal to label.left : +```obj-c +//these two constraints are exactly the same +make.left.greaterThanOrEqualTo(label); +make.left.greaterThanOrEqualTo(label.mas_left); +``` + +#### 3. NSNumber + +Auto Layout allows width and height to be set to constant values. +if you want to set view to have a minimum and maximum width you could pass a number to the equality blocks: +```obj-c +//width >= 200 && width <= 400 +make.width.greaterThanOrEqualTo(@200); +make.width.lessThanOrEqualTo(@400) +``` + +However Auto Layout does not allow alignment attributes such as left, right, centerY etc to be set to constant values. +So if you pass a NSNumber for these attributes Masonry will turn these into constraints relative to the view’s superview ie: +```obj-c +//creates view.left = view.superview.left + 10 +make.left.lessThanOrEqualTo(@10) +``` + +Instead of using NSNumber, you can use primitives and structs to build your constraints, like so: +```obj-c +make.top.mas_equalTo(42); +make.height.mas_equalTo(20); +make.size.mas_equalTo(CGSizeMake(50, 100)); +make.edges.mas_equalTo(UIEdgeInsetsMake(10, 0, 10, 0)); +make.left.mas_equalTo(view).mas_offset(UIEdgeInsetsMake(10, 0, 10, 0)); +``` + +By default, macros which support [autoboxing](https://en.wikipedia.org/wiki/Autoboxing#Autoboxing) are prefixed with `mas_`. Unprefixed versions are available by defining `MAS_SHORTHAND_GLOBALS` before importing Masonry. + +#### 4. NSArray + +An array of a mixture of any of the previous types +```obj-c +make.height.equalTo(@[view1.mas_height, view2.mas_height]); +make.height.equalTo(@[view1, view2]); +make.left.equalTo(@[view1, @100, view3.right]); +```` + +## Learn to prioritize + +> `.priority` allows you to specify an exact priority + +> `.priorityHigh` equivalent to **UILayoutPriorityDefaultHigh** + +> `.priorityMedium` is half way between high and low + +> `.priorityLow` equivalent to **UILayoutPriorityDefaultLow** + +Priorities are can be tacked on to the end of a constraint chain like so: +```obj-c +make.left.greaterThanOrEqualTo(label.mas_left).with.priorityLow(); + +make.top.equalTo(label.mas_top).with.priority(600); +``` + +## Composition, composition, composition + +Masonry also gives you a few convenience methods which create multiple constraints at the same time. These are called MASCompositeConstraints + +#### edges + +```obj-c +// make top, left, bottom, right equal view2 +make.edges.equalTo(view2); + +// make top = superview.top + 5, left = superview.left + 10, +// bottom = superview.bottom - 15, right = superview.right - 20 +make.edges.equalTo(superview).insets(UIEdgeInsetsMake(5, 10, 15, 20)) +``` + +#### size + +```obj-c +// make width and height greater than or equal to titleLabel +make.size.greaterThanOrEqualTo(titleLabel) + +// make width = superview.width + 100, height = superview.height - 50 +make.size.equalTo(superview).sizeOffset(CGSizeMake(100, -50)) +``` + +#### center +```obj-c +// make centerX and centerY = button1 +make.center.equalTo(button1) + +// make centerX = superview.centerX - 5, centerY = superview.centerY + 10 +make.center.equalTo(superview).centerOffset(CGPointMake(-5, 10)) +``` + +You can chain view attributes for increased readability: + +```obj-c +// All edges but the top should equal those of the superview +make.left.right.and.bottom.equalTo(superview); +make.top.equalTo(otherView); +``` + +## Hold on for dear life + +Sometimes you need modify existing constraints in order to animate or remove/replace constraints. +In Masonry there are a few different approaches to updating constraints. + +#### 1. References +You can hold on to a reference of a particular constraint by assigning the result of a constraint make expression to a local variable or a class property. +You could also reference multiple constraints by storing them away in an array. + +```obj-c +// in public/private interface +@property (nonatomic, strong) MASConstraint *topConstraint; + +... + +// when making constraints +[view1 mas_makeConstraints:^(MASConstraintMaker *make) { + self.topConstraint = make.top.equalTo(superview.mas_top).with.offset(padding.top); + make.left.equalTo(superview.mas_left).with.offset(padding.left); +}]; + +... +// then later you can call +[self.topConstraint uninstall]; +``` + +#### 2. mas_updateConstraints +Alternatively if you are only updating the constant value of the constraint you can use the convience method `mas_updateConstraints` instead of `mas_makeConstraints` + +```obj-c +// this is Apple's recommended place for adding/updating constraints +// this method can get called multiple times in response to setNeedsUpdateConstraints +// which can be called by UIKit internally or in your code if you need to trigger an update to your constraints +- (void)updateConstraints { + [self.growingButton mas_updateConstraints:^(MASConstraintMaker *make) { + make.center.equalTo(self); + make.width.equalTo(@(self.buttonSize.width)).priorityLow(); + make.height.equalTo(@(self.buttonSize.height)).priorityLow(); + make.width.lessThanOrEqualTo(self); + make.height.lessThanOrEqualTo(self); + }]; + + //according to apple super should be called at end of method + [super updateConstraints]; +} +``` + +### 3. mas_remakeConstraints +`mas_updateConstraints` is useful for updating a set of constraints, but doing anything beyond updating constant values can get exhausting. That's where `mas_remakeConstraints` comes in. + +`mas_remakeConstraints` is similar to `mas_updateConstraints`, but instead of updating constant values, it will remove all of its constraints before installing them again. This lets you provide different constraints without having to keep around references to ones which you want to remove. + +```obj-c +- (void)changeButtonPosition { + [self.button mas_remakeConstraints:^(MASConstraintMaker *make) { + make.size.equalTo(self.buttonSize); + + if (topLeft) { + make.top.and.left.offset(10); + } else { + make.bottom.and.right.offset(-10); + } + }]; +} +``` + +You can find more detailed examples of all three approaches in the **Masonry iOS Examples** project. + +## When the ^&*!@ hits the fan! + +Laying out your views doesn't always goto plan. So when things literally go pear shaped, you don't want to be looking at console output like this: + +```obj-c +Unable to simultaneously satisfy constraints.....blah blah blah.... +( + "=5000)]>", + "", + "", + "" +) + +Will attempt to recover by breaking constraint +=5000)]> +``` + +Masonry adds a category to NSLayoutConstraint which overrides the default implementation of `- (NSString *)description`. +Now you can give meaningful names to views and constraints, and also easily pick out the constraints created by Masonry. + +which means your console output can now look like this: + +```obj-c +Unable to simultaneously satisfy constraints......blah blah blah.... +( + "", + "= 5000>", + "", + "" +) + +Will attempt to recover by breaking constraint += 5000> +``` + +For an example of how to set this up take a look at the **Masonry iOS Examples** project in the Masonry workspace. + +## Where should I create my constraints? + +```objc +@implementation DIYCustomView + +- (id)init { + self = [super init]; + if (!self) return nil; + + // --- Create your views here --- + self.button = [[UIButton alloc] init]; + + return self; +} + +// tell UIKit that you are using AutoLayout ++ (BOOL)requiresConstraintBasedLayout { + return YES; +} + +// this is Apple's recommended place for adding/updating constraints +- (void)updateConstraints { + + // --- remake/update constraints here + [self.button remakeConstraints:^(MASConstraintMaker *make) { + make.width.equalTo(@(self.buttonSize.width)); + make.height.equalTo(@(self.buttonSize.height)); + }]; + + //according to apple super should be called at end of method + [super updateConstraints]; +} + +- (void)didTapButton:(UIButton *)button { + // --- Do your changes ie change variables that affect your layout etc --- + self.buttonSize = CGSize(200, 200); + + // tell constraints they need updating + [self setNeedsUpdateConstraints]; +} + +@end +``` + +## Installation +Use the [orsome](http://www.youtube.com/watch?v=YaIZF8uUTtk) [CocoaPods](http://github.com/CocoaPods/CocoaPods). + +In your Podfile +>`pod 'Masonry'` + +If you want to use masonry without all those pesky 'mas_' prefixes. Add #define MAS_SHORTHAND to your prefix.pch before importing Masonry +>`#define MAS_SHORTHAND` + +Get busy Masoning +>`#import "Masonry.h"` + +## Code Snippets + +Copy the included code snippets to ``~/Library/Developer/Xcode/UserData/CodeSnippets`` to write your masonry blocks at lightning speed! + +`mas_make` -> ` [<#view#> mas_makeConstraints:^(MASConstraintMaker *make) { + <#code#> + }];` + +`mas_update` -> ` [<#view#> mas_updateConstraints:^(MASConstraintMaker *make) { + <#code#> + }];` + +`mas_remake` -> ` [<#view#> mas_remakeConstraints:^(MASConstraintMaker *make) { + <#code#> + }];` + +## Features +* Not limited to subset of Auto Layout. Anything NSLayoutConstraint can do, Masonry can do too! +* Great debug support, give your views and constraints meaningful names. +* Constraints read like sentences. +* No crazy macro magic. Masonry won't pollute the global namespace with macros. +* Not string or dictionary based and hence you get compile time checking. + +## TODO +* Eye candy +* Mac example project +* More tests and examples + diff --git a/iOS/QGVAPlayerDemo/Pods/Pods.xcodeproj/project.pbxproj b/iOS/QGVAPlayerDemo/Pods/Pods.xcodeproj/project.pbxproj new file mode 100644 index 00000000..93f27670 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Pods.xcodeproj/project.pbxproj @@ -0,0 +1,1081 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXBuildFile section */ + 05E2B7C1DB7528A0BBEA1521BE0DBAF1 /* MASViewAttribute.h in Headers */ = {isa = PBXBuildFile; fileRef = A78D3443F105E00FC21FE5A357C8F716 /* MASViewAttribute.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 2249C8CBBF1D01C11577B968486F1404 /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 4492C59E76355B29E9CEA9D65E9A4313 /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 37B890ABDC7DD441E6AA662325D412E6 /* MASConstraint.h in Headers */ = {isa = PBXBuildFile; fileRef = 02CA69FDFD4D7BB11F8E3E2E7A0B9879 /* MASConstraint.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 3B1728736424723F675AB5B5745128FE /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8193349D819536E58C58A34C1B7DF545 /* Foundation.framework */; }; + 4571A0EA37DC84F39E3830D38A1531AB /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ECF4CA3AF5536D14B4E015504E7AEEC0 /* UIKit.framework */; }; + 519AB649E53998EB9F1D295AA28DEEE4 /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = EA0730CF08EBF238D315D7E7F3A0F9CE /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-dummy.m */; }; + 51C0CA33F95AE69D3FE9D37DCACEC703 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8193349D819536E58C58A34C1B7DF545 /* Foundation.framework */; }; + 56E800EB3B2BE8AE0BA45A30974D7920 /* Masonry-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = A85AE9E36F67A1B513CB8DA940771B4F /* Masonry-dummy.m */; }; + 5B08596E856E4CC2F34A8A2372F9F764 /* NSArray+MASAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 8AEEBD88282BA13360CAA867D8465C75 /* NSArray+MASAdditions.m */; }; + 5F45735DF355530CC955066D3C007E19 /* MASViewConstraint.h in Headers */ = {isa = PBXBuildFile; fileRef = D12E9F350C1C8076BE92719B89951AD8 /* MASViewConstraint.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 61507E402F1F7C58BF119995A0479A22 /* NSArray+MASShorthandAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = 27E12E3D2779B5C7A8301A94F715DB4C /* NSArray+MASShorthandAdditions.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 772CF8E9CD02ECA4275B6173E2110E80 /* View+MASShorthandAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = 86765B456E483806C4E13D2DD50E40A4 /* View+MASShorthandAdditions.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 7C5505A2D3F2A697A5F324787061F4B7 /* MASConstraint+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = 837834476F3329FA118B081516D4FC28 /* MASConstraint+Private.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 813BE4C96A6D39C13EC50C6CD164F0AF /* MASConstraintMaker.h in Headers */ = {isa = PBXBuildFile; fileRef = B28EC2F4C626ED77509645BE3805CB29 /* MASConstraintMaker.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 8C6C7E25C5A24C936F81823978190E96 /* ViewController+MASAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = 55960467D1B758EC688A18A171012E78 /* ViewController+MASAdditions.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 8E86B258B5448991D7F05091975890F1 /* Pods-QGVAPlayerDemo-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = C25AB17C7BE0F759865BE4A6AC304A19 /* Pods-QGVAPlayerDemo-dummy.m */; }; + 8FF7B6477BFA6E6ABA168E1417291D5F /* MASCompositeConstraint.m in Sources */ = {isa = PBXBuildFile; fileRef = EB7CC7527FD599A1064055C060E14B43 /* MASCompositeConstraint.m */; }; + 9A748AA37125028329BB1ED227B5D0EC /* Pods-QGVAPlayerDemoTests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 9B5BCB7F7EE0C49FAADC4DA04E956256 /* Pods-QGVAPlayerDemoTests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + AE7B02645B8F769CA5F215EE8F7CC5B0 /* View+MASAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = 047EE388CF208BD5F57049BD98558C94 /* View+MASAdditions.h */; settings = {ATTRIBUTES = (Public, ); }; }; + B59E60FBC9665FC1061B88B8E6FD9FAF /* Masonry-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 6CF8069504999FB8BF5FA1529175AA74 /* Masonry-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + B680C2604BD8BC9644AE7C67BC46B9BB /* MASLayoutConstraint.h in Headers */ = {isa = PBXBuildFile; fileRef = 6FF4AF21902029EC43C354AC0978CE49 /* MASLayoutConstraint.h */; settings = {ATTRIBUTES = (Public, ); }; }; + BA904ABA8ED36CC4E5EB2B2004CA1F18 /* MASCompositeConstraint.h in Headers */ = {isa = PBXBuildFile; fileRef = 4AD89987EC7EAE20D7034EEF9935E7CC /* MASCompositeConstraint.h */; settings = {ATTRIBUTES = (Public, ); }; }; + BF22D137EF6324675FA50080C5D93C00 /* NSArray+MASAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = 30EC6C5D191587619B42076546EDC448 /* NSArray+MASAdditions.h */; settings = {ATTRIBUTES = (Public, ); }; }; + C2068AEACC2D9C7F1FFE41AA25B12A68 /* MASUtilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 607937A372913475EE7EAE532760ACD4 /* MASUtilities.h */; settings = {ATTRIBUTES = (Public, ); }; }; + C2FE60A10C792613E45031AE6E851ECB /* MASViewConstraint.m in Sources */ = {isa = PBXBuildFile; fileRef = 72A95F8027E3EB86CB9AE2D7539201FE /* MASViewConstraint.m */; }; + C51351C1FE0959DB24483ABF6ED8BCC7 /* Pods-QGVAPlayerDemo-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 971D650EAF4707CBA1FDFD0EDC9B92B7 /* Pods-QGVAPlayerDemo-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + C857B8D2D0BAA5A8A764F9E1C4B85807 /* ViewController+MASAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 342C4D9B5E1E36390E7AF01E35444998 /* ViewController+MASAdditions.m */; }; + C8EC35DFB0945DBE2F2FF9ECFE6D9711 /* NSLayoutConstraint+MASDebugAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 071EEE0A3CE36E163E09EA7F7915F1DE /* NSLayoutConstraint+MASDebugAdditions.m */; }; + C9E19D164C26414115CC969ED9A303C1 /* MASLayoutConstraint.m in Sources */ = {isa = PBXBuildFile; fileRef = 6E17443EA85E103F4DD0553AB6BB942A /* MASLayoutConstraint.m */; }; + D663837F4347AF58660EE6F7FD426ECE /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8193349D819536E58C58A34C1B7DF545 /* Foundation.framework */; }; + D788BA4B9E8186271BA75CA52B30502C /* View+MASAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = AF4497913DB548AE2E03103D3A97F34F /* View+MASAdditions.m */; }; + DAA8336FA8C65F7A35B985F9DB0C8126 /* Pods-QGVAPlayerDemoTests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = C0F47F36CFD981162B6B23994EF5D9BF /* Pods-QGVAPlayerDemoTests-dummy.m */; }; + DBA9500CBBA5FF6FCBBA115AE4D12152 /* NSLayoutConstraint+MASDebugAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = E7851906D7976272A721C8C4E0CE9092 /* NSLayoutConstraint+MASDebugAdditions.h */; settings = {ATTRIBUTES = (Public, ); }; }; + DF2B15402CE105F5A8CE48BBDCFFD5DD /* MASConstraint.m in Sources */ = {isa = PBXBuildFile; fileRef = 9073C3B74BC30C55B4EB5B2A596EAD72 /* MASConstraint.m */; }; + E930A5612DC6D120BE040AD17C6D1BCD /* MASViewAttribute.m in Sources */ = {isa = PBXBuildFile; fileRef = A8BCCE8C6C17F326AFEDF4357C62ADAF /* MASViewAttribute.m */; }; + EC9B34262AED632D7EFB49804337648E /* Masonry.h in Headers */ = {isa = PBXBuildFile; fileRef = EDA8A3885BC33F25CB32442EB2449111 /* Masonry.h */; settings = {ATTRIBUTES = (Public, ); }; }; + F6D1C960368EB1E067ABD0BFF707FC56 /* MASConstraintMaker.m in Sources */ = {isa = PBXBuildFile; fileRef = 470C5CD1265270E95A8A89443C727427 /* MASConstraintMaker.m */; }; + FAD54DBAFF988C78B09A8A999CBD5BE3 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8193349D819536E58C58A34C1B7DF545 /* Foundation.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 2FAFE1AC184E75D4F72EDC5452B3BBEF /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = BCC639A8EF80E2CEA149D3EF6308070D; + remoteInfo = "Pods-QGVAPlayerDemo"; + }; + 33BDB27BC5F079D945A85EE2BE8BF37F /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 55AF53E6C77A10ED4985E04D74A8878E; + remoteInfo = Masonry; + }; + D384FC199484EC231CAD5BE341F77836 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 55AF53E6C77A10ED4985E04D74A8878E; + remoteInfo = Masonry; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 004A7E92153CC27B84E5BD3C45C1610D /* Pods_QGVAPlayerDemo.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_QGVAPlayerDemo.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 02CA69FDFD4D7BB11F8E3E2E7A0B9879 /* MASConstraint.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MASConstraint.h; path = Masonry/MASConstraint.h; sourceTree = ""; }; + 047EE388CF208BD5F57049BD98558C94 /* View+MASAdditions.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "View+MASAdditions.h"; path = "Masonry/View+MASAdditions.h"; sourceTree = ""; }; + 0545C7BDEDD06CF201F5007090F2038A /* Pods-QGVAPlayerDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-QGVAPlayerDemo.debug.xcconfig"; sourceTree = ""; }; + 06FA1C534BE9920E1CF131B13D870379 /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.modulemap"; sourceTree = ""; }; + 071EEE0A3CE36E163E09EA7F7915F1DE /* NSLayoutConstraint+MASDebugAdditions.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "NSLayoutConstraint+MASDebugAdditions.m"; path = "Masonry/NSLayoutConstraint+MASDebugAdditions.m"; sourceTree = ""; }; + 0F920F2C910A5447EB6A3EDC8155FA1A /* Pods-QGVAPlayerDemo-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-QGVAPlayerDemo-frameworks.sh"; sourceTree = ""; }; + 17F66B7CE37D9F81D139E69CDF935314 /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-Info.plist"; sourceTree = ""; }; + 1D4A9F5F5B8EFF7817C185002442824A /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.debug.xcconfig"; sourceTree = ""; }; + 1E5C59021F692857078B0092C0FD5B6D /* Pods-QGVAPlayerDemoTests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-QGVAPlayerDemoTests-Info.plist"; sourceTree = ""; }; + 1FFED36A657123030ABB700256D73F15 /* Masonry.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Masonry.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 272E496A79114ACE37A624265F7F70B5 /* Pods-QGVAPlayerDemo.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-QGVAPlayerDemo.modulemap"; sourceTree = ""; }; + 27E12E3D2779B5C7A8301A94F715DB4C /* NSArray+MASShorthandAdditions.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "NSArray+MASShorthandAdditions.h"; path = "Masonry/NSArray+MASShorthandAdditions.h"; sourceTree = ""; }; + 29E89D79A861120E6FAF68C862E3E561 /* Pods-QGVAPlayerDemoTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-QGVAPlayerDemoTests.debug.xcconfig"; sourceTree = ""; }; + 30EC6C5D191587619B42076546EDC448 /* NSArray+MASAdditions.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "NSArray+MASAdditions.h"; path = "Masonry/NSArray+MASAdditions.h"; sourceTree = ""; }; + 319563D8BFBAF82798CD89271B7485FD /* Pods-QGVAPlayerDemo-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-QGVAPlayerDemo-acknowledgements.markdown"; sourceTree = ""; }; + 342C4D9B5E1E36390E7AF01E35444998 /* ViewController+MASAdditions.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "ViewController+MASAdditions.m"; path = "Masonry/ViewController+MASAdditions.m"; sourceTree = ""; }; + 3E537C1F47DA8B06DA4A71E3D14F4DE4 /* Masonry.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = Masonry.modulemap; sourceTree = ""; }; + 419A961AD957E23BAB6A998ED7623134 /* Masonry.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Masonry.release.xcconfig; sourceTree = ""; }; + 4492C59E76355B29E9CEA9D65E9A4313 /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-umbrella.h"; sourceTree = ""; }; + 470C5CD1265270E95A8A89443C727427 /* MASConstraintMaker.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MASConstraintMaker.m; path = Masonry/MASConstraintMaker.m; sourceTree = ""; }; + 4AD89987EC7EAE20D7034EEF9935E7CC /* MASCompositeConstraint.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MASCompositeConstraint.h; path = Masonry/MASCompositeConstraint.h; sourceTree = ""; }; + 501C8C2456431192E219FFFCF8944583 /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-frameworks.sh"; sourceTree = ""; }; + 55960467D1B758EC688A18A171012E78 /* ViewController+MASAdditions.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "ViewController+MASAdditions.h"; path = "Masonry/ViewController+MASAdditions.h"; sourceTree = ""; }; + 5C09ED29D59E26A666CD69AC097F75E9 /* Pods-QGVAPlayerDemoTests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-QGVAPlayerDemoTests.modulemap"; sourceTree = ""; }; + 607937A372913475EE7EAE532760ACD4 /* MASUtilities.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MASUtilities.h; path = Masonry/MASUtilities.h; sourceTree = ""; }; + 6CF8069504999FB8BF5FA1529175AA74 /* Masonry-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Masonry-umbrella.h"; sourceTree = ""; }; + 6E17443EA85E103F4DD0553AB6BB942A /* MASLayoutConstraint.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MASLayoutConstraint.m; path = Masonry/MASLayoutConstraint.m; sourceTree = ""; }; + 6E7346180FD89423BA324396CCE54CFB /* Pods_QGVAPlayerDemoTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_QGVAPlayerDemoTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 6EDF277F8CBDAD835EE62053EAE34E91 /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.release.xcconfig"; sourceTree = ""; }; + 6FF4AF21902029EC43C354AC0978CE49 /* MASLayoutConstraint.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MASLayoutConstraint.h; path = Masonry/MASLayoutConstraint.h; sourceTree = ""; }; + 72A95F8027E3EB86CB9AE2D7539201FE /* MASViewConstraint.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MASViewConstraint.m; path = Masonry/MASViewConstraint.m; sourceTree = ""; }; + 7CBE1A7151E11F42BE849ACEF856FDE3 /* Pods-QGVAPlayerDemoTests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-QGVAPlayerDemoTests-acknowledgements.markdown"; sourceTree = ""; }; + 8193349D819536E58C58A34C1B7DF545 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; + 837834476F3329FA118B081516D4FC28 /* MASConstraint+Private.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "MASConstraint+Private.h"; path = "Masonry/MASConstraint+Private.h"; sourceTree = ""; }; + 86765B456E483806C4E13D2DD50E40A4 /* View+MASShorthandAdditions.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "View+MASShorthandAdditions.h"; path = "Masonry/View+MASShorthandAdditions.h"; sourceTree = ""; }; + 86F4E22F4332E60E47A7869DD1C2E639 /* Pods-QGVAPlayerDemo-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-QGVAPlayerDemo-Info.plist"; sourceTree = ""; }; + 8AEEBD88282BA13360CAA867D8465C75 /* NSArray+MASAdditions.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "NSArray+MASAdditions.m"; path = "Masonry/NSArray+MASAdditions.m"; sourceTree = ""; }; + 9073C3B74BC30C55B4EB5B2A596EAD72 /* MASConstraint.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MASConstraint.m; path = Masonry/MASConstraint.m; sourceTree = ""; }; + 971D650EAF4707CBA1FDFD0EDC9B92B7 /* Pods-QGVAPlayerDemo-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-QGVAPlayerDemo-umbrella.h"; sourceTree = ""; }; + 9B5BCB7F7EE0C49FAADC4DA04E956256 /* Pods-QGVAPlayerDemoTests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-QGVAPlayerDemoTests-umbrella.h"; sourceTree = ""; }; + 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + A78D3443F105E00FC21FE5A357C8F716 /* MASViewAttribute.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MASViewAttribute.h; path = Masonry/MASViewAttribute.h; sourceTree = ""; }; + A85AE9E36F67A1B513CB8DA940771B4F /* Masonry-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Masonry-dummy.m"; sourceTree = ""; }; + A8BCCE8C6C17F326AFEDF4357C62ADAF /* MASViewAttribute.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MASViewAttribute.m; path = Masonry/MASViewAttribute.m; sourceTree = ""; }; + AF4497913DB548AE2E03103D3A97F34F /* View+MASAdditions.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "View+MASAdditions.m"; path = "Masonry/View+MASAdditions.m"; sourceTree = ""; }; + B28EC2F4C626ED77509645BE3805CB29 /* MASConstraintMaker.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MASConstraintMaker.h; path = Masonry/MASConstraintMaker.h; sourceTree = ""; }; + BDB676D9D5D3AFD89D8DDCE3369D4BAC /* Masonry-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Masonry-prefix.pch"; sourceTree = ""; }; + C0F47F36CFD981162B6B23994EF5D9BF /* Pods-QGVAPlayerDemoTests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-QGVAPlayerDemoTests-dummy.m"; sourceTree = ""; }; + C14860EC3CD862562944D69E85182031 /* Pods-QGVAPlayerDemo-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-QGVAPlayerDemo-acknowledgements.plist"; sourceTree = ""; }; + C17CEFC1682BBE18518072576F14720E /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-acknowledgements.markdown"; sourceTree = ""; }; + C25AB17C7BE0F759865BE4A6AC304A19 /* Pods-QGVAPlayerDemo-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-QGVAPlayerDemo-dummy.m"; sourceTree = ""; }; + D12E9F350C1C8076BE92719B89951AD8 /* MASViewConstraint.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MASViewConstraint.h; path = Masonry/MASViewConstraint.h; sourceTree = ""; }; + DFA1012B6A8BD076CD9F09831AE37A01 /* Masonry-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Masonry-Info.plist"; sourceTree = ""; }; + E52AECB48D58DCDB737DCEB0A90D34B3 /* Pods-QGVAPlayerDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-QGVAPlayerDemo.release.xcconfig"; sourceTree = ""; }; + E7851906D7976272A721C8C4E0CE9092 /* NSLayoutConstraint+MASDebugAdditions.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "NSLayoutConstraint+MASDebugAdditions.h"; path = "Masonry/NSLayoutConstraint+MASDebugAdditions.h"; sourceTree = ""; }; + E78A73567085A166D1EEF1DE4712234B /* Pods_QGVAPlayerDemo_QGVAPlayerDemoUITests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_QGVAPlayerDemo_QGVAPlayerDemoUITests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + EA0730CF08EBF238D315D7E7F3A0F9CE /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-dummy.m"; sourceTree = ""; }; + EB7CC7527FD599A1064055C060E14B43 /* MASCompositeConstraint.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MASCompositeConstraint.m; path = Masonry/MASCompositeConstraint.m; sourceTree = ""; }; + ECF4CA3AF5536D14B4E015504E7AEEC0 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.0.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; + EDA8A3885BC33F25CB32442EB2449111 /* Masonry.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = Masonry.h; path = Masonry/Masonry.h; sourceTree = ""; }; + F07C274BEF50BAEAD45CA4F9670137A0 /* Pods-QGVAPlayerDemoTests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-QGVAPlayerDemoTests-acknowledgements.plist"; sourceTree = ""; }; + F287598D192FA586BD4AECCD85B988A4 /* Masonry.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Masonry.debug.xcconfig; sourceTree = ""; }; + FC6A633E3716AF662A33DA3399CC5C7A /* Pods-QGVAPlayerDemoTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-QGVAPlayerDemoTests.release.xcconfig"; sourceTree = ""; }; + FCC180D3E7630CFEA6C6332618426EC2 /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-acknowledgements.plist"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 0BF5D5FA4139A14A5A0844854F1B4F5F /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + FAD54DBAFF988C78B09A8A999CBD5BE3 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 12A799DC8ABB2C283ADDDED4421A5EAB /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + D663837F4347AF58660EE6F7FD426ECE /* Foundation.framework in Frameworks */, + 4571A0EA37DC84F39E3830D38A1531AB /* UIKit.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 3C8D887C26B28049D884C9A117CD5BB3 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 51C0CA33F95AE69D3FE9D37DCACEC703 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7782CC550BD23A7AC9AC877BABADC22A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 3B1728736424723F675AB5B5745128FE /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 0CCC0CD98AB951949302B433AFE762AD /* Masonry */ = { + isa = PBXGroup; + children = ( + 4AD89987EC7EAE20D7034EEF9935E7CC /* MASCompositeConstraint.h */, + EB7CC7527FD599A1064055C060E14B43 /* MASCompositeConstraint.m */, + 02CA69FDFD4D7BB11F8E3E2E7A0B9879 /* MASConstraint.h */, + 9073C3B74BC30C55B4EB5B2A596EAD72 /* MASConstraint.m */, + 837834476F3329FA118B081516D4FC28 /* MASConstraint+Private.h */, + B28EC2F4C626ED77509645BE3805CB29 /* MASConstraintMaker.h */, + 470C5CD1265270E95A8A89443C727427 /* MASConstraintMaker.m */, + 6FF4AF21902029EC43C354AC0978CE49 /* MASLayoutConstraint.h */, + 6E17443EA85E103F4DD0553AB6BB942A /* MASLayoutConstraint.m */, + EDA8A3885BC33F25CB32442EB2449111 /* Masonry.h */, + 607937A372913475EE7EAE532760ACD4 /* MASUtilities.h */, + A78D3443F105E00FC21FE5A357C8F716 /* MASViewAttribute.h */, + A8BCCE8C6C17F326AFEDF4357C62ADAF /* MASViewAttribute.m */, + D12E9F350C1C8076BE92719B89951AD8 /* MASViewConstraint.h */, + 72A95F8027E3EB86CB9AE2D7539201FE /* MASViewConstraint.m */, + 30EC6C5D191587619B42076546EDC448 /* NSArray+MASAdditions.h */, + 8AEEBD88282BA13360CAA867D8465C75 /* NSArray+MASAdditions.m */, + 27E12E3D2779B5C7A8301A94F715DB4C /* NSArray+MASShorthandAdditions.h */, + E7851906D7976272A721C8C4E0CE9092 /* NSLayoutConstraint+MASDebugAdditions.h */, + 071EEE0A3CE36E163E09EA7F7915F1DE /* NSLayoutConstraint+MASDebugAdditions.m */, + 047EE388CF208BD5F57049BD98558C94 /* View+MASAdditions.h */, + AF4497913DB548AE2E03103D3A97F34F /* View+MASAdditions.m */, + 86765B456E483806C4E13D2DD50E40A4 /* View+MASShorthandAdditions.h */, + 55960467D1B758EC688A18A171012E78 /* ViewController+MASAdditions.h */, + 342C4D9B5E1E36390E7AF01E35444998 /* ViewController+MASAdditions.m */, + C84A449C2DE4F91F0620A5147DD42E0F /* Support Files */, + ); + path = Masonry; + sourceTree = ""; + }; + 1628BF05B4CAFDCC3549A101F5A10A17 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 1DE6440B6853131A80C53DDA34375AAB /* iOS */, + ); + name = Frameworks; + sourceTree = ""; + }; + 1DE6440B6853131A80C53DDA34375AAB /* iOS */ = { + isa = PBXGroup; + children = ( + 8193349D819536E58C58A34C1B7DF545 /* Foundation.framework */, + ECF4CA3AF5536D14B4E015504E7AEEC0 /* UIKit.framework */, + ); + name = iOS; + sourceTree = ""; + }; + 22814FC356D27CFD5D87830BE99C4E48 /* Targets Support Files */ = { + isa = PBXGroup; + children = ( + 5525B85674424C24E3605A22ADEAE977 /* Pods-QGVAPlayerDemo */, + 9DA0DC7D0D5BD6E8A51E08307186E38A /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests */, + 62F5F4D6E9B669A417D2B773C1D2E17C /* Pods-QGVAPlayerDemoTests */, + ); + name = "Targets Support Files"; + sourceTree = ""; + }; + 5525B85674424C24E3605A22ADEAE977 /* Pods-QGVAPlayerDemo */ = { + isa = PBXGroup; + children = ( + 272E496A79114ACE37A624265F7F70B5 /* Pods-QGVAPlayerDemo.modulemap */, + 319563D8BFBAF82798CD89271B7485FD /* Pods-QGVAPlayerDemo-acknowledgements.markdown */, + C14860EC3CD862562944D69E85182031 /* Pods-QGVAPlayerDemo-acknowledgements.plist */, + C25AB17C7BE0F759865BE4A6AC304A19 /* Pods-QGVAPlayerDemo-dummy.m */, + 0F920F2C910A5447EB6A3EDC8155FA1A /* Pods-QGVAPlayerDemo-frameworks.sh */, + 86F4E22F4332E60E47A7869DD1C2E639 /* Pods-QGVAPlayerDemo-Info.plist */, + 971D650EAF4707CBA1FDFD0EDC9B92B7 /* Pods-QGVAPlayerDemo-umbrella.h */, + 0545C7BDEDD06CF201F5007090F2038A /* Pods-QGVAPlayerDemo.debug.xcconfig */, + E52AECB48D58DCDB737DCEB0A90D34B3 /* Pods-QGVAPlayerDemo.release.xcconfig */, + ); + name = "Pods-QGVAPlayerDemo"; + path = "Target Support Files/Pods-QGVAPlayerDemo"; + sourceTree = ""; + }; + 62F5F4D6E9B669A417D2B773C1D2E17C /* Pods-QGVAPlayerDemoTests */ = { + isa = PBXGroup; + children = ( + 5C09ED29D59E26A666CD69AC097F75E9 /* Pods-QGVAPlayerDemoTests.modulemap */, + 7CBE1A7151E11F42BE849ACEF856FDE3 /* Pods-QGVAPlayerDemoTests-acknowledgements.markdown */, + F07C274BEF50BAEAD45CA4F9670137A0 /* Pods-QGVAPlayerDemoTests-acknowledgements.plist */, + C0F47F36CFD981162B6B23994EF5D9BF /* Pods-QGVAPlayerDemoTests-dummy.m */, + 1E5C59021F692857078B0092C0FD5B6D /* Pods-QGVAPlayerDemoTests-Info.plist */, + 9B5BCB7F7EE0C49FAADC4DA04E956256 /* Pods-QGVAPlayerDemoTests-umbrella.h */, + 29E89D79A861120E6FAF68C862E3E561 /* Pods-QGVAPlayerDemoTests.debug.xcconfig */, + FC6A633E3716AF662A33DA3399CC5C7A /* Pods-QGVAPlayerDemoTests.release.xcconfig */, + ); + name = "Pods-QGVAPlayerDemoTests"; + path = "Target Support Files/Pods-QGVAPlayerDemoTests"; + sourceTree = ""; + }; + 7529FD53BCE26816CCD46658378AAF1B /* Pods */ = { + isa = PBXGroup; + children = ( + 0CCC0CD98AB951949302B433AFE762AD /* Masonry */, + ); + name = Pods; + sourceTree = ""; + }; + 9DA0DC7D0D5BD6E8A51E08307186E38A /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests */ = { + isa = PBXGroup; + children = ( + 06FA1C534BE9920E1CF131B13D870379 /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.modulemap */, + C17CEFC1682BBE18518072576F14720E /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-acknowledgements.markdown */, + FCC180D3E7630CFEA6C6332618426EC2 /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-acknowledgements.plist */, + EA0730CF08EBF238D315D7E7F3A0F9CE /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-dummy.m */, + 501C8C2456431192E219FFFCF8944583 /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-frameworks.sh */, + 17F66B7CE37D9F81D139E69CDF935314 /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-Info.plist */, + 4492C59E76355B29E9CEA9D65E9A4313 /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-umbrella.h */, + 1D4A9F5F5B8EFF7817C185002442824A /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.debug.xcconfig */, + 6EDF277F8CBDAD835EE62053EAE34E91 /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.release.xcconfig */, + ); + name = "Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests"; + path = "Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests"; + sourceTree = ""; + }; + C84A449C2DE4F91F0620A5147DD42E0F /* Support Files */ = { + isa = PBXGroup; + children = ( + 3E537C1F47DA8B06DA4A71E3D14F4DE4 /* Masonry.modulemap */, + A85AE9E36F67A1B513CB8DA940771B4F /* Masonry-dummy.m */, + DFA1012B6A8BD076CD9F09831AE37A01 /* Masonry-Info.plist */, + BDB676D9D5D3AFD89D8DDCE3369D4BAC /* Masonry-prefix.pch */, + 6CF8069504999FB8BF5FA1529175AA74 /* Masonry-umbrella.h */, + F287598D192FA586BD4AECCD85B988A4 /* Masonry.debug.xcconfig */, + 419A961AD957E23BAB6A998ED7623134 /* Masonry.release.xcconfig */, + ); + name = "Support Files"; + path = "../Target Support Files/Masonry"; + sourceTree = ""; + }; + CCC238E9F0739AF68027D0481C854B64 /* Products */ = { + isa = PBXGroup; + children = ( + 1FFED36A657123030ABB700256D73F15 /* Masonry.framework */, + 004A7E92153CC27B84E5BD3C45C1610D /* Pods_QGVAPlayerDemo.framework */, + E78A73567085A166D1EEF1DE4712234B /* Pods_QGVAPlayerDemo_QGVAPlayerDemoUITests.framework */, + 6E7346180FD89423BA324396CCE54CFB /* Pods_QGVAPlayerDemoTests.framework */, + ); + name = Products; + sourceTree = ""; + }; + CF1408CF629C7361332E53B88F7BD30C = { + isa = PBXGroup; + children = ( + 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, + 1628BF05B4CAFDCC3549A101F5A10A17 /* Frameworks */, + 7529FD53BCE26816CCD46658378AAF1B /* Pods */, + CCC238E9F0739AF68027D0481C854B64 /* Products */, + 22814FC356D27CFD5D87830BE99C4E48 /* Targets Support Files */, + ); + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 0EF2526B5CC15C0E915F32190565F64C /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + BA904ABA8ED36CC4E5EB2B2004CA1F18 /* MASCompositeConstraint.h in Headers */, + 37B890ABDC7DD441E6AA662325D412E6 /* MASConstraint.h in Headers */, + 7C5505A2D3F2A697A5F324787061F4B7 /* MASConstraint+Private.h in Headers */, + 813BE4C96A6D39C13EC50C6CD164F0AF /* MASConstraintMaker.h in Headers */, + B680C2604BD8BC9644AE7C67BC46B9BB /* MASLayoutConstraint.h in Headers */, + EC9B34262AED632D7EFB49804337648E /* Masonry.h in Headers */, + B59E60FBC9665FC1061B88B8E6FD9FAF /* Masonry-umbrella.h in Headers */, + C2068AEACC2D9C7F1FFE41AA25B12A68 /* MASUtilities.h in Headers */, + 05E2B7C1DB7528A0BBEA1521BE0DBAF1 /* MASViewAttribute.h in Headers */, + 5F45735DF355530CC955066D3C007E19 /* MASViewConstraint.h in Headers */, + BF22D137EF6324675FA50080C5D93C00 /* NSArray+MASAdditions.h in Headers */, + 61507E402F1F7C58BF119995A0479A22 /* NSArray+MASShorthandAdditions.h in Headers */, + DBA9500CBBA5FF6FCBBA115AE4D12152 /* NSLayoutConstraint+MASDebugAdditions.h in Headers */, + AE7B02645B8F769CA5F215EE8F7CC5B0 /* View+MASAdditions.h in Headers */, + 772CF8E9CD02ECA4275B6173E2110E80 /* View+MASShorthandAdditions.h in Headers */, + 8C6C7E25C5A24C936F81823978190E96 /* ViewController+MASAdditions.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 48D71C1DAEF105F6A7F74A80E5FA9146 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + C51351C1FE0959DB24483ABF6ED8BCC7 /* Pods-QGVAPlayerDemo-umbrella.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 8E6C70B17EBA05DD695CE456D824F08F /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 9A748AA37125028329BB1ED227B5D0EC /* Pods-QGVAPlayerDemoTests-umbrella.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 9D68DBD4AD8A5EB521907F5993FFF6D1 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 2249C8CBBF1D01C11577B968486F1404 /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-umbrella.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 0C097D05FF3F72100DE4DDF3AD87913B /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = F913DE9F79E3980774E41C72A6CF3141 /* Build configuration list for PBXNativeTarget "Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests" */; + buildPhases = ( + 9D68DBD4AD8A5EB521907F5993FFF6D1 /* Headers */, + 136032014A99EB1C4B1760C38820B46A /* Sources */, + 0BF5D5FA4139A14A5A0844854F1B4F5F /* Frameworks */, + 3985998D684C16CB3FEBB6521A180C7C /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 6CD323D08603C0DCFBDDDEA0E731F493 /* PBXTargetDependency */, + ); + name = "Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests"; + productName = Pods_QGVAPlayerDemo_QGVAPlayerDemoUITests; + productReference = E78A73567085A166D1EEF1DE4712234B /* Pods_QGVAPlayerDemo_QGVAPlayerDemoUITests.framework */; + productType = "com.apple.product-type.framework"; + }; + 55AF53E6C77A10ED4985E04D74A8878E /* Masonry */ = { + isa = PBXNativeTarget; + buildConfigurationList = AAA1F8799DB68036C3BE983C05FAA2C7 /* Build configuration list for PBXNativeTarget "Masonry" */; + buildPhases = ( + 0EF2526B5CC15C0E915F32190565F64C /* Headers */, + DA0B6A6F9B3EDF226BF081DAC7E777E7 /* Sources */, + 12A799DC8ABB2C283ADDDED4421A5EAB /* Frameworks */, + ECD6B9A8E754DF142B323DF2D7E0D112 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Masonry; + productName = Masonry; + productReference = 1FFED36A657123030ABB700256D73F15 /* Masonry.framework */; + productType = "com.apple.product-type.framework"; + }; + AE3B45EA5037FA9386A37D88C9FB57A2 /* Pods-QGVAPlayerDemoTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = BD99EAA58FCD621DC1CAB2742E7CAE50 /* Build configuration list for PBXNativeTarget "Pods-QGVAPlayerDemoTests" */; + buildPhases = ( + 8E6C70B17EBA05DD695CE456D824F08F /* Headers */, + 63E16E135FE002E6F86827E9BAC01ACD /* Sources */, + 3C8D887C26B28049D884C9A117CD5BB3 /* Frameworks */, + 5694C9B0D0A717B73A637630E34B32BE /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + F8BF5D7D3714B642C66BB4A0E672C86C /* PBXTargetDependency */, + ); + name = "Pods-QGVAPlayerDemoTests"; + productName = Pods_QGVAPlayerDemoTests; + productReference = 6E7346180FD89423BA324396CCE54CFB /* Pods_QGVAPlayerDemoTests.framework */; + productType = "com.apple.product-type.framework"; + }; + BCC639A8EF80E2CEA149D3EF6308070D /* Pods-QGVAPlayerDemo */ = { + isa = PBXNativeTarget; + buildConfigurationList = A25322E18D30652D669C440D00866AA0 /* Build configuration list for PBXNativeTarget "Pods-QGVAPlayerDemo" */; + buildPhases = ( + 48D71C1DAEF105F6A7F74A80E5FA9146 /* Headers */, + 8794A6AE3B3457075B34E16153EF4EC1 /* Sources */, + 7782CC550BD23A7AC9AC877BABADC22A /* Frameworks */, + 6AFA9EA9634D7C8D50B648EEF78C1FFF /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 60CA8AE34885CDEAC8A7B823206D10B8 /* PBXTargetDependency */, + ); + name = "Pods-QGVAPlayerDemo"; + productName = Pods_QGVAPlayerDemo; + productReference = 004A7E92153CC27B84E5BD3C45C1610D /* Pods_QGVAPlayerDemo.framework */; + productType = "com.apple.product-type.framework"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + BFDFE7DC352907FC980B868725387E98 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1600; + LastUpgradeCheck = 1600; + }; + buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; + compatibilityVersion = "Xcode 12.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + Base, + en, + ); + mainGroup = CF1408CF629C7361332E53B88F7BD30C; + productRefGroup = CCC238E9F0739AF68027D0481C854B64 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 55AF53E6C77A10ED4985E04D74A8878E /* Masonry */, + BCC639A8EF80E2CEA149D3EF6308070D /* Pods-QGVAPlayerDemo */, + 0C097D05FF3F72100DE4DDF3AD87913B /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests */, + AE3B45EA5037FA9386A37D88C9FB57A2 /* Pods-QGVAPlayerDemoTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 3985998D684C16CB3FEBB6521A180C7C /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 5694C9B0D0A717B73A637630E34B32BE /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6AFA9EA9634D7C8D50B648EEF78C1FFF /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + ECD6B9A8E754DF142B323DF2D7E0D112 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 136032014A99EB1C4B1760C38820B46A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 519AB649E53998EB9F1D295AA28DEEE4 /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-dummy.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 63E16E135FE002E6F86827E9BAC01ACD /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + DAA8336FA8C65F7A35B985F9DB0C8126 /* Pods-QGVAPlayerDemoTests-dummy.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 8794A6AE3B3457075B34E16153EF4EC1 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8E86B258B5448991D7F05091975890F1 /* Pods-QGVAPlayerDemo-dummy.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + DA0B6A6F9B3EDF226BF081DAC7E777E7 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8FF7B6477BFA6E6ABA168E1417291D5F /* MASCompositeConstraint.m in Sources */, + DF2B15402CE105F5A8CE48BBDCFFD5DD /* MASConstraint.m in Sources */, + F6D1C960368EB1E067ABD0BFF707FC56 /* MASConstraintMaker.m in Sources */, + C9E19D164C26414115CC969ED9A303C1 /* MASLayoutConstraint.m in Sources */, + 56E800EB3B2BE8AE0BA45A30974D7920 /* Masonry-dummy.m in Sources */, + E930A5612DC6D120BE040AD17C6D1BCD /* MASViewAttribute.m in Sources */, + C2FE60A10C792613E45031AE6E851ECB /* MASViewConstraint.m in Sources */, + 5B08596E856E4CC2F34A8A2372F9F764 /* NSArray+MASAdditions.m in Sources */, + C8EC35DFB0945DBE2F2FF9ECFE6D9711 /* NSLayoutConstraint+MASDebugAdditions.m in Sources */, + D788BA4B9E8186271BA75CA52B30502C /* View+MASAdditions.m in Sources */, + C857B8D2D0BAA5A8A764F9E1C4B85807 /* ViewController+MASAdditions.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 60CA8AE34885CDEAC8A7B823206D10B8 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = Masonry; + target = 55AF53E6C77A10ED4985E04D74A8878E /* Masonry */; + targetProxy = 33BDB27BC5F079D945A85EE2BE8BF37F /* PBXContainerItemProxy */; + }; + 6CD323D08603C0DCFBDDDEA0E731F493 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = Masonry; + target = 55AF53E6C77A10ED4985E04D74A8878E /* Masonry */; + targetProxy = D384FC199484EC231CAD5BE341F77836 /* PBXContainerItemProxy */; + }; + F8BF5D7D3714B642C66BB4A0E672C86C /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = "Pods-QGVAPlayerDemo"; + target = BCC639A8EF80E2CEA149D3EF6308070D /* Pods-QGVAPlayerDemo */; + targetProxy = 2FAFE1AC184E75D4F72EDC5452B3BBEF /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 0A60FDE1F3AC40C8D28F6EED73B233A8 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = FC6A633E3716AF662A33DA3399CC5C7A /* Pods-QGVAPlayerDemoTests.release.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + CLANG_ENABLE_OBJC_WEAK = NO; + "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"; + ENABLE_MODULE_VERIFIER = NO; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + INFOPLIST_FILE = "Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests.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; + }; + 141CCACDB1B92166C02BDCE2125380A1 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 29E89D79A861120E6FAF68C862E3E561 /* Pods-QGVAPlayerDemoTests.debug.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + CLANG_ENABLE_OBJC_WEAK = NO; + "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"; + ENABLE_MODULE_VERIFIER = NO; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + INFOPLIST_FILE = "Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests.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; + }; + 2B9E26EAE2CD392AD762421F663075A1 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; + 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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + 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; + 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 = 12.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRIP_INSTALLED_PRODUCT = NO; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Debug; + }; + 2D1085CA7BD144CABF012FC10C6C9120 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = F287598D192FA586BD4AECCD85B988A4 /* Masonry.debug.xcconfig */; + buildSettings = { + "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"; + ENABLE_MODULE_VERIFIER = NO; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_PREFIX_HEADER = "Target Support Files/Masonry/Masonry-prefix.pch"; + GENERATE_INFOPLIST_FILE = NO; + INFOPLIST_FILE = "Target Support Files/Masonry/Masonry-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 12; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MODULEMAP_FILE = "Target Support Files/Masonry/Masonry.modulemap"; + PRODUCT_MODULE_NAME = Masonry; + PRODUCT_NAME = Masonry; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_INSTALL_OBJC_HEADER = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 63FAF33E1C55B71A5F5A8B3CC8749F99 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; + 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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + 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; + 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 = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRIP_INSTALLED_PRODUCT = NO; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + SWIFT_VERSION = 5.0; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Release; + }; + 75895A9E6F3B1E287EACEF473663B8B7 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 0545C7BDEDD06CF201F5007090F2038A /* Pods-QGVAPlayerDemo.debug.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + CLANG_ENABLE_OBJC_WEAK = NO; + "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"; + ENABLE_MODULE_VERIFIER = NO; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + INFOPLIST_FILE = "Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo.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; + }; + 88DCCFFE88ADF6F8B6B26EDF70759F94 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 1D4A9F5F5B8EFF7817C185002442824A /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.debug.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + CLANG_ENABLE_OBJC_WEAK = NO; + "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"; + ENABLE_MODULE_VERIFIER = NO; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + INFOPLIST_FILE = "Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.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; + }; + C9336C6D6D4A2E37836398413104D4EB /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 6EDF277F8CBDAD835EE62053EAE34E91 /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.release.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + CLANG_ENABLE_OBJC_WEAK = NO; + "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"; + ENABLE_MODULE_VERIFIER = NO; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + INFOPLIST_FILE = "Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.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; + }; + D0AB0AEF4014B926FCD853D3AE0A370A /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 419A961AD957E23BAB6A998ED7623134 /* Masonry.release.xcconfig */; + buildSettings = { + "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"; + ENABLE_MODULE_VERIFIER = NO; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_PREFIX_HEADER = "Target Support Files/Masonry/Masonry-prefix.pch"; + GENERATE_INFOPLIST_FILE = NO; + INFOPLIST_FILE = "Target Support Files/Masonry/Masonry-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 12; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MODULEMAP_FILE = "Target Support Files/Masonry/Masonry.modulemap"; + PRODUCT_MODULE_NAME = Masonry; + PRODUCT_NAME = Masonry; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_INSTALL_OBJC_HEADER = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + EAC0CAB963AECBFC5F3B2C0FCB9A3B66 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = E52AECB48D58DCDB737DCEB0A90D34B3 /* Pods-QGVAPlayerDemo.release.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + CLANG_ENABLE_OBJC_WEAK = NO; + "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"; + ENABLE_MODULE_VERIFIER = NO; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + INFOPLIST_FILE = "Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo.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; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2B9E26EAE2CD392AD762421F663075A1 /* Debug */, + 63FAF33E1C55B71A5F5A8B3CC8749F99 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + A25322E18D30652D669C440D00866AA0 /* Build configuration list for PBXNativeTarget "Pods-QGVAPlayerDemo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 75895A9E6F3B1E287EACEF473663B8B7 /* Debug */, + EAC0CAB963AECBFC5F3B2C0FCB9A3B66 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + AAA1F8799DB68036C3BE983C05FAA2C7 /* Build configuration list for PBXNativeTarget "Masonry" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2D1085CA7BD144CABF012FC10C6C9120 /* Debug */, + D0AB0AEF4014B926FCD853D3AE0A370A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + BD99EAA58FCD621DC1CAB2742E7CAE50 /* Build configuration list for PBXNativeTarget "Pods-QGVAPlayerDemoTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 141CCACDB1B92166C02BDCE2125380A1 /* Debug */, + 0A60FDE1F3AC40C8D28F6EED73B233A8 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + F913DE9F79E3980774E41C72A6CF3141 /* Build configuration list for PBXNativeTarget "Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 88DCCFFE88ADF6F8B6B26EDF70759F94 /* Debug */, + C9336C6D6D4A2E37836398413104D4EB /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; +} diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Masonry/Masonry-Info.plist b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Masonry/Masonry-Info.plist new file mode 100644 index 00000000..dc59427d --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Masonry/Masonry-Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + ${PODS_DEVELOPMENT_LANGUAGE} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + ${PRODUCT_BUNDLE_IDENTIFIER} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.1.0 + CFBundleSignature + ???? + CFBundleVersion + ${CURRENT_PROJECT_VERSION} + NSPrincipalClass + + + diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Masonry/Masonry-dummy.m b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Masonry/Masonry-dummy.m new file mode 100644 index 00000000..04001b1a --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Masonry/Masonry-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Masonry : NSObject +@end +@implementation PodsDummy_Masonry +@end diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Masonry/Masonry-prefix.pch b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Masonry/Masonry-prefix.pch new file mode 100644 index 00000000..beb2a244 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Masonry/Masonry-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/iOS/QGVAPlayerDemo/Pods/Target Support Files/Masonry/Masonry-umbrella.h b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Masonry/Masonry-umbrella.h new file mode 100644 index 00000000..3fe9c4c9 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Masonry/Masonry-umbrella.h @@ -0,0 +1,31 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "MASCompositeConstraint.h" +#import "MASConstraint+Private.h" +#import "MASConstraint.h" +#import "MASConstraintMaker.h" +#import "MASLayoutConstraint.h" +#import "Masonry.h" +#import "MASUtilities.h" +#import "MASViewAttribute.h" +#import "MASViewConstraint.h" +#import "NSArray+MASAdditions.h" +#import "NSArray+MASShorthandAdditions.h" +#import "NSLayoutConstraint+MASDebugAdditions.h" +#import "View+MASAdditions.h" +#import "View+MASShorthandAdditions.h" +#import "ViewController+MASAdditions.h" + +FOUNDATION_EXPORT double MasonryVersionNumber; +FOUNDATION_EXPORT const unsigned char MasonryVersionString[]; + diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Masonry/Masonry.debug.xcconfig b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Masonry/Masonry.debug.xcconfig new file mode 100644 index 00000000..233437f2 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Masonry/Masonry.debug.xcconfig @@ -0,0 +1,13 @@ +CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO +CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/Masonry +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +OTHER_LDFLAGS = $(inherited) -framework "Foundation" -framework "UIKit" +PODS_BUILD_DIR = ${BUILD_DIR} +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_DEVELOPMENT_LANGUAGE = ${DEVELOPMENT_LANGUAGE} +PODS_ROOT = ${SRCROOT} +PODS_TARGET_SRCROOT = ${PODS_ROOT}/Masonry +PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates +PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} +SKIP_INSTALL = YES +USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Masonry/Masonry.modulemap b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Masonry/Masonry.modulemap new file mode 100644 index 00000000..06ec492b --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Masonry/Masonry.modulemap @@ -0,0 +1,6 @@ +framework module Masonry { + umbrella header "Masonry-umbrella.h" + + export * + module * { export * } +} diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Masonry/Masonry.release.xcconfig b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Masonry/Masonry.release.xcconfig new file mode 100644 index 00000000..233437f2 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Masonry/Masonry.release.xcconfig @@ -0,0 +1,13 @@ +CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO +CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/Masonry +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +OTHER_LDFLAGS = $(inherited) -framework "Foundation" -framework "UIKit" +PODS_BUILD_DIR = ${BUILD_DIR} +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_DEVELOPMENT_LANGUAGE = ${DEVELOPMENT_LANGUAGE} +PODS_ROOT = ${SRCROOT} +PODS_TARGET_SRCROOT = ${PODS_ROOT}/Masonry +PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates +PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} +SKIP_INSTALL = YES +USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-Info.plist b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-Info.plist new file mode 100644 index 00000000..19cf209d --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + ${PODS_DEVELOPMENT_LANGUAGE} + 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/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-acknowledgements.markdown b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-acknowledgements.markdown new file mode 100644 index 00000000..2a481814 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-acknowledgements.markdown @@ -0,0 +1,25 @@ +# Acknowledgements +This application makes use of the following third party libraries: + +## Masonry + +Copyright (c) 2011-2012 Masonry Team - https://github.com/Masonry + +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/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-acknowledgements.plist b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-acknowledgements.plist new file mode 100644 index 00000000..ae25b598 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-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) 2011-2012 Masonry Team - https://github.com/Masonry + +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 + Masonry + Type + PSGroupSpecifier + + + FooterText + Generated by CocoaPods - https://cocoapods.org + Title + + Type + PSGroupSpecifier + + + StringsTable + Acknowledgements + Title + Acknowledgements + + diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-dummy.m b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-dummy.m new file mode 100644 index 00000000..8c27c8ec --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Pods_QGVAPlayerDemo_QGVAPlayerDemoUITests : NSObject +@end +@implementation PodsDummy_Pods_QGVAPlayerDemo_QGVAPlayerDemoUITests +@end diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-frameworks-Debug-input-files.xcfilelist b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-frameworks-Debug-input-files.xcfilelist new file mode 100644 index 00000000..1248b88f --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-frameworks-Debug-input-files.xcfilelist @@ -0,0 +1,2 @@ +${PODS_ROOT}/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-frameworks.sh +${BUILT_PRODUCTS_DIR}/Masonry/Masonry.framework \ No newline at end of file diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-frameworks-Debug-output-files.xcfilelist b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-frameworks-Debug-output-files.xcfilelist new file mode 100644 index 00000000..245da358 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-frameworks-Debug-output-files.xcfilelist @@ -0,0 +1 @@ +${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Masonry.framework \ No newline at end of file diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-frameworks-Release-input-files.xcfilelist b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-frameworks-Release-input-files.xcfilelist new file mode 100644 index 00000000..1248b88f --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-frameworks-Release-input-files.xcfilelist @@ -0,0 +1,2 @@ +${PODS_ROOT}/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-frameworks.sh +${BUILT_PRODUCTS_DIR}/Masonry/Masonry.framework \ No newline at end of file diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-frameworks-Release-output-files.xcfilelist b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-frameworks-Release-output-files.xcfilelist new file mode 100644 index 00000000..245da358 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-frameworks-Release-output-files.xcfilelist @@ -0,0 +1 @@ +${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Masonry.framework \ No newline at end of file diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-frameworks.sh b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-frameworks.sh new file mode 100755 index 00000000..dee6d3f5 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-frameworks.sh @@ -0,0 +1,186 @@ +#!/bin/sh +set -e +set -u +set -o pipefail + +function on_error { + echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" +} +trap 'on_error $LINENO' ERR + +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="${TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" +BCSYMBOLMAP_DIR="BCSymbolMaps" + + +# 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 -f "${source}")" + fi + + if [ -d "${source}/${BCSYMBOLMAP_DIR}" ]; then + # Locate and install any .bcsymbolmaps if present, and remove them from the .framework before the framework is copied + find "${source}/${BCSYMBOLMAP_DIR}" -name "*.bcsymbolmap"|while read f; do + echo "Installing $f" + install_bcsymbolmap "$f" "$destination" + rm "$f" + done + rmdir "${source}/${BCSYMBOLMAP_DIR}" + fi + + # Use filter instead of exclude so missing patterns don't throw errors. + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --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}" + elif [ -L "${binary}" ]; then + echo "Destination binary is symlinked..." + dirname="$(dirname "${binary}")" + binary="${dirname}/$(readlink "${binary}")" + 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) + 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" + warn_missing_arch=${2:-true} + if [ -r "$source" ]; then + # Copy the dSYM into 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 .dSYM "$source")" + binary_name="$(ls "$source/Contents/Resources/DWARF")" + binary="${DERIVED_FILES_DIR}/${basename}.dSYM/Contents/Resources/DWARF/${binary_name}" + + # Strip invalid architectures from the dSYM. + if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then + strip_invalid_archs "$binary" "$warn_missing_arch" + fi + if [[ $STRIP_BINARY_RETVAL == 0 ]]; then + # Move the stripped file into its final destination. + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --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[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.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. + mkdir -p "${DWARF_DSYM_FOLDER_PATH}" + touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.dSYM" + fi + fi +} + +# Used as a return value for each invocation of `strip_invalid_archs` function. +STRIP_BINARY_RETVAL=0 + +# Strip invalid architectures +strip_invalid_archs() { + binary="$1" + warn_missing_arch=${2:-true} + # 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 + if [[ "$warn_missing_arch" == "true" ]]; then + echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." + fi + STRIP_BINARY_RETVAL=1 + 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" + stripped="$stripped $arch" + fi + done + if [[ "$stripped" ]]; then + echo "Stripped $binary of architectures:$stripped" + fi + STRIP_BINARY_RETVAL=0 +} + +# Copies the bcsymbolmap files of a vendored framework +install_bcsymbolmap() { + local bcsymbolmap_path="$1" + local destination="${BUILT_PRODUCTS_DIR}" + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" +} + +# 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_identity + 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 +} + +if [[ "$CONFIGURATION" == "Debug" ]]; then + install_framework "${BUILT_PRODUCTS_DIR}/Masonry/Masonry.framework" +fi +if [[ "$CONFIGURATION" == "Release" ]]; then + install_framework "${BUILT_PRODUCTS_DIR}/Masonry/Masonry.framework" +fi +if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then + wait +fi diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-umbrella.h b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-umbrella.h new file mode 100644 index 00000000..dd2cc5a8 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-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_QGVAPlayerDemo_QGVAPlayerDemoUITestsVersionNumber; +FOUNDATION_EXPORT const unsigned char Pods_QGVAPlayerDemo_QGVAPlayerDemoUITestsVersionString[]; + diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.debug.xcconfig b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.debug.xcconfig new file mode 100644 index 00000000..eb136a1d --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.debug.xcconfig @@ -0,0 +1,13 @@ +CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Masonry" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Masonry/Masonry.framework/Headers" +LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' +OTHER_LDFLAGS = $(inherited) -framework "Foundation" -framework "Masonry" -framework "UIKit" +OTHER_MODULE_VERIFIER_FLAGS = $(inherited) "-F${PODS_CONFIGURATION_BUILD_DIR}/Masonry" +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 +PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates +USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.modulemap b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.modulemap new file mode 100644 index 00000000..dc93ae63 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.modulemap @@ -0,0 +1,6 @@ +framework module Pods_QGVAPlayerDemo_QGVAPlayerDemoUITests { + umbrella header "Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-umbrella.h" + + export * + module * { export * } +} diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.release.xcconfig b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.release.xcconfig new file mode 100644 index 00000000..eb136a1d --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.release.xcconfig @@ -0,0 +1,13 @@ +CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Masonry" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Masonry/Masonry.framework/Headers" +LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' +OTHER_LDFLAGS = $(inherited) -framework "Foundation" -framework "Masonry" -framework "UIKit" +OTHER_MODULE_VERIFIER_FLAGS = $(inherited) "-F${PODS_CONFIGURATION_BUILD_DIR}/Masonry" +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 +PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates +USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-Info.plist b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-Info.plist new file mode 100644 index 00000000..19cf209d --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + ${PODS_DEVELOPMENT_LANGUAGE} + 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/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-acknowledgements.markdown b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-acknowledgements.markdown new file mode 100644 index 00000000..2a481814 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-acknowledgements.markdown @@ -0,0 +1,25 @@ +# Acknowledgements +This application makes use of the following third party libraries: + +## Masonry + +Copyright (c) 2011-2012 Masonry Team - https://github.com/Masonry + +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/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-acknowledgements.plist b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-acknowledgements.plist new file mode 100644 index 00000000..ae25b598 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-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) 2011-2012 Masonry Team - https://github.com/Masonry + +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 + Masonry + Type + PSGroupSpecifier + + + FooterText + Generated by CocoaPods - https://cocoapods.org + Title + + Type + PSGroupSpecifier + + + StringsTable + Acknowledgements + Title + Acknowledgements + + diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-dummy.m b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-dummy.m new file mode 100644 index 00000000..934b5bd4 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Pods_QGVAPlayerDemo : NSObject +@end +@implementation PodsDummy_Pods_QGVAPlayerDemo +@end diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-frameworks-Debug-input-files.xcfilelist b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-frameworks-Debug-input-files.xcfilelist new file mode 100644 index 00000000..5b70553a --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-frameworks-Debug-input-files.xcfilelist @@ -0,0 +1,2 @@ +${PODS_ROOT}/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-frameworks.sh +${BUILT_PRODUCTS_DIR}/Masonry/Masonry.framework \ No newline at end of file diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-frameworks-Debug-output-files.xcfilelist b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-frameworks-Debug-output-files.xcfilelist new file mode 100644 index 00000000..245da358 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-frameworks-Debug-output-files.xcfilelist @@ -0,0 +1 @@ +${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Masonry.framework \ No newline at end of file diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-frameworks-Release-input-files.xcfilelist b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-frameworks-Release-input-files.xcfilelist new file mode 100644 index 00000000..5b70553a --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-frameworks-Release-input-files.xcfilelist @@ -0,0 +1,2 @@ +${PODS_ROOT}/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-frameworks.sh +${BUILT_PRODUCTS_DIR}/Masonry/Masonry.framework \ No newline at end of file diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-frameworks-Release-output-files.xcfilelist b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-frameworks-Release-output-files.xcfilelist new file mode 100644 index 00000000..245da358 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-frameworks-Release-output-files.xcfilelist @@ -0,0 +1 @@ +${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Masonry.framework \ No newline at end of file diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-frameworks.sh b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-frameworks.sh new file mode 100755 index 00000000..dee6d3f5 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-frameworks.sh @@ -0,0 +1,186 @@ +#!/bin/sh +set -e +set -u +set -o pipefail + +function on_error { + echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" +} +trap 'on_error $LINENO' ERR + +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="${TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" +BCSYMBOLMAP_DIR="BCSymbolMaps" + + +# 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 -f "${source}")" + fi + + if [ -d "${source}/${BCSYMBOLMAP_DIR}" ]; then + # Locate and install any .bcsymbolmaps if present, and remove them from the .framework before the framework is copied + find "${source}/${BCSYMBOLMAP_DIR}" -name "*.bcsymbolmap"|while read f; do + echo "Installing $f" + install_bcsymbolmap "$f" "$destination" + rm "$f" + done + rmdir "${source}/${BCSYMBOLMAP_DIR}" + fi + + # Use filter instead of exclude so missing patterns don't throw errors. + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --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}" + elif [ -L "${binary}" ]; then + echo "Destination binary is symlinked..." + dirname="$(dirname "${binary}")" + binary="${dirname}/$(readlink "${binary}")" + 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) + 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" + warn_missing_arch=${2:-true} + if [ -r "$source" ]; then + # Copy the dSYM into 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 .dSYM "$source")" + binary_name="$(ls "$source/Contents/Resources/DWARF")" + binary="${DERIVED_FILES_DIR}/${basename}.dSYM/Contents/Resources/DWARF/${binary_name}" + + # Strip invalid architectures from the dSYM. + if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then + strip_invalid_archs "$binary" "$warn_missing_arch" + fi + if [[ $STRIP_BINARY_RETVAL == 0 ]]; then + # Move the stripped file into its final destination. + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --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[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.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. + mkdir -p "${DWARF_DSYM_FOLDER_PATH}" + touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.dSYM" + fi + fi +} + +# Used as a return value for each invocation of `strip_invalid_archs` function. +STRIP_BINARY_RETVAL=0 + +# Strip invalid architectures +strip_invalid_archs() { + binary="$1" + warn_missing_arch=${2:-true} + # 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 + if [[ "$warn_missing_arch" == "true" ]]; then + echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." + fi + STRIP_BINARY_RETVAL=1 + 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" + stripped="$stripped $arch" + fi + done + if [[ "$stripped" ]]; then + echo "Stripped $binary of architectures:$stripped" + fi + STRIP_BINARY_RETVAL=0 +} + +# Copies the bcsymbolmap files of a vendored framework +install_bcsymbolmap() { + local bcsymbolmap_path="$1" + local destination="${BUILT_PRODUCTS_DIR}" + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" +} + +# 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_identity + 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 +} + +if [[ "$CONFIGURATION" == "Debug" ]]; then + install_framework "${BUILT_PRODUCTS_DIR}/Masonry/Masonry.framework" +fi +if [[ "$CONFIGURATION" == "Release" ]]; then + install_framework "${BUILT_PRODUCTS_DIR}/Masonry/Masonry.framework" +fi +if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then + wait +fi diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-umbrella.h b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-umbrella.h new file mode 100644 index 00000000..41761962 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-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_QGVAPlayerDemoVersionNumber; +FOUNDATION_EXPORT const unsigned char Pods_QGVAPlayerDemoVersionString[]; + diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo.debug.xcconfig b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo.debug.xcconfig new file mode 100644 index 00000000..eb136a1d --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo.debug.xcconfig @@ -0,0 +1,13 @@ +CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Masonry" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Masonry/Masonry.framework/Headers" +LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' +OTHER_LDFLAGS = $(inherited) -framework "Foundation" -framework "Masonry" -framework "UIKit" +OTHER_MODULE_VERIFIER_FLAGS = $(inherited) "-F${PODS_CONFIGURATION_BUILD_DIR}/Masonry" +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 +PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates +USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo.modulemap b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo.modulemap new file mode 100644 index 00000000..e81b56a9 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo.modulemap @@ -0,0 +1,6 @@ +framework module Pods_QGVAPlayerDemo { + umbrella header "Pods-QGVAPlayerDemo-umbrella.h" + + export * + module * { export * } +} diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo.release.xcconfig b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo.release.xcconfig new file mode 100644 index 00000000..eb136a1d --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo.release.xcconfig @@ -0,0 +1,13 @@ +CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Masonry" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Masonry/Masonry.framework/Headers" +LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' +OTHER_LDFLAGS = $(inherited) -framework "Foundation" -framework "Masonry" -framework "UIKit" +OTHER_MODULE_VERIFIER_FLAGS = $(inherited) "-F${PODS_CONFIGURATION_BUILD_DIR}/Masonry" +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 +PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates +USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests-Info.plist b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests-Info.plist new file mode 100644 index 00000000..19cf209d --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests-Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + ${PODS_DEVELOPMENT_LANGUAGE} + 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/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests-acknowledgements.markdown b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests-acknowledgements.markdown new file mode 100644 index 00000000..102af753 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests-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/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests-acknowledgements.plist b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests-acknowledgements.plist new file mode 100644 index 00000000..7acbad1e --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests-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/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests-dummy.m b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests-dummy.m new file mode 100644 index 00000000..19e09163 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Pods_QGVAPlayerDemoTests : NSObject +@end +@implementation PodsDummy_Pods_QGVAPlayerDemoTests +@end diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests-umbrella.h b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests-umbrella.h new file mode 100644 index 00000000..fcd4ca73 --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests-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_QGVAPlayerDemoTestsVersionNumber; +FOUNDATION_EXPORT const unsigned char Pods_QGVAPlayerDemoTestsVersionString[]; + diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests.debug.xcconfig b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests.debug.xcconfig new file mode 100644 index 00000000..9b50b35b --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests.debug.xcconfig @@ -0,0 +1,11 @@ +CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Masonry" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Masonry/Masonry.framework/Headers" +OTHER_LDFLAGS = $(inherited) -framework "Foundation" -framework "Masonry" -framework "UIKit" +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 +PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates +USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests.modulemap b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests.modulemap new file mode 100644 index 00000000..cd71a26b --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests.modulemap @@ -0,0 +1,6 @@ +framework module Pods_QGVAPlayerDemoTests { + umbrella header "Pods-QGVAPlayerDemoTests-umbrella.h" + + export * + module * { export * } +} diff --git a/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests.release.xcconfig b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests.release.xcconfig new file mode 100644 index 00000000..9b50b35b --- /dev/null +++ b/iOS/QGVAPlayerDemo/Pods/Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests.release.xcconfig @@ -0,0 +1,11 @@ +CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Masonry" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Masonry/Masonry.framework/Headers" +OTHER_LDFLAGS = $(inherited) -framework "Foundation" -framework "Masonry" -framework "UIKit" +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 +PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates +USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES diff --git a/iOS/QGVAPlayerDemo/QGVAPlayerDemo.xcodeproj/project.pbxproj b/iOS/QGVAPlayerDemo/QGVAPlayerDemo.xcodeproj/project.pbxproj index bffb3be9..478ce063 100644 --- a/iOS/QGVAPlayerDemo/QGVAPlayerDemo.xcodeproj/project.pbxproj +++ b/iOS/QGVAPlayerDemo/QGVAPlayerDemo.xcodeproj/project.pbxproj @@ -3,10 +3,11 @@ archiveVersion = 1; classes = { }; - objectVersion = 50; + objectVersion = 54; objects = { /* Begin PBXBuildFile section */ + 60442A3CF302890DF678922D /* Pods_QGVAPlayerDemoTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EB8E86ABF2CA596FDE03A5E6 /* Pods_QGVAPlayerDemoTests.framework */; }; 63BAD38822F09B1200EAD4C4 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 63BAD38722F09B1200EAD4C4 /* AppDelegate.m */; }; 63BAD38B22F09B1200EAD4C4 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 63BAD38A22F09B1200EAD4C4 /* ViewController.m */; }; 63BAD38E22F09B1200EAD4C4 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 63BAD38C22F09B1200EAD4C4 /* Main.storyboard */; }; @@ -19,6 +20,10 @@ 63BAD43422F09D2800EAD4C4 /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 63BAD43322F09D2700EAD4C4 /* libz.tbd */; }; 63BAD44322F0A02C00EAD4C4 /* QGVAPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 63BAD43B22F09D6800EAD4C4 /* QGVAPlayer.framework */; }; 63BAD44422F0A02C00EAD4C4 /* QGVAPlayer.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 63BAD43B22F09D6800EAD4C4 /* QGVAPlayer.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 95F56615B9B112BFC59E36DF /* Pods_QGVAPlayerDemo_QGVAPlayerDemoUITests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A85ED96DB686F78B5A53D613 /* Pods_QGVAPlayerDemo_QGVAPlayerDemoUITests.framework */; }; + 98BC1C4C2DA683B400BA89CD /* HomeViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 98BC1C4B2DA683B400BA89CD /* HomeViewController.m */; }; + 98BC1C4F2DA6847F00BA89CD /* SecondViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 98BC1C4E2DA6847F00BA89CD /* SecondViewController.m */; }; + AB4C95119758AD5063411273 /* Pods_QGVAPlayerDemo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6ABBC7F349C63EA9A501092A /* Pods_QGVAPlayerDemo.framework */; }; BA964B5F268315E6003265F2 /* CHANGELOG.md in Resources */ = {isa = PBXBuildFile; fileRef = BA964B5D268315E6003265F2 /* CHANGELOG.md */; }; BA964B6326831AF1003265F2 /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = BA964B6126831AF1003265F2 /* README.md */; }; BA964B6526831BB6003265F2 /* QGVAPlayer.podspec in Resources */ = {isa = PBXBuildFile; fileRef = BA964B6426831BB6003265F2 /* QGVAPlayer.podspec */; }; @@ -84,6 +89,10 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + 0123BE30D4C246F5F96D4C10 /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.release.xcconfig"; path = "Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.release.xcconfig"; sourceTree = ""; }; + 12BE062B7AEB0E95C2B0071B /* Pods-QGVAPlayerDemoTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-QGVAPlayerDemoTests.release.xcconfig"; path = "Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests.release.xcconfig"; sourceTree = ""; }; + 2F0D3FF41A3B3C3B8D04A221 /* Pods-QGVAPlayerDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-QGVAPlayerDemo.debug.xcconfig"; path = "Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo.debug.xcconfig"; sourceTree = ""; }; + 3A340CD4436AB4F87F12EDC6 /* Pods-QGVAPlayerDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-QGVAPlayerDemo.release.xcconfig"; path = "Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo.release.xcconfig"; sourceTree = ""; }; 63BAD38322F09B1200EAD4C4 /* QGVAPlayerDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = QGVAPlayerDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 63BAD38622F09B1200EAD4C4 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 63BAD38722F09B1200EAD4C4 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; @@ -103,9 +112,18 @@ 63BAD3B822F09BAF00EAD4C4 /* Resource */ = {isa = PBXFileReference; lastKnownFileType = folder; path = Resource; sourceTree = ""; }; 63BAD43322F09D2700EAD4C4 /* libz.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; }; 63BAD43522F09D6800EAD4C4 /* QGVAPlayer.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = QGVAPlayer.xcodeproj; path = ../../QGVAPlayer/QGVAPlayer.xcodeproj; sourceTree = ""; }; + 6ABBC7F349C63EA9A501092A /* Pods_QGVAPlayerDemo.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_QGVAPlayerDemo.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 9618385C800F58A4C0569C8D /* Pods-QGVAPlayerDemoTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-QGVAPlayerDemoTests.debug.xcconfig"; path = "Target Support Files/Pods-QGVAPlayerDemoTests/Pods-QGVAPlayerDemoTests.debug.xcconfig"; sourceTree = ""; }; + 973FD2B05C71C494C362CCAE /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.debug.xcconfig"; path = "Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.debug.xcconfig"; sourceTree = ""; }; + 98BC1C4A2DA683B400BA89CD /* HomeViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HomeViewController.h; sourceTree = ""; }; + 98BC1C4B2DA683B400BA89CD /* HomeViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HomeViewController.m; sourceTree = ""; }; + 98BC1C4D2DA6847F00BA89CD /* SecondViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SecondViewController.h; sourceTree = ""; }; + 98BC1C4E2DA6847F00BA89CD /* SecondViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SecondViewController.m; sourceTree = ""; }; + A85ED96DB686F78B5A53D613 /* Pods_QGVAPlayerDemo_QGVAPlayerDemoUITests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_QGVAPlayerDemo_QGVAPlayerDemoUITests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; BA964B5D268315E6003265F2 /* CHANGELOG.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; name = CHANGELOG.md; path = ../CHANGELOG.md; sourceTree = ""; }; BA964B6126831AF1003265F2 /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; BA964B6426831BB6003265F2 /* QGVAPlayer.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = QGVAPlayer.podspec; path = ../../QGVAPlayer.podspec; sourceTree = ""; }; + EB8E86ABF2CA596FDE03A5E6 /* Pods_QGVAPlayerDemoTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_QGVAPlayerDemoTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -115,6 +133,7 @@ files = ( 63BAD43422F09D2800EAD4C4 /* libz.tbd in Frameworks */, 63BAD44322F0A02C00EAD4C4 /* QGVAPlayer.framework in Frameworks */, + AB4C95119758AD5063411273 /* Pods_QGVAPlayerDemo.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -122,6 +141,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 60442A3CF302890DF678922D /* Pods_QGVAPlayerDemoTests.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -129,12 +149,26 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 95F56615B9B112BFC59E36DF /* Pods_QGVAPlayerDemo_QGVAPlayerDemoUITests.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ + 57C8D61F6ED762A13893795C /* Pods */ = { + isa = PBXGroup; + children = ( + 2F0D3FF41A3B3C3B8D04A221 /* Pods-QGVAPlayerDemo.debug.xcconfig */, + 3A340CD4436AB4F87F12EDC6 /* Pods-QGVAPlayerDemo.release.xcconfig */, + 973FD2B05C71C494C362CCAE /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.debug.xcconfig */, + 0123BE30D4C246F5F96D4C10 /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.release.xcconfig */, + 9618385C800F58A4C0569C8D /* Pods-QGVAPlayerDemoTests.debug.xcconfig */, + 12BE062B7AEB0E95C2B0071B /* Pods-QGVAPlayerDemoTests.release.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; 63BAD37A22F09B1200EAD4C4 = { isa = PBXGroup; children = ( @@ -147,6 +181,7 @@ 63BAD3A922F09B1500EAD4C4 /* QGVAPlayerDemoUITests */, 63BAD38422F09B1200EAD4C4 /* Products */, 63BAD42222F09C8700EAD4C4 /* Frameworks */, + 57C8D61F6ED762A13893795C /* Pods */, ); sourceTree = ""; }; @@ -173,6 +208,10 @@ 63BAD39122F09B1500EAD4C4 /* LaunchScreen.storyboard */, 63BAD39422F09B1500EAD4C4 /* Info.plist */, 63BAD39522F09B1500EAD4C4 /* main.m */, + 98BC1C4A2DA683B400BA89CD /* HomeViewController.h */, + 98BC1C4B2DA683B400BA89CD /* HomeViewController.m */, + 98BC1C4D2DA6847F00BA89CD /* SecondViewController.h */, + 98BC1C4E2DA6847F00BA89CD /* SecondViewController.m */, ); path = QGVAPlayerDemo; sourceTree = ""; @@ -199,6 +238,9 @@ isa = PBXGroup; children = ( 63BAD43322F09D2700EAD4C4 /* libz.tbd */, + 6ABBC7F349C63EA9A501092A /* Pods_QGVAPlayerDemo.framework */, + A85ED96DB686F78B5A53D613 /* Pods_QGVAPlayerDemo_QGVAPlayerDemoUITests.framework */, + EB8E86ABF2CA596FDE03A5E6 /* Pods_QGVAPlayerDemoTests.framework */, ); name = Frameworks; sourceTree = ""; @@ -219,10 +261,12 @@ isa = PBXNativeTarget; buildConfigurationList = 63BAD3AF22F09B1500EAD4C4 /* Build configuration list for PBXNativeTarget "QGVAPlayerDemo" */; buildPhases = ( + CC696ACA0CED858905A44618 /* [CP] Check Pods Manifest.lock */, 63BAD37F22F09B1200EAD4C4 /* Sources */, 63BAD38022F09B1200EAD4C4 /* Frameworks */, 63BAD38122F09B1200EAD4C4 /* Resources */, 63BAD44722F0A02C00EAD4C4 /* Embed Frameworks */, + 03312178AC11DC262840AEC8 /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -239,6 +283,7 @@ isa = PBXNativeTarget; buildConfigurationList = 63BAD3B222F09B1500EAD4C4 /* Build configuration list for PBXNativeTarget "QGVAPlayerDemoTests" */; buildPhases = ( + 53BD77FE51BFD74DD97B5975 /* [CP] Check Pods Manifest.lock */, 63BAD39722F09B1500EAD4C4 /* Sources */, 63BAD39822F09B1500EAD4C4 /* Frameworks */, 63BAD39922F09B1500EAD4C4 /* Resources */, @@ -257,9 +302,11 @@ isa = PBXNativeTarget; buildConfigurationList = 63BAD3B522F09B1500EAD4C4 /* Build configuration list for PBXNativeTarget "QGVAPlayerDemoUITests" */; buildPhases = ( + F6FB24EF628F4264EEE5690B /* [CP] Check Pods Manifest.lock */, 63BAD3A222F09B1500EAD4C4 /* Sources */, 63BAD3A322F09B1500EAD4C4 /* Frameworks */, 63BAD3A422F09B1500EAD4C4 /* Resources */, + F5D9239F7BC826D2357241E7 /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -367,14 +414,119 @@ }; /* End PBXResourcesBuildPhase section */ +/* Begin PBXShellScriptBuildPhase section */ + 03312178AC11DC262840AEC8 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-QGVAPlayerDemo/Pods-QGVAPlayerDemo-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + 53BD77FE51BFD74DD97B5975 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-QGVAPlayerDemoTests-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; + }; + CC696ACA0CED858905A44618 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-QGVAPlayerDemo-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; + }; + F5D9239F7BC826D2357241E7 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + F6FB24EF628F4264EEE5690B /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests-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 */ 63BAD37F22F09B1200EAD4C4 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + 98BC1C4F2DA6847F00BA89CD /* SecondViewController.m in Sources */, 63BAD38B22F09B1200EAD4C4 /* ViewController.m in Sources */, 63BAD39622F09B1500EAD4C4 /* main.m in Sources */, 63BAD38822F09B1200EAD4C4 /* AppDelegate.m in Sources */, + 98BC1C4C2DA683B400BA89CD /* HomeViewController.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -553,16 +705,17 @@ }; 63BAD3B022F09B1500EAD4C4 /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 2F0D3FF41A3B3C3B8D04A221 /* Pods-QGVAPlayerDemo.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_STYLE = Automatic; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - DEVELOPMENT_TEAM = 6W55574XBS; + DEVELOPMENT_TEAM = YQ2BBNYL5U; ENABLE_BITCODE = NO; FRAMEWORK_SEARCH_PATHS = "$(inherited)"; HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/../QGVAPlayer/QGVAPlayer/**"; INFOPLIST_FILE = QGVAPlayerDemo/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 12; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -576,15 +729,16 @@ }; 63BAD3B122F09B1500EAD4C4 /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 3A340CD4436AB4F87F12EDC6 /* Pods-QGVAPlayerDemo.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = 6W55574XBS; + DEVELOPMENT_TEAM = YQ2BBNYL5U; ENABLE_BITCODE = NO; FRAMEWORK_SEARCH_PATHS = "$(inherited)"; HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/../QGVAPlayer/QGVAPlayer/**"; INFOPLIST_FILE = QGVAPlayerDemo/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 12; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -598,11 +752,13 @@ }; 63BAD3B322F09B1500EAD4C4 /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 9618385C800F58A4C0569C8D /* Pods-QGVAPlayerDemoTests.debug.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = 6W55574XBS; + DEVELOPMENT_TEAM = YQ2BBNYL5U; INFOPLIST_FILE = QGVAPlayerDemoTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 12; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -617,11 +773,13 @@ }; 63BAD3B422F09B1500EAD4C4 /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 12BE062B7AEB0E95C2B0071B /* Pods-QGVAPlayerDemoTests.release.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = 6W55574XBS; + DEVELOPMENT_TEAM = YQ2BBNYL5U; INFOPLIST_FILE = QGVAPlayerDemoTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 12; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -636,10 +794,12 @@ }; 63BAD3B622F09B1500EAD4C4 /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 973FD2B05C71C494C362CCAE /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.debug.xcconfig */; buildSettings = { CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = 6W55574XBS; + DEVELOPMENT_TEAM = YQ2BBNYL5U; INFOPLIST_FILE = QGVAPlayerDemoUITests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 12; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -654,10 +814,12 @@ }; 63BAD3B722F09B1500EAD4C4 /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 0123BE30D4C246F5F96D4C10 /* Pods-QGVAPlayerDemo-QGVAPlayerDemoUITests.release.xcconfig */; buildSettings = { CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = 6W55574XBS; + DEVELOPMENT_TEAM = YQ2BBNYL5U; INFOPLIST_FILE = QGVAPlayerDemoUITests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 12; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/iOS/QGVAPlayerDemo/QGVAPlayerDemo.xcworkspace/contents.xcworkspacedata b/iOS/QGVAPlayerDemo/QGVAPlayerDemo.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..3079c0e1 --- /dev/null +++ b/iOS/QGVAPlayerDemo/QGVAPlayerDemo.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/iOS/QGVAPlayerDemo/QGVAPlayerDemo/Base.lproj/Main.storyboard b/iOS/QGVAPlayerDemo/QGVAPlayerDemo/Base.lproj/Main.storyboard index 9b52a8ea..4807b652 100644 --- a/iOS/QGVAPlayerDemo/QGVAPlayerDemo/Base.lproj/Main.storyboard +++ b/iOS/QGVAPlayerDemo/QGVAPlayerDemo/Base.lproj/Main.storyboard @@ -1,18 +1,17 @@ - - - - + + - + + - + - + @@ -20,11 +19,79 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/iOS/QGVAPlayerDemo/QGVAPlayerDemo/HomeViewController.h b/iOS/QGVAPlayerDemo/QGVAPlayerDemo/HomeViewController.h new file mode 100644 index 00000000..b707f136 --- /dev/null +++ b/iOS/QGVAPlayerDemo/QGVAPlayerDemo/HomeViewController.h @@ -0,0 +1,17 @@ +// +// HomeViewController.h +// QGVAPlayerDemo +// +// Created by york on 2025/4/9. +// Copyright © 2025 Tencent. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface HomeViewController : UIViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/iOS/QGVAPlayerDemo/QGVAPlayerDemo/HomeViewController.m b/iOS/QGVAPlayerDemo/QGVAPlayerDemo/HomeViewController.m new file mode 100644 index 00000000..74ab4d93 --- /dev/null +++ b/iOS/QGVAPlayerDemo/QGVAPlayerDemo/HomeViewController.m @@ -0,0 +1,39 @@ +// +// HomeViewController.m +// QGVAPlayerDemo +// +// Created by york on 2025/4/9. +// Copyright © 2025 Tencent. All rights reserved. +// + +#import "ViewController.h" +#import "HomeViewController.h" + +@interface HomeViewController () + +@end + +@implementation HomeViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view. + +} +- (IBAction)test1Click:(id)sender { + ViewController * toVC = [[ViewController alloc] init]; + [self.navigationController pushViewController:toVC animated:YES]; +} + + +/* +#pragma mark - Navigation + +// In a storyboard-based application, you will often want to do a little preparation before navigation +- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { + // Get the new view controller using [segue destinationViewController]. + // Pass the selected object to the new view controller. +} +*/ + +@end diff --git a/iOS/QGVAPlayerDemo/QGVAPlayerDemo/Info.plist b/iOS/QGVAPlayerDemo/QGVAPlayerDemo/Info.plist index 045fffa0..ac47b91a 100644 --- a/iOS/QGVAPlayerDemo/QGVAPlayerDemo/Info.plist +++ b/iOS/QGVAPlayerDemo/QGVAPlayerDemo/Info.plist @@ -35,15 +35,16 @@ UISupportedInterfaceOrientations - UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight + UIInterfaceOrientationPortrait UISupportedInterfaceOrientations~ipad - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown diff --git a/iOS/QGVAPlayerDemo/QGVAPlayerDemo/SecondViewController.h b/iOS/QGVAPlayerDemo/QGVAPlayerDemo/SecondViewController.h new file mode 100644 index 00000000..c5f1f0dc --- /dev/null +++ b/iOS/QGVAPlayerDemo/QGVAPlayerDemo/SecondViewController.h @@ -0,0 +1,17 @@ +// +// SecondViewController.h +// QGVAPlayerDemo +// +// Created by york on 2025/4/9. +// Copyright © 2025 Tencent. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface SecondViewController : UIViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/iOS/QGVAPlayerDemo/QGVAPlayerDemo/SecondViewController.m b/iOS/QGVAPlayerDemo/QGVAPlayerDemo/SecondViewController.m new file mode 100644 index 00000000..502f8886 --- /dev/null +++ b/iOS/QGVAPlayerDemo/QGVAPlayerDemo/SecondViewController.m @@ -0,0 +1,32 @@ +// +// SecondViewController.m +// QGVAPlayerDemo +// +// Created by york on 2025/4/9. +// Copyright © 2025 Tencent. All rights reserved. +// + +#import "SecondViewController.h" + +@interface SecondViewController () + +@end + +@implementation SecondViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view. +} + +/* +#pragma mark - Navigation + +// In a storyboard-based application, you will often want to do a little preparation before navigation +- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { + // Get the new view controller using [segue destinationViewController]. + // Pass the selected object to the new view controller. +} +*/ + +@end diff --git a/iOS/QGVAPlayerDemo/QGVAPlayerDemo/ViewController.m b/iOS/QGVAPlayerDemo/QGVAPlayerDemo/ViewController.m index 8b793f12..94b977cb 100644 --- a/iOS/QGVAPlayerDemo/QGVAPlayerDemo/ViewController.m +++ b/iOS/QGVAPlayerDemo/QGVAPlayerDemo/ViewController.m @@ -13,10 +13,12 @@ // either express or implied. See the License for the specific language governing permissions and // limitations under the License. +#import #import "ViewController.h" #import "UIView+VAP.h" #import "QGVAPWrapView.h" - +#import "QGBaseAnimatedImageFrame.h" +#import "QGMP4AnimatedImageFrame.h" #import @interface ViewController () @@ -96,7 +98,11 @@ - (void)playVap { //默认使用metal渲染,使用OpenGL请打开下面这个开关 // mp4View.hwd_renderByOpenGL = YES; mp4View.center = self.view.center; + [self.view addSubview:mp4View]; + [mp4View mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.right.bottom.mas_equalTo(0); + }]; mp4View.userInteractionEnabled = YES; mp4View.hwd_enterBackgroundOP = HWDMP4EBOperationTypeStop; UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(onImageviewTap:)]; @@ -116,6 +122,9 @@ - (void)playVapx { NSString *mp4Path = [NSString stringWithFormat:@"%@/Resource/vap.mp4", [[NSBundle mainBundle] resourcePath]]; VAPView *mp4View = [[VAPView alloc] initWithFrame:self.view.bounds]; [self.view addSubview:mp4View]; + [mp4View mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.right.bottom.mas_equalTo(0); + }]; mp4View.center = self.view.center; mp4View.userInteractionEnabled = YES; mp4View.hwd_enterBackgroundOP = HWDMP4EBOperationTypePauseAndResume; // ⚠️ 建议设置该选项时对机型进行判断,屏蔽低端机 @@ -137,12 +146,15 @@ - (void)playVapWithWrapView { static BOOL pause = NO; QGVAPWrapView *wrapView = [[QGVAPWrapView alloc] initWithFrame:self.view.bounds]; wrapView.center = self.view.center; - wrapView.contentMode = QGVAPWrapViewContentModeAspectFit; - wrapView.autoDestoryAfterFinish = YES; + wrapView.contentMode = QGVAPWrapViewContentModeAspectFill; + wrapView.autoDestoryAfterFinish = NO; [self.view addSubview:wrapView]; + [wrapView mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.right.bottom.mas_equalTo(0); + }]; NSString *resPath = [NSString stringWithFormat:@"%@/Resource/vap.mp4", [[NSBundle mainBundle] resourcePath]]; - [wrapView setMute:YES]; - [wrapView playHWDMP4:resPath repeatCount:-1 delegate:self]; + [wrapView setMute:NO]; + [wrapView playHWDMP4:resPath repeatCount:0 delegate:self]; UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(doNothingonImageviewTap:)]; __weak __typeof(wrapView) weakWrapView = wrapView; @@ -164,14 +176,17 @@ - (void)viewDidStartPlayMP4:(VAPView *)container { - (void)viewDidFinishPlayMP4:(NSInteger)totalFrameCount view:(UIView *)container { //note:在子线程被调用 + NSLog(@"totalFrameCount -- %ld",totalFrameCount); } - (void)viewDidPlayMP4AtFrame:(QGMP4AnimatedImageFrame *)frame view:(UIView *)container { //note:在子线程被调用 + NSLog(@"frame -- %@",frame); } - (void)viewDidStopPlayMP4:(NSInteger)lastFrameIndex view:(UIView *)container { //note:在子线程被调用 + NSLog(@"lastFrameIndex -- %ld",lastFrameIndex); dispatch_async(dispatch_get_main_queue(), ^{ [container removeFromSuperview]; }); @@ -185,6 +200,9 @@ - (void)viewDidFailPlayMP4:(NSError *)error { NSLog(@"%@", error.userInfo); } + + + #pragma mark -- 融合特效的接口 vapx //provide the content for tags, maybe text or url string ... @@ -237,4 +255,29 @@ - (void)vapWrapView_loadVapImageWithURL:(NSString *)urlStr context:(NSDictionary }); } + +- (void)vapWrap_viewDidStartPlayMP4:(VAPView *)container { + +} +- (void)vapWrap_viewDidPlayMP4AtFrame:(QGMP4AnimatedImageFrame*)frame view:(VAPView *)container { + QGMP4AnimatedImageFrame * frameModel = frame; + + NSLog(@"frame.frameIndex -- %ld",frameModel.frameIndex); + NSLog(@"frame.duration -- %d",frameModel.duration); + if (frameModel.frameIndex >= 150) { + [container pauseHWDMP4]; + } + +} +- (void)vapWrap_viewDidStopPlayMP4:(NSInteger)lastFrameIndex view:(VAPView *)container { + //note:在子线程被调用 + NSLog(@"lastFrameIndex -- %ld",lastFrameIndex); + dispatch_async(dispatch_get_main_queue(), ^{ + [container removeFromSuperview]; + }); +} +- (void)vapWrap_viewDidFinishPlayMP4:(NSInteger)totalFrameCount view:(VAPView *)container { + NSLog(@"totalFrameCount -- %ld",totalFrameCount); + +} @end diff --git a/iOS/QGVAPlayerDemoSwift/QGVAPlayerDemoSwift.xcodeproj/project.pbxproj b/iOS/QGVAPlayerDemoSwift/QGVAPlayerDemoSwift.xcodeproj/project.pbxproj index 0fdaf882..06496a59 100644 --- a/iOS/QGVAPlayerDemoSwift/QGVAPlayerDemoSwift.xcodeproj/project.pbxproj +++ b/iOS/QGVAPlayerDemoSwift/QGVAPlayerDemoSwift.xcodeproj/project.pbxproj @@ -7,6 +7,7 @@ objects = { /* Begin PBXBuildFile section */ + 98EEBC352E6E83DF00D1A911 /* test.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 98EEBC342E6E83DF00D1A911 /* test.ttf */; }; BA964B7526832138003265F2 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = BA964B7426832138003265F2 /* AppDelegate.swift */; }; BA964B7726832138003265F2 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = BA964B7626832138003265F2 /* SceneDelegate.swift */; }; BA964B7926832138003265F2 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BA964B7826832138003265F2 /* ViewController.swift */; }; @@ -57,6 +58,7 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + 98EEBC342E6E83DF00D1A911 /* test.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = test.ttf; sourceTree = ""; }; BA964B7126832138003265F2 /* QGVAPlayerDemoSwift.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = QGVAPlayerDemoSwift.app; sourceTree = BUILT_PRODUCTS_DIR; }; BA964B7426832138003265F2 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; BA964B7626832138003265F2 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; @@ -107,6 +109,7 @@ BA964B7426832138003265F2 /* AppDelegate.swift */, BA964B7626832138003265F2 /* SceneDelegate.swift */, BA964B7826832138003265F2 /* ViewController.swift */, + 98EEBC342E6E83DF00D1A911 /* test.ttf */, BA964B7A26832138003265F2 /* Main.storyboard */, BA964B7D2683213A003265F2 /* Assets.xcassets */, BA964B7F2683213A003265F2 /* LaunchScreen.storyboard */, @@ -218,6 +221,7 @@ BA964B812683213A003265F2 /* LaunchScreen.storyboard in Resources */, BA964B7E2683213A003265F2 /* Assets.xcassets in Resources */, BA964B7C26832138003265F2 /* Main.storyboard in Resources */, + 98EEBC352E6E83DF00D1A911 /* test.ttf in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -387,7 +391,7 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = ""; + DEVELOPMENT_TEAM = YQ2BBNYL5U; HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/../QGVAPlayer/QGVAPlayer/**"; INFOPLIST_FILE = QGVAPlayerDemoSwift/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( @@ -410,7 +414,7 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = ""; + DEVELOPMENT_TEAM = YQ2BBNYL5U; HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/../QGVAPlayer/QGVAPlayer/**"; INFOPLIST_FILE = QGVAPlayerDemoSwift/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( diff --git a/iOS/QGVAPlayerDemoSwift/QGVAPlayerDemoSwift/QGVAPlayer-Bridging-Header.h b/iOS/QGVAPlayerDemoSwift/QGVAPlayerDemoSwift/QGVAPlayer-Bridging-Header.h index c8a994b1..621f2db2 100644 --- a/iOS/QGVAPlayerDemoSwift/QGVAPlayerDemoSwift/QGVAPlayer-Bridging-Header.h +++ b/iOS/QGVAPlayerDemoSwift/QGVAPlayerDemoSwift/QGVAPlayer-Bridging-Header.h @@ -19,5 +19,6 @@ #import "UIView+VAP.h" #import "QGVAPConfigModel.h" #import "QGVAPWrapView.h" +#import "QGVAPTextureLoader.h" #endif /* QGVAPlayer_Bridging_Header_h */ diff --git a/iOS/QGVAPlayerDemoSwift/QGVAPlayerDemoSwift/ViewController.swift b/iOS/QGVAPlayerDemoSwift/QGVAPlayerDemoSwift/ViewController.swift index 345726d4..f3d0dd03 100644 --- a/iOS/QGVAPlayerDemoSwift/QGVAPlayerDemoSwift/ViewController.swift +++ b/iOS/QGVAPlayerDemoSwift/QGVAPlayerDemoSwift/ViewController.swift @@ -14,11 +14,12 @@ // limitations under the License. import UIKit +import QGVAPlayer -class ViewController: UIViewController, HWDMP4PlayDelegate { - +class ViewController: UIViewController, VAPWrapViewDelegate { + var vapView = QGVAPWrapView.init() let vapButton = UIButton() - + var customFont: UIFont? override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. @@ -27,41 +28,115 @@ class ViewController: UIViewController, HWDMP4PlayDelegate { vapButton.setTitle("融合动效(更多示例请查看OC版本)", for: UIControl.State.normal) vapButton.addTarget(self, action: #selector(playVapx), for: UIControl.Event.touchUpInside) self.view.addSubview(vapButton) + self.view.addSubview(vapView) + QGVAPTextureLoader.loadCustomFont(nil) + QGVAPTextureLoader.loadCustomFont { fontSize, isBold in + return UIFont.systemFont(ofSize: 12) + } } @objc func playVapx() { - let vapView = UIView.init(frame: self.view.bounds) + let mp4Path = String.init(format: "%@/Resource/vap.mp4", Bundle.main.resourcePath!) - self.view.addSubview(vapView) vapView.center = self.view.center vapView.isUserInteractionEnabled = true + vapView.contentMode = .top vapView.hwd_enterBackgroundOP = HWDMP4EBOperationType.stop - let gesture = UITapGestureRecognizer.init(target: self, action: #selector(onTap(gesture:))) - vapView.addGestureRecognizer(gesture) - vapView.playHWDMP4(mp4Path, repeatCount: -1, delegate: self) + // let gesture = UITapGestureRecognizer.init(target: self, action: #selector(onTap(gesture:))) + // vapView.addGestureRecognizer(gesture) + vapView.playHWDMP4(mp4Path, repeatCount: 0, delegate: self) + + // test.ttf + // // 使用示例:从文档目录加载 + if let docPath = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first { + let fontPath = docPath.appendingPathComponent("test.ttf").path + if let font = loadFontFromFile(path: fontPath, size: 16) { + self.customFont = font + } + } + } + + func loadFontFromFile(path: String, size: CGFloat) -> UIFont? { + guard let fontURL = URL(fileURLWithPath: path) as CFURL?, + let dataProvider = CGDataProvider(url: fontURL), + let cgFont = CGFont(dataProvider) else { + return nil + } + let fontName = cgFont.postScriptName! as String + if self.isFontRegistered(fontName: fontName) { + return UIFont(name: fontName, size: size) + } + + var error: Unmanaged? + // 注册字体到系统 + if CTFontManagerRegisterGraphicsFont(cgFont, &error) { + + return UIFont(name: fontName, size: size) + } else { + print("字体注册失败:\(error?.takeUnretainedValue() ?? NSError() as! CFError)") + return nil + } } + /// 检查字体是否已注册 + func isFontRegistered(fontName: String) -> Bool { + // 遍历所有字体家族 + for family in UIFont.familyNames { + // 获取家族下的所有字体名称 + for name in UIFont.fontNames(forFamilyName: family) { + if name == fontName { + return true + } + } + } + return false + } + override func viewDidLayoutSubviews() { + super.viewDidLayoutSubviews() + vapView.frame = self.view.bounds + } @objc func onTap(gesture: UIGestureRecognizer) { gesture.view?.stopHWDMP4() gesture.view?.removeFromSuperview() } - func content(forVapTag tag: String!, resource info: QGVAPSourceInfo) -> String { + + + func vapWrapview_content(forVapTag tag: String, resource info: QGVAPSourceInfo) -> String { let extraInfo: [String:String] = ["[sImg1]" : "http://shp.qlogo.cn/pghead/Q3auHgzwzM6GuU0Y6q6sKHzq3MjY1aGibIzR4xrJc1VY/60", - "[textAnchor]" : "我是主播名", - "[textUser]" : "我是用户名😂😂",] + "[textAnchor]" : "afdas123123123", + "[textUser]" : "afdaf12312312",] return extraInfo[tag] ?? "" } - - func loadVapImage(withURL urlStr: String!, context: [AnyHashable : Any]!, completion completionBlock: VAPImageCompletionBlock!) { + + func vapWrapView_loadVapImage(withURL urlStr: String, context: [AnyHashable : Any], completion completionBlock: @escaping VAPImageCompletionBlock) { DispatchQueue.main.async { let image = UIImage.init(named: String.init(format:"%@/Resource/qq.png", Bundle.main.resourcePath!)) completionBlock(image, nil, urlStr) } } - - + + func vapWrapView_loadVapContent(_ content: String, context: [AnyHashable : Any]) -> UIImage? { + let resoure = context["resource"] as? QGVAPSourceInfo; + let color = resoure?.color ?? UIColor.white + let size = resoure?.size ?? CGSize.zero + let isBlod = resoure?.style == QGAGAttachmentSourceStyle.boldText; + QGVAPTextureLoader.drawingCustomImage(forText: content, color: color, size: size, bold: isBlod) { fontSize, isBlod in + + if let docPath = Bundle.main.path(forResource: "test.ttf", ofType: nil) { + if let font = self.loadFontFromFile(path: docPath, size: fontSize) { + return font + } + } + if isBlod { + return UIFont.boldSystemFont(ofSize: fontSize) + } + return UIFont.systemFont(ofSize: fontSize) + } + return nil + } + } diff --git a/iOS/QGVAPlayerDemoSwift/QGVAPlayerDemoSwift/test.ttf b/iOS/QGVAPlayerDemoSwift/QGVAPlayerDemoSwift/test.ttf new file mode 100644 index 00000000..c9448f81 Binary files /dev/null and b/iOS/QGVAPlayerDemoSwift/QGVAPlayerDemoSwift/test.ttf differ