Skip to content

Commit 5f012cb

Browse files
committed
V5.18.0
1 parent 379a501 commit 5f012cb

File tree

9 files changed

+186
-102
lines changed

9 files changed

+186
-102
lines changed

CHANGELOG.md

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,47 @@
1-
# V5.17.1
2-
3-
## stario
1+
# V5.18.0
2+
3+
## stario
4+
- Added features
5+
* Supported BSC10II.
6+
7+
## starioextension
8+
- Added features
9+
* ICommandBuilder Class : CutPaperAction.TearOff
10+
* ICommandBuilder Class : InternationalType.India
11+
12+
## SDK
13+
- Added Sample Codes
14+
* Supported BSC10II.
15+
16+
17+
# V5.17.1
18+
19+
## stario
420
- Support Android14
521
- Changed the library format from JAR to AAR. The library file name has be changed as follows.
622
* stario.aar (old name : StarIOPort3.1.jar)
723
- Fixed an issue.
824
* Fixed an issue where the obtained printer status may not be the latest.
925
(When using Android 9 or lower devices and a printer with AOA connection)
1026

11-
## starioextension
27+
## starioextension
1228
- Support Android14
1329
- Changed the library format from JAR to AAR. The library file name has be changed as follows.
1430
* starioextension.aar (old name : starioextension.jar)
15-
16-
## stariodevicesetting
31+
32+
## stariodevicesetting
1733
- Support Android14
1834
* Note on changing the library format to AAR
1935
When linking libraries manually, the description of app/build.gradle is as follows.
2036
dependencies {
2137
implementation(name: 'stario', ext: 'aar')
2238
....
23-
}
24-
25-
## SDK
26-
- Support Android14
27-
28-
39+
}
40+
41+
## SDK
42+
- Support Android14
43+
44+
2945
# V5.17.0
3046

3147
## stario

SDK/app/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ android {
1010
minSdkVersion 24
1111
targetSdk 34
1212

13-
versionCode 73
14-
versionName "5.17.1"
13+
versionCode 74
14+
versionName "5.18.0"
1515
}
1616
buildTypes {
1717
release {
@@ -22,8 +22,8 @@ android {
2222
}
2323

2424
dependencies {
25-
implementation 'com.starmicronics:stario:2.11.2'
26-
implementation 'com.starmicronics:starioextension:1.15.2'
25+
implementation 'com.starmicronics:stario:2.12.0'
26+
implementation 'com.starmicronics:starioextension:1.16.0'
2727
implementation 'androidx.appcompat:appcompat:1.1.0'
2828
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
2929
}

SDK/app/src/main/java/com/starmicronics/starprntsdk/AutoSwitchInterfaceExtFragment.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,12 @@ public void onCreate(Bundle savedInstanceState) {
7373
PrinterSettings settings = settingManager.getPrinterSettings();
7474

7575
// Specifying AutoSwitch: for portName allows you to automatically select the interface for connecting to the printer.
76-
mStarIoExtManager = new StarIoExtManager(StarIoExtManager.Type.WithBarcodeReader, "AutoSwitch:", settings.getPortSettings(), 10000, getActivity()); // 10000mS!!!
76+
if (ModelCapability.canUseBarcodeReader(settings.getModelIndex())) {
77+
mStarIoExtManager = new StarIoExtManager(StarIoExtManager.Type.WithBarcodeReader, "AutoSwitch:", settings.getPortSettings(), 10000, getActivity());
78+
}
79+
else {
80+
mStarIoExtManager = new StarIoExtManager(StarIoExtManager.Type.Standard, "AutoSwitch:", settings.getPortSettings(), 10000, getActivity());
81+
}
7782
mStarIoExtManager.setCashDrawerOpenActiveHigh(settings.getCashDrawerOpenActiveHigh());
7883
}
7984

SDK/app/src/main/java/com/starmicronics/starprntsdk/ModelCapability.java

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ public class ModelCapability {
5555
// V5.16.0
5656
public static final int MC_LABEL3 = 28;
5757

58+
// V5.18.0
59+
public static final int BSC10II = 29;
60+
5861
static class ModelInfo {
5962
String modelTitle;
6063
String[] modelNameArray;
@@ -1152,6 +1155,41 @@ public ModelInfo(String modelTitle,
11521155
0, // volumeMin
11531156
true // canUseAutoSwitchInterface
11541157
));
1158+
1159+
put(BSC10II, new ModelInfo(
1160+
"BSC10II", // modelTitle
1161+
new String[]{ // modelNameArray
1162+
"BSC10II (STR-001)", // <-LAN interface
1163+
"BSC10II"}, // <-USB interface
1164+
Emulation.StarPRNT, // Emulation
1165+
"", // Default portSettings
1166+
PrinterSettingConstant.PAPER_SIZE_THREE_INCH, // Default paper size
1167+
true, // canSetDrawerOpenStatus
1168+
true, // canPrintTextReceiptSample
1169+
true, // canPrintUtf8EncodedText
1170+
true, // canPrintRasterReceiptSample
1171+
true, // canPrintCjk
1172+
false, // canUseBlackMark
1173+
false, // canUseBlackMarkDetection
1174+
true, // canUsePageMode
1175+
true, // canUseCashDrawer
1176+
false, // canUseBarcodeReader
1177+
false, // canUseCustomerDisplay
1178+
false, // canUsePresenter
1179+
false, // canUseLed
1180+
LedModel.None, // ledModel
1181+
false, // canUseBlinkLed
1182+
false, // canUsePaperPresentStatus
1183+
true, // canGetProductSerialNumber
1184+
16, // settableUsbSerialNumberLength
1185+
true, // isUsbSerialNumberEnabledByDefault
1186+
false, // canUseMelodySpeaker
1187+
-1, // defaultSoundNumber
1188+
-1, // defaultVolume
1189+
-1, // volumeMax
1190+
-1, // volumeMin
1191+
true // canUseAutoSwitchInterface
1192+
));
11551193
}
11561194
};
11571195

SDK/app/src/main/java/com/starmicronics/starprntsdk/ModelSelectDialogFragment.java

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Dialog onCreateDialog(Bundle savedInstanceState) {
5353
"SM-L200",
5454
"SM-L300",
5555
"BSC10",
56+
"BSC10II",
5657
"SM-S210i StarPRNT",
5758
"SM-S220i StarPRNT",
5859
"SM-S230i StarPRNT",
@@ -97,15 +98,16 @@ public void onClick(DialogInterface dialog, int which) {
9798
case 17: model = ModelCapability.SM_L200; break;
9899
case 18: model = ModelCapability.SM_L300; break;
99100
case 19: model = ModelCapability.BSC10; break;
100-
case 20: model = ModelCapability.SM_S210I_StarPRNT; break;
101-
case 21: model = ModelCapability.SM_S220I_StarPRNT; break;
102-
case 22: model = ModelCapability.SM_S230I_StarPRNT; break;
103-
case 23: model = ModelCapability.SM_T300I_T300_StarPRNT; break;
104-
case 24: model = ModelCapability.SM_T400I_StarPRNT; break;
105-
case 25: model = ModelCapability.SK1_211_221_V211; break;
106-
case 26: model = ModelCapability.SK1_211_221_V211_Presenter; break;
107-
case 27: model = ModelCapability.SK1_311_321_V311; break;
108-
case 28: model = ModelCapability.SK1_311_V311_Presenter; break;
101+
case 20: model = ModelCapability.BSC10II; break;
102+
case 21: model = ModelCapability.SM_S210I_StarPRNT; break;
103+
case 22: model = ModelCapability.SM_S220I_StarPRNT; break;
104+
case 23: model = ModelCapability.SM_S230I_StarPRNT; break;
105+
case 24: model = ModelCapability.SM_T300I_T300_StarPRNT; break;
106+
case 25: model = ModelCapability.SM_T400I_StarPRNT; break;
107+
case 26: model = ModelCapability.SK1_211_221_V211; break;
108+
case 27: model = ModelCapability.SK1_211_221_V211_Presenter; break;
109+
case 28: model = ModelCapability.SK1_311_321_V311; break;
110+
case 29: model = ModelCapability.SK1_311_V311_Presenter; break;
109111
}
110112

111113
Intent intentForPassingData = new Intent();

0 commit comments

Comments
 (0)