@namiml/vega-sdk 3.4.0-dev.202605112221

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,42 @@
1
+ # @namiml/vega-sdk
2
+
3
+ Nami's subscription orchestration SDK for Amazon VegaOS — Fire TV and Fire tablet. A thin wrapper over [`@namiml/expo-sdk`](https://www.npmjs.com/package/@namiml/expo-sdk) that declares the peer dependencies Metro and the Kepler runtime require for VegaOS targets.
4
+
5
+ All SDK logic lives in `@namiml/expo-sdk`. Imports from `@namiml/vega-sdk` resolve the full Expo SDK surface.
6
+
7
+ ## Supported platforms
8
+
9
+ | Platform | Runtime |
10
+ |---|---|
11
+ | Amazon Fire TV | Kepler |
12
+ | Amazon Fire tablet | Fire OS |
13
+
14
+ ## Requirements
15
+
16
+ - React Native ≥ 0.72
17
+
18
+ ## Installation
19
+
20
+ ```bash
21
+ yarn add @namiml/vega-sdk
22
+ ```
23
+
24
+ Install the VegaOS peer dependencies alongside it. They replace the standard Expo modules for the Kepler runtime.
25
+
26
+ ## VegaOS peer dependencies
27
+
28
+ | Amazon package | Replaces |
29
+ |---|---|
30
+ | `@amazon-devices/expo-device` | `expo-device` |
31
+ | `@amazon-devices/expo-constants` | `expo-constants` |
32
+ | `@amazon-devices/expo-localization` | `expo-localization` |
33
+ | `@amazon-devices/expo-sqlite` | `expo-sqlite` |
34
+ | `@amazon-devices/expo-linking` | `expo-linking` |
35
+ | `@amazon-devices/expo-image` | `expo-image` |
36
+ | `@amazon-devices/expo-font` | `expo-font` |
37
+ | `@amazon-devices/react-native-w3cmedia` | HTML5 video / hls.js |
38
+ | `@amazon-devices/keplerscript-appstore-iap-lib` | IAP (in-app purchases) |
39
+
40
+ ## Documentation
41
+
42
+ [docs.namiml.com](https://docs.namiml.com)
package/dist/index.cjs ADDED
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ var expoSdk = require('@namiml/expo-sdk');
4
+
5
+
6
+
7
+ Object.keys(expoSdk).forEach(function (k) {
8
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
9
+ enumerable: true,
10
+ get: function () { return expoSdk[k]; }
11
+ });
12
+ });
13
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -0,0 +1 @@
1
+ export * from '@namiml/expo-sdk';
package/dist/index.mjs ADDED
@@ -0,0 +1,2 @@
1
+ export * from '@namiml/expo-sdk';
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@namiml/vega-sdk",
3
+ "version": "3.4.0-dev.202605112221",
4
+ "type": "module",
5
+ "description": "Nami Vega SDK — paywall and subscription management for Amazon VegaOS (Fire TV/tablets)",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.mjs",
8
+ "types": "./dist/index.d.ts",
9
+ "react-native": "./src/index.ts",
10
+ "source": "./src/index.ts",
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "import": "./dist/index.mjs",
15
+ "require": "./dist/index.cjs"
16
+ }
17
+ },
18
+ "files": [
19
+ "dist",
20
+ "src"
21
+ ],
22
+ "scripts": {
23
+ "build": "NAMI_SDK_ENV=development rollup -c",
24
+ "build:prod": "NAMI_SDK_ENV=production rollup -c",
25
+ "clean": "rm -rf dist",
26
+ "dev": "NAMI_SDK_ENV=development rollup -c -w",
27
+ "prepublishOnly": "yarn clean && yarn build:prod"
28
+ },
29
+ "dependencies": {
30
+ "@namiml/expo-sdk": "3.4.0-dev.202605112221"
31
+ },
32
+ "peerDependencies": {
33
+ "@amazon-devices/expo-constants": "*",
34
+ "@amazon-devices/expo-device": "*",
35
+ "@amazon-devices/expo-font": "*",
36
+ "@amazon-devices/expo-image": "*",
37
+ "@amazon-devices/expo-linking": "*",
38
+ "@amazon-devices/expo-localization": "*",
39
+ "@amazon-devices/expo-sqlite": "*",
40
+ "@amazon-devices/keplerscript-appstore-iap-lib": "~2.12.10",
41
+ "@amazon-devices/react-native-w3cmedia": "*",
42
+ "react": ">=18.0.0",
43
+ "react-native": ">=0.72.0"
44
+ },
45
+ "devDependencies": {
46
+ "@rollup/plugin-commonjs": "^28.0.0",
47
+ "@rollup/plugin-node-resolve": "^16.0.0",
48
+ "@rollup/plugin-replace": "^6.0.0",
49
+ "@rollup/plugin-typescript": "^12.1.2",
50
+ "rollup": "^4.18.0",
51
+ "rollup-plugin-dts": "^6.1.0",
52
+ "typescript": "^5.4.5"
53
+ },
54
+ "packageManager": "yarn@4.4.0"
55
+ }
@@ -0,0 +1,5 @@
1
+ declare global {
2
+ const NAMI_SDK_ENV: string;
3
+ }
4
+
5
+ export {};
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from '@namiml/expo-sdk';