Skip to content

Commit 150877b

Browse files
committed
права для чтения штрихкодов
1 parent 88f7fe6 commit 150877b

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
defaultConfig {
88
minSdkVersion 22
99
targetSdkVersion 25
10-
versionCode 4
11-
versionName "0.3.0"
10+
versionCode 5
11+
versionName "0.4.0"
1212
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1313
}
1414
buildTypes {

app/src/main/java/ru/evotor/devices/commons/services/PrinterService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
public class PrinterService extends AbstractService implements IPrinterServiceWrapper {
2525

26-
public static final String UNKNOWN_EXCEPTION_TEXT = "The request to DeviceService failed";
26+
public static final String UNKNOWN_EXCEPTION_TEXT = "Request to DeviceService failed";
2727

2828
protected volatile Boolean serviceConnected = null;
2929
protected ru.evotor.devices.commons.IPrinterService service;

app/src/main/java/ru/evotor/devices/commons/services/ScalesService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
public class ScalesService extends AbstractService implements IScalesServiceWrapper {
2525

26-
public static final String UNKNOWN_EXCEPTION_TEXT = "The request to DeviceService failed";
26+
public static final String UNKNOWN_EXCEPTION_TEXT = "Request to DeviceService failed";
2727

2828
protected Context context;
2929

app/src/main/java/ru/evotor/integrations/BarcodeBroadcastReceiver.kt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import android.content.IntentFilter
99
* Created by nixan on 28.04.17.
1010
*/
1111

12-
1312
abstract class BarcodeBroadcastReceiver : BroadcastReceiver() {
1413

1514
override fun onReceive(context: Context?, intent: Intent?) {
@@ -20,7 +19,7 @@ abstract class BarcodeBroadcastReceiver : BroadcastReceiver() {
2019
}
2120
}
2221

23-
abstract fun onReceiveBarcode(barcode: String)
22+
public abstract fun onReceiveBarcode(barcode: String)
2423

2524
companion object {
2625

@@ -30,8 +29,15 @@ abstract class BarcodeBroadcastReceiver : BroadcastReceiver() {
3029
@JvmField
3130
public val EXTRA_SCANNED_CODE = "ScannedCode"
3231

32+
@JvmField
33+
public val SENDER_PERMISSION = "ru.evotor.devices.SCANNER_SENDER"
34+
35+
@JvmField
36+
public val RECEIVER_PERMISSION = "ru.evotor.devices.SCANNER_RECEIVER"
37+
3338
@JvmField
3439
public val BARCODE_INTENT_FILTER = IntentFilter(ACTION_SCANNED)
40+
3541
}
3642

3743
}

0 commit comments

Comments
 (0)