Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

znzz-plugin-nfccard

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

znzz-plugin-nfccard - npm Package Compare versions

Comparing version
1.0.3
to
1.0.4
+1
-1
package.json
{
"name": "znzz-plugin-nfccard",
"version": "1.0.3",
"version": "1.0.4",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -26,3 +26,3 @@ package cc.lotuscard;

/*************************************************************/
private LotusCardDriver() {
public LotusCardDriver() {
}

@@ -33,8 +33,2 @@

}
public static LotusCardDriver getInstance(ILotusCallBack callback){
LotusCardDriver mLotusCardDriver = new LotusCardDriver();
LotusCardDriver.m_lotusCallBack = callback;
return mLotusCardDriver;
}
/**

@@ -41,0 +35,0 @@ * 打开设备

@@ -121,14 +121,11 @@ package cn.highwillow.iddemo;

m_MainActivity = cordova.getActivity();
Toast.makeText(m_MainActivity,"getActivity",Toast.LENGTH_SHORT).show();
if(m_NfcAdpater == null){
m_NfcAdpater = NfcAdapter.getDefaultAdapter(m_MainActivity);
}
Toast.makeText(m_MainActivity,"m_NfcAdaptor",Toast.LENGTH_SHORT).show();
pendingIntent = PendingIntent.getActivity(m_MainActivity, 0, new Intent(m_MainActivity,
getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP), 0);
Toast.makeText(m_MainActivity,"pendingIntent",Toast.LENGTH_SHORT).show();
IntentFilter ndef = new IntentFilter(NfcAdapter.ACTION_TECH_DISCOVERED);
ndef.addCategory("*/*");
mFilters = new IntentFilter[]{ndef};// 过滤器
Toast.makeText(m_MainActivity,"mFilters",Toast.LENGTH_SHORT).show();
mTechLists = new String[][]{

@@ -140,4 +137,8 @@ new String[]{MifareClassic.class.getName()},

Toast.makeText(m_MainActivity,"mTechLists",Toast.LENGTH_SHORT).show();
NfcCardAdaptor.mLotusCardDriver = LotusCardDriver.getInstance(new NFCCallBack());
Toast.makeText(m_MainActivity,"LotusCardDriver.getInstance",Toast.LENGTH_SHORT).show();
NfcCardAdaptor.mLotusCardDriver = new LotusCardDriver();
Toast.makeText(m_MainActivity,"new LotusCardDriver()",Toast.LENGTH_SHORT).show();
mLotusCardDriver.m_lotusCallBack = new NFCCallBack();
Toast.makeText(m_MainActivity,"new NFCCallBack()",Toast.LENGTH_SHORT).show();
//区分系统版本

@@ -323,3 +324,5 @@ NfcCardAdaptor.m_nSystemVersion = VERSION.SDK_INT;

m_MainActivity = cordova.getActivity();
NfcCardAdaptor.mLotusCardDriver = LotusCardDriver.getInstance(new NFCCallBack());
NfcCardAdaptor.mLotusCardDriver = new LotusCardDriver();
mLotusCardDriver.m_lotusCallBack = new NFCCallBack();
//区分系统版本

@@ -326,0 +329,0 @@ NfcCardAdaptor.m_nSystemVersion = VERSION.SDK_INT;