Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@amazon-devices:registry=https://k-artifactory-external.labcollab.net/artifactory/api/npm/vegasdk-npm-rn83-alpha_prod/
always-auth=true
strict-ssl=true
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ yarn expotv:web

| | Expo TV | Vega (Fire TV) |
|---|---------|----------------|
| Framework | Expo SDK 54 | Kepler (@amazon-devices/react-native-kepler ^2.0.0) |
| React | 19.1.0 | 18.2.0 |
| React Native | react-native-tvos 0.81-stable | 0.72.0 |
| Framework | Expo SDK 55 | Kepler (@amazon-devices/react-native-kepler ^2.0.0) |
| React | 19.2.0 | 18.2.0 |
| React Native | react-native-tvos 0.83.6-0 | 0.72.0 |
| TypeScript | ~5.9.2 | 4.8.4 |

The shared package (`@multitv/shared`) provides:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"clean": "yarn workspaces foreach --all run clean ; rm -rf node_modules",
"vega:build": "yarn workspace @multitv/vega run build:debug",
"expotv": "yarn workspace @multitv/expotv",
"expotv:prebuild": "yarn workspace @multitv/expotv run prebuild",
"expotv:prebuild": "yarn workspace @multitv/expotv run prebuild:tv",
"expotv:android": "yarn workspace @multitv/expotv run android",
"expotv:ios": "yarn workspace @multitv/expotv run ios",
"expotv:web": "yarn workspace @multitv/expotv run web"
Expand Down
2 changes: 0 additions & 2 deletions packages/expotv/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"expo-web-browser"
],
"android": {
"edgeToEdgeEnabled": true,
"splash": {
"image": "./assets/images/splash.png"
},
Expand All @@ -51,7 +50,6 @@
"autolinkingModuleResolution": true,
"typedRoutes": true
},
"newArchEnabled": true,
"name": "MyTVProject",
"slug": "MyTVProject"
}
Expand Down
37 changes: 20 additions & 17 deletions packages/expotv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,34 @@
"deploy": "npx expo export -p web && npx eas-cli@latest deploy"
},
"dependencies": {
"@expo/log-box": "55.0.12",
"@expo/vector-icons": "^15.0.2",
"@multitv/shared": "*",
"expo": "^54.0.20",
"expo-build-properties": "~1.0.9",
"expo-font": "~14.0.9",
"expo-linking": "~8.0.8",
"expo-router": "~6.0.13",
"expo-splash-screen": "~31.0.10",
"expo-status-bar": "~3.0.8",
"expo-system-ui": "~6.0.8",
"expo-web-browser": "~15.0.8",
"expo": "^55.0.0",
"expo-build-properties": "~55.0.14",
"expo-constants": "~55.0.16",
"expo-font": "~55.0.7",
"expo-linking": "~55.0.15",
"expo-router": "~55.0.14",
"expo-splash-screen": "~55.0.21",
"expo-status-bar": "~55.0.6",
"expo-system-ui": "~55.0.18",
"expo-web-browser": "~55.0.16",
"lottie-react-native": "7.3.4",
"react": "19.1.0",
"react-dom": "19.1.0",
"react-native": "npm:react-native-tvos@0.81-stable",
"react-native-gesture-handler": "~2.28.0",
"react-native-reanimated": "~4.1.1",
"react": "19.2.0",
"react-dom": "19.2.0",
"react-native": "npm:react-native-tvos@0.83.6-0",
"react-native-gesture-handler": "~2.30.0",
"react-native-reanimated": "4.2.1",
"react-native-safe-area-context": "~5.6.0",
"react-native-screens": "~4.16.0",
"react-native-screens": "~4.23.0",
"react-native-web": "^0.21.0",
"react-native-worklets": "0.5.1"
"react-native-worklets": "0.7.4"
},
"devDependencies": {
"@babel/core": "^7.25.0",
"@react-native-tvos/config-tv": "^0.1.4",
"@types/react": "~19.1.10",
"@types/react": "~19.2.10",
"typescript": "~5.9.2"
},
"expo": {
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/components/Tile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@ const styles = StyleSheet.create({
fontWeight: 'bold',
textAlign: 'center',
lineHeight: scaleFontSize(52),
includeFontPadding: false,
width: '100%'
},
});
2 changes: 0 additions & 2 deletions packages/vega/.prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"bracketSameLine": true,
"bracketSpacing": false,
"singleQuote": true,
"trailingComma": "all",
"tabWidth": 2
Expand Down
2 changes: 1 addition & 1 deletion packages/vega/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module.exports = {
presets: [
[
'module:metro-react-native-babel-preset',
'module:@react-native/babel-preset',
],
'module:@amazon-devices/kepler-module-resolver-preset', // Enables usage of VegaModuleResolverPreset
]
Expand Down
12 changes: 3 additions & 9 deletions packages/vega/jest.config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"preset": "react-native",
"transform": {
"^.+\\.tsx?$": "ts-jest"
"^.+\\.tsx?$": ["ts-jest", { "babelConfig": true, "diagnostics": true }]
},
"setupFiles": ["./node_modules/@amazon-devices/react-native-kepler/jest/setup.js"],
"testRegex": "/test/.*\\.(test|spec)\\.(ts|tsx|js)$",
Expand All @@ -24,13 +24,7 @@
"!src/**/*.d.ts"
],
"transformIgnorePatterns": [
"node_modules/(?![\\w\\-_]+)/node_modules/(?!react-native|@react-native)/"
"node_modules/(?!((jest-)?react-native|@react-native(-community)?|@amazon-devices/react-native-kepler|react-native-safe-area-context)/)"
],
"coverageDirectory": ".tmp/coverage",
"globals": {
"ts-jest": {
"babelConfig": true,
"diagnostics": true
}
}
"coverageDirectory": ".tmp/coverage"
}
2 changes: 1 addition & 1 deletion packages/vega/manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ id = "com.amazondeveloper.hellosharedworkspace"
[components]
[[components.interactive]]
id = "com.amazondeveloper.hellosharedworkspace.main"
runtime-module = "/com.amazon.kepler.keplerscript.runtime.loader_2@IKeplerScript_2_0"
runtime-module = "/com.amazon.kepler.runtime.react_native_kepler_4@IReactNativeKepler_0"
launch-type = "singleton"
categories = ["com.amazon.category.main"]
46 changes: 26 additions & 20 deletions packages/vega/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,35 +20,41 @@
},
"dependencies": {
"@amazon-devices/kepler-module-resolver-preset": "^0.1.15",
"@amazon-devices/lottie-react-native": "~2.0.0",
"@amazon-devices/react-native-kepler": "^2.0.0",
"@amazon-devices/lottie-react-native": "3.0.9000000000",
"@amazon-devices/react-native-kepler": "4.0.0",
"@multitv/shared": "*",
"@react-native/new-app-screen": "0.83.0",
"babel-plugin-module-resolver": "^5.0.2",
"react": "18.2.0",
"react-native": "0.72.0"
"react": "19.2.0",
"react-native": "0.83.0",
"react-native-safe-area-context": "^5.5.2"
},
"devDependencies": {
"@amazon-devices/kepler-cli-platform": "~0.22.0",
"@react-native-community/cli": "11.3.2",
"@react-native/eslint-config": "0.72.2",
"@react-native/metro-config": "^0.72.6",
"@amazon-devices/kepler-cli-platform": "0.22.13",
"@amazon-devices/keplerscript-commonmodules": "^1.0.0",
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@babel/runtime": "^7.25.0",
"@react-native-community/cli": "^20.0.0",
"@react-native/babel-preset": "0.83.0",
"@react-native/eslint-config": "0.83.0",
"@react-native/metro-config": "0.83.0",
"@react-native/typescript-config": "0.83.0",
"@testing-library/react-native": "^7.2.0",
"@tsconfig/react-native": "^3.0.2",
"@types/jest": "^28.0.0",
"@types/react": "^18.0.24",
"@types/react-test-renderer": "^18.0.0",
"@types/jest": "^29.5.0",
"@types/react": "^19.2.0",
"@types/react-test-renderer": "^19.1.0",
"@typescript-eslint/eslint-plugin": "^5.30.0",
"babel-jest": "^28.0.0",
"eslint": "^8.12.0",
"jest": "^28.0.0",
"metro-react-native-babel-preset": "^0.76.5",
"babel-jest": "^29.6.3",
"eslint": "^8.57.0",
"jest": "^29.6.3",
"mustache": "^4.2.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.6.2",
"prettier": "2.8.8",
"react-native-monorepo-tools": "^1.2.1",
"react-test-renderer": "18.2.0",
"ts-jest": "^28.0.0",
"typescript": "4.8.4"
"react-test-renderer": "19.2.0",
"ts-jest": "^29.1.0",
"typescript": "5.8.3"
},
"kepler": {
"projectType": "application",
Expand Down
25 changes: 17 additions & 8 deletions packages/vega/test/App.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,28 @@
import 'react-native';
import {fireEvent, render} from '@testing-library/react-native';
import * as React from 'react';
import ReactTestRenderer from 'react-test-renderer';

import {App} from '../src/App';

describe('Template App Snapshot tests', () => {
it('Initial App screen', () => {
const screen = render(<App />);
expect(screen).toMatchSnapshot();
it('Initial App screen', async () => {
let screen: ReturnType<typeof render>;
await ReactTestRenderer.act(async () => {
screen = render(<App />);
});
expect(screen!).toMatchSnapshot();
});

it('App screen after link press', () => {
const screen = render(<App />);
const button = screen.getByTestId('sampleLink');
fireEvent.press(button);
expect(screen).toMatchSnapshot();
it('App screen after link press', async () => {
let screen: ReturnType<typeof render>;
await ReactTestRenderer.act(async () => {
screen = render(<App />);
});
const button = screen!.getByTestId('sampleLink');
await ReactTestRenderer.act(async () => {
fireEvent.press(button);
});
expect(screen!).toMatchSnapshot();
});
});
10 changes: 6 additions & 4 deletions packages/vega/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"extends": "@tsconfig/react-native/tsconfig.json",
"compilerOptions": {
"types": ["jest", "@amazon-devices/react-native-kepler"], /* Override "jest", "react-native" from @tsconfig/react-native */
},
"extends": "@react-native/typescript-config",
"compilerOptions": {
"types": ["jest", "@amazon-devices/react-native-kepler"]
},
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["**/node_modules"]
}
3 changes: 1 addition & 2 deletions vega-monorepo-sample.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@
"path": "packages/vega"
}
],
"settings": {
}
"settings": {}
}
Loading
Loading