Skip to content

Commit 598ee22

Browse files
chore: remove IProjectCapabilities
Remove Project.IProjectCapabilities interface and all of its implementations. They were used for a product that is no longer supported - Proton.
1 parent 283d8b2 commit 598ee22

File tree

6 files changed

+5
-144
lines changed

6 files changed

+5
-144
lines changed

lib/common/appbuilder/appbuilder-bootstrap.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@ require("../bootstrap");
22
$injector.require("liveSyncServiceBase", "./services/livesync-service-base");
33
$injector.require("androidLiveSyncServiceLocator", "./appbuilder/services/livesync/android-livesync-service");
44
$injector.require("iosLiveSyncServiceLocator", "./appbuilder/services/livesync/ios-livesync-service");
5-
$injector.require("nativeScriptProjectCapabilities", "./appbuilder/project/nativescript-project-capabilities");
6-
$injector.require("cordovaProjectCapabilities", "./appbuilder/project/cordova-project-capabilities");
75
$injector.require("iOSLogFilter", "./mobile/ios/ios-log-filter");

lib/common/appbuilder/declarations.d.ts

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,6 @@ interface IDeployHelper {
33
}
44

55
declare module Project {
6-
interface ICapabilities {
7-
build: boolean;
8-
buildCompanion: boolean;
9-
deploy: boolean
10-
simulate: boolean;
11-
livesync: boolean;
12-
livesyncCompanion: boolean;
13-
updateKendo: boolean;
14-
emulate: boolean;
15-
publish: boolean;
16-
uploadToAppstore: boolean;
17-
canChangeFrameworkVersion: boolean;
18-
imageGeneration: boolean;
19-
wp8Supported: boolean;
20-
}
21-
226
interface IData extends IDictionary<any> {
237
ProjectName: string;
248
ProjectGuid: string;
@@ -67,7 +51,7 @@ declare module Project {
6751
* @type {boolean}
6852
*/
6953
hasBuildConfigurations: boolean;
70-
capabilities: ICapabilities;
54+
capabilities: any;
7155
/**
7256
* Information about the current project.
7357
* @type {Project.IProjectInformation}

lib/common/appbuilder/project/cordova-project-capabilities.ts

Lines changed: 0 additions & 54 deletions
This file was deleted.

lib/common/appbuilder/project/nativescript-project-capabilities.ts

Lines changed: 0 additions & 54 deletions
This file was deleted.

lib/common/appbuilder/project/project-base.ts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@ export abstract class ProjectBase implements Project.IProjectBase {
1313

1414
private _hasBuildConfigurations = false;
1515

16-
constructor(protected $cordovaProjectCapabilities: Project.ICapabilities,
17-
protected $errors: IErrors,
16+
constructor(protected $errors: IErrors,
1817
protected $fs: IFileSystem,
1918
protected $logger: ILogger,
20-
protected $nativeScriptProjectCapabilities: Project.ICapabilities,
2119
protected $options: IOptions,
2220
protected $staticConfig: Config.IStaticConfig) {
2321
this.configurationSpecificData = Object.create(null);
@@ -46,16 +44,7 @@ export abstract class ProjectBase implements Project.IProjectBase {
4644
return this.projectDir;
4745
}
4846

49-
public get capabilities(): Project.ICapabilities {
50-
const projectData = this.projectData;
51-
if (projectData) {
52-
if (projectData.Framework && projectData.Framework.toLowerCase() === TARGET_FRAMEWORK_IDENTIFIERS.NativeScript.toLowerCase()) {
53-
return this.$nativeScriptProjectCapabilities;
54-
} else if (projectData.Framework && projectData.Framework.toLowerCase() === TARGET_FRAMEWORK_IDENTIFIERS.Cordova.toLowerCase()) {
55-
return this.$cordovaProjectCapabilities;
56-
}
57-
}
58-
47+
public get capabilities(): any {
5948
return null;
6049
}
6150

lib/common/appbuilder/project/project.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@
44
import { ProjectBase } from "./project-base";
55

66
export class Project extends ProjectBase {
7-
constructor(protected $cordovaProjectCapabilities: Project.ICapabilities,
8-
protected $errors: IErrors,
7+
constructor(protected $errors: IErrors,
98
protected $fs: IFileSystem,
109
protected $logger: ILogger,
11-
protected $nativeScriptProjectCapabilities: Project.ICapabilities,
1210
protected $options: IOptions,
1311
protected $staticConfig: Config.IStaticConfig) {
14-
super($cordovaProjectCapabilities, $errors, $fs, $logger, $nativeScriptProjectCapabilities, $options, $staticConfig);
12+
super($errors, $fs, $logger, $options, $staticConfig);
1513
}
1614

1715
protected validate(): void { /* Currently unused */ }

0 commit comments

Comments
 (0)