6
6
7
7
# This is the minimum version number required.
8
8
# Update this, if you use features of a newer version
9
- fastlane_version " 2.29.0"
9
+ fastlane_version ' 2.29.0'
10
10
11
11
default_platform :ios
12
12
skip_docs
@@ -22,95 +22,77 @@ platform :ios do
22
22
use_bundle_exec : true ,
23
23
try_repo_update_on_error : true
24
24
)
25
-
26
- cocoapods (
27
- podfile : "Example/cocoapods" ,
28
- use_bundle_exec : true ,
29
- try_repo_update_on_error : true
30
- )
31
25
end
32
26
33
-
34
27
lane :build do
35
28
swiftlint (
36
- mode : :lint ,
37
- config_file : " .swiftlint.yml" ,
38
- executable : " Pods/SwiftLint/swiftlint" ,
29
+ mode : :lint ,
30
+ config_file : ' .swiftlint.yml' ,
31
+ executable : ' Pods/SwiftLint/swiftlint' ,
39
32
ignore_exit_status : true
40
33
)
41
34
42
35
# FlexLayout
43
36
xcodebuild (
44
- project : " FlexLayout.xcodeproj" ,
45
- scheme : " FlexLayoutInner" ,
46
- configuration : " Release" ,
37
+ workspace : ' FlexLayout.xcworkspace' ,
38
+ scheme : ' FlexLayoutInner' ,
39
+ configuration : ' Release' ,
47
40
build : true ,
48
41
clean : true ,
49
- destination : " platform=iOS Simulator,name=iPhone 15,OS=17.2"
42
+ destination : ' platform=iOS Simulator,name=iPhone 15,OS=17.2'
50
43
)
51
44
52
45
# FlexLayoutSample from FlexLayout.xcworkspace
53
46
xcodebuild (
54
- workspace : " FlexLayout.xcworkspace" ,
55
- scheme : " FlexLayoutSample" ,
56
- configuration : " Release" ,
47
+ workspace : ' FlexLayout.xcworkspace' ,
48
+ scheme : ' FlexLayoutSample' ,
49
+ configuration : ' Release' ,
57
50
build : true ,
58
51
# clean: true,
59
- destination : "platform=iOS Simulator,name=iPhone 15,OS=17.2"
60
- )
61
-
62
- # Example Cocoapods
63
- xcodebuild (
64
- workspace : "Example/cocoapods/FlexLayoutSample.xcworkspace" ,
65
- scheme : "FlexLayoutSample" ,
66
- configuration : "Release" ,
67
- build : true ,
68
- # clean: true,
69
- destination : "platform=iOS Simulator,name=iPhone 15,OS=17.2"
52
+ destination : 'platform=iOS Simulator,name=iPhone 15,OS=17.2'
70
53
)
71
54
72
55
# Example SPM (Swift Package Manager)
73
56
xcodebuild (
74
- project : " Example/SPM/FlexLayoutSample-SPM.xcodeproj" ,
75
- scheme : " FlexLayoutSample-SPM" ,
76
- configuration : " Release" ,
57
+ project : ' Example/SPM/FlexLayoutSample-SPM.xcodeproj' ,
58
+ scheme : ' FlexLayoutSample-SPM' ,
59
+ configuration : ' Release' ,
77
60
build : true ,
78
61
clean : true ,
79
- destination : " platform=iOS Simulator,name=iPhone 15,OS=17.2"
62
+ destination : ' platform=iOS Simulator,name=iPhone 15,OS=17.2'
80
63
)
81
64
end
82
65
83
66
lane :tests do
84
- scan ( scheme : " FlexLayoutInner" , workspace : " FlexLayout.xcworkspace" , device : " iPhone 15" )
67
+ scan ( scheme : ' FlexLayoutInner' , workspace : ' FlexLayout.xcworkspace' , device : ' iPhone 15' )
85
68
end
86
69
87
- lane :doc do
70
+ lane :doc do
88
71
jazzy
89
72
end
90
73
91
74
lane :travis do
92
75
install
93
76
tests
94
77
build
95
- #pod_lib_lint(allow_warnings: true, verbose: false)
78
+ # pod_lib_lint(allow_warnings: true, verbose: false)
96
79
end
97
80
98
81
lane :deploy do
99
82
ensure_git_branch
100
- version = version_bump_podspec ( path : " FlexLayout.podspec" )
101
- git_commit ( path : [ " ./FlexLayout.podspec" ] , message : "Bumped to version #{ version } " )
83
+ version = version_bump_podspec ( path : ' FlexLayout.podspec' )
84
+ git_commit ( path : [ ' ./FlexLayout.podspec' ] , message : "Bumped to version #{ version } " )
102
85
push_to_git_remote ( remote_branch : 'master' , force : false , tags : true )
103
86
changelog = changelog_from_git_commits
104
87
github_release = set_github_release (
105
- repository_name : " layoutBox/FlexLayout" ,
88
+ repository_name : ' layoutBox/FlexLayout' ,
106
89
api_token : ENV [ 'GITHUB_TOKEN' ] ,
107
90
name : version ,
108
91
tag_name : version ,
109
92
description : changelog ,
110
- commitish : " master"
93
+ commitish : ' master'
111
94
)
112
- sh ( " git fetch --tags" )
95
+ sh ( ' git fetch --tags' )
113
96
pod_push ( allow_warnings : true , verbose : true )
114
97
end
115
-
116
98
end
0 commit comments