podfileDep 2.5.6 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/docs/Gemfile +9 -0
- data/docs/debug/347/233/256/345/275/225.png +0 -0
- data/docs/debug/351/205/215/347/275/256.png +0 -0
- data/lib/cocoapods_plugin.rb +1 -0
- data/lib/podfileDep/command/all.rb +24 -0
- data/lib/podfileDep/command/quick.rb +1 -1
- data/lib/podfileDep/my_constants.rb +2 -2
- data/lib/podfileDep/reference/unused.rb +5 -3
- data/lib/podfileDep/variable.rb +2 -2
- data/lib/podfileDep/version.rb +1 -1
- data/lib/podfileDep/yaml/yaml_dep.rb +5 -2
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e48070d532b39c76d3f4f7084952916e280eb3eca8c2bfd1dae6cb834dd36c99
|
4
|
+
data.tar.gz: db121163f7c02f5d13215452f22936d160bb3daada7463564cebdd4744f6d6f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14a499d954f0ed310ece1893dd7c97e196f82422a077f1d53c06bb4db96359a313e687be57dde9827c474c86c127d6b5d785bb82228b67234df1f861fa80d63b
|
7
|
+
data.tar.gz: c87b284a26fec791c69160228e54896e58cb42a7a376745a7649e8fd47fb3978af0dd1eeffdcfabac1c9f599e86e604c8870c8f59e7f564558d3ce7ec97c766f
|
data/CHANGELOG.md
CHANGED
data/docs/Gemfile
ADDED
Binary file
|
Binary file
|
data/lib/cocoapods_plugin.rb
CHANGED
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'cocoapods'
|
2
|
+
require_relative '../variable'
|
3
|
+
|
4
|
+
module Pod
|
5
|
+
class Command
|
6
|
+
class All < Install
|
7
|
+
|
8
|
+
self.summary = '单次关闭编译优化'
|
9
|
+
|
10
|
+
self.description = <<-DESC
|
11
|
+
* 开启编译优化命令
|
12
|
+
* pod install all
|
13
|
+
DESC
|
14
|
+
|
15
|
+
|
16
|
+
def initialize(argv)
|
17
|
+
super
|
18
|
+
$quick_build = false
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
end
|
@@ -7,7 +7,7 @@ module MyConstants
|
|
7
7
|
PODFILE_LOCK = 'Podfile.lock'
|
8
8
|
PODFILE = 'Podfile'
|
9
9
|
|
10
|
-
LIBLIBARYS = [
|
11
|
-
FRAMEWORKS = [
|
10
|
+
LIBLIBARYS = %w[time removefile AppleTextureEncoder standards AvailabilityMacros semaphore SystemHealthClient dns_sd ftw checkint pwd bitstring utime err CommonCrypto inttypes resolv c++ _ctermid stdlib sysdir unwind fts vis AvailabilityVersions membership libxml2 ulimit _stdio ntsid net notify_keys CMakeLists.txt AssertMacros float aio libxml ConditionalMacros locale fmtmsg unicode _wctype cpio langinfo xlocale limits Endian unwind_itanium _types db bank _ctype unistd stddef dispatch wctype fcntl mach_debug Availability stringlist tar readpassphrase _locale ttyent bzlib cache signal dirent mpool libDER unwind_arm_ehabi spawn crt_externs simd regex AvailabilityInternal arpa syslog bsm netinet libunwind libgen corpses rpcsvc monetary compression expat_external setjmp tgmath notify getopt _regex dlfcn strings TargetConditionals fnmatch pthread xlocale execinfo networkext printf architecture alloca sys iconv fenv expat grp secure ctype fstab pthread_spis machine SystemHealthManager voucher wordexp zlib nl_types paths AppleEXR wchar sqlite3 util gethostuuid sched sqlite3ext iso646 Block netdb pthread math memory asl __wctype mach errno device termios copyfile os xattr_flags poll _xlocale stdio mach-o malloc string_x86 arm Spatial __libunwind_config nameser dns _types rpc netinet6 pthread_impl objc MacTypes libkern uuid search assert AppleArchive cache_callbacks dns_util glob ifaddrs utmpx sandbox arm64 stdint complex runetype zconf ucontext sysexits string ndbm]
|
11
|
+
FRAMEWORKS = %w[MetricKit Network GameKit AddressBookUI CreateML Speech SafariServices ProximityReader Metal AppClip QuartzCore CoreGraphics StoreKit GSS CoreML WatchConnectivity UserNotificationsUI ARKit CoreLocationUI MetalPerformanceShaders AutomaticAssessmentConfiguration ExternalAccessory MediaPlayer LinkPresentation IdentityLookupUI MediaToolbox UIKit MessageUI MetalFX CoreNFC HomeKit CryptoKit ScreenTime NewsstandKit MLCompute NaturalLanguage CoreVideo MetalKit OSLog PDFKit CoreText UniformTypeIdentifiers IOKit ManagedSettings AVFoundation Accelerate DeviceCheck ImageIO BackgroundTasks FamilyControls ClockKit CoreBluetooth ThreadNetwork SensorKit Security Contacts CarPlay ExtensionFoundation RealityKit PhotosUI RoomPlan ReplayKit IOSurface SpriteKit MobileCoreServices IntentsUI QuickLookThumbnailing CoreMedia BusinessChat Intents ColorSync VideoSubscriberAccount PencilKit ManagedSettingsUI CoreServices HealthKit MultipeerConnectivity BackgroundAssets WebKit NotificationCenter SystemConfiguration GameController CoreTelephony ActivityKit AVFAudio AssetsLibrary AudioUnit FileProvider DeviceActivity Social IdentityLookup Matter CoreImage CoreAudio MusicKit DeviceDiscoveryExtension MediaSetup AutomatedDeviceEnrollment CoreAudioKit ExposureNotification ClassKit VisionKit SwiftUI Combine ModelIO PHASE SharedWithYou OpenGLES MetalPerformanceShadersGraph CreateMLComponents Accounts FileProviderUI ShazamKit CarKey RealityFoundation QuickLook AppIntents AuthenticationServices WeatherKit DataDetection AudioToolbox NearbyInteraction ContactsUI CoreSpotlight LocalAuthentication MatterSupport Foundation AdSupport LocalAuthenticationEmbeddedUI Accessibility HealthKitUI PushKit Vision CoreAudioTypes NetworkExtension ExtensionKit OpenAL EventKit MediaAccessibility Charts iAd MapKit AppTrackingTransparency CoreHaptics CallKit CoreFoundation TabularData CoreMotion AVRouting WidgetKit AVKit AddressBook SoundAnalysis GroupActivities CoreLocation CloudKit SharedWithYouCore CFNetwork Photos JavaScriptCore GameplayKit PushToTalk CoreMIDI Twitter PassKit ImageCaptureCore CoreData GLKit AdServices Messages CryptoTokenKit VideoToolbox SafetyKit UserNotifications DeveloperToolsSupport CoreTransferable EventKitUI SceneKit]
|
12
12
|
|
13
13
|
end
|
@@ -11,11 +11,13 @@ module Unused
|
|
11
11
|
yaml_dep = Pod::YamlDep.new
|
12
12
|
|
13
13
|
if yaml_dep.quick_build
|
14
|
-
msg = "
|
15
|
-
msg += "\n #{MyConstants::PODFILE_LOCAL_YAML}
|
14
|
+
msg = "💚当前已开启编译优化选项,请关注上方日志 '下载依赖...'部分内容。"
|
15
|
+
msg += "\n #{MyConstants::PODFILE_LOCAL_YAML}文件内的依赖库,将不会被优化忽略掉。如需关闭优化,有2种方式任选其一"
|
16
|
+
msg += "\n1. 在#{MyConstants::PODFILE_LOCAL_YAML}中 最外层 QUICK_BUILD字段设置为false,然后重新pod install"
|
17
|
+
msg += "\n2. 执行 pod install all 可单次关闭"
|
16
18
|
puts msg.green
|
17
19
|
else
|
18
|
-
msg = "
|
20
|
+
msg = "💛检测到你未开启编译优化选项,如你处于开发模式,可开启此功能,移除不被引用的依赖库来加速编译,有2种方式任选其一"
|
19
21
|
msg += "\n1. 在#{MyConstants::PODFILE_LOCAL_YAML}中 最外层 QUICK_BUILD字段设置为true,然后重新pod install"
|
20
22
|
msg += "\n2. 执行 pod install quick 可单次开启"
|
21
23
|
puts msg.yellow
|
data/lib/podfileDep/variable.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
# 编译优化
|
2
|
-
$quick_build =
|
1
|
+
# 编译优化 初始化时不定义
|
2
|
+
$quick_build = nil
|
data/lib/podfileDep/version.rb
CHANGED
@@ -4,6 +4,7 @@ require_relative '../my_constants'
|
|
4
4
|
require_relative '../check/xcodeproj'
|
5
5
|
require_relative '../variable'
|
6
6
|
require 'colored2'
|
7
|
+
require 'yaml'
|
7
8
|
|
8
9
|
module Pod
|
9
10
|
class YamlDep
|
@@ -531,8 +532,10 @@ module Pod
|
|
531
532
|
#是否开启了编译优化开关
|
532
533
|
def quick_build
|
533
534
|
yaml_content = read_yaml_content(podfile_local_yaml)
|
534
|
-
|
535
|
-
|
535
|
+
if $quick_build != nil
|
536
|
+
return $quick_build
|
537
|
+
end
|
538
|
+
yaml_content ? !!(yaml_content["QUICK_BUILD"]) : false
|
536
539
|
end
|
537
540
|
|
538
541
|
#是否禁用检查podspec文件
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: podfileDep
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 王帅朋
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|
@@ -63,6 +63,9 @@ files:
|
|
63
63
|
- Gemfile
|
64
64
|
- README.md
|
65
65
|
- Rakefile
|
66
|
+
- docs/Gemfile
|
67
|
+
- docs/debug目录.png
|
68
|
+
- docs/debug配置.png
|
66
69
|
- lib/cocoapods_plugin.rb
|
67
70
|
- lib/podfileDep.rb
|
68
71
|
- lib/podfileDep/check/import.rb
|
@@ -71,6 +74,7 @@ files:
|
|
71
74
|
- lib/podfileDep/check/project.rb
|
72
75
|
- lib/podfileDep/check/util.rb
|
73
76
|
- lib/podfileDep/check/xcodeproj.rb
|
77
|
+
- lib/podfileDep/command/all.rb
|
74
78
|
- lib/podfileDep/command/quick.rb
|
75
79
|
- lib/podfileDep/indirect/indirect.rb
|
76
80
|
- lib/podfileDep/modify/modify_code.rb
|