File tree 6 files changed +27
-3
lines changed
6 files changed +27
-3
lines changed Original file line number Diff line number Diff line change @@ -31,3 +31,5 @@ test/Binary.xcworkspace/contents.xcworkspacedata
31
31
test /Binary.xcworkspace /xcshareddata /IDEWorkspaceChecks.plist
32
32
test /Podfile
33
33
test /Podfile.lock
34
+
35
+ * .gem
Original file line number Diff line number Diff line change
1
+ Forked from https://github.com/muukii/cocoapods-binary
2
+
3
+ add ` forbidden_dependency_binary! ` , Prevent the automatic compilation of dependent libraries into binary as well.
4
+
5
+ ---
6
+
1
7
> ⚠️ This is a temporaly forked repository.
2
8
3
9
https://github.com/leavez/cocoapods-binary/pull/137
Original file line number Diff line number Diff line change @@ -12,6 +12,11 @@ def all_binary!
12
12
DSL . prebuild_all = true
13
13
end
14
14
15
+ # Fobidden dependency auto build to binary
16
+ def forbidden_dependency_binary!
17
+ DSL . forbidden_dependency_binary = true
18
+ end
19
+
15
20
# Enable bitcode for prebuilt frameworks
16
21
def enable_bitcode_for_prebuilt_frameworks!
17
22
DSL . bitcode_enabled = true
@@ -56,6 +61,9 @@ def set_custom_xcodebuild_options_for_prebuilt_frameworks(options)
56
61
end
57
62
58
63
private
64
+ class_attr_accessor :forbidden_dependency_binary
65
+ forbidden_dependency_binary = false
66
+
59
67
class_attr_accessor :prebuild_all
60
68
prebuild_all = false
61
69
Original file line number Diff line number Diff line change @@ -109,6 +109,11 @@ def prebuild_frameworks!
109
109
targets = self . pod_targets
110
110
end
111
111
112
+ if Pod ::Podfile ::DSL . forbidden_dependency_binary
113
+ forbidden_dependency_targets = targets . map { |t | t . recursive_dependent_targets } . flatten . uniq || [ ]
114
+ targets = targets - forbidden_dependency_targets
115
+ end
116
+
112
117
targets = targets . reject { |pod_target | sandbox . local? ( pod_target . pod_name ) }
113
118
114
119
Original file line number Diff line number Diff line change 1
1
module CocoapodsBinary
2
- VERSION = "0.4.4 "
2
+ VERSION = "0.4.5 "
3
3
end
Original file line number Diff line number Diff line change @@ -81,8 +81,11 @@ def prebuild_pod_targets
81
81
if not Podfile ::DSL . prebuild_all
82
82
targets = targets . select { |pod_target | prebuild_names . include? ( pod_target . pod_name ) }
83
83
end
84
- dependency_targets = targets . map { |t | t . recursive_dependent_targets } . flatten . uniq || [ ]
85
- targets = ( targets + dependency_targets ) . uniq
84
+
85
+ if not Podfile ::DSL . forbidden_dependency_binary
86
+ dependency_targets = targets . map { |t | t . recursive_dependent_targets } . flatten . uniq || [ ]
87
+ targets = ( targets + dependency_targets ) . uniq
88
+ end
86
89
87
90
# filter should not prebuild
88
91
explict_should_not_names = target_definition . should_not_prebuild_framework_pod_names
You can’t perform that action at this time.
0 commit comments