5acb92fd85d4066394c6e5f8b5ad25339fa5963b..040227e7bf27786656347612f3e89d703df33cc3
2024-05-31 mac
2024年05月31日14:51:40
040227 对比 | 目录
2024-05-31 mac
2024年05月31日12:01:45
7bb1c6 对比 | 目录
4个文件已修改
35 ■■■■■ 已修改文件
app/build.gradle 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/hdl/photovoltaic/config/AppConfigManage.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/res/layout/item_device_details.xml 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/res/layout/item_plant_details.xml 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/build.gradle
@@ -82,7 +82,7 @@
     */
    android.applicationVariants.configureEach { variant ->
        variant.outputs.configureEach {
            outputFileName = "photovoltaic_${name}_v${versionName}_${generateTime()}.apk"
            outputFileName = "photovoltaic_v${versionName}_${generateTime()}_${getEnvironmentVersion(2)}.apk"
        }
    }
@@ -111,6 +111,20 @@
    return new Date().format("yyyyMMddHHmm")
}
//环境版本号:此版本号用于标注当前版本的软件处于哪个开发阶段,当软件进入到另一个阶段时需要修改此版本号。
static String getEnvironmentVersion(int environmentVersionValue) {
    if (environmentVersionValue == 1) {
        return "dev"//开发阶段版本。(一般不向外部发布,bug会比较多,功能也不全,一般只有开发人员使用。)
    } else if (environmentVersionValue == 2) {
        return "test"//测试阶段版本。(这个阶段版本会配合测试人员修复bug,直到满足发布条件。)
    } else if (environmentVersionValue == 3) {
        return "beta"//公测阶段版本。(公开测试版本,一般是内测通过的,主要会有"粉丝用户"使用体验。)
    } else if (environmentVersionValue == 4) {
        return "release"
//发布阶段版本。(该版本意味"最终版本",在前面版本的一系列测试版之后,终归会有一个正式版本,是最终交付用户使用的一个版本。该版本有时也称为标准版。一般情况下,Release不会以单词形式出现在软件封面上。)
    }
}
dependencies {
    implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
app/src/main/java/com/hdl/photovoltaic/config/AppConfigManage.java
@@ -7,7 +7,6 @@
 */
public class AppConfigManage {
    /*********是否正式服务器*********/
    private static final boolean isOnlineServer = false;
    /*********正式环境*********/
app/src/main/res/layout/item_device_details.xml
@@ -83,8 +83,7 @@
                        android:layout_height="@dimen/dp_18"
                        android:gravity="center"
                        android:textColor="@color/text_E6000000"
                        android:textSize="@dimen/text_15"
                        android:textStyle="bold" />
                        android:textSize="@dimen/text_15" />
                    <TextView
                        android:id="@+id/device_label_run_state_type_tv"
@@ -112,8 +111,7 @@
                        android:gravity="center"
                        android:text="0"
                        android:textColor="@color/text_E6000000"
                        android:textSize="@dimen/text_15"
                        android:textStyle="bold" />
                        android:textSize="@dimen/text_15" />
                    <TextView
                        android:id="@+id/device_label_power_type_tv"
@@ -141,8 +139,7 @@
                        android:gravity="center"
                        android:text="0"
                        android:textColor="@color/text_E6000000"
                        android:textSize="@dimen/text_15"
                        android:textStyle="bold" />
                        android:textSize="@dimen/text_15" />
                    <TextView
                        android:id="@+id/device_label_day_type_tv"
app/src/main/res/layout/item_plant_details.xml
@@ -81,8 +81,7 @@
                        android:gravity="center"
                        android:text="0"
                        android:textColor="@color/text_E6000000"
                        android:textSize="@dimen/text_15"
                        android:textStyle="bold" />
                        android:textSize="@dimen/text_15" />
                    <TextView
                        android:id="@+id/power_type_tv"
@@ -110,8 +109,7 @@
                        android:gravity="center"
                        android:text="0"
                        android:textColor="@color/text_E6000000"
                        android:textSize="@dimen/text_15"
                        android:textStyle="bold" />
                        android:textSize="@dimen/text_15" />
                    <TextView
                        android:id="@+id/day_type_tv"
@@ -139,8 +137,7 @@
                        android:gravity="center"
                        android:text="0"
                        android:textColor="@color/text_E6000000"
                        android:textSize="@dimen/text_15"
                        android:textStyle="bold" />
                        android:textSize="@dimen/text_15" />
                    <TextView
                        android:id="@+id/month_type_tv"