@pagopa/io-react-native-iso18013 0.8.0 → 0.8.1

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.
@@ -1,5 +1,5 @@
1
- IoReactNativeIso18013_kotlinVersion=2.0.21
1
+ IoReactNativeIso18013_kotlinVersion=2.1.20
2
2
  IoReactNativeIso18013_minSdkVersion=26
3
- IoReactNativeIso18013_targetSdkVersion=34
4
- IoReactNativeIso18013_compileSdkVersion=35
3
+ IoReactNativeIso18013_targetSdkVersion=36
4
+ IoReactNativeIso18013_compileSdkVersion=36
5
5
  IoReactNativeIso18013_ndkVersion=27.1.12297006
@@ -56,7 +56,7 @@ class IoReactNativeIso18013Module(reactContext: ReactApplicationContext) :
56
56
  nfcEventJob?.cancel()
57
57
  nfcEventJob = null
58
58
  nfcScope.coroutineContext[Job]?.cancel()
59
- currentActivity?.let { NfcEngagementService.disable(it) }
59
+ reactApplicationContext.currentActivity?.let { NfcEngagementService.disable(it) }
60
60
  }
61
61
 
62
62
  /**
@@ -82,7 +82,7 @@ class IoReactNativeIso18013Module(reactContext: ReactApplicationContext) :
82
82
  promise: Promise
83
83
  ) {
84
84
  try {
85
- val activity = checkNotNull(currentActivity) { "No activity available" }
85
+ val activity = checkNotNull(reactApplicationContext.currentActivity) { "No activity available" }
86
86
 
87
87
  val certificatesList = parseCertificates(certificates)
88
88
  val parsedEngagementModes = parseEngagementModes(enagementModes)
@@ -172,7 +172,7 @@ class IoReactNativeIso18013Module(reactContext: ReactApplicationContext) :
172
172
  sessionTranscript = null
173
173
  nfcEventJob?.cancel()
174
174
  nfcEventJob = null
175
- currentActivity?.let { NfcEngagementService.disable(it) }
175
+ reactApplicationContext.currentActivity?.let { NfcEngagementService.disable(it) }
176
176
  promise.resolve(true)
177
177
  } catch (e: Exception) {
178
178
  promise.reject(ModuleErrorCodes.CLOSE_ERROR, message = e.message, e)
@@ -66,7 +66,7 @@ The parsed object will contain properties from both iOS and Android platforms:
66
66
  userInfo?: Record<string, any> | null;
67
67
  nativeStackAndroid?: Array<{
68
68
  lineNumber: number;
69
- file: string;
69
+ file: string | null
70
70
  methodName: string;
71
71
  class: string;
72
72
  }>;
@@ -75,7 +75,7 @@ The parsed object will contain properties from both iOS and Android platforms:
75
75
  userInfo?: Record<string, any> | null;
76
76
  nativeStackAndroid?: Array<{
77
77
  lineNumber: number;
78
- file: string;
78
+ file: string | null
79
79
  methodName: string;
80
80
  class: string;
81
81
  }>;
@@ -420,7 +420,7 @@ The parsed object will contain properties from both iOS and Android platforms:
420
420
  userInfo?: Record<string, any> | null;
421
421
  nativeStackAndroid?: Array<{
422
422
  lineNumber: number;
423
- file: string;
423
+ file: string | null
424
424
  methodName: string;
425
425
  class: string;
426
426
  }>;
@@ -74,7 +74,7 @@ The parsed object will contain properties from both iOS and Android platforms:
74
74
  userInfo?: Record<string, any> | null;
75
75
  nativeStackAndroid?: Array<{
76
76
  lineNumber: number;
77
- file: string;
77
+ file: string | null
78
78
  methodName: string;
79
79
  class: string;
80
80
  }>;
@@ -7,7 +7,7 @@ import { z } from 'zod';
7
7
  */
8
8
  const StackTraceElementSchema = z.object({
9
9
  lineNumber: z.number(),
10
- file: z.string(),
10
+ file: z.string().nullable(),
11
11
  methodName: z.string(),
12
12
  class: z.string()
13
13
  });
@@ -1 +1 @@
1
- {"version":3,"names":["z","StackTraceElementSchema","object","lineNumber","number","file","string","methodName","class","ModuleErrorAndroidSchema","nativeStackAndroid","array","partial","ModuleErrorIosSchema","domain","nativeStackIOS","GenericModuleErrorSchema","codeSchema","code","message","name","userInfo","record","any","optional","or","null","and"],"sourceRoot":"../../src","sources":["schema.ts"],"mappings":";;AAAA,SAASA,CAAC,QAAQ,KAAK;;AAEvB;AACA;AACA;AACA,MAAMC,uBAAuB,GAAGD,CAAC,CAACE,MAAM,CAAC;EACvCC,UAAU,EAAEH,CAAC,CAACI,MAAM,CAAC,CAAC;EACtBC,IAAI,EAAEL,CAAC,CAACM,MAAM,CAAC,CAAC;EAChBC,UAAU,EAAEP,CAAC,CAACM,MAAM,CAAC,CAAC;EACtBE,KAAK,EAAER,CAAC,CAACM,MAAM,CAAC;AAClB,CAAC,CAAC;;AAEF;AACA;AACA;AACA;AACA,MAAMG,wBAAwB,GAAGT,CAAC,CAC/BE,MAAM,CAAC;EACNQ,kBAAkB,EAAEV,CAAC,CAACW,KAAK,CAACV,uBAAuB;AACrD,CAAC,CAAC,CACDW,OAAO,CAAC,CAAC;;AAEZ;AACA;AACA;AACA;AACA,MAAMC,oBAAoB,GAAGb,CAAC,CAC3BE,MAAM,CAAC;EACNY,MAAM,EAAEd,CAAC,CAACM,MAAM,CAAC,CAAC;EAClBS,cAAc,EAAEf,CAAC,CAACW,KAAK,CAACX,CAAC,CAACM,MAAM,CAAC,CAAC;AACpC,CAAC,CAAC,CACDM,OAAO,CAAC,CAAC;;AAEZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMI,wBAAwB,GAGnCC,UAAoB,IAEpBjB,CAAC,CACEE,MAAM,CAAC;EACNgB,IAAI,EAAED,UAAU;EAChBE,OAAO,EAAEnB,CAAC,CAACM,MAAM,CAAC,CAAC;EACnBc,IAAI,EAAEpB,CAAC,CAACM,MAAM,CAAC,CAAC;EAChBe,QAAQ,EAAErB,CAAC,CAACsB,MAAM,CAACtB,CAAC,CAACM,MAAM,CAAC,CAAC,EAAEN,CAAC,CAACuB,GAAG,CAAC,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC,CAACC,EAAE,CAACzB,CAAC,CAAC0B,IAAI,CAAC,CAAC;AAChE,CAAC,CAAC,CACDC,GAAG,CAAClB,wBAAwB,CAAC,CAC7BkB,GAAG,CAACd,oBAAoB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["z","StackTraceElementSchema","object","lineNumber","number","file","string","nullable","methodName","class","ModuleErrorAndroidSchema","nativeStackAndroid","array","partial","ModuleErrorIosSchema","domain","nativeStackIOS","GenericModuleErrorSchema","codeSchema","code","message","name","userInfo","record","any","optional","or","null","and"],"sourceRoot":"../../src","sources":["schema.ts"],"mappings":";;AAAA,SAASA,CAAC,QAAQ,KAAK;;AAEvB;AACA;AACA;AACA,MAAMC,uBAAuB,GAAGD,CAAC,CAACE,MAAM,CAAC;EACvCC,UAAU,EAAEH,CAAC,CAACI,MAAM,CAAC,CAAC;EACtBC,IAAI,EAAEL,CAAC,CAACM,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAC3BC,UAAU,EAAER,CAAC,CAACM,MAAM,CAAC,CAAC;EACtBG,KAAK,EAAET,CAAC,CAACM,MAAM,CAAC;AAClB,CAAC,CAAC;;AAEF;AACA;AACA;AACA;AACA,MAAMI,wBAAwB,GAAGV,CAAC,CAC/BE,MAAM,CAAC;EACNS,kBAAkB,EAAEX,CAAC,CAACY,KAAK,CAACX,uBAAuB;AACrD,CAAC,CAAC,CACDY,OAAO,CAAC,CAAC;;AAEZ;AACA;AACA;AACA;AACA,MAAMC,oBAAoB,GAAGd,CAAC,CAC3BE,MAAM,CAAC;EACNa,MAAM,EAAEf,CAAC,CAACM,MAAM,CAAC,CAAC;EAClBU,cAAc,EAAEhB,CAAC,CAACY,KAAK,CAACZ,CAAC,CAACM,MAAM,CAAC,CAAC;AACpC,CAAC,CAAC,CACDO,OAAO,CAAC,CAAC;;AAEZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMI,wBAAwB,GAGnCC,UAAoB,IAEpBlB,CAAC,CACEE,MAAM,CAAC;EACNiB,IAAI,EAAED,UAAU;EAChBE,OAAO,EAAEpB,CAAC,CAACM,MAAM,CAAC,CAAC;EACnBe,IAAI,EAAErB,CAAC,CAACM,MAAM,CAAC,CAAC;EAChBgB,QAAQ,EAAEtB,CAAC,CAACuB,MAAM,CAACvB,CAAC,CAACM,MAAM,CAAC,CAAC,EAAEN,CAAC,CAACwB,GAAG,CAAC,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC,CAACC,EAAE,CAAC1B,CAAC,CAAC2B,IAAI,CAAC,CAAC;AAChE,CAAC,CAAC,CACDC,GAAG,CAAClB,wBAAwB,CAAC,CAC7BkB,GAAG,CAACd,oBAAoB,CAAC","ignoreList":[]}
@@ -25,31 +25,31 @@ export declare const ModuleErrorSchema: z.ZodIntersection<z.ZodIntersection<z.Zo
25
25
  }>, z.ZodObject<{
26
26
  nativeStackAndroid: z.ZodOptional<z.ZodArray<z.ZodObject<{
27
27
  lineNumber: z.ZodNumber;
28
- file: z.ZodString;
28
+ file: z.ZodNullable<z.ZodString>;
29
29
  methodName: z.ZodString;
30
30
  class: z.ZodString;
31
31
  }, "strip", z.ZodTypeAny, {
32
32
  lineNumber: number;
33
- file: string;
33
+ file: string | null;
34
34
  methodName: string;
35
35
  class: string;
36
36
  }, {
37
37
  lineNumber: number;
38
- file: string;
38
+ file: string | null;
39
39
  methodName: string;
40
40
  class: string;
41
41
  }>, "many">>;
42
42
  }, "strip", z.ZodTypeAny, {
43
43
  nativeStackAndroid?: {
44
44
  lineNumber: number;
45
- file: string;
45
+ file: string | null;
46
46
  methodName: string;
47
47
  class: string;
48
48
  }[] | undefined;
49
49
  }, {
50
50
  nativeStackAndroid?: {
51
51
  lineNumber: number;
52
- file: string;
52
+ file: string | null;
53
53
  methodName: string;
54
54
  class: string;
55
55
  }[] | undefined;
@@ -25,31 +25,31 @@ export declare const ModuleErrorSchema: z.ZodIntersection<z.ZodIntersection<z.Zo
25
25
  }>, z.ZodObject<{
26
26
  nativeStackAndroid: z.ZodOptional<z.ZodArray<z.ZodObject<{
27
27
  lineNumber: z.ZodNumber;
28
- file: z.ZodString;
28
+ file: z.ZodNullable<z.ZodString>;
29
29
  methodName: z.ZodString;
30
30
  class: z.ZodString;
31
31
  }, "strip", z.ZodTypeAny, {
32
32
  lineNumber: number;
33
- file: string;
33
+ file: string | null;
34
34
  methodName: string;
35
35
  class: string;
36
36
  }, {
37
37
  lineNumber: number;
38
- file: string;
38
+ file: string | null;
39
39
  methodName: string;
40
40
  class: string;
41
41
  }>, "many">>;
42
42
  }, "strip", z.ZodTypeAny, {
43
43
  nativeStackAndroid?: {
44
44
  lineNumber: number;
45
- file: string;
45
+ file: string | null;
46
46
  methodName: string;
47
47
  class: string;
48
48
  }[] | undefined;
49
49
  }, {
50
50
  nativeStackAndroid?: {
51
51
  lineNumber: number;
52
- file: string;
52
+ file: string | null;
53
53
  methodName: string;
54
54
  class: string;
55
55
  }[] | undefined;
@@ -30,31 +30,31 @@ export declare const ModuleErrorSchema: z.ZodIntersection<z.ZodIntersection<z.Zo
30
30
  }>, z.ZodObject<{
31
31
  nativeStackAndroid: z.ZodOptional<z.ZodArray<z.ZodObject<{
32
32
  lineNumber: z.ZodNumber;
33
- file: z.ZodString;
33
+ file: z.ZodNullable<z.ZodString>;
34
34
  methodName: z.ZodString;
35
35
  class: z.ZodString;
36
36
  }, "strip", z.ZodTypeAny, {
37
37
  lineNumber: number;
38
- file: string;
38
+ file: string | null;
39
39
  methodName: string;
40
40
  class: string;
41
41
  }, {
42
42
  lineNumber: number;
43
- file: string;
43
+ file: string | null;
44
44
  methodName: string;
45
45
  class: string;
46
46
  }>, "many">>;
47
47
  }, "strip", z.ZodTypeAny, {
48
48
  nativeStackAndroid?: {
49
49
  lineNumber: number;
50
- file: string;
50
+ file: string | null;
51
51
  methodName: string;
52
52
  class: string;
53
53
  }[] | undefined;
54
54
  }, {
55
55
  nativeStackAndroid?: {
56
56
  lineNumber: number;
57
- file: string;
57
+ file: string | null;
58
58
  methodName: string;
59
59
  class: string;
60
60
  }[] | undefined;
@@ -25,31 +25,31 @@ export declare const ModuleErrorSchema: z.ZodIntersection<z.ZodIntersection<z.Zo
25
25
  }>, z.ZodObject<{
26
26
  nativeStackAndroid: z.ZodOptional<z.ZodArray<z.ZodObject<{
27
27
  lineNumber: z.ZodNumber;
28
- file: z.ZodString;
28
+ file: z.ZodNullable<z.ZodString>;
29
29
  methodName: z.ZodString;
30
30
  class: z.ZodString;
31
31
  }, "strip", z.ZodTypeAny, {
32
32
  lineNumber: number;
33
- file: string;
33
+ file: string | null;
34
34
  methodName: string;
35
35
  class: string;
36
36
  }, {
37
37
  lineNumber: number;
38
- file: string;
38
+ file: string | null;
39
39
  methodName: string;
40
40
  class: string;
41
41
  }>, "many">>;
42
42
  }, "strip", z.ZodTypeAny, {
43
43
  nativeStackAndroid?: {
44
44
  lineNumber: number;
45
- file: string;
45
+ file: string | null;
46
46
  methodName: string;
47
47
  class: string;
48
48
  }[] | undefined;
49
49
  }, {
50
50
  nativeStackAndroid?: {
51
51
  lineNumber: number;
52
- file: string;
52
+ file: string | null;
53
53
  methodName: string;
54
54
  class: string;
55
55
  }[] | undefined;
@@ -17,49 +17,39 @@ export declare const GenericModuleErrorSchema: <CodeType extends z.ZodEnum<[stri
17
17
  message: z.ZodString;
18
18
  name: z.ZodString;
19
19
  userInfo: z.ZodUnion<[z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>, z.ZodNull]>;
20
- }>, any> extends infer T ? { [k in keyof T]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
20
+ }>, any> extends infer T ? { [k in keyof T]: T[k]; } : never, z.baseObjectInputType<{
21
21
  code: CodeType;
22
22
  message: z.ZodString;
23
23
  name: z.ZodString;
24
24
  userInfo: z.ZodUnion<[z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>, z.ZodNull]>;
25
- }>, any>[k]; } : never, z.baseObjectInputType<{
26
- code: CodeType;
27
- message: z.ZodString;
28
- name: z.ZodString;
29
- userInfo: z.ZodUnion<[z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>, z.ZodNull]>;
30
- }> extends infer T_1 ? { [k_1 in keyof T_1]: z.baseObjectInputType<{
31
- code: CodeType;
32
- message: z.ZodString;
33
- name: z.ZodString;
34
- userInfo: z.ZodUnion<[z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>, z.ZodNull]>;
35
- }>[k_1]; } : never>, z.ZodObject<{
25
+ }> extends infer T_1 ? { [k_1 in keyof T_1]: T_1[k_1]; } : never>, z.ZodObject<{
36
26
  nativeStackAndroid: z.ZodOptional<z.ZodArray<z.ZodObject<{
37
27
  lineNumber: z.ZodNumber;
38
- file: z.ZodString;
28
+ file: z.ZodNullable<z.ZodString>;
39
29
  methodName: z.ZodString;
40
30
  class: z.ZodString;
41
31
  }, "strip", z.ZodTypeAny, {
42
32
  lineNumber: number;
43
- file: string;
33
+ file: string | null;
44
34
  methodName: string;
45
35
  class: string;
46
36
  }, {
47
37
  lineNumber: number;
48
- file: string;
38
+ file: string | null;
49
39
  methodName: string;
50
40
  class: string;
51
41
  }>, "many">>;
52
42
  }, "strip", z.ZodTypeAny, {
53
43
  nativeStackAndroid?: {
54
44
  lineNumber: number;
55
- file: string;
45
+ file: string | null;
56
46
  methodName: string;
57
47
  class: string;
58
48
  }[] | undefined;
59
49
  }, {
60
50
  nativeStackAndroid?: {
61
51
  lineNumber: number;
62
- file: string;
52
+ file: string | null;
63
53
  methodName: string;
64
54
  class: string;
65
55
  }[] | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiCxB;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,GACnC,QAAQ,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC,EAEjD,YAAY,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUQ,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiCxB;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,GACnC,QAAQ,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC,EAEjD,YAAY,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUQ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pagopa/io-react-native-iso18013",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "React Native bridge for iso18013 methods",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/module/index.js",
@@ -64,11 +64,11 @@
64
64
  "@eslint/eslintrc": "^3.3.0",
65
65
  "@eslint/js": "^9.22.0",
66
66
  "@evilmartians/lefthook": "^1.5.0",
67
- "@pagopa/io-react-native-crypto": "1.0.1",
68
- "@react-native/eslint-config": "^0.78.0",
67
+ "@pagopa/io-react-native-crypto": "1.2.4",
68
+ "@react-native/eslint-config": "^0.81.5",
69
69
  "@release-it/conventional-changelog": "^9.0.2",
70
70
  "@types/jest": "^29.5.5",
71
- "@types/react": "^19.0.0",
71
+ "@types/react": "^19.1.0",
72
72
  "commitlint": "^19.6.1",
73
73
  "del-cli": "^5.1.0",
74
74
  "eslint": "^9.22.0",
@@ -76,12 +76,12 @@
76
76
  "eslint-plugin-prettier": "^5.2.3",
77
77
  "jest": "^29.7.0",
78
78
  "prettier": "^3.0.3",
79
- "react": "19.0.0",
80
- "react-native": "0.78.2",
79
+ "react": "19.1.0",
80
+ "react-native": "0.81.5",
81
81
  "react-native-builder-bob": "^0.40.12",
82
82
  "release-it": "^17.10.0",
83
83
  "turbo": "^1.10.7",
84
- "typescript": "^5.2.2"
84
+ "typescript": "^5.8.3"
85
85
  },
86
86
  "peerDependencies": {
87
87
  "react": "*",
@@ -66,7 +66,7 @@ The parsed object will contain properties from both iOS and Android platforms:
66
66
  userInfo?: Record<string, any> | null;
67
67
  nativeStackAndroid?: Array<{
68
68
  lineNumber: number;
69
- file: string;
69
+ file: string | null
70
70
  methodName: string;
71
71
  class: string;
72
72
  }>;
@@ -75,7 +75,7 @@ The parsed object will contain properties from both iOS and Android platforms:
75
75
  userInfo?: Record<string, any> | null;
76
76
  nativeStackAndroid?: Array<{
77
77
  lineNumber: number;
78
- file: string;
78
+ file: string | null
79
79
  methodName: string;
80
80
  class: string;
81
81
  }>;
@@ -420,7 +420,7 @@ The parsed object will contain properties from both iOS and Android platforms:
420
420
  userInfo?: Record<string, any> | null;
421
421
  nativeStackAndroid?: Array<{
422
422
  lineNumber: number;
423
- file: string;
423
+ file: string | null
424
424
  methodName: string;
425
425
  class: string;
426
426
  }>;
@@ -74,7 +74,7 @@ The parsed object will contain properties from both iOS and Android platforms:
74
74
  userInfo?: Record<string, any> | null;
75
75
  nativeStackAndroid?: Array<{
76
76
  lineNumber: number;
77
- file: string;
77
+ file: string | null
78
78
  methodName: string;
79
79
  class: string;
80
80
  }>;
package/src/schema.ts CHANGED
@@ -5,7 +5,7 @@ import { z } from 'zod';
5
5
  */
6
6
  const StackTraceElementSchema = z.object({
7
7
  lineNumber: z.number(),
8
- file: z.string(),
8
+ file: z.string().nullable(),
9
9
  methodName: z.string(),
10
10
  class: z.string(),
11
11
  });