Skip to content

Commit

Permalink
remove firefoxtv, firefoxos
Browse files Browse the repository at this point in the history
  • Loading branch information
pavjacko committed Oct 5, 2023
1 parent 7aab308 commit 71b1208
Show file tree
Hide file tree
Showing 22 changed files with 8 additions and 260 deletions.
2 changes: 0 additions & 2 deletions __mocks__/@rnv/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ const runtime: any = {
'tizenwatch',
'tizenmobile',
'kaios',
'firefoxos',
'firefoxtv',
'chromecast',
],
};
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
"cross-platform",
"desktop",
"electron",
"firefox tv",
"firefoxox",
"firetv",
"kaios",
"kit",
Expand Down
49 changes: 0 additions & 49 deletions packages/core/src/__tests__/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ describe('Testing rnv run', () => {
itShouldResolve('run -p webos');
itShouldResolve('run -p web');
itShouldResolve('run -p macos');
itShouldResolve('run -p firefoxtv');
itShouldResolve('run -p firefoxos');
});

describe('Testing rnv build', () => {
Expand All @@ -75,8 +73,6 @@ describe('Testing rnv build', () => {
itShouldResolve('build -p webos');
itShouldResolve('build -p web');
itShouldResolve('build -p macos');
itShouldResolve('build -p firefoxtv');
itShouldResolve('build -p firefoxos');
});

describe('Testing rnv package', () => {
Expand Down Expand Up @@ -144,48 +140,3 @@ const shouldResolve = async () => {
// await cli(getConfig(cmd));
// await expect(cli(getConfig(cmd), null, true)).resolves;
};

// const getConfig = (s) => {
// const argArray = s.split(' ');

// const cmd = argArray.shift();
// let subCmd;

// if (argArray[0]) {
// if (!argArray[0].startsWith('-')) {
// subCmd = argArray.shift();
// }
// }

// const c = createRnvConfig({
// command: cmd,
// subCommand: subCmd
// }, { process: true }, cmd, subCmd);

// c.buildConfig = {
// defaults: {
// supportedPlatforms: ['ios', 'android', 'tizen', 'web', 'macos',
// 'webos', 'tizenmobile', 'tizenwatch', 'androidtv', 'androidwear',
// 'firefoxtv', 'firefoxos']
// },
// defaultTargets: {},
// common: {}
// };

// argArray.forEach((v, i) => {
// switch (v) {
// case '-p':
// c.platform = argArray[i + 1];
// break;
// case '-t':
// c.target = argArray[i + 1];
// break;
// default:
// // DO nothing
// }
// });
// configureFilesystem(() => {}, () => {});

// generateBuildConfig(c);
// return c;
// };
4 changes: 0 additions & 4 deletions packages/core/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ export const ASTIAN = 'astian';
export const BLACKBERRY = 'blackberry';
export const CHROMECAST = 'chromecast';
export const CHROME_OS = 'chromeos';
export const FIREFOX_OS = 'firefoxos';
export const FIREFOX_TV = 'firefoxtv';
export const FIRE_OS = 'fireos';
export const FIRE_TV = 'firetv';
export const HBBTV = 'hbbtv';
Expand Down Expand Up @@ -117,8 +115,6 @@ export const SUPPORTED_PLATFORMS = [
LINUX,
TIZEN_WATCH,
KAIOS,
FIREFOX_OS,
FIREFOX_TV,
CHROMECAST,
];

Expand Down
20 changes: 5 additions & 15 deletions packages/core/src/schema/schemaRenativeJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,7 @@ const pluginProps = {
...commonPluginPlatformProps,
},
},
firefox: {
kaios: {
additionalProperties: false,
type: 'object',
properties: {
Expand Down Expand Up @@ -1293,7 +1293,7 @@ export const schemaPlatforms = {
...platformChromecastProps,
},
},
firefox: {
kaios: {
additionalProperties: false,
type: 'object',
properties: {
Expand Down Expand Up @@ -1454,14 +1454,6 @@ export const schemaRoot = {
// $ref: 'platforms.json#/definitions/windows'
...schemaPlatforms.definitions.xbox,
},
firefoxtv: {
// $ref: 'platforms.json#/definitions/firefox'
...schemaPlatforms.definitions.firefox,
},
firefoxos: {
// $ref: 'platforms.json#/definitions/firefox'
...schemaPlatforms.definitions.firefox,
},
tizenmobile: {
// $ref: 'platforms.json#/definitions/tizen'
...schemaPlatforms.definitions.tizen,
Expand All @@ -1475,8 +1467,8 @@ export const schemaRoot = {
...schemaPlatforms.definitions.android,
},
kaios: {
// $ref: 'platforms.json#/definitions/firefox'
...schemaPlatforms.definitions.firefox,
// $ref: 'platforms.json#/definitions/kaios'
...schemaPlatforms.definitions.kaios,
},
},
},
Expand Down Expand Up @@ -1904,10 +1896,8 @@ To skip file overrides coming from source plugin you need to detach it from the
tizenmobile: 8191,
windows: 8192,
kaios: 8193,
firefoxos: 8194,
firefoxtv: 8114,
linux: 8194,
webtv: 8195,
linux: 8200,
},
],
},
Expand Down
3 changes: 1 addition & 2 deletions packages/engine-lightning/renative.engine.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
},
"platforms": {
"tizen": {},
"webos": {},
"firefoxtv": {}
"webos": {}
}
}
4 changes: 1 addition & 3 deletions packages/engine-rn-web/renative.engine.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
"tizenwatch": {},
"tizenmobile": {},
"chromecast": {},
"kaios": {},
"firefoxos": {},
"firefoxtv": {}
"kaios": {}
}
}
13 changes: 0 additions & 13 deletions packages/engine-rn-web/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,6 @@ const Engine: RnvEngine = {
isWebHosted: true,
extensions: generateEngineExtensions(['webos.tv', 'web.tv', 'tv', 'webos', 'tv.web', 'web'], CNF),
},
firefoxos: {
defaultPort: 8094,
isWebHosted: true,
extensions: generateEngineExtensions(
['firefoxos.mobile', 'mobile', 'firefoxos', 'mobile.web', 'native'],
CNF
),
},
firefoxtv: {
defaultPort: 8097,
isWebHosted: true,
extensions: generateEngineExtensions(['firefoxtv.tv', 'web.tv', 'tv', 'firefoxtv', 'tv.web', 'web'], CNF),
},
kaios: {
defaultPort: 8093,
isWebHosted: true,
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions packages/renative/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
"cross-platform",
"desktop",
"electron",
"firefox tv",
"firefoxox",
"kaios",
"kit",
"kotlin",
Expand Down
3 changes: 0 additions & 3 deletions packages/renative/src/api/platform/index.firefoxtv.ts

This file was deleted.

2 changes: 0 additions & 2 deletions packages/renative/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ export enum Platform {
androidwear = 'androidwear',
androidauto = 'androidauto',
alexa = 'alexa',
firefoxos = 'firefoxos',
firefoxtv = 'firefoxtv',
firetv = 'firetv',
fireos = 'fireos',
kaios = 'kaios',
Expand Down
4 changes: 0 additions & 4 deletions packages/renative/src/is.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ export const isPlatformTizenmobile = platform === Platform.tizenmobile;
export const isPlatformMacos = platform === Platform.macos;
export const isPlatformWindows = platform === Platform.windows;
export const isPlatformLinux = platform === Platform.linux;
export const isPlatformFirefoxos = platform === Platform.firefoxos;
export const isPlatformFirefoxtv = platform === Platform.firefoxtv;
export const isPlatformKaios = platform === Platform.kaios;
export const isPlatformWebtv = platform === Platform.webtv;
export const isPlatformXbox = platform === Platform.xbox;
Expand Down Expand Up @@ -57,7 +55,5 @@ export const isTizenwatch = () => platform === Platform.tizenwatch;
export const isTizenmobile = () => platform === Platform.tizenmobile;
export const isMacos = () => platform === Platform.macos;
export const isWindows = () => platform === Platform.windows;
export const isFirefoxos = () => platform === Platform.firefoxos;
export const isFirefoxtv = () => platform === Platform.firefoxtv;
export const isKaios = () => platform === Platform.kaios;
export const isWebtv = () => platform === Platform.webtv;
6 changes: 0 additions & 6 deletions packages/rnv/coreTemplateFiles/renative.templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,6 @@
"chromecast": {
"engine": "engine-rn-web"
},
"firefoxos": {
"engine": "engine-rn-web"
},
"firefoxtv": {
"engine": "engine-rn-web"
},
"kaios": {
"engine": "engine-rn-web"
},
Expand Down
2 changes: 0 additions & 2 deletions packages/rnv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
"cross-platform",
"desktop",
"electron",
"firefox tv",
"firefoxox",
"kaios",
"kit",
"kotlin",
Expand Down
2 changes: 0 additions & 2 deletions packages/template-starter/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ appConfigs/base/assets/tizen
appConfigs/base/assets/tizenwatch
appConfigs/base/assets/tizenwear
appConfigs/base/assets/kaios
appConfigs/base/assets/firefoxos
appConfigs/base/assets/firefoxtv
appConfigs/base/assets/firetv
appConfigs/base/assets/androidwear
appConfigs/base/assets/xbox
Expand Down
Loading

0 comments on commit 71b1208

Please sign in to comment.