66
77# This is the minimum version number required.
88# Update this, if you use features of a newer version
9- fastlane_version " 2.29.0"
9+ fastlane_version ' 2.29.0'
1010
1111default_platform :ios
1212skip_docs
@@ -22,95 +22,77 @@ platform :ios do
2222 use_bundle_exec : true ,
2323 try_repo_update_on_error : true
2424 )
25-
26- cocoapods (
27- podfile : "Example/cocoapods" ,
28- use_bundle_exec : true ,
29- try_repo_update_on_error : true
30- )
3125 end
3226
33-
3427 lane :build do
3528 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' ,
3932 ignore_exit_status : true
4033 )
4134
4235 # FlexLayout
4336 xcodebuild (
44- project : " FlexLayout.xcodeproj" ,
45- scheme : " FlexLayoutInner" ,
46- configuration : " Release" ,
37+ workspace : ' FlexLayout.xcworkspace' ,
38+ scheme : ' FlexLayoutInner' ,
39+ configuration : ' Release' ,
4740 build : true ,
4841 clean : true ,
49- destination : " platform=iOS Simulator,name=iPhone 15,OS=17.2"
42+ destination : ' platform=iOS Simulator,name=iPhone 15,OS=17.2'
5043 )
5144
5245 # FlexLayoutSample from FlexLayout.xcworkspace
5346 xcodebuild (
54- workspace : " FlexLayout.xcworkspace" ,
55- scheme : " FlexLayoutSample" ,
56- configuration : " Release" ,
47+ workspace : ' FlexLayout.xcworkspace' ,
48+ scheme : ' FlexLayoutSample' ,
49+ configuration : ' Release' ,
5750 build : true ,
5851 # 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'
7053 )
7154
7255 # Example SPM (Swift Package Manager)
7356 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' ,
7760 build : true ,
7861 clean : true ,
79- destination : " platform=iOS Simulator,name=iPhone 15,OS=17.2"
62+ destination : ' platform=iOS Simulator,name=iPhone 15,OS=17.2'
8063 )
8164 end
8265
8366 lane :tests do
84- scan ( scheme : " FlexLayoutInner" , workspace : " FlexLayout.xcworkspace" , device : " iPhone 15" )
67+ scan ( scheme : ' FlexLayoutInner' , workspace : ' FlexLayout.xcworkspace' , device : ' iPhone 15' )
8568 end
8669
87- lane :doc do
70+ lane :doc do
8871 jazzy
8972 end
9073
9174 lane :travis do
9275 install
9376 tests
9477 build
95- #pod_lib_lint(allow_warnings: true, verbose: false)
78+ # pod_lib_lint(allow_warnings: true, verbose: false)
9679 end
9780
9881 lane :deploy do
9982 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 } " )
10285 push_to_git_remote ( remote_branch : 'master' , force : false , tags : true )
10386 changelog = changelog_from_git_commits
10487 github_release = set_github_release (
105- repository_name : " layoutBox/FlexLayout" ,
88+ repository_name : ' layoutBox/FlexLayout' ,
10689 api_token : ENV [ 'GITHUB_TOKEN' ] ,
10790 name : version ,
10891 tag_name : version ,
10992 description : changelog ,
110- commitish : " master"
93+ commitish : ' master'
11194 )
112- sh ( " git fetch --tags" )
95+ sh ( ' git fetch --tags' )
11396 pod_push ( allow_warnings : true , verbose : true )
11497 end
115-
11698end
0 commit comments