@digitalshieldfe/react-native-backup-card-sdk 0.1.3 → 0.1.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/android/build.gradle +6 -49
- package/android/libs/backupcardsdk.aar +0 -0
- package/android/src/main/AndroidManifest.xml +1 -4
- package/package.json +6 -3
- package/android/consumer-rules.pro +0 -0
- package/android/proguard-rules.pro +0 -21
- package/android/src/main/java/com/ziancube/backupcardsdk/BackupCardSdk.kt +0 -478
- package/android/src/main/java/com/ziancube/backupcardsdk/GPChannelNatives.java +0 -41
- package/android/src/main/java/com/ziancube/backupcardsdk/listener/ApiAsyncListener.java +0 -13
- package/android/src/main/java/com/ziancube/backupcardsdk/nfc/ApiNfc.java +0 -173
- package/android/src/main/java/com/ziancube/backupcardsdk/nfc/ImplNfc.java +0 -39
- package/android/src/main/java/com/ziancube/backupcardsdk/nfc/NfcComm.java +0 -115
- package/android/src/main/java/com/ziancube/backupcardsdk/utils/ApduParam.java +0 -67
- package/android/src/main/java/com/ziancube/backupcardsdk/utils/CommList.java +0 -41
- package/android/src/main/java/com/ziancube/backupcardsdk/utils/Utils.java +0 -109
- package/android/src/main/jni/CMakeLists.txt +0 -60
- package/android/src/main/jni/GPChannel/include/GPChannelSDK.h +0 -306
- package/android/src/main/jni/GPChannel/include/context/BaseContext.h +0 -56
- package/android/src/main/jni/GPChannel/include/device/ApduBuilder.hpp +0 -72
- package/android/src/main/jni/GPChannel/include/utility/Apdu.hpp +0 -166
- package/android/src/main/jni/GPChannel/include/utility/Debug.hpp +0 -59
- package/android/src/main/jni/GPChannel/include/utility/Singleton.h +0 -34
- package/android/src/main/jni/GPChannel/include/utility/mutex.h +0 -24
- package/android/src/main/jni/GPChannel/include/utility/trim.hpp +0 -155
- package/android/src/main/jni/GPChannel/include/utility/util.h +0 -104
- package/android/src/main/jni/GPChannel/include/utility/xFactory.hpp +0 -26
- package/android/src/main/jni/GPChannel/include/utility/xManager.hpp +0 -84
- package/android/src/main/jni/GPChannel/src/arm64-v8a/libJUB_GPC_APDU_SDK.a +0 -0
- package/android/src/main/jni/GPChannel/src/arm64-v8a/libTrezorCrypto.a +0 -0
- package/android/src/main/jni/GPChannel/src/armeabi-v7a/libJUB_GPC_APDU_SDK.a +0 -0
- package/android/src/main/jni/GPChannel/src/armeabi-v7a/libTrezorCrypto.a +0 -0
- package/android/src/main/jni/GPChannel/src/x86/libJUB_GPC_APDU_SDK.a +0 -0
- package/android/src/main/jni/GPChannel/src/x86/libTrezorCrypto.a +0 -0
- package/android/src/main/jni/src/implJni.cpp +0 -313
- package/android/src/main/jni/src/implJni.h +0 -9
- package/android/src/main/jni/utils/jsoncpp/AUTHORS +0 -111
- package/android/src/main/jni/utils/jsoncpp/CMakeLists.txt +0 -159
- package/android/src/main/jni/utils/jsoncpp/LICENSE +0 -55
- package/android/src/main/jni/utils/jsoncpp/README.md +0 -135
- package/android/src/main/jni/utils/jsoncpp/amalgamate.py +0 -155
- package/android/src/main/jni/utils/jsoncpp/appveyor.yml +0 -22
- package/android/src/main/jni/utils/jsoncpp/dev.makefile +0 -35
- package/android/src/main/jni/utils/jsoncpp/devtools/__init__.py +0 -6
- package/android/src/main/jni/utils/jsoncpp/devtools/agent_vmw7.json +0 -33
- package/android/src/main/jni/utils/jsoncpp/devtools/agent_vmxp.json +0 -26
- package/android/src/main/jni/utils/jsoncpp/devtools/antglob.py +0 -205
- package/android/src/main/jni/utils/jsoncpp/devtools/batchbuild.py +0 -278
- package/android/src/main/jni/utils/jsoncpp/devtools/fixeol.py +0 -70
- package/android/src/main/jni/utils/jsoncpp/devtools/licenseupdater.py +0 -94
- package/android/src/main/jni/utils/jsoncpp/devtools/tarball.py +0 -52
- package/android/src/main/jni/utils/jsoncpp/doxybuild.py +0 -189
- package/android/src/main/jni/utils/jsoncpp/include/CMakeLists.txt +0 -2
- package/android/src/main/jni/utils/jsoncpp/include/json/allocator.h +0 -98
- package/android/src/main/jni/utils/jsoncpp/include/json/assertions.h +0 -54
- package/android/src/main/jni/utils/jsoncpp/include/json/autolink.h +0 -25
- package/android/src/main/jni/utils/jsoncpp/include/json/config.h +0 -187
- package/android/src/main/jni/utils/jsoncpp/include/json/features.h +0 -61
- package/android/src/main/jni/utils/jsoncpp/include/json/forwards.h +0 -37
- package/android/src/main/jni/utils/jsoncpp/include/json/json.h +0 -15
- package/android/src/main/jni/utils/jsoncpp/include/json/reader.h +0 -411
- package/android/src/main/jni/utils/jsoncpp/include/json/value.h +0 -888
- package/android/src/main/jni/utils/jsoncpp/include/json/version.h +0 -20
- package/android/src/main/jni/utils/jsoncpp/include/json/writer.h +0 -357
- package/android/src/main/jni/utils/jsoncpp/makefiles/vs71/jsontest.vcproj +0 -119
- package/android/src/main/jni/utils/jsoncpp/makefiles/vs71/lib_json.vcproj +0 -205
- package/android/src/main/jni/utils/jsoncpp/makefiles/vs71/test_lib_json.vcproj +0 -130
- package/android/src/main/jni/utils/jsoncpp/makerelease.py +0 -390
- package/android/src/main/jni/utils/jsoncpp/meson.build +0 -103
- package/android/src/main/jni/utils/jsoncpp/pkg-config/jsoncpp.pc.in +0 -9
- package/android/src/main/jni/utils/jsoncpp/src/CMakeLists.txt +0 -5
- package/android/src/main/jni/utils/jsoncpp/src/jsontestrunner/CMakeLists.txt +0 -25
- package/android/src/main/jni/utils/jsoncpp/src/jsontestrunner/main.cpp +0 -333
- package/android/src/main/jni/utils/jsoncpp/src/lib_json/CMakeLists.txt +0 -117
- package/android/src/main/jni/utils/jsoncpp/src/lib_json/json_reader.cpp +0 -2060
- package/android/src/main/jni/utils/jsoncpp/src/lib_json/json_tool.h +0 -114
- package/android/src/main/jni/utils/jsoncpp/src/lib_json/json_value.cpp +0 -1661
- package/android/src/main/jni/utils/jsoncpp/src/lib_json/json_valueiterator.inl +0 -167
- package/android/src/main/jni/utils/jsoncpp/src/lib_json/json_writer.cpp +0 -1233
- package/android/src/main/jni/utils/jsoncpp/src/lib_json/version.h.in +0 -20
- package/android/src/main/jni/utils/jsoncpp/src/test_lib_json/CMakeLists.txt +0 -38
- package/android/src/main/jni/utils/jsoncpp/src/test_lib_json/jsontest.cpp +0 -457
- package/android/src/main/jni/utils/jsoncpp/src/test_lib_json/jsontest.h +0 -286
- package/android/src/main/jni/utils/jsoncpp/src/test_lib_json/main.cpp +0 -2606
- package/android/src/main/jni/utils/jsoncpp/travis.sh +0 -23
- package/android/src/main/jni/utils/jsoncpp/version +0 -1
- package/android/src/main/jni/utils/jsoncpp/version.in +0 -1
- package/android/src/main/jni/utils/logUtils.cpp +0 -108
- package/android/src/main/jni/utils/logUtils.h +0 -87
- package/android/src/main/jni/utils/mSIGNA/stdutils/uchar_vector.h +0 -614
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
// Copyright 2007-2010 Baptiste Lepilleur and The JsonCpp Authors
|
|
2
|
-
// Distributed under MIT license, or public domain if desired and
|
|
3
|
-
// recognized in your jurisdiction.
|
|
4
|
-
// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
|
|
5
|
-
|
|
6
|
-
#ifndef LIB_JSONCPP_JSON_TOOL_H_INCLUDED
|
|
7
|
-
#define LIB_JSONCPP_JSON_TOOL_H_INCLUDED
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
// Also support old flag NO_LOCALE_SUPPORT
|
|
11
|
-
#ifdef NO_LOCALE_SUPPORT
|
|
12
|
-
#define JSONCPP_NO_LOCALE_SUPPORT
|
|
13
|
-
#endif
|
|
14
|
-
|
|
15
|
-
#ifndef JSONCPP_NO_LOCALE_SUPPORT
|
|
16
|
-
#include <clocale>
|
|
17
|
-
#endif
|
|
18
|
-
|
|
19
|
-
/* This header provides common string manipulation support, such as UTF-8,
|
|
20
|
-
* portable conversion from/to string...
|
|
21
|
-
*
|
|
22
|
-
* It is an internal header that must not be exposed.
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
namespace Json {
|
|
26
|
-
static char getDecimalPoint() {
|
|
27
|
-
#ifdef JSONCPP_NO_LOCALE_SUPPORT
|
|
28
|
-
return '\0';
|
|
29
|
-
#else
|
|
30
|
-
struct lconv* lc = localeconv();
|
|
31
|
-
return lc ? *(lc->decimal_point) : '\0';
|
|
32
|
-
#endif
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/// Converts a unicode code-point to UTF-8.
|
|
36
|
-
static inline JSONCPP_STRING codePointToUTF8(unsigned int cp) {
|
|
37
|
-
JSONCPP_STRING result;
|
|
38
|
-
|
|
39
|
-
// based on description from http://en.wikipedia.org/wiki/UTF-8
|
|
40
|
-
|
|
41
|
-
if (cp <= 0x7f) {
|
|
42
|
-
result.resize(1);
|
|
43
|
-
result[0] = static_cast<char>(cp);
|
|
44
|
-
} else if (cp <= 0x7FF) {
|
|
45
|
-
result.resize(2);
|
|
46
|
-
result[1] = static_cast<char>(0x80 | (0x3f & cp));
|
|
47
|
-
result[0] = static_cast<char>(0xC0 | (0x1f & (cp >> 6)));
|
|
48
|
-
} else if (cp <= 0xFFFF) {
|
|
49
|
-
result.resize(3);
|
|
50
|
-
result[2] = static_cast<char>(0x80 | (0x3f & cp));
|
|
51
|
-
result[1] = static_cast<char>(0x80 | (0x3f & (cp >> 6)));
|
|
52
|
-
result[0] = static_cast<char>(0xE0 | (0xf & (cp >> 12)));
|
|
53
|
-
} else if (cp <= 0x10FFFF) {
|
|
54
|
-
result.resize(4);
|
|
55
|
-
result[3] = static_cast<char>(0x80 | (0x3f & cp));
|
|
56
|
-
result[2] = static_cast<char>(0x80 | (0x3f & (cp >> 6)));
|
|
57
|
-
result[1] = static_cast<char>(0x80 | (0x3f & (cp >> 12)));
|
|
58
|
-
result[0] = static_cast<char>(0xF0 | (0x7 & (cp >> 18)));
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return result;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
enum {
|
|
65
|
-
/// Constant that specify the size of the buffer that must be passed to
|
|
66
|
-
/// uintToString.
|
|
67
|
-
uintToStringBufferSize = 3 * sizeof(LargestUInt) + 1
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
// Defines a char buffer for use with uintToString().
|
|
71
|
-
typedef char UIntToStringBuffer[uintToStringBufferSize];
|
|
72
|
-
|
|
73
|
-
/** Converts an unsigned integer to string.
|
|
74
|
-
* @param value Unsigned integer to convert to string
|
|
75
|
-
* @param current Input/Output string buffer.
|
|
76
|
-
* Must have at least uintToStringBufferSize chars free.
|
|
77
|
-
*/
|
|
78
|
-
static inline void uintToString(LargestUInt value, char*& current) {
|
|
79
|
-
*--current = 0;
|
|
80
|
-
do {
|
|
81
|
-
*--current = static_cast<char>(value % 10U + static_cast<unsigned>('0'));
|
|
82
|
-
value /= 10;
|
|
83
|
-
} while (value != 0);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/** Change ',' to '.' everywhere in buffer.
|
|
87
|
-
*
|
|
88
|
-
* We had a sophisticated way, but it did not work in WinCE.
|
|
89
|
-
* @see https://github.com/open-source-parsers/jsoncpp/pull/9
|
|
90
|
-
*/
|
|
91
|
-
static inline void fixNumericLocale(char* begin, char* end) {
|
|
92
|
-
while (begin < end) {
|
|
93
|
-
if (*begin == ',') {
|
|
94
|
-
*begin = '.';
|
|
95
|
-
}
|
|
96
|
-
++begin;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
static inline void fixNumericLocaleInput(char* begin, char* end) {
|
|
101
|
-
char decimalPoint = getDecimalPoint();
|
|
102
|
-
if (decimalPoint != '\0' && decimalPoint != '.') {
|
|
103
|
-
while (begin < end) {
|
|
104
|
-
if (*begin == '.') {
|
|
105
|
-
*begin = decimalPoint;
|
|
106
|
-
}
|
|
107
|
-
++begin;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
} // namespace Json {
|
|
113
|
-
|
|
114
|
-
#endif // LIB_JSONCPP_JSON_TOOL_H_INCLUDED
|