移动应用基础数据模型到 APPBase 类库。

This commit is contained in:
ZhanGSKen
2025-03-25 03:28:39 +08:00
parent a9aee97e41
commit 3b61a93402
5 changed files with 5 additions and 115 deletions

View File

@@ -35,5 +35,5 @@ dependencies {
// SSH
//api 'com.jcraft:jsch:0.1.55'
api 'cc.winboll.studio:libappbase:15.0.5'
api 'cc.winboll.studio:libappbase:15.0.10'
}

View File

@@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle
#Mon Mar 24 17:14:43 HKT 2025
#Mon Mar 24 19:27:05 GMT 2025
stageCount=16
libraryProject=libapputils
baseVersion=15.0
publishVersion=15.0.15
buildCount=0
buildCount=2
baseBetaVersion=15.0.16

View File

@@ -1,75 +0,0 @@
package cc.winboll.studio.libapputils.bean;
/**
* @Author ZhanGSKen@QQ.COM
* @Date 2024/12/25 12:38:07
* @Describe 应用调试配置类
*/
import android.util.JsonReader;
import android.util.JsonWriter;
import cc.winboll.studio.libappbase.BaseBean;
import java.io.IOException;
public class DebugBean extends BaseBean {
public static final String TAG = "DebugBean";
// 应用是否处于正在调试状态
//
boolean isDebuging = false;
public DebugBean() {
this.isDebuging = false;
}
public DebugBean(boolean isDebuging) {
this.isDebuging = isDebuging;
}
public void setIsDebuging(boolean isDebuging) {
this.isDebuging = isDebuging;
}
public boolean isDebuging() {
return isDebuging;
}
@Override
public String getName() {
return DebugBean.class.getName();
}
@Override
public void writeThisToJsonWriter(JsonWriter jsonWriter) throws IOException {
super.writeThisToJsonWriter(jsonWriter);
DebugBean bean = this;
jsonWriter.name("isDebuging").value(bean.isDebuging());
}
@Override
public boolean initObjectsFromJsonReader(JsonReader jsonReader, String name) throws IOException {
if (super.initObjectsFromJsonReader(jsonReader, name)) { return true; } else {
if (name.equals("isDebuging")) {
setIsDebuging(jsonReader.nextBoolean());
} else {
return false;
}
}
return true;
}
@Override
public BaseBean readBeanFromJsonReader(JsonReader jsonReader) throws IOException {
jsonReader.beginObject();
while (jsonReader.hasNext()) {
String name = jsonReader.nextName();
if (!initObjectsFromJsonReader(jsonReader, name)) {
jsonReader.skipValue();
}
}
// 结束 JSON 对象
jsonReader.endObject();
return this;
}
}