File tree Expand file tree Collapse file tree 4 files changed +22
-0
lines changed
Sources/FigmaExport/Subcommands Expand file tree Collapse file tree 4 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,12 @@ extension FigmaExportCommand {
102
102
103
103
try fileWriter. write ( files: files)
104
104
105
+ guard iosParams. xcassetsInSwiftPackage == false else {
106
+ checkForUpdate ( logger: logger)
107
+ logger. info ( " Done! " )
108
+ return
109
+ }
110
+
105
111
do {
106
112
let xcodeProject = try XcodeProjectWriter ( xcodeProjPath: iosParams. xcodeprojPath, target: iosParams. target)
107
113
try files. forEach { file in
@@ -113,6 +119,8 @@ extension FigmaExportCommand {
113
119
} catch {
114
120
logger. error ( " Unable to add some file references to Xcode project " )
115
121
}
122
+
123
+ logger. info ( " Done! " )
116
124
}
117
125
118
126
private func exportAndroidColors( colorPairs: [ AssetPair < Color > ] , androidParams: Params . Android ) throws {
Original file line number Diff line number Diff line change @@ -89,6 +89,12 @@ extension FigmaExportCommand {
89
89
logger. info ( " Writting files to Xcode project... " )
90
90
try fileWriter. write ( files: localFiles)
91
91
92
+ guard params. ios? . xcassetsInSwiftPackage == false else {
93
+ checkForUpdate ( logger: logger)
94
+ logger. info ( " Done! " )
95
+ return
96
+ }
97
+
92
98
do {
93
99
let xcodeProject = try XcodeProjectWriter ( xcodeProjPath: ios. xcodeprojPath, target: ios. target)
94
100
try localFiles. forEach { file in
Original file line number Diff line number Diff line change @@ -82,6 +82,12 @@ extension FigmaExportCommand {
82
82
logger. info ( " Writting files to Xcode project... " )
83
83
try fileWriter. write ( files: localFiles)
84
84
85
+ guard params. ios? . xcassetsInSwiftPackage == false else {
86
+ checkForUpdate ( logger: logger)
87
+ logger. info ( " Done! " )
88
+ return
89
+ }
90
+
85
91
do {
86
92
let xcodeProject = try XcodeProjectWriter ( xcodeProjPath: ios. xcodeprojPath, target: ios. target)
87
93
try localFiles. forEach { file in
Original file line number Diff line number Diff line change @@ -84,6 +84,8 @@ extension FigmaExportCommand {
84
84
85
85
try fileWriter. write ( files: files)
86
86
87
+ guard iosParams. xcassetsInSwiftPackage == false else { return }
88
+
87
89
do {
88
90
let xcodeProject = try XcodeProjectWriter ( xcodeProjPath: iosParams. xcodeprojPath, target: iosParams. target)
89
91
try files. forEach { file in
You can’t perform that action at this time.
0 commit comments