react-native-trustdevice 0.1.5 → 1.1.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/README.md +4 -30
- package/ios/TrustDevice.xcodeproj/project.xcworkspace/xcuserdata/lee.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/TrustDevice.xcodeproj/xcuserdata/lee.xcuserdatad/xcschemes/xcschememanagement.plist +19 -0
- package/package.json +1 -1
- package/android/.gradle/7.5.1/checksums/checksums.lock +0 -0
- package/android/.gradle/7.5.1/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/7.5.1/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.5.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.5.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.idea/gradle.xml +0 -13
- package/android/.idea/misc.xml +0 -14
- package/android/.idea/vcs.xml +0 -6
- package/android/.idea/workspace.xml +0 -47
- package/android/build/.transforms/3d198a7540692ddfa05d95b171264bc8/results.bin +0 -1
- package/android/build/.transforms/3d198a7540692ddfa05d95b171264bc8/transformed/classes/classes.dex +0 -0
- package/android/build/.transforms/a36126f0a42245443eab402f572111df/results.bin +0 -1
- package/android/build/.transforms/a36126f0a42245443eab402f572111df/transformed/classes/classes.dex +0 -0
- package/android/build/generated/source/buildConfig/debug/com/trustdevice/BuildConfig.java +0 -10
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +0 -7
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +0 -18
- package/android/build/intermediates/aar_main_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/aar_metadata/debug/aar-metadata.properties +0 -5
- package/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +0 -1
- package/android/build/intermediates/annotations_typedef_file/debug/typedefs.txt +0 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/R.txt +0 -1961
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -1
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
- package/android/build/intermediates/incremental/debug-mergeJavaRes/merge-state +0 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
- package/android/build/intermediates/javac/debug/classes/com/trustdevice/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/trustdevice/TrustdeviceModule$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/trustdevice/TrustdeviceModule.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/trustdevice/TrustdevicePackage.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/trustdevice/utils/TDUniRiskUtils.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/R-def.txt +0 -2
- package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +0 -8
- package/android/build/intermediates/merged_java_res/debug/feature-react-native-trustdevice.jar +0 -0
- package/android/build/intermediates/merged_manifest/debug/AndroidManifest.xml +0 -7
- package/android/build/intermediates/navigation_json/debug/navigation.json +0 -1
- package/android/build/intermediates/packaged_manifests/debug/output-metadata.json +0 -18
- package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +0 -1454
- package/android/build/intermediates/variant_model/debug/variant_model.json +0 -0
- package/android/build/outputs/aar/react-native-trustdevice-debug.aar +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -25
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
package/README.md
CHANGED
|
@@ -30,12 +30,10 @@ Execute in your react native project root directory
|
|
|
30
30
|
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
npm install --save react-native-trustdevice@
|
|
33
|
+
npm install --save react-native-trustdevice@1.1.0
|
|
34
34
|
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
### Android
|
|
38
|
-
|
|
39
37
|
### iOS
|
|
40
38
|
|
|
41
39
|
Update cocoapods
|
|
@@ -66,7 +64,7 @@ select -->
|
|
|
66
64
|
</manifest>
|
|
67
65
|
```
|
|
68
66
|
|
|
69
|
-
Dynamic application permissions: Android 6.0 or above requires dynamic application permissions. Dynamic application permissions code must be placed before the initial
|
|
67
|
+
Dynamic application permissions: Android 6.0 or above requires dynamic application permissions. Dynamic application permissions code must be placed before the initial.
|
|
70
68
|
|
|
71
69
|
## Initialization
|
|
72
70
|
|
|
@@ -81,31 +79,7 @@ Dynamic application permissions: Android 6.0 or above requires dynamic applicati
|
|
|
81
79
|
|
|
82
80
|
**Sample Code**
|
|
83
81
|
|
|
84
|
-
```
|
|
85
|
-
import 'package:trustdevice_pro_plugin/trustdevice_pro_plugin.dart';
|
|
86
|
-
// ...
|
|
87
|
-
|
|
88
|
-
// Initialization
|
|
89
|
-
class _MyAppState extends State<MyApp> {
|
|
90
|
-
final _trustdeviceProPlugin = TrustdeviceProPlugin();
|
|
91
|
-
@override
|
|
92
|
-
void initState() {
|
|
93
|
-
super.initState();
|
|
94
|
-
_initWithOptions();
|
|
95
|
-
}
|
|
96
|
-
//initialize the configuration
|
|
97
|
-
Future<void> _initWithOptions() async {
|
|
98
|
-
var options = {
|
|
99
|
-
"partner": "[Your partner]",
|
|
100
|
-
"appKey": "[Your appKey]",
|
|
101
|
-
"appName": "[Your appName]",
|
|
102
|
-
"country": "[Your country code]",
|
|
103
|
-
};
|
|
104
|
-
_trustdeviceProPlugin.initWithOptions(options);
|
|
105
|
-
}
|
|
106
|
-
// ...
|
|
107
|
-
}
|
|
108
|
-
|
|
82
|
+
```
|
|
109
83
|
|
|
110
84
|
async function initWithOptions() {
|
|
111
85
|
|
|
@@ -185,7 +159,7 @@ class _MyAppState extends State<MyApp> {
|
|
|
185
159
|
|
|
186
160
|
Sample Code
|
|
187
161
|
|
|
188
|
-
```
|
|
162
|
+
```
|
|
189
163
|
// Get SDK Version
|
|
190
164
|
async function getSDKVersion() {
|
|
191
165
|
const version = await TrustDevice.getSDKVersion();
|
|
Binary file
|
package/ios/TrustDevice.xcodeproj/xcuserdata/lee.xcuserdatad/xcschemes/xcschememanagement.plist
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>SchemeUserState</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>RNTrustDevice.xcscheme_^#shared#^_</key>
|
|
8
|
+
<dict>
|
|
9
|
+
<key>orderHint</key>
|
|
10
|
+
<integer>0</integer>
|
|
11
|
+
</dict>
|
|
12
|
+
<key>TrustDevice.xcscheme_^#shared#^_</key>
|
|
13
|
+
<dict>
|
|
14
|
+
<key>orderHint</key>
|
|
15
|
+
<integer>0</integer>
|
|
16
|
+
</dict>
|
|
17
|
+
</dict>
|
|
18
|
+
</dict>
|
|
19
|
+
</plist>
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/.idea/gradle.xml
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="GradleSettings">
|
|
4
|
-
<option name="linkedExternalProjectsSettings">
|
|
5
|
-
<GradleProjectSettings>
|
|
6
|
-
<option name="testRunner" value="GRADLE" />
|
|
7
|
-
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
|
8
|
-
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
|
9
|
-
<option name="gradleJvm" value="jbr-17" />
|
|
10
|
-
</GradleProjectSettings>
|
|
11
|
-
</option>
|
|
12
|
-
</component>
|
|
13
|
-
</project>
|
package/android/.idea/misc.xml
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ASMIdeaPluginConfiguration">
|
|
4
|
-
<asm skipDebug="false" skipFrames="false" skipCode="false" expandFrames="false" />
|
|
5
|
-
<groovy codeStyle="LEGACY" />
|
|
6
|
-
</component>
|
|
7
|
-
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
|
8
|
-
<component name="ProjectRootManager" version="2" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
|
|
9
|
-
<output url="file://$PROJECT_DIR$/build/classes" />
|
|
10
|
-
</component>
|
|
11
|
-
<component name="ProjectType">
|
|
12
|
-
<option name="id" value="Android" />
|
|
13
|
-
</component>
|
|
14
|
-
</project>
|
package/android/.idea/vcs.xml
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="AutoImportSettings">
|
|
4
|
-
<option name="autoReloadType" value="NONE" />
|
|
5
|
-
</component>
|
|
6
|
-
<component name="ChangeListManager">
|
|
7
|
-
<list default="true" id="2e165b33-73fa-443a-9471-8d800bcc964e" name="Changes" comment="">
|
|
8
|
-
<change beforePath="$PROJECT_DIR$/../README.md" beforeDir="false" afterPath="$PROJECT_DIR$/../README.md" afterDir="false" />
|
|
9
|
-
<change beforePath="$PROJECT_DIR$/../index.js" beforeDir="false" afterPath="$PROJECT_DIR$/../index.js" afterDir="false" />
|
|
10
|
-
<change beforePath="$PROJECT_DIR$/../package.json" beforeDir="false" afterPath="$PROJECT_DIR$/../package.json" afterDir="false" />
|
|
11
|
-
</list>
|
|
12
|
-
<option name="SHOW_DIALOG" value="false" />
|
|
13
|
-
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
14
|
-
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
15
|
-
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
16
|
-
</component>
|
|
17
|
-
<component name="Git.Settings">
|
|
18
|
-
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/../.." />
|
|
19
|
-
</component>
|
|
20
|
-
<component name="ProjectId" id="2jJdwuxlHeleUdJVKTgxmiSc6PL" />
|
|
21
|
-
<component name="ProjectViewState">
|
|
22
|
-
<option name="showLibraryContents" value="true" />
|
|
23
|
-
<option name="showMembers" value="true" />
|
|
24
|
-
</component>
|
|
25
|
-
<component name="PropertiesComponent"><![CDATA[{
|
|
26
|
-
"keyToString": {
|
|
27
|
-
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
|
28
|
-
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
29
|
-
"RunOnceActivity.cidr.known.project.marker": "true",
|
|
30
|
-
"android.gradle.sync.needed": "true",
|
|
31
|
-
"cidr.known.project.marker": "true",
|
|
32
|
-
"dart.analysis.tool.window.visible": "false",
|
|
33
|
-
"show.migrate.to.gradle.popup": "false"
|
|
34
|
-
}
|
|
35
|
-
}]]></component>
|
|
36
|
-
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
|
37
|
-
<component name="TaskManager">
|
|
38
|
-
<task active="true" id="Default" summary="Default task">
|
|
39
|
-
<changelist id="2e165b33-73fa-443a-9471-8d800bcc964e" name="Changes" comment="" />
|
|
40
|
-
<created>1721109356557</created>
|
|
41
|
-
<option name="number" value="Default" />
|
|
42
|
-
<option name="presentableId" value="Default" />
|
|
43
|
-
<updated>1721109356557</updated>
|
|
44
|
-
</task>
|
|
45
|
-
<servers />
|
|
46
|
-
</component>
|
|
47
|
-
</project>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
o/classes
|
package/android/build/.transforms/3d198a7540692ddfa05d95b171264bc8/transformed/classes/classes.dex
DELETED
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
o/classes
|
package/android/build/.transforms/a36126f0a42245443eab402f572111df/transformed/classes/classes.dex
DELETED
|
Binary file
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Automatically generated file. DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
package com.trustdevice;
|
|
5
|
-
|
|
6
|
-
public final class BuildConfig {
|
|
7
|
-
public static final boolean DEBUG = Boolean.parseBoolean("true");
|
|
8
|
-
public static final String LIBRARY_PACKAGE_NAME = "com.trustdevice";
|
|
9
|
-
public static final String BUILD_TYPE = "debug";
|
|
10
|
-
}
|
package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"artifactType": {
|
|
4
|
-
"type": "AAPT_FRIENDLY_MERGED_MANIFESTS",
|
|
5
|
-
"kind": "Directory"
|
|
6
|
-
},
|
|
7
|
-
"applicationId": "com.trustdevice",
|
|
8
|
-
"variantName": "debug",
|
|
9
|
-
"elements": [
|
|
10
|
-
{
|
|
11
|
-
"type": "SINGLE",
|
|
12
|
-
"filters": [],
|
|
13
|
-
"attributes": [],
|
|
14
|
-
"outputFile": "AndroidManifest.xml"
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"elementType": "File"
|
|
18
|
-
}
|
|
Binary file
|
package/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
|
File without changes
|
|
Binary file
|
|
Binary file
|