Skip to content

Commit

Permalink
V5.17.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bandit-ibayashi committed Feb 9, 2024
1 parent 0451176 commit 379a501
Show file tree
Hide file tree
Showing 195 changed files with 70 additions and 28 deletions.
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
# V5.17.1

## stario
- Support Android14
- Changed the library format from JAR to AAR. The library file name has be changed as follows.
* stario.aar (old name : StarIOPort3.1.jar)
- Fixed an issue.
* Fixed an issue where the obtained printer status may not be the latest.
(When using Android 9 or lower devices and a printer with AOA connection)

## starioextension
- Support Android14
- Changed the library format from JAR to AAR. The library file name has be changed as follows.
* starioextension.aar (old name : starioextension.jar)

## stariodevicesetting
- Support Android14
* Note on changing the library format to AAR
When linking libraries manually, the description of app/build.gradle is as follows.
dependencies {
implementation(name: 'stario', ext: 'aar')
....
}

## SDK
- Support Android14


# V5.17.0

## stario
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ Beginning from StarIOPort3.1.jar V2.6.0 (StarPRNT SDK V5.11.0), the releasePort

## Copyright

Copyright 2016-2023 Star Micronics Co., Ltd. All rights reserved.
Copyright 2016-2024 Star Micronics Co., Ltd. All rights reserved.
19 changes: 10 additions & 9 deletions SDK/app/build.gradle
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
apply plugin: 'com.android.application'

plugins {
id 'com.android.application'
}
android {
compileSdkVersion 33

compileSdk 34
namespace "com.starmicronics.starprntsdk"
defaultConfig {
applicationId "com.StarMicronics.StarIOSDK"

minSdkVersion 24
targetSdkVersion 33
targetSdk 34

versionCode 71
versionName "5.17.0"
versionCode 73
versionName "5.17.1"
}
buildTypes {
release {
Expand All @@ -21,8 +22,8 @@ android {
}

dependencies {
implementation 'com.starmicronics:stario:2.11.1'
implementation 'com.starmicronics:starioextension:1.15.1'
implementation 'com.starmicronics:stario:2.11.2'
implementation 'com.starmicronics:starioextension:1.15.2'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
}
Empty file modified SDK/app/proguard-rules.pro
100755 → 100644
Empty file.
Empty file.
3 changes: 1 addition & 2 deletions SDK/app/src/main/AndroidManifest.xml
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.starmicronics.starprntsdk">
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.BLUETOOTH"
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
19 changes: 19 additions & 0 deletions SDK/app/src/main/java/com/starmicronics/starprntsdk/Communication.java
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.starmicronics.starprntsdk;

import android.content.Context;
import android.os.Build;
import android.os.Handler;
import android.os.Looper;

Expand Down Expand Up @@ -1448,6 +1449,15 @@ public void run() {
}

if (mPort != null && mPortName != null) {
if(Build.VERSION.SDK_INT <= 28 && mPortName.toUpperCase().startsWith("USB:")) {
// Wait for 5 seconds until printer recover from software reset.
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
// Nothing
}
}

try {
StarIOPort.releasePort(mPort);
} catch (StarIOPortException e) {
Expand Down Expand Up @@ -1557,6 +1567,15 @@ public void run() {
}

if (mPort != null && mPortName != null) {
if(Build.VERSION.SDK_INT <= 28 && mPortName.toUpperCase().startsWith("USB:")) {
// Wait for 5 seconds until printer recover from software reset.
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
// Nothing
}
}

try {
StarIOPort.releasePort(mPort);
} catch (StarIOPortException e) {
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion SDK/app/src/main/java/com/starmicronics/starprntsdk/MainFragment.java
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public void onClick(DialogInterface dialog, int index) {
CommonAlertDialogFragment dialog = CommonAlertDialogFragment.newInstance("");
dialog.setTitle("Library Version");
dialog.setMessage(
"StarIOPort3.1 version " + StarIOPort.getStarIOVersion() + "\n" +
"StarIO version " + StarIOPort.getStarIOVersion() + "\n" +
StarIoExt.getDescription());
dialog.setPositiveButton("OK");
dialog.show(getChildFragmentManager());
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified SDK/app/src/main/res/anim/blink.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/drawable-nodpi/coupon_image.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified SDK/app/src/main/res/drawable-nodpi/coupon_image_french.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified SDK/app/src/main/res/drawable-nodpi/coupon_image_german.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified SDK/app/src/main/res/drawable-nodpi/coupon_image_japanese.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified SDK/app/src/main/res/drawable-nodpi/coupon_image_portuguese.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified SDK/app/src/main/res/drawable-nodpi/coupon_image_russian.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified SDK/app/src/main/res/drawable-nodpi/coupon_image_spanish.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified SDK/app/src/main/res/drawable-nodpi/display_image_1.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified SDK/app/src/main/res/drawable-nodpi/display_image_2.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified SDK/app/src/main/res/drawable-nodpi/printable_area_image.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified SDK/app/src/main/res/drawable-nodpi/sphere_image.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified SDK/app/src/main/res/drawable-nodpi/star_logo_image.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified SDK/app/src/main/res/drawable/checked_icon.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified SDK/app/src/main/res/drawable/ic_info_outline_white_24px.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/drawable/ic_refresh_white_24px.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/drawable/launch_image.jpg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified SDK/app/src/main/res/drawable/segmented_ctrl_radio_left.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/drawable/segmented_ctrl_radio_right.xml
100755 → 100644
Empty file.
Empty file.
Empty file modified SDK/app/src/main/res/drawable/unchecked_icon.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified SDK/app/src/main/res/layout/activity_api.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/activity_auto_switch_interface.xml
100755 → 100644
Empty file.
Empty file.
Empty file modified SDK/app/src/main/res/layout/activity_barcode_reader_ext.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/activity_blackmark.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/activity_blackmark_paste.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/activity_bluetooth_setting.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/activity_cash_drawer.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/activity_cash_drawer_ext.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/activity_combination.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/activity_combination_ext.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/activity_device_status.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/activity_display.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/activity_display_ext.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/activity_hold_print.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/activity_led.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/activity_main.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/activity_melody_speaker.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/activity_page_mode.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/activity_presenter.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/activity_print_redirection.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/activity_printer.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/activity_printer_ext.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/activity_printer_search.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/activity_title.xml
100755 → 100644
Empty file.
Empty file.
Empty file modified SDK/app/src/main/res/layout/dialog_serial_number.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/fragment_auto_switch_interface.xml
100755 → 100644
Empty file.
Empty file.
Empty file modified SDK/app/src/main/res/layout/fragment_barcode_ext.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/fragment_black_mark.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/fragment_black_mark_paste.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/fragment_bluetooth_setting.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/fragment_cash_drawer_ext.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/fragment_combination_ext.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/fragment_display_ext.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/fragment_dummy.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/fragment_hold_print.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/fragment_item_list.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/fragment_led.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/fragment_melody_speaker.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/fragment_presenter.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/fragment_printer_ext.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/fragment_title.xml
100755 → 100644
Empty file.
Empty file.
Empty file modified SDK/app/src/main/res/layout/list_bcr_row.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/list_destination_device_row.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/list_device_status_row.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/list_main_row.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/list_main_title_row.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/layout/list_printer_info_row.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/menu/menu_info.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/menu/menu_main.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/mipmap-anydpi-v26/app_icon.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/mipmap-anydpi-v26/app_icon_round.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/mipmap-hdpi/app_icon_bk.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified SDK/app/src/main/res/mipmap-hdpi/app_icon_front.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified SDK/app/src/main/res/mipmap-mdpi/app_icon_bk.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified SDK/app/src/main/res/mipmap-mdpi/app_icon_front.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified SDK/app/src/main/res/mipmap-xhdpi/app_icon_bk.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified SDK/app/src/main/res/mipmap-xhdpi/app_icon_front.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified SDK/app/src/main/res/mipmap-xxhdpi/app_icon_bk.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified SDK/app/src/main/res/mipmap-xxhdpi/app_icon_front.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified SDK/app/src/main/res/mipmap-xxxhdpi/app_icon_bk.png
100755 → 100644
Empty file modified SDK/app/src/main/res/mipmap-xxxhdpi/app_icon_front.png
100755 → 100644
Empty file modified SDK/app/src/main/res/mipmap/app_icon.png
100755 → 100644
Empty file modified SDK/app/src/main/res/values/colors.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/values/strings.xml
100755 → 100644
Empty file.
Empty file modified SDK/app/src/main/res/values/styles.xml
100755 → 100644
Empty file.
2 changes: 2 additions & 0 deletions SDK/app/src/main/res/xml/accessory_filter.xml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
<usb-accessory model="Star TSP143IV-UE" manufacturer="STAR"/>
<usb-accessory model="Star TSP143IV-UE SK" manufacturer="STAR"/>
<usb-accessory model="mC-Label3" manufacturer="Star Micronics"/>
<usb-accessory model="mC-Print3" manufacturer="Star Micronics"/>
<usb-accessory model="mPOP" manufacturer="Star Micronics"/>
</resources>

Empty file modified SDK/app/src/main/res/xml/device_filter.xml
100755 → 100644
Empty file.
Empty file.
18 changes: 4 additions & 14 deletions SDK/build.gradle
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@

buildscript {
repositories {
mavenCentral()
maven {
url 'https://maven.google.com/'
name 'Google'
}
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.2'
classpath 'com.android.tools.build:gradle:8.1.4'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand All @@ -19,17 +15,11 @@ buildscript {

allprojects {
repositories {
google()
mavenCentral()
flatDir{
dirs 'libs'
}
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
}

task clean(type: Delete) {
tasks.register('clean', Delete) {
delete rootProject.buildDir
}
3 changes: 3 additions & 0 deletions SDK/gradle.properties
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
#android.enableJetifier=true
android.defaults.buildfeatures.buildconfig=true
android.nonFinalResIds=false
android.nonTransitiveRClass=false
android.useAndroidX=true
Empty file modified SDK/gradle/wrapper/gradle-wrapper.jar
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion SDK/gradle/wrapper/gradle-wrapper.properties
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
Empty file modified SDK/gradlew
100755 → 100644
Empty file.
Empty file modified SDK/gradlew.bat
100755 → 100644
Empty file.
Empty file modified SDK/settings.gradle
100755 → 100644
Empty file.

0 comments on commit 379a501

Please sign in to comment.