Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
598e1ed3cc | ||
|
|
ec2ab0fa64 | ||
|
|
616c15c408 |
@@ -19,7 +19,6 @@ android {
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
||||
|
||||
// sign the application
|
||||
signingConfigs {
|
||||
release {
|
||||
@@ -51,7 +50,6 @@ android {
|
||||
viewBinding true
|
||||
}
|
||||
|
||||
|
||||
android.applicationVariants.all { variant ->
|
||||
def docDir = rootProject.getRootDir().getAbsolutePath() + "/../apk/dashboard"
|
||||
def releaseDir = rootProject.getRootDir().getAbsolutePath() + "/../apk/dashboard"
|
||||
|
||||
@@ -9,7 +9,16 @@ author:
|
||||
2. $ {VERSION_CODE} (去掉空格),会自动替换实际修订号,比如 1.1.4.$ {VERSION_CODE}
|
||||
-->
|
||||
|
||||
### [1.0.0.${VERSION_CODE}] - 2025.9.12
|
||||
### [1.0.1.${VERSION_CODE}] - 2025.9.16
|
||||
|
||||
#### 文件下载
|
||||
|
||||
* [dashboard_1.0.1.apk](dashboard_1.0.1.apk)
|
||||
|
||||
#### 更新记录
|
||||
* APP 启动时,发送一次电视开机指令
|
||||
|
||||
### [1.0.0.9] - 2025.9.12
|
||||
|
||||
#### 文件下载
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@ import java.util.Calendar;
|
||||
import cn.ykbox.dashboard.ConfigReader;
|
||||
import cn.ykbox.dashboard.databinding.ActivityBuildingDashboardBinding;
|
||||
import cn.ykbox.dashboard.receiver.CommandBroadcastReceiver;
|
||||
import cn.ykbox.dashboard.serial.SerialControlDevices;
|
||||
|
||||
public class BuildingDashboardActivity extends FullscreenActivity {
|
||||
private final static String TAG = "DashboardActivity";
|
||||
|
||||
@@ -110,7 +110,7 @@ public class FullscreenActivity extends AppCompatActivity {
|
||||
hide();
|
||||
} else {
|
||||
show();
|
||||
delayedHide(30000);
|
||||
delayedHide(20000);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ import androidx.core.view.ViewCompat;
|
||||
import androidx.core.view.WindowInsetsCompat;
|
||||
|
||||
import cn.ykbox.dashboard.R;
|
||||
import cn.ykbox.dashboard.serial.SerialControlDevices;
|
||||
|
||||
public class StartActivity extends AppCompatActivity {
|
||||
private Context mContext;
|
||||
@@ -19,6 +20,10 @@ public class StartActivity extends AppCompatActivity {
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
// 开机后手动发送一次开启电源指令
|
||||
SerialControlDevices.sendCommand("/dev/ttyS2", 9600, "ACEAB400ED");
|
||||
|
||||
mContext = this;
|
||||
EdgeToEdge.enable(this);
|
||||
setContentView(R.layout.activity_start);
|
||||
@@ -39,4 +44,5 @@ public class StartActivity extends AppCompatActivity {
|
||||
}
|
||||
}, 3000);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user