@capgo/capacitor-native-biometric 5.1.0 → 6.0.0
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/android/build.gradle +11 -11
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +2 -1
- package/android/src/androidTest/java/com/getcapacitor/android/ExampleInstrumentedTest.java +1 -2
- package/android/src/main/java/ee/forgr/biometric/AuthActivity.java +34 -40
- package/android/src/main/java/ee/forgr/biometric/NativeBiometric.java +20 -18
- package/dist/esm/index.js.map +1 -1
- package/dist/plugin.cjs.js +6 -2
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +7 -3
- package/dist/plugin.js.map +1 -1
- package/ios/PluginTests/PluginTests.swift +0 -10
- package/ios/Podfile.lock +5 -5
- package/ios/Pods/Local Podspecs/Capacitor.podspec.json +5 -8
- package/ios/Pods/Local Podspecs/CapacitorCordova.podspec.json +5 -2
- package/ios/Pods/Manifest.lock +5 -5
- package/ios/Pods/Pods.xcodeproj/project.pbxproj +710 -726
- package/ios/Pods/Target Support Files/Capacitor/Capacitor-Info.plist +1 -1
- package/ios/Pods/Target Support Files/Capacitor/Capacitor.debug.xcconfig +1 -1
- package/ios/Pods/Target Support Files/Capacitor/Capacitor.release.xcconfig +1 -1
- package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova-Info.plist +1 -1
- package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin.debug.xcconfig +1 -1
- package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin.release.xcconfig +1 -1
- package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-frameworks.sh +1 -1
- package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.debug.xcconfig +1 -1
- package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.release.xcconfig +1 -1
- package/package.json +15 -18
- package/ios/Pods/Pods.xcodeproj/xcuserdata/martindonadieu.xcuserdatad/xcschemes/Capacitor.xcscheme +0 -58
- package/ios/Pods/Pods.xcodeproj/xcuserdata/martindonadieu.xcuserdatad/xcschemes/CapacitorCordova.xcscheme +0 -58
- package/ios/Pods/Pods.xcodeproj/xcuserdata/martindonadieu.xcuserdatad/xcschemes/Pods-Plugin.xcscheme +0 -58
- package/ios/Pods/Pods.xcodeproj/xcuserdata/martindonadieu.xcuserdatad/xcschemes/Pods-PluginTests.xcscheme +0 -58
- package/ios/Pods/Pods.xcodeproj/xcuserdata/martindonadieu.xcuserdatad/xcschemes/xcschememanagement.plist +0 -31
package/android/build.gradle
CHANGED
|
@@ -2,15 +2,16 @@ ext {
|
|
|
2
2
|
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
|
|
3
3
|
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.5'
|
|
4
4
|
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.5.1'
|
|
5
|
+
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.6.1'
|
|
5
6
|
}
|
|
6
7
|
|
|
7
8
|
buildscript {
|
|
8
9
|
repositories {
|
|
9
10
|
google()
|
|
10
|
-
|
|
11
|
+
mavenCentral()
|
|
11
12
|
}
|
|
12
13
|
dependencies {
|
|
13
|
-
classpath 'com.android.tools.build:gradle:8.
|
|
14
|
+
classpath 'com.android.tools.build:gradle:8.2.1'
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
|
|
@@ -18,10 +19,10 @@ apply plugin: 'com.android.library'
|
|
|
18
19
|
|
|
19
20
|
android {
|
|
20
21
|
namespace "ee.forgr.biometric.capacitornativebiometric"
|
|
21
|
-
|
|
22
|
+
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34
|
|
22
23
|
defaultConfig {
|
|
23
24
|
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
|
|
24
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion :
|
|
25
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34
|
|
25
26
|
versionCode 1
|
|
26
27
|
versionName "1.0"
|
|
27
28
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
@@ -39,20 +40,19 @@ android {
|
|
|
39
40
|
|
|
40
41
|
repositories {
|
|
41
42
|
google()
|
|
42
|
-
jcenter()
|
|
43
43
|
mavenCentral()
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
dependencies {
|
|
48
|
-
implementation 'androidx.biometric:biometric:1.0
|
|
48
|
+
implementation 'androidx.biometric:biometric:1.1.0'
|
|
49
49
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
50
50
|
implementation project(':capacitor-android')
|
|
51
|
-
implementation
|
|
52
|
-
implementation 'com.google.android.material:material:1.
|
|
53
|
-
implementation 'androidx.constraintlayout:constraintlayout:
|
|
54
|
-
implementation 'androidx.navigation:navigation-fragment:2.
|
|
55
|
-
implementation 'androidx.navigation:navigation-ui:2.
|
|
51
|
+
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
|
52
|
+
implementation 'com.google.android.material:material:1.9.0'
|
|
53
|
+
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
54
|
+
implementation 'androidx.navigation:navigation-fragment:2.5.3'
|
|
55
|
+
implementation 'androidx.navigation:navigation-ui:2.5.3'
|
|
56
56
|
testImplementation "junit:junit:$junitVersion"
|
|
57
57
|
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
58
58
|
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
Binary file
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
distributionBase=GRADLE_USER_HOME
|
|
2
2
|
distributionPath=wrapper/dists
|
|
3
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.
|
|
3
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-all.zip
|
|
4
4
|
networkTimeout=10000
|
|
5
|
+
validateDistributionUrl=true
|
|
5
6
|
zipStoreBase=GRADLE_USER_HOME
|
|
6
7
|
zipStorePath=wrapper/dists
|
|
@@ -19,8 +19,7 @@ public class ExampleInstrumentedTest {
|
|
|
19
19
|
@Test
|
|
20
20
|
public void useAppContext() throws Exception {
|
|
21
21
|
// Context of the app under test.
|
|
22
|
-
Context appContext = InstrumentationRegistry
|
|
23
|
-
.getInstrumentation()
|
|
22
|
+
Context appContext = InstrumentationRegistry.getInstrumentation()
|
|
24
23
|
.getTargetContext();
|
|
25
24
|
|
|
26
25
|
assertEquals("com.getcapacitor.android", appContext.getPackageName());
|
|
@@ -4,15 +4,9 @@ import android.content.Intent;
|
|
|
4
4
|
import android.os.Build;
|
|
5
5
|
import android.os.Bundle;
|
|
6
6
|
import android.os.Handler;
|
|
7
|
-
import android.util.Log;
|
|
8
|
-
import android.view.View;
|
|
9
7
|
import androidx.annotation.NonNull;
|
|
10
8
|
import androidx.appcompat.app.AppCompatActivity;
|
|
11
|
-
import androidx.appcompat.widget.Toolbar;
|
|
12
|
-
import androidx.biometric.BiometricConstants;
|
|
13
9
|
import androidx.biometric.BiometricPrompt;
|
|
14
|
-
import com.google.android.material.floatingactionbutton.FloatingActionButton;
|
|
15
|
-
import com.google.android.material.snackbar.Snackbar;
|
|
16
10
|
import ee.forgr.biometric.capacitornativebiometric.R;
|
|
17
11
|
import java.util.concurrent.Executor;
|
|
18
12
|
|
|
@@ -32,31 +26,31 @@ public class AuthActivity extends AppCompatActivity {
|
|
|
32
26
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
|
33
27
|
executor = this.getMainExecutor();
|
|
34
28
|
} else {
|
|
35
|
-
executor =
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
};
|
|
29
|
+
executor = new Executor() {
|
|
30
|
+
@Override
|
|
31
|
+
public void execute(Runnable command) {
|
|
32
|
+
new Handler().post(command);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
42
35
|
}
|
|
43
36
|
|
|
44
|
-
BiometricPrompt.PromptInfo.Builder builder =
|
|
45
|
-
.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
37
|
+
BiometricPrompt.PromptInfo.Builder builder =
|
|
38
|
+
new BiometricPrompt.PromptInfo.Builder()
|
|
39
|
+
.setTitle(
|
|
40
|
+
getIntent().hasExtra("title")
|
|
41
|
+
? getIntent().getStringExtra("title")
|
|
42
|
+
: "Authenticate"
|
|
43
|
+
)
|
|
44
|
+
.setSubtitle(
|
|
45
|
+
getIntent().hasExtra("subtitle")
|
|
46
|
+
? getIntent().getStringExtra("subtitle")
|
|
47
|
+
: null
|
|
48
|
+
)
|
|
49
|
+
.setDescription(
|
|
50
|
+
getIntent().hasExtra("description")
|
|
51
|
+
? getIntent().getStringExtra("description")
|
|
52
|
+
: null
|
|
53
|
+
);
|
|
60
54
|
|
|
61
55
|
boolean useFallback = getIntent().getBooleanExtra("useFallback", false);
|
|
62
56
|
|
|
@@ -136,29 +130,29 @@ public class AuthActivity extends AppCompatActivity {
|
|
|
136
130
|
* Convert Auth Error Codes to plugin expected Biometric Auth Errors (in README.md)
|
|
137
131
|
* This way both iOS and Android return the same error codes for the same authentication failure reasons.
|
|
138
132
|
* !!IMPORTANT!!: Whenever this is modified, check if similar function in iOS Plugin.swift needs to be modified as well
|
|
139
|
-
* @see https://developer.android.com/reference/androidx/biometric/BiometricPrompt#constants
|
|
133
|
+
* @see <a href="https://developer.android.com/reference/androidx/biometric/BiometricPrompt#constants">...</a>
|
|
140
134
|
* @return BiometricAuthError
|
|
141
135
|
*/
|
|
142
136
|
public static int convertToPluginErrorCode(int errorCode) {
|
|
143
137
|
switch (errorCode) {
|
|
144
|
-
case
|
|
145
|
-
case
|
|
138
|
+
case BiometricPrompt.ERROR_HW_UNAVAILABLE:
|
|
139
|
+
case BiometricPrompt.ERROR_HW_NOT_PRESENT:
|
|
146
140
|
return 1;
|
|
147
|
-
case
|
|
141
|
+
case BiometricPrompt.ERROR_LOCKOUT_PERMANENT:
|
|
148
142
|
return 2;
|
|
149
|
-
case
|
|
143
|
+
case BiometricPrompt.ERROR_NO_BIOMETRICS:
|
|
150
144
|
return 3;
|
|
151
|
-
case
|
|
145
|
+
case BiometricPrompt.ERROR_LOCKOUT:
|
|
152
146
|
return 4;
|
|
153
147
|
// Authentication Failure (10) Handled by `onAuthenticationFailed`.
|
|
154
148
|
// App Cancel (11), Invalid Context (12), and Not Interactive (13) are not valid error codes for Android.
|
|
155
|
-
case
|
|
149
|
+
case BiometricPrompt.ERROR_NO_DEVICE_CREDENTIAL:
|
|
156
150
|
return 14;
|
|
157
|
-
case
|
|
158
|
-
case
|
|
151
|
+
case BiometricPrompt.ERROR_TIMEOUT:
|
|
152
|
+
case BiometricPrompt.ERROR_CANCELED:
|
|
159
153
|
return 15;
|
|
160
|
-
case
|
|
161
|
-
case
|
|
154
|
+
case BiometricPrompt.ERROR_USER_CANCELED:
|
|
155
|
+
case BiometricPrompt.ERROR_NEGATIVE_BUTTON:
|
|
162
156
|
return 16;
|
|
163
157
|
default:
|
|
164
158
|
return 0;
|
|
@@ -14,7 +14,6 @@ import android.security.keystore.KeyProperties;
|
|
|
14
14
|
import android.security.keystore.StrongBoxUnavailableException;
|
|
15
15
|
import android.util.Base64;
|
|
16
16
|
import androidx.activity.result.ActivityResult;
|
|
17
|
-
import androidx.biometric.BiometricConstants;
|
|
18
17
|
import androidx.biometric.BiometricManager;
|
|
19
18
|
import com.getcapacitor.JSObject;
|
|
20
19
|
import com.getcapacitor.Plugin;
|
|
@@ -124,14 +123,12 @@ public class NativeBiometric extends Plugin {
|
|
|
124
123
|
// @see https://developer.android.com/reference/androidx/biometric/BiometricManager#canAuthenticate(int)
|
|
125
124
|
boolean fallbackAvailable = useFallback && this.deviceHasCredentials();
|
|
126
125
|
if (useFallback && !fallbackAvailable) {
|
|
127
|
-
canAuthenticateResult =
|
|
126
|
+
canAuthenticateResult = BiometricManager.BIOMETRIC_ERROR_HW_UNAVAILABLE;
|
|
128
127
|
}
|
|
129
128
|
|
|
130
129
|
boolean isAvailable =
|
|
131
|
-
(
|
|
132
|
-
|
|
133
|
-
fallbackAvailable
|
|
134
|
-
);
|
|
130
|
+
(canAuthenticateResult == BiometricManager.BIOMETRIC_SUCCESS ||
|
|
131
|
+
fallbackAvailable);
|
|
135
132
|
ret.put("isAvailable", isAvailable);
|
|
136
133
|
|
|
137
134
|
if (!isAvailable) {
|
|
@@ -366,13 +363,14 @@ public class NativeBiometric extends Plugin {
|
|
|
366
363
|
KeyProperties.KEY_ALGORITHM_AES,
|
|
367
364
|
ANDROID_KEY_STORE
|
|
368
365
|
);
|
|
369
|
-
KeyGenParameterSpec.Builder paramBuilder =
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
366
|
+
KeyGenParameterSpec.Builder paramBuilder =
|
|
367
|
+
new KeyGenParameterSpec.Builder(
|
|
368
|
+
KEY_ALIAS,
|
|
369
|
+
KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT
|
|
370
|
+
)
|
|
371
|
+
.setBlockModes(KeyProperties.BLOCK_MODE_GCM)
|
|
372
|
+
.setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_NONE)
|
|
373
|
+
.setRandomizedEncryptionRequired(false);
|
|
376
374
|
|
|
377
375
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
|
378
376
|
paramBuilder.setUnlockedDeviceRequired(true);
|
|
@@ -388,8 +386,8 @@ public class NativeBiometric extends Plugin {
|
|
|
388
386
|
|
|
389
387
|
private Key getKey(String KEY_ALIAS)
|
|
390
388
|
throws GeneralSecurityException, IOException {
|
|
391
|
-
KeyStore.SecretKeyEntry secretKeyEntry =
|
|
392
|
-
.getEntry(KEY_ALIAS, null);
|
|
389
|
+
KeyStore.SecretKeyEntry secretKeyEntry =
|
|
390
|
+
(KeyStore.SecretKeyEntry) getKeyStore().getEntry(KEY_ALIAS, null);
|
|
393
391
|
if (secretKeyEntry != null) {
|
|
394
392
|
return secretKeyEntry.getSecretKey();
|
|
395
393
|
}
|
|
@@ -429,8 +427,8 @@ public class NativeBiometric extends Plugin {
|
|
|
429
427
|
|
|
430
428
|
private KeyStore.PrivateKeyEntry getPrivateKeyEntry(String KEY_ALIAS)
|
|
431
429
|
throws NoSuchProviderException, NoSuchAlgorithmException, InvalidAlgorithmParameterException, CertificateException, KeyStoreException, IOException, UnrecoverableEntryException {
|
|
432
|
-
KeyStore.PrivateKeyEntry privateKeyEntry =
|
|
433
|
-
.getEntry(KEY_ALIAS, null);
|
|
430
|
+
KeyStore.PrivateKeyEntry privateKeyEntry =
|
|
431
|
+
(KeyStore.PrivateKeyEntry) getKeyStore().getEntry(KEY_ALIAS, null);
|
|
434
432
|
|
|
435
433
|
if (privateKeyEntry == null) {
|
|
436
434
|
KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(
|
|
@@ -496,6 +494,10 @@ public class NativeBiometric extends Plugin {
|
|
|
496
494
|
KeyguardManager keyguardManager = (KeyguardManager) getActivity()
|
|
497
495
|
.getSystemService(Context.KEYGUARD_SERVICE);
|
|
498
496
|
// Can only use fallback if the device has a pin/pattern/password lockscreen.
|
|
499
|
-
|
|
497
|
+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
|
498
|
+
return keyguardManager.isDeviceSecure();
|
|
499
|
+
} else {
|
|
500
|
+
return keyguardManager.isKeyguardSecure();
|
|
501
|
+
}
|
|
500
502
|
}
|
|
501
503
|
}
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,eAAe,GAAG,cAAc,CACpC,iBAAiB,EACjB;IACE,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,kBAAkB,EAAE,CAAC;CACnE,CACF,CAAC;AAEF,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,CAAC","sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\n\nimport type { NativeBiometricPlugin } from \"./definitions\";\n\nconst NativeBiometric = registerPlugin<NativeBiometricPlugin>(\n \"NativeBiometric\",\n {\n web: () => import(\"./web\").then((m) => new m.NativeBiometricWeb()),\n }
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,eAAe,GAAG,cAAc,CACpC,iBAAiB,EACjB;IACE,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,kBAAkB,EAAE,CAAC;CACnE,CACF,CAAC;AAEF,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,CAAC","sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\n\nimport type { NativeBiometricPlugin } from \"./definitions\";\n\nconst NativeBiometric = registerPlugin<NativeBiometricPlugin>(\n \"NativeBiometric\",\n {\n web: () => import(\"./web\").then((m) => new m.NativeBiometricWeb()),\n },\n);\n\nexport * from \"./definitions\";\nexport { NativeBiometric };\n"]}
|
package/dist/plugin.cjs.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var core = require('@capacitor/core');
|
|
6
4
|
|
|
5
|
+
exports.BiometryType = void 0;
|
|
7
6
|
(function (BiometryType) {
|
|
8
7
|
// Android, iOS
|
|
9
8
|
BiometryType[BiometryType["NONE"] = 0] = "NONE";
|
|
@@ -20,6 +19,11 @@ var core = require('@capacitor/core');
|
|
|
20
19
|
// Android
|
|
21
20
|
BiometryType[BiometryType["MULTIPLE"] = 6] = "MULTIPLE";
|
|
22
21
|
})(exports.BiometryType || (exports.BiometryType = {}));
|
|
22
|
+
/**
|
|
23
|
+
* Keep this in sync with BiometricAuthError in README.md
|
|
24
|
+
* Update whenever `convertToPluginErrorCode` functions are modified
|
|
25
|
+
*/
|
|
26
|
+
exports.BiometricAuthError = void 0;
|
|
23
27
|
(function (BiometricAuthError) {
|
|
24
28
|
BiometricAuthError[BiometricAuthError["UNKNOWN_ERROR"] = 0] = "UNKNOWN_ERROR";
|
|
25
29
|
BiometricAuthError[BiometricAuthError["BIOMETRICS_UNAVAILABLE"] = 1] = "BIOMETRICS_UNAVAILABLE";
|
package/dist/plugin.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["export var BiometryType;\n(function (BiometryType) {\n // Android, iOS\n BiometryType[BiometryType[\"NONE\"] = 0] = \"NONE\";\n // iOS\n BiometryType[BiometryType[\"TOUCH_ID\"] = 1] = \"TOUCH_ID\";\n // iOS\n BiometryType[BiometryType[\"FACE_ID\"] = 2] = \"FACE_ID\";\n // Android\n BiometryType[BiometryType[\"FINGERPRINT\"] = 3] = \"FINGERPRINT\";\n // Android\n BiometryType[BiometryType[\"FACE_AUTHENTICATION\"] = 4] = \"FACE_AUTHENTICATION\";\n // Android\n BiometryType[BiometryType[\"IRIS_AUTHENTICATION\"] = 5] = \"IRIS_AUTHENTICATION\";\n // Android\n BiometryType[BiometryType[\"MULTIPLE\"] = 6] = \"MULTIPLE\";\n})(BiometryType || (BiometryType = {}));\n/**\n * Keep this in sync with BiometricAuthError in README.md\n * Update whenever `convertToPluginErrorCode` functions are modified\n */\nexport var BiometricAuthError;\n(function (BiometricAuthError) {\n BiometricAuthError[BiometricAuthError[\"UNKNOWN_ERROR\"] = 0] = \"UNKNOWN_ERROR\";\n BiometricAuthError[BiometricAuthError[\"BIOMETRICS_UNAVAILABLE\"] = 1] = \"BIOMETRICS_UNAVAILABLE\";\n BiometricAuthError[BiometricAuthError[\"USER_LOCKOUT\"] = 2] = \"USER_LOCKOUT\";\n BiometricAuthError[BiometricAuthError[\"BIOMETRICS_NOT_ENROLLED\"] = 3] = \"BIOMETRICS_NOT_ENROLLED\";\n BiometricAuthError[BiometricAuthError[\"USER_TEMPORARY_LOCKOUT\"] = 4] = \"USER_TEMPORARY_LOCKOUT\";\n BiometricAuthError[BiometricAuthError[\"AUTHENTICATION_FAILED\"] = 10] = \"AUTHENTICATION_FAILED\";\n BiometricAuthError[BiometricAuthError[\"APP_CANCEL\"] = 11] = \"APP_CANCEL\";\n BiometricAuthError[BiometricAuthError[\"INVALID_CONTEXT\"] = 12] = \"INVALID_CONTEXT\";\n BiometricAuthError[BiometricAuthError[\"NOT_INTERACTIVE\"] = 13] = \"NOT_INTERACTIVE\";\n BiometricAuthError[BiometricAuthError[\"PASSCODE_NOT_SET\"] = 14] = \"PASSCODE_NOT_SET\";\n BiometricAuthError[BiometricAuthError[\"SYSTEM_CANCEL\"] = 15] = \"SYSTEM_CANCEL\";\n BiometricAuthError[BiometricAuthError[\"USER_CANCEL\"] = 16] = \"USER_CANCEL\";\n BiometricAuthError[BiometricAuthError[\"USER_FALLBACK\"] = 17] = \"USER_FALLBACK\";\n})(BiometricAuthError || (BiometricAuthError = {}));\n//# sourceMappingURL=definitions.js.map","import { registerPlugin } from \"@capacitor/core\";\nconst NativeBiometric = registerPlugin(\"NativeBiometric\", {\n web: () => import(\"./web\").then((m) => new m.NativeBiometricWeb()),\n});\nexport * from \"./definitions\";\nexport { NativeBiometric };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\nexport class NativeBiometricWeb extends WebPlugin {\n constructor() {\n super();\n }\n isAvailable() {\n throw new Error(\"Method not implemented.\");\n }\n verifyIdentity(_options) {\n throw new Error(\"Method not implemented.\");\n }\n getCredentials(_options) {\n throw new Error(\"Method not implemented.\");\n }\n setCredentials(_options) {\n throw new Error(\"Method not implemented.\");\n }\n deleteCredentials(_options) {\n throw new Error(\"Method not implemented.\");\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["BiometryType","BiometricAuthError","registerPlugin","WebPlugin"],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["export var BiometryType;\n(function (BiometryType) {\n // Android, iOS\n BiometryType[BiometryType[\"NONE\"] = 0] = \"NONE\";\n // iOS\n BiometryType[BiometryType[\"TOUCH_ID\"] = 1] = \"TOUCH_ID\";\n // iOS\n BiometryType[BiometryType[\"FACE_ID\"] = 2] = \"FACE_ID\";\n // Android\n BiometryType[BiometryType[\"FINGERPRINT\"] = 3] = \"FINGERPRINT\";\n // Android\n BiometryType[BiometryType[\"FACE_AUTHENTICATION\"] = 4] = \"FACE_AUTHENTICATION\";\n // Android\n BiometryType[BiometryType[\"IRIS_AUTHENTICATION\"] = 5] = \"IRIS_AUTHENTICATION\";\n // Android\n BiometryType[BiometryType[\"MULTIPLE\"] = 6] = \"MULTIPLE\";\n})(BiometryType || (BiometryType = {}));\n/**\n * Keep this in sync with BiometricAuthError in README.md\n * Update whenever `convertToPluginErrorCode` functions are modified\n */\nexport var BiometricAuthError;\n(function (BiometricAuthError) {\n BiometricAuthError[BiometricAuthError[\"UNKNOWN_ERROR\"] = 0] = \"UNKNOWN_ERROR\";\n BiometricAuthError[BiometricAuthError[\"BIOMETRICS_UNAVAILABLE\"] = 1] = \"BIOMETRICS_UNAVAILABLE\";\n BiometricAuthError[BiometricAuthError[\"USER_LOCKOUT\"] = 2] = \"USER_LOCKOUT\";\n BiometricAuthError[BiometricAuthError[\"BIOMETRICS_NOT_ENROLLED\"] = 3] = \"BIOMETRICS_NOT_ENROLLED\";\n BiometricAuthError[BiometricAuthError[\"USER_TEMPORARY_LOCKOUT\"] = 4] = \"USER_TEMPORARY_LOCKOUT\";\n BiometricAuthError[BiometricAuthError[\"AUTHENTICATION_FAILED\"] = 10] = \"AUTHENTICATION_FAILED\";\n BiometricAuthError[BiometricAuthError[\"APP_CANCEL\"] = 11] = \"APP_CANCEL\";\n BiometricAuthError[BiometricAuthError[\"INVALID_CONTEXT\"] = 12] = \"INVALID_CONTEXT\";\n BiometricAuthError[BiometricAuthError[\"NOT_INTERACTIVE\"] = 13] = \"NOT_INTERACTIVE\";\n BiometricAuthError[BiometricAuthError[\"PASSCODE_NOT_SET\"] = 14] = \"PASSCODE_NOT_SET\";\n BiometricAuthError[BiometricAuthError[\"SYSTEM_CANCEL\"] = 15] = \"SYSTEM_CANCEL\";\n BiometricAuthError[BiometricAuthError[\"USER_CANCEL\"] = 16] = \"USER_CANCEL\";\n BiometricAuthError[BiometricAuthError[\"USER_FALLBACK\"] = 17] = \"USER_FALLBACK\";\n})(BiometricAuthError || (BiometricAuthError = {}));\n//# sourceMappingURL=definitions.js.map","import { registerPlugin } from \"@capacitor/core\";\nconst NativeBiometric = registerPlugin(\"NativeBiometric\", {\n web: () => import(\"./web\").then((m) => new m.NativeBiometricWeb()),\n});\nexport * from \"./definitions\";\nexport { NativeBiometric };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\nexport class NativeBiometricWeb extends WebPlugin {\n constructor() {\n super();\n }\n isAvailable() {\n throw new Error(\"Method not implemented.\");\n }\n verifyIdentity(_options) {\n throw new Error(\"Method not implemented.\");\n }\n getCredentials(_options) {\n throw new Error(\"Method not implemented.\");\n }\n setCredentials(_options) {\n throw new Error(\"Method not implemented.\");\n }\n deleteCredentials(_options) {\n throw new Error(\"Method not implemented.\");\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["BiometryType","BiometricAuthError","registerPlugin","WebPlugin"],"mappings":";;;;AAAWA,8BAAa;AACxB,CAAC,UAAU,YAAY,EAAE;AACzB;AACA,IAAI,YAAY,CAAC,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC;AACpD;AACA,IAAI,YAAY,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC;AAC5D;AACA,IAAI,YAAY,CAAC,YAAY,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,SAAS,CAAC;AAC1D;AACA,IAAI,YAAY,CAAC,YAAY,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,GAAG,aAAa,CAAC;AAClE;AACA,IAAI,YAAY,CAAC,YAAY,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,GAAG,qBAAqB,CAAC;AAClF;AACA,IAAI,YAAY,CAAC,YAAY,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,GAAG,qBAAqB,CAAC;AAClF;AACA,IAAI,YAAY,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC;AAC5D,CAAC,EAAEA,oBAAY,KAAKA,oBAAY,GAAG,EAAE,CAAC,CAAC,CAAC;AACxC;AACA;AACA;AACA;AACWC,oCAAmB;AAC9B,CAAC,UAAU,kBAAkB,EAAE;AAC/B,IAAI,kBAAkB,CAAC,kBAAkB,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,GAAG,eAAe,CAAC;AAClF,IAAI,kBAAkB,CAAC,kB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DAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,kBAAkB,EAAE,CAAC;AACtE,CAAC;;ACFM,MAAM,kBAAkB,SAASC,cAAS,CAAC;AAClD,IAAI,WAAW,GAAG;AAClB,QAAQ,KAAK,EAAE,CAAC;AAChB,KAAK;AACL,IAAI,WAAW,GAAG;AAClB,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;AACnD,KAAK;AACL,IAAI,cAAc,CAAC,QAAQ,EAAE;AAC7B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;AACnD,KAAK;AACL,IAAI,cAAc,CAAC,QAAQ,EAAE;AAC7B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;AACnD,KAAK;AACL,IAAI,cAAc,CAAC,QAAQ,EAAE;AAC7B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;AACnD,KAAK;AACL,IAAI,iBAAiB,CAAC,QAAQ,EAAE;AAChC,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;AACnD,KAAK;AACL;;;;;;;;;"}
|
package/dist/plugin.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
var capacitorCapacitorBiometric = (function (exports, core) {
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
+
exports.BiometryType = void 0;
|
|
4
5
|
(function (BiometryType) {
|
|
5
6
|
// Android, iOS
|
|
6
7
|
BiometryType[BiometryType["NONE"] = 0] = "NONE";
|
|
@@ -17,6 +18,11 @@ var capacitorCapacitorBiometric = (function (exports, core) {
|
|
|
17
18
|
// Android
|
|
18
19
|
BiometryType[BiometryType["MULTIPLE"] = 6] = "MULTIPLE";
|
|
19
20
|
})(exports.BiometryType || (exports.BiometryType = {}));
|
|
21
|
+
/**
|
|
22
|
+
* Keep this in sync with BiometricAuthError in README.md
|
|
23
|
+
* Update whenever `convertToPluginErrorCode` functions are modified
|
|
24
|
+
*/
|
|
25
|
+
exports.BiometricAuthError = void 0;
|
|
20
26
|
(function (BiometricAuthError) {
|
|
21
27
|
BiometricAuthError[BiometricAuthError["UNKNOWN_ERROR"] = 0] = "UNKNOWN_ERROR";
|
|
22
28
|
BiometricAuthError[BiometricAuthError["BIOMETRICS_UNAVAILABLE"] = 1] = "BIOMETRICS_UNAVAILABLE";
|
|
@@ -65,9 +71,7 @@ var capacitorCapacitorBiometric = (function (exports, core) {
|
|
|
65
71
|
|
|
66
72
|
exports.NativeBiometric = NativeBiometric;
|
|
67
73
|
|
|
68
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
69
|
-
|
|
70
74
|
return exports;
|
|
71
75
|
|
|
72
|
-
}({}, capacitorExports)
|
|
76
|
+
})({}, capacitorExports);
|
|
73
77
|
//# sourceMappingURL=plugin.js.map
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["export var BiometryType;\n(function (BiometryType) {\n // Android, iOS\n BiometryType[BiometryType[\"NONE\"] = 0] = \"NONE\";\n // iOS\n BiometryType[BiometryType[\"TOUCH_ID\"] = 1] = \"TOUCH_ID\";\n // iOS\n BiometryType[BiometryType[\"FACE_ID\"] = 2] = \"FACE_ID\";\n // Android\n BiometryType[BiometryType[\"FINGERPRINT\"] = 3] = \"FINGERPRINT\";\n // Android\n BiometryType[BiometryType[\"FACE_AUTHENTICATION\"] = 4] = \"FACE_AUTHENTICATION\";\n // Android\n BiometryType[BiometryType[\"IRIS_AUTHENTICATION\"] = 5] = \"IRIS_AUTHENTICATION\";\n // Android\n BiometryType[BiometryType[\"MULTIPLE\"] = 6] = \"MULTIPLE\";\n})(BiometryType || (BiometryType = {}));\n/**\n * Keep this in sync with BiometricAuthError in README.md\n * Update whenever `convertToPluginErrorCode` functions are modified\n */\nexport var BiometricAuthError;\n(function (BiometricAuthError) {\n BiometricAuthError[BiometricAuthError[\"UNKNOWN_ERROR\"] = 0] = \"UNKNOWN_ERROR\";\n BiometricAuthError[BiometricAuthError[\"BIOMETRICS_UNAVAILABLE\"] = 1] = \"BIOMETRICS_UNAVAILABLE\";\n BiometricAuthError[BiometricAuthError[\"USER_LOCKOUT\"] = 2] = \"USER_LOCKOUT\";\n BiometricAuthError[BiometricAuthError[\"BIOMETRICS_NOT_ENROLLED\"] = 3] = \"BIOMETRICS_NOT_ENROLLED\";\n BiometricAuthError[BiometricAuthError[\"USER_TEMPORARY_LOCKOUT\"] = 4] = \"USER_TEMPORARY_LOCKOUT\";\n BiometricAuthError[BiometricAuthError[\"AUTHENTICATION_FAILED\"] = 10] = \"AUTHENTICATION_FAILED\";\n BiometricAuthError[BiometricAuthError[\"APP_CANCEL\"] = 11] = \"APP_CANCEL\";\n BiometricAuthError[BiometricAuthError[\"INVALID_CONTEXT\"] = 12] = \"INVALID_CONTEXT\";\n BiometricAuthError[BiometricAuthError[\"NOT_INTERACTIVE\"] = 13] = \"NOT_INTERACTIVE\";\n BiometricAuthError[BiometricAuthError[\"PASSCODE_NOT_SET\"] = 14] = \"PASSCODE_NOT_SET\";\n BiometricAuthError[BiometricAuthError[\"SYSTEM_CANCEL\"] = 15] = \"SYSTEM_CANCEL\";\n BiometricAuthError[BiometricAuthError[\"USER_CANCEL\"] = 16] = \"USER_CANCEL\";\n BiometricAuthError[BiometricAuthError[\"USER_FALLBACK\"] = 17] = \"USER_FALLBACK\";\n})(BiometricAuthError || (BiometricAuthError = {}));\n//# sourceMappingURL=definitions.js.map","import { registerPlugin } from \"@capacitor/core\";\nconst NativeBiometric = registerPlugin(\"NativeBiometric\", {\n web: () => import(\"./web\").then((m) => new m.NativeBiometricWeb()),\n});\nexport * from \"./definitions\";\nexport { NativeBiometric };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\nexport class NativeBiometricWeb extends WebPlugin {\n constructor() {\n super();\n }\n isAvailable() {\n throw new Error(\"Method not implemented.\");\n }\n verifyIdentity(_options) {\n throw new Error(\"Method not implemented.\");\n }\n getCredentials(_options) {\n throw new Error(\"Method not implemented.\");\n }\n setCredentials(_options) {\n throw new Error(\"Method not implemented.\");\n }\n deleteCredentials(_options) {\n throw new Error(\"Method not implemented.\");\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["BiometryType","BiometricAuthError","registerPlugin","WebPlugin"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["export var BiometryType;\n(function (BiometryType) {\n // Android, iOS\n BiometryType[BiometryType[\"NONE\"] = 0] = \"NONE\";\n // iOS\n BiometryType[BiometryType[\"TOUCH_ID\"] = 1] = \"TOUCH_ID\";\n // iOS\n BiometryType[BiometryType[\"FACE_ID\"] = 2] = \"FACE_ID\";\n // Android\n BiometryType[BiometryType[\"FINGERPRINT\"] = 3] = \"FINGERPRINT\";\n // Android\n BiometryType[BiometryType[\"FACE_AUTHENTICATION\"] = 4] = \"FACE_AUTHENTICATION\";\n // Android\n BiometryType[BiometryType[\"IRIS_AUTHENTICATION\"] = 5] = \"IRIS_AUTHENTICATION\";\n // Android\n BiometryType[BiometryType[\"MULTIPLE\"] = 6] = \"MULTIPLE\";\n})(BiometryType || (BiometryType = {}));\n/**\n * Keep this in sync with BiometricAuthError in README.md\n * Update whenever `convertToPluginErrorCode` functions are modified\n */\nexport var BiometricAuthError;\n(function (BiometricAuthError) {\n BiometricAuthError[BiometricAuthError[\"UNKNOWN_ERROR\"] = 0] = \"UNKNOWN_ERROR\";\n BiometricAuthError[BiometricAuthError[\"BIOMETRICS_UNAVAILABLE\"] = 1] = \"BIOMETRICS_UNAVAILABLE\";\n BiometricAuthError[BiometricAuthError[\"USER_LOCKOUT\"] = 2] = \"USER_LOCKOUT\";\n BiometricAuthError[BiometricAuthError[\"BIOMETRICS_NOT_ENROLLED\"] = 3] = \"BIOMETRICS_NOT_ENROLLED\";\n BiometricAuthError[BiometricAuthError[\"USER_TEMPORARY_LOCKOUT\"] = 4] = \"USER_TEMPORARY_LOCKOUT\";\n BiometricAuthError[BiometricAuthError[\"AUTHENTICATION_FAILED\"] = 10] = \"AUTHENTICATION_FAILED\";\n BiometricAuthError[BiometricAuthError[\"APP_CANCEL\"] = 11] = \"APP_CANCEL\";\n BiometricAuthError[BiometricAuthError[\"INVALID_CONTEXT\"] = 12] = \"INVALID_CONTEXT\";\n BiometricAuthError[BiometricAuthError[\"NOT_INTERACTIVE\"] = 13] = \"NOT_INTERACTIVE\";\n BiometricAuthError[BiometricAuthError[\"PASSCODE_NOT_SET\"] = 14] = \"PASSCODE_NOT_SET\";\n BiometricAuthError[BiometricAuthError[\"SYSTEM_CANCEL\"] = 15] = \"SYSTEM_CANCEL\";\n BiometricAuthError[BiometricAuthError[\"USER_CANCEL\"] = 16] = \"USER_CANCEL\";\n BiometricAuthError[BiometricAuthError[\"USER_FALLBACK\"] = 17] = \"USER_FALLBACK\";\n})(BiometricAuthError || (BiometricAuthError = {}));\n//# sourceMappingURL=definitions.js.map","import { registerPlugin } from \"@capacitor/core\";\nconst NativeBiometric = registerPlugin(\"NativeBiometric\", {\n web: () => import(\"./web\").then((m) => new m.NativeBiometricWeb()),\n});\nexport * from \"./definitions\";\nexport { NativeBiometric };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\nexport class NativeBiometricWeb extends WebPlugin {\n constructor() {\n super();\n }\n isAvailable() {\n throw new Error(\"Method not implemented.\");\n }\n verifyIdentity(_options) {\n throw new Error(\"Method not implemented.\");\n }\n getCredentials(_options) {\n throw new Error(\"Method not implemented.\");\n }\n setCredentials(_options) {\n throw new Error(\"Method not implemented.\");\n }\n deleteCredentials(_options) {\n throw new Error(\"Method not implemented.\");\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["BiometryType","BiometricAuthError","registerPlugin","WebPlugin"],"mappings":";;;AAAWA,kCAAa;IACxB,CAAC,UAA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EAAE;IAC7B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACnD,KAAK;IACL,IAAI,cAAc,CAAC,QAAQ,EAAE;IAC7B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACnD,KAAK;IACL,IAAI,cAAc,CAAC,QAAQ,EAAE;IAC7B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACnD,KAAK;IACL,IAAI,iBAAiB,CAAC,QAAQ,EAAE;IAChC,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACnD,KAAK;IACL;;;;;;;;;;;;;;;"}
|
|
@@ -4,16 +4,6 @@ import Capacitor
|
|
|
4
4
|
|
|
5
5
|
class PluginTests: XCTestCase {
|
|
6
6
|
|
|
7
|
-
override func setUp() {
|
|
8
|
-
super.setUp()
|
|
9
|
-
// Put setup code here. This method is called before the invocation of each test method in the class.
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
override func tearDown() {
|
|
13
|
-
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
|
14
|
-
super.tearDown()
|
|
15
|
-
}
|
|
16
|
-
|
|
17
7
|
func testEcho() {
|
|
18
8
|
// This is an example of a functional test case for a plugin.
|
|
19
9
|
// Use XCTAssert and related functions to verify your tests produce the correct results.
|
package/ios/Podfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PODS:
|
|
2
|
-
- Capacitor (
|
|
2
|
+
- Capacitor (6.0.0):
|
|
3
3
|
- CapacitorCordova
|
|
4
|
-
- CapacitorCordova (
|
|
4
|
+
- CapacitorCordova (6.0.0)
|
|
5
5
|
|
|
6
6
|
DEPENDENCIES:
|
|
7
7
|
- "Capacitor (from `../node_modules/@capacitor/ios`)"
|
|
@@ -14,9 +14,9 @@ EXTERNAL SOURCES:
|
|
|
14
14
|
:path: "../node_modules/@capacitor/ios"
|
|
15
15
|
|
|
16
16
|
SPEC CHECKSUMS:
|
|
17
|
-
Capacitor:
|
|
18
|
-
CapacitorCordova:
|
|
17
|
+
Capacitor: 559d073c4ca6c27f8e7002c807eea94c3ba435a9
|
|
18
|
+
CapacitorCordova: 8c4bfdf69368512e85b1d8b724dd7546abeb30af
|
|
19
19
|
|
|
20
20
|
PODFILE CHECKSUM: 1033dea949db4aa66cc0404a8baadac4a30dd025
|
|
21
21
|
|
|
22
|
-
COCOAPODS: 1.
|
|
22
|
+
COCOAPODS: 1.15.2
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "Capacitor",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"summary": "Capacitor for iOS",
|
|
5
5
|
"social_media_url": "https://twitter.com/capacitorjs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,16 +13,13 @@
|
|
|
13
13
|
},
|
|
14
14
|
"source": {
|
|
15
15
|
"git": "https://github.com/ionic-team/capacitor.git",
|
|
16
|
-
"tag": "
|
|
16
|
+
"tag": "6.0.0"
|
|
17
17
|
},
|
|
18
|
-
"source_files":
|
|
19
|
-
"Capacitor/Capacitor/*.{swift,h,m}",
|
|
20
|
-
"Capacitor/Capacitor/Plugins/*.{swift,h,m}",
|
|
21
|
-
"Capacitor/Capacitor/Plugins/**/*.{swift,h,m}"
|
|
22
|
-
],
|
|
18
|
+
"source_files": "Capacitor/Capacitor/**/*.{swift,h,m}",
|
|
23
19
|
"module_map": "Capacitor/Capacitor/Capacitor.modulemap",
|
|
24
20
|
"resources": [
|
|
25
|
-
"Capacitor/Capacitor/assets/native-bridge.js"
|
|
21
|
+
"Capacitor/Capacitor/assets/native-bridge.js",
|
|
22
|
+
"Capacitor/Capacitor/PrivacyInfo.xcprivacy"
|
|
26
23
|
],
|
|
27
24
|
"dependencies": {
|
|
28
25
|
"CapacitorCordova": [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "CapacitorCordova",
|
|
3
3
|
"module_name": "Cordova",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "6.0.0",
|
|
5
5
|
"summary": "Capacitor Cordova Compatibility Layer",
|
|
6
6
|
"homepage": "https://capacitorjs.com",
|
|
7
7
|
"license": "MIT",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"source": {
|
|
12
12
|
"git": "https://github.com/ionic-team/capacitor",
|
|
13
|
-
"tag": "
|
|
13
|
+
"tag": "6.0.0"
|
|
14
14
|
},
|
|
15
15
|
"platforms": {
|
|
16
16
|
"ios": "13.0"
|
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
"CapacitorCordova/CapacitorCordova/CapacitorCordova.h"
|
|
22
22
|
],
|
|
23
23
|
"module_map": "CapacitorCordova/CapacitorCordova/CapacitorCordova.modulemap",
|
|
24
|
+
"resources": [
|
|
25
|
+
"CapacitorCordova/CapacitorCordova/PrivacyInfo.xcprivacy"
|
|
26
|
+
],
|
|
24
27
|
"requires_arc": true,
|
|
25
28
|
"frameworks": "WebKit"
|
|
26
29
|
}
|
package/ios/Pods/Manifest.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PODS:
|
|
2
|
-
- Capacitor (
|
|
2
|
+
- Capacitor (6.0.0):
|
|
3
3
|
- CapacitorCordova
|
|
4
|
-
- CapacitorCordova (
|
|
4
|
+
- CapacitorCordova (6.0.0)
|
|
5
5
|
|
|
6
6
|
DEPENDENCIES:
|
|
7
7
|
- "Capacitor (from `../node_modules/@capacitor/ios`)"
|
|
@@ -14,9 +14,9 @@ EXTERNAL SOURCES:
|
|
|
14
14
|
:path: "../node_modules/@capacitor/ios"
|
|
15
15
|
|
|
16
16
|
SPEC CHECKSUMS:
|
|
17
|
-
Capacitor:
|
|
18
|
-
CapacitorCordova:
|
|
17
|
+
Capacitor: 559d073c4ca6c27f8e7002c807eea94c3ba435a9
|
|
18
|
+
CapacitorCordova: 8c4bfdf69368512e85b1d8b724dd7546abeb30af
|
|
19
19
|
|
|
20
20
|
PODFILE CHECKSUM: 1033dea949db4aa66cc0404a8baadac4a30dd025
|
|
21
21
|
|
|
22
|
-
COCOAPODS: 1.
|
|
22
|
+
COCOAPODS: 1.15.2
|