@digitalshieldfe/react-native-backup-card-sdk 0.1.4 → 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 -4
- 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,23 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env sh
|
|
2
|
-
# This is called by `.travis.yml` via Travis CI.
|
|
3
|
-
# Travis supplies $TRAVIS_OS_NAME.
|
|
4
|
-
# http://docs.travis-ci.com/user/multi-os/
|
|
5
|
-
# Our .travis.yml also defines:
|
|
6
|
-
# - SHARED_LIB=ON/OFF
|
|
7
|
-
# - STATIC_LIB=ON/OFF
|
|
8
|
-
# - CMAKE_PKG=ON/OFF
|
|
9
|
-
# - BUILD_TYPE=release/debug
|
|
10
|
-
# - VERBOSE_MAKE=false/true
|
|
11
|
-
# - VERBOSE (set or not)
|
|
12
|
-
|
|
13
|
-
# -e: fail on error
|
|
14
|
-
# -v: show commands
|
|
15
|
-
# -x: show expanded commands
|
|
16
|
-
set -vex
|
|
17
|
-
|
|
18
|
-
env | sort
|
|
19
|
-
|
|
20
|
-
meson --buildtype ${BUILD_TYPE} --default-library ${LIB_TYPE} . build-${LIB_TYPE}
|
|
21
|
-
ninja -v -C build-${LIB_TYPE}
|
|
22
|
-
ninja -v -C build-${LIB_TYPE} test
|
|
23
|
-
rm -r build-${LIB_TYPE}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.8.4
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@JSONCPP_VERSION@
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Created by GOD on 2017/4/20.
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
#include <logUtils.h>
|
|
6
|
-
#include <android/log.h>
|
|
7
|
-
|
|
8
|
-
void LogString(int pro, const char *szFormat, ...)
|
|
9
|
-
{
|
|
10
|
-
__android_log_print(pro, "JuBiter", "%s", szFormat);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
// log.h 中说明单次最大日志是1023 个字符
|
|
14
|
-
void LogBinary(const char* msg, const unsigned char *pBuf, unsigned long ulSize)
|
|
15
|
-
{
|
|
16
|
-
LogString(ANDROID_LOG_INFO, msg);
|
|
17
|
-
|
|
18
|
-
// Show 16 bytes each line.
|
|
19
|
-
char ss[4096] = {0};
|
|
20
|
-
|
|
21
|
-
unsigned long ulLines = ulSize / 16;
|
|
22
|
-
unsigned long ulCharInLastLine = 0;
|
|
23
|
-
if(0 != ulSize % 16)
|
|
24
|
-
{
|
|
25
|
-
ulCharInLastLine = ulSize - ulLines * 16;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
unsigned long i = 0;
|
|
29
|
-
unsigned long j = 0;
|
|
30
|
-
for(i = 0; i < ulLines; ++i)
|
|
31
|
-
{
|
|
32
|
-
memset(ss, 0, sizeof(ss));
|
|
33
|
-
sprintf(&ss[strlen(ss)], " ");
|
|
34
|
-
|
|
35
|
-
// 显示16进制
|
|
36
|
-
for(j = 0; j < 16; ++j)
|
|
37
|
-
{
|
|
38
|
-
sprintf(&ss[strlen(ss)], "%02X ", (unsigned short) pBuf[16 * i + j]);
|
|
39
|
-
|
|
40
|
-
if(7 == j)
|
|
41
|
-
{
|
|
42
|
-
sprintf(&ss[strlen(ss)], "- ");
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
sprintf(&ss[strlen(ss)], " ");
|
|
47
|
-
|
|
48
|
-
// 显示字符
|
|
49
|
-
for(j = 0; j < 16; ++j)
|
|
50
|
-
{
|
|
51
|
-
if(isprint(pBuf[16 * i + j]))
|
|
52
|
-
{
|
|
53
|
-
sprintf(&ss[strlen(ss)], "%c", (char) pBuf[16 * i + j]);
|
|
54
|
-
}
|
|
55
|
-
else
|
|
56
|
-
{
|
|
57
|
-
sprintf(&ss[strlen(ss)], ".");
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
LogString(ANDROID_LOG_INFO, ss);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
if(0 != ulCharInLastLine)
|
|
64
|
-
{
|
|
65
|
-
memset(ss, 0, sizeof(ss));
|
|
66
|
-
sprintf(ss, " ");
|
|
67
|
-
|
|
68
|
-
for(j = 0; j < ulCharInLastLine; ++j)
|
|
69
|
-
{
|
|
70
|
-
sprintf(&ss[strlen(ss)], "%02X ", (unsigned short) pBuf[16 * i + j]);
|
|
71
|
-
|
|
72
|
-
if(j == 7 && ulCharInLastLine > 8)
|
|
73
|
-
{
|
|
74
|
-
sprintf(&ss[strlen(ss)], "- ");
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
unsigned long k = 0;
|
|
79
|
-
|
|
80
|
-
k += ((16 - ulCharInLastLine) * 3);
|
|
81
|
-
|
|
82
|
-
if(ulCharInLastLine <= 8)
|
|
83
|
-
{
|
|
84
|
-
k += 2;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
for(unsigned long kk = 0; kk < k; ++kk)
|
|
88
|
-
{
|
|
89
|
-
sprintf(&ss[strlen(ss)], " ");
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
sprintf(&ss[strlen(ss)], " ");
|
|
93
|
-
|
|
94
|
-
for(j = 0; j < ulCharInLastLine; ++j)
|
|
95
|
-
{
|
|
96
|
-
if(isprint(pBuf[16 * i + j]))
|
|
97
|
-
{
|
|
98
|
-
sprintf(&ss[strlen(ss)], "%c", (char) pBuf[16 * i + j]);
|
|
99
|
-
}
|
|
100
|
-
else
|
|
101
|
-
{
|
|
102
|
-
sprintf(&ss[strlen(ss)], ".");
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
LogString(ANDROID_LOG_INFO, ss);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Created by GOD on 2017/4/20.
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
#ifndef _LOGUTILS_H
|
|
6
|
-
#define _LOGUTILS_H
|
|
7
|
-
|
|
8
|
-
#include <time.h>
|
|
9
|
-
#include <stdio.h>
|
|
10
|
-
#include <cstring>
|
|
11
|
-
#include <ctype.h>
|
|
12
|
-
|
|
13
|
-
//#ifdef ANDROID_API_LEVEL_H
|
|
14
|
-
#ifdef __ANDROID__
|
|
15
|
-
|
|
16
|
-
#include <jni.h>
|
|
17
|
-
#include <android/log.h>
|
|
18
|
-
|
|
19
|
-
#endif
|
|
20
|
-
|
|
21
|
-
//**************************************************************************************************
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* 字符串输出
|
|
25
|
-
* @param pro
|
|
26
|
-
* @param szLog
|
|
27
|
-
*/
|
|
28
|
-
void LogString(int pro, const char *szLog, ...);
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* 16 进制输出
|
|
32
|
-
* @param msg
|
|
33
|
-
* @param pBuf
|
|
34
|
-
* @param ulSize
|
|
35
|
-
*/
|
|
36
|
-
void LogBinary(const char* msg, const unsigned char *pBuf, unsigned long ulSize);
|
|
37
|
-
|
|
38
|
-
//**************************************************************************************************
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
#if defined(DEBUG)
|
|
42
|
-
|
|
43
|
-
//#ifdef ANDROID_API_LEVEL_H
|
|
44
|
-
#ifdef __ANDROID__
|
|
45
|
-
|
|
46
|
-
#define TAG "JuBiter"
|
|
47
|
-
#define PRINTV(...) { __android_log_print(ANDROID_LOG_VERBOSE, TAG, __VA_ARGS__); }
|
|
48
|
-
#define PRINTD(...) { __android_log_print(ANDROID_LOG_DEBUG, TAG, __VA_ARGS__); }
|
|
49
|
-
#define PRINTI(...) { __android_log_print(ANDROID_LOG_INFO, TAG, __VA_ARGS__); }
|
|
50
|
-
#define PRINTW(...) { __android_log_print(ANDROID_LOG_WARN, TAG, __VA_ARGS__); }
|
|
51
|
-
#define PRINTE(...) { __android_log_print(ANDROID_LOG_ERROR, TAG, __VA_ARGS__); }
|
|
52
|
-
|
|
53
|
-
#else
|
|
54
|
-
|
|
55
|
-
#define PRINTE(...) printf(__VA_ARGS__);
|
|
56
|
-
#define PRINTW(...) printf(__VA_ARGS__);
|
|
57
|
-
#define PRINTI(...) printf(__VA_ARGS__);
|
|
58
|
-
|
|
59
|
-
#endif /* __ANDROID__ */
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
#define LOG_ERR(...) { \
|
|
63
|
-
PRINTE(__VA_ARGS__); \
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
#define LOG_WRN(...) { \
|
|
67
|
-
PRINTW(__VA_ARGS__) \
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
#define LOG_INF(...) { \
|
|
71
|
-
PRINTI(__VA_ARGS__); \
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
#define LOG_BIN(msg, src, len) { \
|
|
75
|
-
LogBinary(msg, src, len); \
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
#else
|
|
79
|
-
|
|
80
|
-
#define LOG_ERR(...)
|
|
81
|
-
#define LOG_WRN(...)
|
|
82
|
-
#define LOG_INF(...)
|
|
83
|
-
#define LOG_BIN(...)
|
|
84
|
-
|
|
85
|
-
#endif /* DEBUG */
|
|
86
|
-
|
|
87
|
-
#endif //_LOGUTILS_H
|