Skip to content

Commit 32bb91c

Browse files
V5.20.0
1 parent 8bbd354 commit 32bb91c

File tree

12 files changed

+209
-51
lines changed

12 files changed

+209
-51
lines changed

Changelog_En.md renamed to Changelog.md

Lines changed: 46 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
# Ver.5.20.0 (2025/05/19)
2+
3+
## StarIO
4+
- Support Android 16 (tested on platform stability version).
5+
- Added Features
6+
* Supported mC-Label2.
7+
8+
## StarIOExtension
9+
- Support Android 16 (tested on platform stability version).
10+
- Changed Features
11+
* ICommandBuilder Class : Added appendBaseTextMagnification function.
12+
* ICommandBuilder Class : Extended BarcodeWidth enum.
13+
* ICommandBuilder Class : Changed to allow selection of adding line feed code to the output of AppendCutPaper function.
14+
15+
## StarIODeviceSetting
16+
- Support Android 16 (tested on platform stability version).
17+
18+
## SDK
19+
- Support Android 16 (tested on platform stability version).
20+
- Added Sample Codes
21+
* Supported mC-Label2.
22+
23+
stario (Ver. 2.14.0) <br>
24+
starioextension (Ver. 1.17.0)<br>
25+
StarIODeviceSetting (Ver. 1.0.4)
26+
27+
128
# Ver.5.19.0 (2024/11/01)
229

330
## StarIO
@@ -23,18 +50,23 @@ StarIODeviceSetting (Ver. 1.0.3)
2350

2451
# V5.18.0 (2024/06/24)
2552

26-
## SDK
27-
- Added Sample Codes
28-
* Supported BSC10II (Limited region model).
29-
3053
## StarIO
3154
- Added features
3255
* Supported BSC10II (Limited region model).
3356

3457
## StarIOExtension
58+
- Added Features
59+
* ICommandBuilder Class : CutPaperAction.TearOff
60+
* ICommandBuilder Class : InternationalType.India
61+
62+
## SDK
3563
- Added Sample Codes
3664
* Supported BSC10II (Limited region model).
3765

66+
stario (Ver. 2.12.0) <br>
67+
starioextension (Ver. 1.16.0)<br>
68+
StarIODeviceSetting (Ver. 1.0.2)
69+
3870

3971
# V5.17.1 (2024/02/09)
4072

@@ -65,6 +97,10 @@ StarIODeviceSetting (Ver. 1.0.3)
6597
## SDK
6698
- Support Android14
6799

100+
stario (Ver. 2.11.2) <br>
101+
starioextension (Ver. 1.15.2)<br>
102+
StarIODeviceSetting (Ver. 1.0.2)
103+
68104

69105
# V5.17.0 (2023/09/08)
70106

@@ -81,7 +117,7 @@ StarIODeviceSetting (Ver. 1.0.3)
81117

82118
stario (Ver. 2.11.1) <br>
83119
starioextension (Ver. 1.15.1)<br>
84-
StarIODeviceSetting (Ver. 1.0.0)
120+
StarIODeviceSetting (Ver. 1.0.1)
85121

86122

87123
# V5.16.0 (2023/03/31)
@@ -139,6 +175,11 @@ StarIODeviceSetting (Ver. 1.0.0)
139175
## StarIODeviceSetting
140176
- New
141177

178+
stario (Ver. 2.9.0) <br>
179+
starioextension (Ver. 1.15.0) <br>
180+
smcloudservices (Ver. 1.4.1)<br>
181+
StarIODeviceSetting (Ver. 1.0.0)
182+
142183

143184
# V5.14.0 (2020/06/17)
144185

Changelog_Jp.md

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
# Ver 5.20.0 (2025/05/19)
2+
3+
## StarIO
4+
- Android16に対応(プラットフォーム安定版で動作確認)
5+
- 機能追加
6+
* mC-Label2に対応
7+
8+
## StarIOExtension
9+
- Android16に対応(プラットフォーム安定版で動作確認)
10+
- 機能追加
11+
* ICommandBuilderクラス : appendTextBaseMagnificationメソッドを追加
12+
* ICommandBuilderクラス : BarcodeWidthの列挙型を拡張
13+
* ICommandBuilderクラス : appendCutPaperメソッドの出力に改行コードの付与を選択可能に変更
14+
15+
## StarIODeviceSetting
16+
- Android16に対応(プラットフォーム安定版で動作確認)
17+
18+
## SDK
19+
- Android16に対応(プラットフォーム安定版で動作確認)
20+
- サンプルコードの追加
21+
* mC-Label2に対応
22+
23+
stario (Ver. 2.14.0) <br>
24+
starioextension (Ver. 1.17.0)<br>
25+
StarIODeviceSetting (Ver. 1.0.4)
26+
27+
128
# Ver.5.19.0 (2024/11/01)
229

330
## StarIO
@@ -36,6 +63,10 @@ StarIODeviceSetting (Ver. 1.0.3)
3663
- サンプルコードの追加
3764
* BSC10IIに対応(日本国内では販売しておりません)
3865

66+
stario (Ver. 2.12.0) <br>
67+
starioextension (Ver. 1.16.0)<br>
68+
StarIODeviceSetting (Ver. 1.0.2)
69+
3970

4071
# Ver.5.17.1 (2024/02/09)
4172

@@ -64,6 +95,10 @@ StarIODeviceSetting (Ver. 1.0.3)
6495
## SDK
6596
- Android14をサポート
6697

98+
stario (Ver. 2.11.2) <br>
99+
starioextension (Ver. 1.15.2)<br>
100+
StarIODeviceSetting (Ver. 1.0.2)
101+
67102

68103
# Ver.5.17.0 (2023/09/08)
69104

@@ -81,7 +116,7 @@ StarIODeviceSetting (Ver. 1.0.3)
81116

82117
stario (Ver. 2.11.1)<br>
83118
starioextension (Ver. 1.15.1)<br>
84-
StarIODeviceSetting (Ver. 1.0.0)
119+
StarIODeviceSetting (Ver. 1.0.1)
85120

86121

87122
# Ver.5.16.0 (2023/03/31)
@@ -138,6 +173,11 @@ StarIODeviceSetting (Ver. 1.0.0)
138173
## StarIODeviceSetting
139174
- 新規作成
140175

176+
stario (Ver. 2.9.0) <br>
177+
starioextension (Ver. 1.15.0) <br>
178+
smcloudservices (Ver. 1.4.1)<br>
179+
StarIODeviceSetting (Ver. 1.0.0)
180+
141181

142182
## Ver.5.14.0 (2020/06/17)
143183

@@ -158,8 +198,7 @@ StarIODeviceSetting (Ver. 1.0.0)
158198

159199
stario (Ver. 2.9.0) <br>
160200
starioextension (Ver. 1.15.0) <br>
161-
smcloudservices (Ver. 1.4.1)<br>
162-
StarIODeviceSetting (Ver. 1.0.0)
201+
smcloudservices (Ver. 1.4.1)
163202

164203

165204
# Ver 5.13.0 (2019/12/25)

Readme_En.md renamed to Readme.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,20 @@ This package contains StarPRNT SDK for supporting to develop applications for St
66

77
Please refer to the [StarPRNT SDK document](https://www.star-m.jp/starprntsdk-oml-android.html) for supported OS, development environment, and supported printers.
88

9+
## important
10+
11+
### Considerations when using mC-Label2
12+
13+
| Printer | Paper Size | DPI |
14+
| ----------------------------------- | --------------------- | --------------------- |
15+
| mC-Label2 | 2 inch (576 dots) | 300dpi |
16+
| mC-Print2, mPOP, etc | 2 inch (384 dots) | 203dpi |
17+
| mC-Label3, mC-Print3, TSP100IV, etc | 3 inch (576 dots) | 203dpi |
18+
19+
Due to the differences in DPI above, the sample code based on a "3-inch (576 dots)" paper size will print on a 2-inch paper size in mC-Label2.
20+
921
## Limitation
22+
1023
1. Only the last connected USB printer can communicate with Android V5.0.
1124

1225
2. Please use "PIN code enable" in Bluetooth security with SM-L200.
@@ -29,4 +42,4 @@ Beginning from StarIOPort3.1.jar V2.6.0 (StarPRNT SDK V5.11.0), the releasePort
2942

3043
## Copyright
3144

32-
Copyright 2016-2024 Star Micronics Co., Ltd. All rights reserved.
45+
Copyright 2016-2025 Star Micronics Co., Ltd. All rights reserved.

Readme_Jp.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@
77

88
対応OS・開発環境・対応プリンターについては、[StarPRNT SDKの開発者向けドキュメント](https://www.star-m.jp/starprntsdk-oml-android.html)を参照ください。
99

10+
## 重要事項
11+
12+
### mC-Label2を使用する際の留意点
13+
14+
| プリンタ | 用紙サイズ | DPI |
15+
| ------------------------------------- | --------------------- | --------------------- |
16+
| mC-Label2 | 2インチ (576ドット) | 300dpi |
17+
| mC-Print2、mPOP、その他 | 2インチ (384ドット) | 203dpi |
18+
| mC-Label3、mC-Print3、TSP100IV、その他 | 3インチ (576ドット) | 203dpi |
19+
20+
上記の解像度の違いにより、mC-Label2では「3インチ (576ドット)」の用紙サイズに基づいたサンプルコードを使用すると、2インチの用紙サイズで印刷されます。
21+
1022
## 制限事項
1123

1224
1. SM-L200では、BluetoothセキュリティをPinCode有効でお使いください。
@@ -30,4 +42,4 @@ StarIOPort3.1.jar V2.6.0 (StarPRNT SDK V5.11.0)より、releasePortメソッド
3042

3143
## 著作権
3244

33-
スター精密(株)Copyright 2016-2024
45+
スター精密(株)Copyright 2016-2025

SDK/app/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ plugins {
22
id 'com.android.application'
33
}
44
android {
5-
compileSdk 35
5+
compileSdk 36
66
namespace "com.starmicronics.starprntsdk"
77
defaultConfig {
88
applicationId "com.StarMicronics.StarIOSDK"
99

1010
minSdkVersion 24
11-
targetSdk 35
11+
targetSdk 36
1212

13-
versionCode 76
14-
versionName "5.19.0"
13+
versionCode 78
14+
versionName "5.20.0"
1515
}
1616
buildTypes {
1717
release {
@@ -22,8 +22,8 @@ android {
2222
}
2323

2424
dependencies {
25-
implementation 'com.starmicronics:stario:2.13.0'
26-
implementation 'com.starmicronics:starioextension:1.16.1'
25+
implementation 'com.starmicronics:stario:2.14.0'
26+
implementation 'com.starmicronics:starioextension:1.17.0'
2727
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.20"
2828
implementation 'androidx.appcompat:appcompat:1.7.0'
2929
implementation 'androidx.legacy:legacy-support-v4:1.0.0'

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

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ public class ModelCapability {
5858
// V5.18.0
5959
public static final int BSC10II = 29;
6060

61+
// V5.20.0
62+
public static final int MC_LABEL2 = 30;
63+
6164
static class ModelInfo {
6265
String modelTitle;
6366
String[] modelNameArray;
@@ -228,6 +231,43 @@ public ModelInfo(String modelTitle,
228231
true // canUseAutoSwitchInterface
229232
));
230233

234+
put(MC_LABEL2, new ModelInfo(
235+
"mC-Label2", // modelTitle
236+
new String[]{ // modelNameArray
237+
"MCL21 (STR-001)", // <-LAN interface
238+
"mC-Label2-", // <-Bluetooth interface
239+
"mC-Label2", // <-USB interface
240+
"MCL21"}, // <-USB interface
241+
Emulation.StarPRNT, // Emulation
242+
"", // Default portSettings
243+
PrinterSettingConstant.PAPER_SIZE_THREE_INCH, // Default paper size
244+
false, // canSetDrawerOpenStatus
245+
true, // canPrintTextReceiptSample
246+
true, // canPrintUtf8EncodedText
247+
true, // canPrintRasterReceiptSample
248+
true, // canPrintCjk
249+
true, // canUseBlackMark
250+
true, // canUseBlackMarkDetection
251+
true, // canUsePageMode
252+
false, // canUseCashDrawer
253+
true, // canUseBarcodeReader
254+
true, // canUseCustomerDisplay
255+
false, // canUsePresenter
256+
false, // canUseLed
257+
LedModel.None, // ledModel
258+
false, // canUseBlinkLed
259+
true, // canUsePaperPresentStatus
260+
true, // canGetProductSerialNumber
261+
0, // settableUsbSerialNumberLength (This printer supports the USB serial number function, but the serial number change function of this sample app is not available for the printer. Please use the Star Configuration or Star Quick Setup Utility for the change function instead.)
262+
true, // isUsbSerialNumberEnabledByDefault
263+
false, // canUseMelodySpeaker
264+
-1, // defaultSoundNumber
265+
-1, // defaultVolume
266+
-1, // volumeMax
267+
-1, // volumeMin
268+
true // canUseAutoSwitchInterface
269+
));
270+
231271
put(MC_LABEL3, new ModelInfo(
232272
"mC-Label3", // modelTitle
233273
new String[]{ // modelNameArray
@@ -255,7 +295,7 @@ public ModelInfo(String modelTitle,
255295
false, // canUseBlinkLed
256296
true, // canUsePaperPresentStatus
257297
true, // canGetProductSerialNumber
258-
16, // settableUsbSerialNumberLength
298+
0, // settableUsbSerialNumberLength (This printer supports the USB serial number function, but the serial number change function of this sample app is not available for the printer. Please use the Star Configuration or Star Quick Setup Utility for the change function instead.)
259299
true, // isUsbSerialNumberEnabledByDefault
260300
false, // canUseMelodySpeaker
261301
0, // defaultSoundNumber
@@ -1296,10 +1336,6 @@ public static boolean canGetProductSerialNumber(int model, String modelName, boo
12961336
}
12971337

12981338
public static int settableUsbSerialNumberLength(int model, String modelName, boolean isUsbInterface) {
1299-
if (model == MC_LABEL3) { // mC-Label3 can not use the USB serial number setting sample in this SDK.
1300-
return 0;
1301-
}
1302-
13031339
int length = mModelCapabilityMap.get(model).settableUsbSerialNumberLength;
13041340

13051341
if (model == TSP100) {

0 commit comments

Comments
 (0)