Skip to content

Commit

Permalink
bug调整
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheedon committed Jan 6, 2021
1 parent e9f9055 commit ea65800
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sensorlibrary/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
versionCode 2
versionName "1.0.1"
versionCode 3
versionName "1.0.2"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.yanhangtec.sensorlibrary.client;

import com.yanhangtec.sensorlibrary.SensorConstant;
import com.yanhangtec.sensorlibrary.SensorFactory;
import com.yanhangtec.sensorlibrary.client.center.CardReaderCenter;
import com.yanhangtec.sensorlibrary.client.listener.OnCardReaderListener;
import com.yanhangtec.sensorlibrary.client.listener.OnDebugListener;
Expand Down Expand Up @@ -37,9 +38,10 @@ private CardReaderClient() {

@Override
public void initConfig() {
initConfig(SensorConstant.TYPE_RFID);
initConfig(SensorFactory.getSensorType());
}

@Override
public void initConfig(int type) {
this.type = type;
switch (type) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ public interface CardReaderCenter {
// 初始化配置
void initConfig();

void initConfig(int type);

void addListener(OnCardReaderListener listener);

void removeListener(OnCardReaderListener listener);
Expand Down

0 comments on commit ea65800

Please sign in to comment.