@absolutejs/absolute 0.20.0-beta.21 → 0.20.0-beta.23

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.
@@ -0,0 +1,14 @@
1
+ import { type AbsoluteNativeAutomatedRun } from './nativeTestReport';
2
+ export type AbsoluteAndroidAutomatedResult = Omit<AbsoluteNativeAutomatedRun, 'platform' | 'targetId' | 'targetKind'> & {
3
+ serial: string;
4
+ };
5
+ type CreateAbsoluteAndroidTestReportOptions = {
6
+ absolutejsVersion: string;
7
+ adbVersion: string;
8
+ bunVersion: string;
9
+ generatedAt?: string;
10
+ host: string;
11
+ run: AbsoluteAndroidAutomatedResult;
12
+ };
13
+ export declare const createAbsoluteAndroidTestReport: (options: CreateAbsoluteAndroidTestReportOptions) => import("./nativeTestReport").AbsoluteNativeTestReport;
14
+ export {};
@@ -6,12 +6,14 @@ export type AbsoluteDeviceCapabilityProvider = {
6
6
  permissions: string[];
7
7
  };
8
8
  ios?: {
9
- usageDescriptions: AbsoluteIosUsageDescription[];
9
+ privacyAccessedApis?: Partial<Record<AbsoluteIosPrivacyAccessedApi, string[]>>;
10
+ usageDescriptions?: AbsoluteIosUsageDescription[];
10
11
  };
11
12
  };
12
13
  packages: string[];
13
14
  };
14
15
  export type AbsoluteIosUsageDescription = 'camera' | 'location-always' | 'location-when-in-use' | 'photo-library' | 'photo-library-add';
16
+ export type AbsoluteIosPrivacyAccessedApi = 'NSPrivacyAccessedAPICategoryFileTimestamp';
15
17
  export type AbsoluteDeviceCapabilityPlan = {
16
18
  capabilities: string[];
17
19
  providers: Record<string, AbsoluteDeviceCapabilityProvider>;
@@ -19,6 +21,10 @@ export type AbsoluteDeviceCapabilityPlan = {
19
21
  };
20
22
  export declare const absoluteDeviceNativeRequirements: (plan: AbsoluteDeviceCapabilityPlan) => {
21
23
  androidPermissions: string[];
24
+ iosPrivacyAccessedApis: {
25
+ api: "NSPrivacyAccessedAPICategoryFileTimestamp";
26
+ reasons: string[];
27
+ }[];
22
28
  iosUsageDescriptions: AbsoluteIosUsageDescription[];
23
29
  };
24
30
  export declare const loadAbsoluteDeviceCapabilityProviders: (projectRoot: string) => {
@@ -0,0 +1,23 @@
1
+ import { type AbsoluteNativeAutomatedRun, type AbsoluteNativeTestReport } from './nativeTestReport';
2
+ export type AbsoluteIosAutomatedResult = Omit<AbsoluteNativeAutomatedRun, 'platform' | 'targetId' | 'targetKind'> & {
3
+ udid: string;
4
+ };
5
+ export type AbsoluteIosPartnerReport = AbsoluteNativeTestReport;
6
+ type CreateAbsoluteIosPartnerReportOptions = {
7
+ absolutejsVersion: string;
8
+ bunVersion: string;
9
+ generatedAt?: string;
10
+ macosVersion: string;
11
+ run: AbsoluteIosAutomatedResult;
12
+ xcodeVersion: string;
13
+ };
14
+ export declare const readPackageVersionForIosReport: (packageJsonPath: string) => Promise<string>;
15
+ export declare const renderAbsoluteIosPartnerReport: (report: AbsoluteNativeTestReport) => string;
16
+ export declare const sanitizeIosReportText: (value: string) => string;
17
+ export declare const writeAbsoluteIosPartnerReport: (directory: string, report: AbsoluteNativeTestReport) => Promise<{
18
+ directory: string;
19
+ jsonPath: string;
20
+ markdownPath: string;
21
+ }>;
22
+ export declare const createAbsoluteIosPartnerReport: (options: CreateAbsoluteIosPartnerReportOptions) => AbsoluteNativeTestReport;
23
+ export {};
@@ -0,0 +1,72 @@
1
+ export type AbsoluteNativeReportResult = 'FAIL' | 'NOT_RUN' | 'PASS' | 'SKIPPED';
2
+ export type AbsoluteNativeReportCheck = {
3
+ details: string;
4
+ evidence?: string;
5
+ id: string;
6
+ result: AbsoluteNativeReportResult;
7
+ };
8
+ export type AbsoluteNativeHmrResult = {
9
+ clientMs?: number;
10
+ durationMs: number;
11
+ outcome: 'applied' | 'failed' | 'reloaded';
12
+ serverMs?: number;
13
+ };
14
+ export type AbsoluteNativeAutomatedRun = {
15
+ appId: string;
16
+ durationMs: number;
17
+ error?: string;
18
+ hmr?: AbsoluteNativeHmrResult;
19
+ hmrConnected: boolean;
20
+ platform: 'android' | 'ios';
21
+ port: number;
22
+ routes?: string[];
23
+ screenshot?: string;
24
+ status: 'fail' | 'pass';
25
+ targetId: string;
26
+ targetKind: 'device' | 'emulator' | 'simulator';
27
+ };
28
+ export type AbsoluteNativeTestReport = {
29
+ automatedChecks: AbsoluteNativeReportCheck[];
30
+ generatedAt: string;
31
+ manualChecks: AbsoluteNativeReportCheck[];
32
+ metadata: Record<string, string> & {
33
+ absolutejsVersion: string;
34
+ bunVersion: string;
35
+ provider: 'capacitor';
36
+ };
37
+ overallResult: 'FAIL' | 'INCOMPLETE';
38
+ platform: 'android' | 'ios';
39
+ reportVersion: 1;
40
+ run: AbsoluteNativeAutomatedRun;
41
+ };
42
+ export type AbsoluteNativeManualCheckDefinition = readonly [
43
+ id: string,
44
+ details: string
45
+ ];
46
+ type CreateAbsoluteNativeTestReportOptions = {
47
+ automatedChecks?: AbsoluteNativeReportCheck[];
48
+ generatedAt?: string;
49
+ manualChecks: readonly AbsoluteNativeManualCheckDefinition[];
50
+ metadata: AbsoluteNativeTestReport['metadata'];
51
+ run: AbsoluteNativeAutomatedRun;
52
+ };
53
+ export declare const sanitizeNativeReportText: (value: string) => string;
54
+ export declare const createAbsoluteNativeAutomatedChecks: (run: AbsoluteNativeAutomatedRun) => ({
55
+ id: string;
56
+ result: "FAIL" | "PASS";
57
+ evidence?: string | undefined;
58
+ details: string;
59
+ } | {
60
+ details: string;
61
+ id: string;
62
+ result: "FAIL" | "NOT_RUN" | "PASS";
63
+ })[];
64
+ export declare const createAbsoluteNativeTestReport: (options: CreateAbsoluteNativeTestReportOptions) => AbsoluteNativeTestReport;
65
+ export declare const readPackageVersionForNativeReport: (packageJsonPath: string) => Promise<string>;
66
+ export declare const renderAbsoluteNativeTestReport: (report: AbsoluteNativeTestReport) => string;
67
+ export declare const writeAbsoluteNativeTestReport: (directory: string, report: AbsoluteNativeTestReport) => Promise<{
68
+ directory: string;
69
+ jsonPath: string;
70
+ markdownPath: string;
71
+ }>;
72
+ export {};
package/package.json CHANGED
@@ -8,8 +8,8 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "@absolutejs/auth": "0.72.0",
11
- "@absolutejs/devices": "0.3.0",
12
- "@absolutejs/devices-capacitor": "0.4.0",
11
+ "@absolutejs/devices": "0.4.0",
12
+ "@absolutejs/devices-capacitor": "0.5.0",
13
13
  "@absolutejs/pwa": "0.13.0",
14
14
  "@capacitor/browser": "8.0.4",
15
15
  "@capacitor/network": "8.0.1",
@@ -48,6 +48,8 @@
48
48
  "@capacitor/cli": "8.5.0",
49
49
  "@capacitor/clipboard": "8.0.1",
50
50
  "@capacitor/core": "8.5.0",
51
+ "@capacitor/file-viewer": "2.0.2",
52
+ "@capacitor/filesystem": "8.1.3",
51
53
  "@capacitor/geolocation": "8.2.2",
52
54
  "@capacitor/haptics": "8.0.2",
53
55
  "@capacitor/ios": "8.5.0",
@@ -280,12 +282,12 @@
280
282
  "main": "./dist/index.js",
281
283
  "name": "@absolutejs/absolute",
282
284
  "optionalDependencies": {
283
- "@absolutejs/native-darwin-arm64": "0.20.0-beta.21",
284
- "@absolutejs/native-darwin-x64": "0.20.0-beta.21",
285
- "@absolutejs/native-linux-arm64": "0.20.0-beta.21",
286
- "@absolutejs/native-linux-x64": "0.20.0-beta.21",
287
- "@absolutejs/native-windows-arm64": "0.20.0-beta.21",
288
- "@absolutejs/native-windows-x64": "0.20.0-beta.21"
285
+ "@absolutejs/native-darwin-arm64": "0.20.0-beta.22",
286
+ "@absolutejs/native-darwin-x64": "0.20.0-beta.22",
287
+ "@absolutejs/native-linux-arm64": "0.20.0-beta.22",
288
+ "@absolutejs/native-linux-x64": "0.20.0-beta.22",
289
+ "@absolutejs/native-windows-arm64": "0.20.0-beta.22",
290
+ "@absolutejs/native-windows-x64": "0.20.0-beta.22"
289
291
  },
290
292
  "overrides": {
291
293
  "@sinclair/typebox": "0.34.52",
@@ -496,7 +498,7 @@
496
498
  ]
497
499
  }
498
500
  },
499
- "version": "0.20.0-beta.21",
501
+ "version": "0.20.0-beta.23",
500
502
  "workspaces": [
501
503
  "tests/fixtures/*",
502
504
  "tests/fixtures/_packages/*"