This repository has been archived by the owner on Feb 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
plugin.xml
84 lines (67 loc) · 3.26 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?xml version='1.0' encoding='utf-8'?>
<plugin id="tangem-sdk" version="0.7.0" xmlns="http://apache.org/cordova/ns/plugins/1.0">
<name>TangemSdkPlugin</name>
<description>Plugin description</description>
<author>Anton Zhilenkov</author>
<keywords>tangem,sdk,nfc</keywords>
<js-module name="TangemSdkPlugin" src="www/TangemSdkPlugin.js">
<clobbers target="TangemSdk" />
</js-module>
<platform name="android">
<framework custom="true" src="src/android/plugin-build.gradle" type="gradleReference" />
<source-file src="src/android/TangemSdkPlugin.java" target-dir="src/tangem_sdk" />
<source-file src="src/android/xml/tech_filter.xml" target-dir="src/main/res/xml" />
<config-file parent="/*" target="res/xml/config.xml">
<feature name="TangemSdkPlugin">
<param name="android-package" value="tangem_sdk.TangemSdkPlugin" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" mode="overwrite" parent="/*">
<uses-feature android:name="android.hardware.nfc" android:required="true" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.NFC" />
<uses-permission android:name="android.permission.USE_BIOMETRIC" />
</config-file>
<edit-config file="AndroidManifest.xml" mode="overwrite" target="/manifest/application/activity[@android:name='MainActivity']">
<activity android:name="MainActivity" android:theme="@style/Theme.App.SplashScreen" />
</edit-config>
</platform>
<platform name="ios">
<podspec>
<pods use-frameworks="true">
<pod name="TangemSdk" spec="~> 3.8.0" />
</pods>
</podspec>
<config-file parent="/*" target="config.xml">
<feature name="TangemSdkPlugin">
<param name="ios-package" value="TangemSdkPlugin" />
</feature>
</config-file>
<source-file src="src/ios/TangemSdkPlugin.swift" />
<config-file parent="com.apple.developer.nfc.readersession.formats" target="**/Entitlements-Debug.plist">
<array>
<string>NDEF</string>
<string>TAG</string>
</array>
</config-file>
<config-file parent="com.apple.developer.nfc.readersession.formats" target="**/Entitlements-Release.plist">
<array>
<string>NDEF</string>
<string>TAG</string>
</array>
</config-file>
<config-file parent="NFCReaderUsageDescription" target="*-Info.plist">
<string>To Scan Smart Card</string>
</config-file>
<config-file parent="NSFaceIDUsageDescription" target="*-Info.plist">
<string>Use Face ID to save access codes in the app</string>
</config-file>
<config-file parent="com.apple.developer.nfc.readersession.iso7816.select-identifiers" target="*-Info.plist">
<array>
<string>A000000812010208</string>
<string>D2760000850101</string>
</array>
</config-file>
</platform>
</plugin>