@absolutejs/absolute 0.20.0-beta.22 → 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) => {
@@ -1,42 +1,8 @@
1
- export type AbsoluteIosReportResult = 'FAIL' | 'NOT_RUN' | 'PASS' | 'SKIPPED';
2
- export type AbsoluteIosReportCheck = {
3
- details: string;
4
- evidence?: string;
5
- id: string;
6
- result: AbsoluteIosReportResult;
7
- };
8
- export type AbsoluteIosAutomatedResult = {
9
- appId: string;
10
- durationMs: number;
11
- error?: string;
12
- hmr?: {
13
- clientMs?: number;
14
- durationMs: number;
15
- outcome: 'applied' | 'failed' | 'reloaded';
16
- serverMs?: number;
17
- };
18
- hmrConnected: boolean;
19
- port: number;
20
- screenshot?: string;
21
- status: 'fail' | 'pass';
1
+ import { type AbsoluteNativeAutomatedRun, type AbsoluteNativeTestReport } from './nativeTestReport';
2
+ export type AbsoluteIosAutomatedResult = Omit<AbsoluteNativeAutomatedRun, 'platform' | 'targetId' | 'targetKind'> & {
22
3
  udid: string;
23
4
  };
24
- export type AbsoluteIosPartnerReport = {
25
- automatedChecks: AbsoluteIosReportCheck[];
26
- generatedAt: string;
27
- manualChecks: AbsoluteIosReportCheck[];
28
- metadata: {
29
- absolutejsVersion: string;
30
- bunVersion: string;
31
- macosVersion: string;
32
- provider: 'capacitor';
33
- xcodeVersion: string;
34
- };
35
- overallResult: 'FAIL' | 'INCOMPLETE';
36
- platform: 'ios';
37
- reportVersion: 1;
38
- run: AbsoluteIosAutomatedResult;
39
- };
5
+ export type AbsoluteIosPartnerReport = AbsoluteNativeTestReport;
40
6
  type CreateAbsoluteIosPartnerReportOptions = {
41
7
  absolutejsVersion: string;
42
8
  bunVersion: string;
@@ -45,13 +11,13 @@ type CreateAbsoluteIosPartnerReportOptions = {
45
11
  run: AbsoluteIosAutomatedResult;
46
12
  xcodeVersion: string;
47
13
  };
48
- export declare const sanitizeIosReportText: (value: string) => string;
49
- export declare const createAbsoluteIosPartnerReport: (options: CreateAbsoluteIosPartnerReportOptions) => AbsoluteIosPartnerReport;
50
14
  export declare const readPackageVersionForIosReport: (packageJsonPath: string) => Promise<string>;
51
- export declare const renderAbsoluteIosPartnerReport: (report: AbsoluteIosPartnerReport) => string;
52
- export declare const writeAbsoluteIosPartnerReport: (directory: string, report: AbsoluteIosPartnerReport) => Promise<{
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<{
53
18
  directory: string;
54
19
  jsonPath: string;
55
20
  markdownPath: string;
56
21
  }>;
22
+ export declare const createAbsoluteIosPartnerReport: (options: CreateAbsoluteIosPartnerReportOptions) => AbsoluteNativeTestReport;
57
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",
@@ -496,7 +498,7 @@
496
498
  ]
497
499
  }
498
500
  },
499
- "version": "0.20.0-beta.22",
501
+ "version": "0.20.0-beta.23",
500
502
  "workspaces": [
501
503
  "tests/fixtures/*",
502
504
  "tests/fixtures/_packages/*"