@@ -7,8 +7,6 @@ import { NODE_MODULES_DIR_NAME } from "../../../common/constants";
7
7
import { PLATFORMS_DIR_NAME , PACKAGE_JSON_FILE_NAME } from "../../../constants" ;
8
8
9
9
export class PreviewAppPluginsService implements IPreviewAppPluginsService {
10
- private previewAppVersionWarnings : IDictionary < string [ ] > = { } ;
11
-
12
10
constructor ( private $errors : IErrors ,
13
11
private $fs : IFileSystem ,
14
12
private $logger : ILogger ,
@@ -23,20 +21,17 @@ export class PreviewAppPluginsService implements IPreviewAppPluginsService {
23
21
this . $errors . failWithoutHelp ( "No version of preview app provided." ) ;
24
22
}
25
23
26
- if ( ! this . previewAppVersionWarnings [ device . previewAppVersion ] ) {
27
- const devicePlugins = this . getDevicePlugins ( device ) ;
28
- const localPlugins = this . getLocalPlugins ( data . projectDir ) ;
29
- const warnings = _ . keys ( localPlugins )
30
- . map ( localPlugin => {
31
- const localPluginVersion = localPlugins [ localPlugin ] ;
32
- const devicePluginVersion = devicePlugins [ localPlugin ] ;
33
- return this . getWarningForPlugin ( data , localPlugin , localPluginVersion , devicePluginVersion , device ) ;
34
- } )
35
- . filter ( item => ! ! item ) ;
36
- this . previewAppVersionWarnings [ device . previewAppVersion ] = warnings ;
37
- }
38
-
39
- return this . previewAppVersionWarnings [ device . previewAppVersion ] ;
24
+ const devicePlugins = this . getDevicePlugins ( device ) ;
25
+ const localPlugins = this . getLocalPlugins ( data . projectDir ) ;
26
+ const warnings = _ . keys ( localPlugins )
27
+ . map ( localPlugin => {
28
+ const localPluginVersion = localPlugins [ localPlugin ] ;
29
+ const devicePluginVersion = devicePlugins [ localPlugin ] ;
30
+ return this . getWarningForPlugin ( data , localPlugin , localPluginVersion , devicePluginVersion , device ) ;
31
+ } )
32
+ . filter ( item => ! ! item ) ;
33
+
34
+ return warnings ;
40
35
}
41
36
42
37
public async comparePluginsOnDevice ( data : IPreviewAppLiveSyncData , device : Device ) : Promise < void > {
0 commit comments