Commit 2e4e74b20a1d0e47791fb4fd32d83799601be99f

Authored by yanglingyu
1 parent 43f97c2f

拆分yykit

CNLiveBusinessTools.podspec
... ... @@ -8,7 +8,7 @@
8 8  
9 9 Pod::Spec.new do |s|
10 10 s.name = 'CNLiveBusinessTools'
11   - s.version = '0.1.25'
  11 + s.version = '0.1.26'
12 12 s.summary = '业务工具集合组件.'
13 13  
14 14 # This description is used to generate tags and improve search results.
... ... @@ -40,5 +40,12 @@ Pod::Spec.new do |s|
40 40 s.dependency 'CNLiveBaseKit'
41 41 s.dependency 'CNLiveRequestBastKit'
42 42 s.dependency 'CNLiveNewTripartiteManagement/QMUIKit'
43   - s.dependency 'CNLiveNewTripartiteManagement/YYKit'
  43 + s.dependency 'YYImage'
  44 + s.dependency 'YYModel'
  45 + s.dependency 'YYCache'
  46 + s.dependency 'YYWebImage'
  47 + s.dependency 'YYText'
  48 + s.dependency 'YYDispatchQueuePool'
  49 + s.dependency 'YYAsyncLayer'
  50 + s.dependency 'YYCategories'
44 51 end
... ...
CNLiveBusinessTools/Classes/CNLiveBusinessTools.m
... ... @@ -7,7 +7,8 @@
7 7  
8 8 #import "CNLiveBusinessTools.h"
9 9 #import <Photos/Photos.h>
10   -#import <YYKit/YYKit.h>
  10 +#import <YYImage/YYImage.h>
  11 +#import <YYText/YYText.h>
11 12 @implementation CNLiveBusinessTools
12 13  
13 14 /// 拼接音视频通话时长统计内容
... ... @@ -1009,14 +1010,14 @@
1009 1010 YYAnimatedImageView *imageView = [[YYAnimatedImageView alloc] initWithImage:emojiArr[j].image];
1010 1011 imageView.width = 24*RATIO;
1011 1012 imageView.height = 24*RATIO;
1012   - NSMutableAttributedString *attachText = [NSMutableAttributedString attachmentStringWithContent:imageView contentMode:UIViewContentModeCenter attachmentSize:imageView.size alignToFont:UIFontCNMake(contentLabelFontSize) alignment:YYTextVerticalAlignmentCenter];
  1013 + NSMutableAttributedString *attachText = [NSMutableAttributedString yy_attachmentStringWithContent:imageView contentMode:UIViewContentModeCenter attachmentSize:imageView.size alignToFont:UIFontCNMake(contentLabelFontSize) alignment:YYTextVerticalAlignmentCenter];
1013 1014 [attStr replaceCharactersInRange:result.range withAttributedString:attachText];
1014 1015 });
1015 1016 }else{
1016 1017 YYAnimatedImageView *imageView = [[YYAnimatedImageView alloc] initWithImage:emojiArr[j].image];
1017 1018 imageView.width = 24*RATIO;
1018 1019 imageView.height = 24*RATIO;
1019   - NSMutableAttributedString *attachText = [NSMutableAttributedString attachmentStringWithContent:imageView contentMode:UIViewContentModeCenter attachmentSize:imageView.size alignToFont:UIFontCNMake(contentLabelFontSize) alignment:YYTextVerticalAlignmentCenter];
  1020 + NSMutableAttributedString *attachText = [NSMutableAttributedString yy_attachmentStringWithContent:imageView contentMode:UIViewContentModeCenter attachmentSize:imageView.size alignToFont:UIFontCNMake(contentLabelFontSize) alignment:YYTextVerticalAlignmentCenter];
1020 1021  
1021 1022 [attStr replaceCharactersInRange:result.range withAttributedString:attachText];
1022 1023 }
... ...
Example/CNLiveBusinessTools.xcodeproj/project.pbxproj
... ... @@ -310,11 +310,17 @@
310 310 "${BUILT_PRODUCTS_DIR}/CNLiveEnvironment/CNLiveEnvironment.framework",
311 311 "${BUILT_PRODUCTS_DIR}/CNLiveNewTripartiteManagement/CNLiveNewTripartiteManagement.framework",
312 312 "${BUILT_PRODUCTS_DIR}/CNLiveRequestBastKit/CNLiveRequestBastKit.framework",
313   - "${BUILT_PRODUCTS_DIR}/CNLiveTripartiteManagement/CNLiveTripartiteManagement.framework",
314 313 "${BUILT_PRODUCTS_DIR}/CNLiveUserManagement/CNLiveUserManagement.framework",
315 314 "${BUILT_PRODUCTS_DIR}/MJExtension/MJExtension.framework",
316 315 "${BUILT_PRODUCTS_DIR}/QMUIKit/QMUIKit.framework",
317   - "${BUILT_PRODUCTS_DIR}/YYKit/YYKit.framework",
  316 + "${BUILT_PRODUCTS_DIR}/YYAsyncLayer/YYAsyncLayer.framework",
  317 + "${BUILT_PRODUCTS_DIR}/YYCache/YYCache.framework",
  318 + "${BUILT_PRODUCTS_DIR}/YYCategories/YYCategories.framework",
  319 + "${BUILT_PRODUCTS_DIR}/YYDispatchQueuePool/YYDispatchQueuePool.framework",
  320 + "${BUILT_PRODUCTS_DIR}/YYImage/YYImage.framework",
  321 + "${BUILT_PRODUCTS_DIR}/YYModel/YYModel.framework",
  322 + "${BUILT_PRODUCTS_DIR}/YYText/YYText.framework",
  323 + "${BUILT_PRODUCTS_DIR}/YYWebImage/YYWebImage.framework",
318 324 );
319 325 name = "[CP] Embed Pods Frameworks";
320 326 outputPaths = (
... ... @@ -324,11 +330,17 @@
324 330 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveEnvironment.framework",
325 331 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveNewTripartiteManagement.framework",
326 332 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveRequestBastKit.framework",
327   - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveTripartiteManagement.framework",
328 333 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveUserManagement.framework",
329 334 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MJExtension.framework",
330 335 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/QMUIKit.framework",
331   - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/YYKit.framework",
  336 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/YYAsyncLayer.framework",
  337 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/YYCache.framework",
  338 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/YYCategories.framework",
  339 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/YYDispatchQueuePool.framework",
  340 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/YYImage.framework",
  341 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/YYModel.framework",
  342 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/YYText.framework",
  343 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/YYWebImage.framework",
332 344 );
333 345 runOnlyForDeploymentPostprocessing = 0;
334 346 shellPath = /bin/sh;
... ...