11import { injector } from "../../common/yok" ;
22import { IProjectConfigService , IProjectData } from "../../definitions/project" ;
3- import {
4- MobileProject ,
5- IosSPMPackageDefinition ,
6- } from "@rigor789/trapezedev-project" ;
3+ import { MobileProject } from "@rigor789/trapezedev-project" ;
74import { IPlatformData } from "../../definitions/platform" ;
85import path = require( "path" ) ;
96
@@ -12,16 +9,16 @@ export class SPMService implements ISPMService {
129 private $logger : ILogger ,
1310 private $projectConfigService : IProjectConfigService ,
1411 private $xcodebuildCommandService : IXcodebuildCommandService ,
15- private $xcodebuildArgsService : IXcodebuildArgsService
12+ private $xcodebuildArgsService : IXcodebuildArgsService ,
1613 ) { }
1714
1815 public getSPMPackages (
1916 projectData : IProjectData ,
20- platform : string
17+ platform : string ,
2118 ) : IosSPMPackage [ ] {
2219 const spmPackages = this . $projectConfigService . getValue (
2320 `${ platform } .SPMPackages` ,
24- [ ]
21+ [ ] ,
2522 ) ;
2623
2724 return spmPackages ;
@@ -35,12 +32,12 @@ export class SPMService implements ISPMService {
3532 public async applySPMPackages (
3633 platformData : IPlatformData ,
3734 projectData : IProjectData ,
38- pluginSpmPackages ?: IosSPMPackage [ ]
35+ pluginSpmPackages ?: IosSPMPackage [ ] ,
3936 ) {
4037 try {
4138 const spmPackages = this . getSPMPackages (
4239 projectData ,
43- platformData . platformNameLowerCase
40+ platformData . platformNameLowerCase ,
4441 ) ;
4542
4643 if ( pluginSpmPackages ?. length ) {
@@ -95,7 +92,7 @@ export class SPMService implements ISPMService {
9592
9693 public async resolveSPMDependencies (
9794 platformData : IPlatformData ,
98- projectData : IProjectData
95+ projectData : IProjectData ,
9996 ) {
10097 await this . $xcodebuildCommandService . executeCommand (
10198 this . $xcodebuildArgsService
@@ -108,7 +105,7 @@ export class SPMService implements ISPMService {
108105 {
109106 cwd : projectData . projectDir ,
110107 message : "Resolving SPM dependencies..." ,
111- }
108+ } ,
112109 ) ;
113110 }
114111}
0 commit comments