Skip to content

Commit

Permalink
Fix #51
Browse files Browse the repository at this point in the history
  • Loading branch information
wanhmr authored Aug 19, 2023
1 parent d9fd1ee commit e1cbea7
Show file tree
Hide file tree
Showing 14 changed files with 170 additions and 166 deletions.
9 changes: 9 additions & 0 deletions Example/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,12 @@ target 'MPITextKit_Example' do
# pod 'Expecta'
end
end

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
end
end
installer.pods_project.root_object.attributes["ORGANIZATIONNAME"] = "Meitu"
end
6 changes: 3 additions & 3 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- MPITextKit (0.1.11)
- MPITextKit (0.2.1)
- YYImage (1.0.4):
- YYImage/Core (= 1.0.4)
- YYImage/Core (1.0.4)
Expand All @@ -17,9 +17,9 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
MPITextKit: 59345aa2cd1f9e05e9cdbd6ee72799409d44cd7f
MPITextKit: c35d4de736a88802122f957791504c16ed743e9d
YYImage: 1e1b62a9997399593e4b9c4ecfbbabbf1d3f3b54

PODFILE CHECKSUM: 9389e39045614bb91ce9230af3b69e00dbab997f
PODFILE CHECKSUM: 9cca02461ddd01cfc6deea5304d2f3a78a0397fd

COCOAPODS: 1.11.2
6 changes: 3 additions & 3 deletions Example/Pods/Local Podspecs/MPITextKit.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

145 changes: 74 additions & 71 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions MPITextKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'MPITextKit'
s.version = '0.1.13'
s.version = '0.2.1'
s.summary = 'Powerful text framework for iOS to display text based on TextKit.'

# This description is used to generate tags and improve search results.
Expand All @@ -24,7 +24,7 @@ Pod::Spec.new do |s|
s.source = { :git => 'https://github.com/meitu/MPITextKit.git', :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

s.ios.deployment_target = '9.0'
s.ios.deployment_target = '10.0'

s.source_files = 'Sources/**/*.{h,m}'

Expand Down
8 changes: 4 additions & 4 deletions Sources/MPILabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@
#import "NSMutableAttributedString+MPITextKit.h"
#import "NSAttributedString+MPITextKit.h"

static dispatch_queue_t MPITextLabelGetReleaseQueue() {
static dispatch_queue_t MPITextLabelGetReleaseQueue(void) {
return dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0);
}

static MPITextCache *sharedRendererCache()
static MPITextCache *sharedRendererCache(void)
{
static dispatch_once_t onceToken;
static MPITextCache *rendererCache = nil;
dispatch_once(&onceToken, ^{
rendererCache = [[MPITextCache alloc] init];
rendererCache.countLimit = 500;
rendererCache.countLimit = 200;
});
return rendererCache;
}

static MPITextCache *sharedTextSizeCache()
static MPITextCache *sharedTextSizeCache(void)
{
static dispatch_once_t onceToken;
static MPITextCache *textViewSizeCache = nil;
Expand Down
Loading

0 comments on commit e1cbea7

Please sign in to comment.