开始调试WinBollActivityManager...
This commit is contained in:
parent
0a4727966a
commit
ed1a1ac179
@ -1,8 +1,8 @@
|
|||||||
#Created by .winboll/winboll_app_build.gradle
|
#Created by .winboll/winboll_app_build.gradle
|
||||||
#Tue Mar 25 01:19:50 HKT 2025
|
#Mon Mar 24 19:50:52 GMT 2025
|
||||||
stageCount=8
|
stageCount=8
|
||||||
libraryProject=libaes
|
libraryProject=libaes
|
||||||
baseVersion=15.0
|
baseVersion=15.0
|
||||||
publishVersion=15.0.7
|
publishVersion=15.0.7
|
||||||
buildCount=0
|
buildCount=6
|
||||||
baseBetaVersion=15.0.8
|
baseBetaVersion=15.0.8
|
||||||
|
@ -48,6 +48,6 @@ dependencies {
|
|||||||
//api 'androidx.vectordrawable:vectordrawable-animated:1.1.0'
|
//api 'androidx.vectordrawable:vectordrawable-animated:1.1.0'
|
||||||
//api 'androidx.fragment:fragment:1.1.0'
|
//api 'androidx.fragment:fragment:1.1.0'
|
||||||
|
|
||||||
api 'cc.winboll.studio:libappbase:15.0.9'
|
api 'cc.winboll.studio:libappbase:15.0.10'
|
||||||
api 'cc.winboll.studio:libapputils:15.0.15'
|
api 'cc.winboll.studio:libapputils:15.0.17'
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#Created by .winboll/winboll_app_build.gradle
|
#Created by .winboll/winboll_app_build.gradle
|
||||||
#Tue Mar 25 01:19:42 HKT 2025
|
#Mon Mar 24 19:50:52 GMT 2025
|
||||||
stageCount=8
|
stageCount=8
|
||||||
libraryProject=libaes
|
libraryProject=libaes
|
||||||
baseVersion=15.0
|
baseVersion=15.0
|
||||||
publishVersion=15.0.7
|
publishVersion=15.0.7
|
||||||
buildCount=0
|
buildCount=6
|
||||||
baseBetaVersion=15.0.8
|
baseBetaVersion=15.0.8
|
||||||
|
@ -1,71 +0,0 @@
|
|||||||
package cc.winboll.studio.libaes.beans;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Author ZhanGSKen@AliYun.Com
|
|
||||||
* @Date 2025/03/24 15:27:16
|
|
||||||
* @Describe AES数据实例化模型
|
|
||||||
*/
|
|
||||||
import cc.winboll.studio.libappbase.BaseBean;
|
|
||||||
import android.util.JsonWriter;
|
|
||||||
import java.io.IOException;
|
|
||||||
import android.util.JsonReader;
|
|
||||||
|
|
||||||
public class AESModel extends BaseBean {
|
|
||||||
|
|
||||||
public static final String TAG = "AESModel";
|
|
||||||
|
|
||||||
boolean isInDebugMode;
|
|
||||||
|
|
||||||
public AESModel() {
|
|
||||||
this.isInDebugMode = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AESModel(boolean isInDebugMode) {
|
|
||||||
this.isInDebugMode = isInDebugMode;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setIsInDebugMode(boolean isInDebugMode) {
|
|
||||||
this.isInDebugMode = isInDebugMode;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isInDebugMode() {
|
|
||||||
return isInDebugMode;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getName() {
|
|
||||||
return AESModel.class.getName();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void writeThisToJsonWriter(JsonWriter jsonWriter) throws IOException {
|
|
||||||
super.writeThisToJsonWriter(jsonWriter);
|
|
||||||
jsonWriter.name("isInDebugMode").value(isInDebugMode());
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean initObjectsFromJsonReader(JsonReader jsonReader, String name) throws IOException {
|
|
||||||
if (super.initObjectsFromJsonReader(jsonReader, name)) { return true; } else {
|
|
||||||
if (name.equals("isInDebugMode")) {
|
|
||||||
setIsInDebugMode(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;
|
|
||||||
}
|
|
||||||
}
|
|
@ -17,7 +17,6 @@ import android.view.View;
|
|||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
import cc.winboll.studio.libaes.R;
|
import cc.winboll.studio.libaes.R;
|
||||||
import cc.winboll.studio.libaes.beans.AESModel;
|
|
||||||
import cc.winboll.studio.libappbase.GlobalApplication;
|
import cc.winboll.studio.libappbase.GlobalApplication;
|
||||||
import cc.winboll.studio.libappbase.LogUtils;
|
import cc.winboll.studio.libappbase.LogUtils;
|
||||||
import cc.winboll.studio.libappbase.utils.ToastUtils;
|
import cc.winboll.studio.libappbase.utils.ToastUtils;
|
||||||
@ -265,6 +264,7 @@ public class AboutView extends LinearLayout {
|
|||||||
View.OnClickListener mAppDebugOnClickListener = new View.OnClickListener(){
|
View.OnClickListener mAppDebugOnClickListener = new View.OnClickListener(){
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
|
//ToastUtils.show("mAppDebugOnClickListener");
|
||||||
setApp2DebugMode(mContext);
|
setApp2DebugMode(mContext);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -272,6 +272,7 @@ public class AboutView extends LinearLayout {
|
|||||||
View.OnClickListener mAppNormalOnClickListener = new View.OnClickListener(){
|
View.OnClickListener mAppNormalOnClickListener = new View.OnClickListener(){
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
|
//ToastUtils.show("mAppNormalOnClickListener");
|
||||||
setApp2NormalMode(mContext);
|
setApp2NormalMode(mContext);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -279,10 +280,9 @@ public class AboutView extends LinearLayout {
|
|||||||
public static void setApp2DebugMode(Context context) {
|
public static void setApp2DebugMode(Context context) {
|
||||||
Intent intent = context.getPackageManager().getLaunchIntentForPackage(context.getPackageName());
|
Intent intent = context.getPackageManager().getLaunchIntentForPackage(context.getPackageName());
|
||||||
if (intent != null) {
|
if (intent != null) {
|
||||||
intent.setAction(cc.winboll.studio.libapputils.intent.action.DEBUGVIEW);
|
//intent.setAction(cc.winboll.studio.libapputils.intent.action.DEBUGVIEW);
|
||||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
GlobalApplication.setIsDebuging(context, true);
|
GlobalApplication.setIsDebuging(true);
|
||||||
AESModel.saveBean(context, new AESModel(true));
|
|
||||||
|
|
||||||
WinBollActivityManager.getInstance(context).finishAll();
|
WinBollActivityManager.getInstance(context).finishAll();
|
||||||
context.startActivity(intent);
|
context.startActivity(intent);
|
||||||
@ -293,8 +293,7 @@ public class AboutView extends LinearLayout {
|
|||||||
Intent intent = context.getPackageManager().getLaunchIntentForPackage(context.getPackageName());
|
Intent intent = context.getPackageManager().getLaunchIntentForPackage(context.getPackageName());
|
||||||
if (intent != null) {
|
if (intent != null) {
|
||||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
GlobalApplication.setIsDebuging(context, false);
|
GlobalApplication.setIsDebuging(false);
|
||||||
AESModel.saveBean(context, new AESModel(false));
|
|
||||||
|
|
||||||
WinBollActivityManager.getInstance(context).finishAll();
|
WinBollActivityManager.getInstance(context).finishAll();
|
||||||
context.startActivity(intent);
|
context.startActivity(intent);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user