1
1
import { injector } from "../../common/yok" ;
2
2
import { IProjectConfigService , IProjectData } from "../../definitions/project" ;
3
- import {
4
- MobileProject ,
5
- IosSPMPackageDefinition ,
6
- } from "@rigor789/trapezedev-project" ;
3
+ import { MobileProject } from "@rigor789/trapezedev-project" ;
7
4
import { IPlatformData } from "../../definitions/platform" ;
8
5
import path = require( "path" ) ;
9
6
@@ -12,16 +9,16 @@ export class SPMService implements ISPMService {
12
9
private $logger : ILogger ,
13
10
private $projectConfigService : IProjectConfigService ,
14
11
private $xcodebuildCommandService : IXcodebuildCommandService ,
15
- private $xcodebuildArgsService : IXcodebuildArgsService
12
+ private $xcodebuildArgsService : IXcodebuildArgsService ,
16
13
) { }
17
14
18
15
public getSPMPackages (
19
16
projectData : IProjectData ,
20
- platform : string
17
+ platform : string ,
21
18
) : IosSPMPackage [ ] {
22
19
const spmPackages = this . $projectConfigService . getValue (
23
20
`${ platform } .SPMPackages` ,
24
- [ ]
21
+ [ ] ,
25
22
) ;
26
23
27
24
return spmPackages ;
@@ -35,12 +32,12 @@ export class SPMService implements ISPMService {
35
32
public async applySPMPackages (
36
33
platformData : IPlatformData ,
37
34
projectData : IProjectData ,
38
- pluginSpmPackages ?: IosSPMPackage [ ]
35
+ pluginSpmPackages ?: IosSPMPackage [ ] ,
39
36
) {
40
37
try {
41
38
const spmPackages = this . getSPMPackages (
42
39
projectData ,
43
- platformData . platformNameLowerCase
40
+ platformData . platformNameLowerCase ,
44
41
) ;
45
42
46
43
if ( pluginSpmPackages ?. length ) {
@@ -95,7 +92,7 @@ export class SPMService implements ISPMService {
95
92
96
93
public async resolveSPMDependencies (
97
94
platformData : IPlatformData ,
98
- projectData : IProjectData
95
+ projectData : IProjectData ,
99
96
) {
100
97
await this . $xcodebuildCommandService . executeCommand (
101
98
this . $xcodebuildArgsService
@@ -108,7 +105,7 @@ export class SPMService implements ISPMService {
108
105
{
109
106
cwd : projectData . projectDir ,
110
107
message : "Resolving SPM dependencies..." ,
111
- }
108
+ } ,
112
109
) ;
113
110
}
114
111
}
0 commit comments