qrdnicapacitor 1.0.3 → 1.0.5

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 CHANGED
@@ -98,7 +98,7 @@ abrirEscaner() => Promise<any>
98
98
  | **`rawSignature`** | <code>string</code> |
99
99
  | **`signedData`** | <code>string</code> |
100
100
  | **`certificateRef`** | <code>string</code> |
101
- | **`type`** | <code>number</code> |
101
+ | **`type`** | <code>string</code> |
102
102
  | **`verificationResult`** | <code>{ status: 'VALID' \| 'INVALID' \| 'NO_CERTIFICATES' \| 'INVALID_QR' \| 'EXPIRED_QR' \| 'UNKNOWN'; certificate?: string; }</code> |
103
103
  | **`qrDataExpiry`** | <code>string</code> |
104
104
  | **`fullBirthPlace`** | <code>string</code> |
@@ -42,16 +42,20 @@ android {
42
42
  }
43
43
  }
44
44
 
45
+
45
46
  repositories {
46
47
  google()
47
48
  mavenCentral()
49
+ flatDir {
50
+ dirs 'libs' // Esto le dice a Gradle que busque librerías en la carpeta libs
51
+ }
48
52
  }
49
53
 
50
-
51
54
  dependencies {
52
- implementation files('libs/qrdnidroid-release.aar')
55
+ //implementation files('libs/qrdnidroid-release.aar')
56
+ implementation(name: 'qrdnidroid-release', ext: 'aar')
53
57
  implementation files('libs/jpeg2000.jar')
54
- implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
58
+ //implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
55
59
  implementation ('me.dm7.barcodescanner:zxing:1.9.8') {
56
60
  exclude group: 'com.android.support'
57
61
  }
package/dist/docs.json CHANGED
@@ -223,7 +223,7 @@
223
223
  "tags": [],
224
224
  "docs": "",
225
225
  "complexTypes": [],
226
- "type": "number | undefined"
226
+ "type": "string | undefined"
227
227
  },
228
228
  {
229
229
  "name": "verificationResult",
@@ -34,7 +34,7 @@ export interface MiDNIData {
34
34
  rawSignature: string;
35
35
  signedData: string;
36
36
  certificateRef: string;
37
- type?: number;
37
+ type?: string;
38
38
  verificationResult: {
39
39
  status: 'VALID' | 'INVALID' | 'NO_CERTIFICATES' | 'INVALID_QR' | 'EXPIRED_QR' | 'UNKNOWN';
40
40
  certificate?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface qrdniPlugin {\n configure(options: { license: string, certs?: { [key: string]: string } }): Promise<EstadoLicencia>;\n validaMiDNIQR(options: { data: string }): Promise<MiDNIData>;\n abrirEscaner(): Promise<any>;\n}\n\nexport interface EstadoLicencia {\n descripcion: string;\n APIKeyValida: boolean;\n lecturaQRHabilitada: boolean;\n}\n\nexport interface MiDNIData {\n dni: string;\n name: string;\n surnames: string;\n birthDate: string;\n expiryDate: string;\n gender: string;\n\n address: string;\n nationality: string;\n parents: string;\n supportNumber: string;\n \n birthPlace1: string;\n birthPlace2: string;\n birthPlace3: string;\n \n photoData: string; // Base64\n isAdult?: boolean;\n \n rawSignature: string;\n signedData: string;\n certificateRef: string;\n type?: number;\n verificationResult: {\n status: 'VALID' | 'INVALID' | 'NO_CERTIFICATES' | 'INVALID_QR' | 'EXPIRED_QR' | 'UNKNOWN';\n certificate?: string; // Solo presente si el status es VALID\n }; \n qrDataExpiry: string;\n\n fullBirthPlace: string;\n}"]}
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface qrdniPlugin {\n configure(options: { license: string, certs?: { [key: string]: string } }): Promise<EstadoLicencia>;\n validaMiDNIQR(options: { data: string }): Promise<MiDNIData>;\n abrirEscaner(): Promise<any>;\n}\n\nexport interface EstadoLicencia {\n descripcion: string;\n APIKeyValida: boolean;\n lecturaQRHabilitada: boolean;\n}\n\nexport interface MiDNIData {\n dni: string;\n name: string;\n surnames: string;\n birthDate: string;\n expiryDate: string;\n gender: string;\n\n address: string;\n nationality: string;\n parents: string;\n supportNumber: string;\n \n birthPlace1: string;\n birthPlace2: string;\n birthPlace3: string;\n \n photoData: string; // Base64\n isAdult?: boolean;\n \n rawSignature: string;\n signedData: string;\n certificateRef: string;\n type?: string;\n verificationResult: {\n status: 'VALID' | 'INVALID' | 'NO_CERTIFICATES' | 'INVALID_QR' | 'EXPIRED_QR' | 'UNKNOWN';\n certificate?: string; // Solo presente si el status es VALID\n }; \n qrDataExpiry: string;\n\n fullBirthPlace: string;\n}"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qrdnicapacitor",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Lectura y validación de códigos QR generados por la app MiDNI",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",