File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change
1
+ Layout/IndentationWidth :
2
+ Width : 4
Original file line number Diff line number Diff line change 1
- # encoding: UTF-8
2
1
require_relative 'helper/podfile_options'
3
2
require_relative 'tool/tool'
4
3
5
- module Pod
4
+ module Pod
6
5
class Podfile
7
6
module DSL
8
-
9
7
# Enable prebuiding for all pods
10
8
# it has a lower priority to other binary settings
11
9
def all_binary!
@@ -44,18 +42,17 @@ def keep_source_code_for_prebuilt_frameworks!
44
42
# If is a Hash, it should be like this: { :device => "XXXXX", :simulator => "XXXXX" }
45
43
#
46
44
def set_custom_xcodebuild_options_for_prebuilt_frameworks ( options )
47
- if options . kind_of ? Hash
48
- DSL . custom_build_options = [ options [ :device ] ] unless options [ :device ] . nil?
49
- DSL . custom_build_options_simulator = [ options [ :simulator ] ] unless options [ :simulator ] . nil?
50
- elsif options . kind_of ? String
45
+ if options . is_a ? Hash
46
+ DSL . custom_build_options = [ options [ :device ] ] if options [ :device ]
47
+ DSL . custom_build_options_simulator = [ options [ :simulator ] ] if options [ :simulator ]
48
+ elsif options . is_a ? String
51
49
DSL . custom_build_options = [ options ]
52
50
DSL . custom_build_options_simulator = [ options ]
53
51
else
54
52
raise "Wrong type."
55
53
end
56
54
end
57
55
58
- private
59
56
class_attr_accessor :prebuild_all
60
57
prebuild_all = false
61
58
Original file line number Diff line number Diff line change 9
9
#
10
10
def class_attr_accessor ( symbol )
11
11
self . class . send ( :attr_accessor , symbol )
12
- end
12
+ end
You can’t perform that action at this time.
0 commit comments