源码整理
This commit is contained in:
		| @@ -1,8 +1,8 @@ | ||||
| #Created by .winboll/winboll_app_build.gradle | ||||
| #Sat May 03 05:48:06 GMT 2025 | ||||
| #Sat May 03 11:34:58 GMT 2025 | ||||
| stageCount=1 | ||||
| libraryProject=libaes | ||||
| baseVersion=15.6 | ||||
| publishVersion=15.6.0 | ||||
| buildCount=8 | ||||
| buildCount=9 | ||||
| baseBetaVersion=15.6.1 | ||||
|   | ||||
| @@ -5,27 +5,34 @@ | ||||
|  | ||||
|     <application> | ||||
|  | ||||
|         <activity android:name="cc.winboll.studio.libaes.unittests.SecondaryLibraryActivity" | ||||
|         <activity | ||||
|             android:name="cc.winboll.studio.libaes.unittests.SecondaryLibraryActivity" | ||||
|             android:exported="true"/> | ||||
|  | ||||
|         <activity android:name="cc.winboll.studio.libaes.unittests.TestDrawerFragmentActivity" | ||||
|         <activity | ||||
|             android:name="cc.winboll.studio.libaes.unittests.TestDrawerFragmentActivity" | ||||
|             android:exported="true"/> | ||||
|  | ||||
|         <activity android:name="cc.winboll.studio.libaes.unittests.TestAToolbarActivity" | ||||
|         <activity | ||||
|             android:name="cc.winboll.studio.libaes.unittests.TestAToolbarActivity" | ||||
|             android:exported="true"/> | ||||
|  | ||||
|         <activity android:name="cc.winboll.studio.libaes.unittests.TestASupportToolbarActivity" | ||||
|         <activity | ||||
|             android:name="cc.winboll.studio.libaes.unittests.TestASupportToolbarActivity" | ||||
|             android:exported="true"/> | ||||
|  | ||||
|         <service android:name="cc.winboll.studio.libaes.winboll.WinBoLLClientService" | ||||
|         <service | ||||
|             android:name="cc.winboll.studio.libaes.winboll.WinBoLLClientService" | ||||
|             android:exported="true"/> | ||||
|  | ||||
|         <service android:name="cc.winboll.studio.libaes.winboll.AssistantService" | ||||
|         <service | ||||
|             android:name="cc.winboll.studio.libaes.winboll.AssistantService" | ||||
|             android:exported="true"/> | ||||
|  | ||||
|         <service android:name="cc.winboll.studio.libaes.winboll.WinBoLLMail" | ||||
|         <service | ||||
|             android:name="cc.winboll.studio.libaes.winboll.WinBoLLMail" | ||||
|             android:exported="true"/> | ||||
|  | ||||
|     </application> | ||||
|  | ||||
| </manifest> | ||||
| </manifest> | ||||
| @@ -0,0 +1,78 @@ | ||||
| package cc.winboll.studio.libaes.beans; | ||||
|  | ||||
| /** | ||||
|  * @Author ZhanGSKen | ||||
|  * @Date 2025/05/03 19:16 | ||||
|  */ | ||||
| import android.content.Context; | ||||
| import android.util.JsonReader; | ||||
| import android.util.JsonWriter; | ||||
| import cc.winboll.studio.libappbase.BaseBean; | ||||
| import java.io.IOException; | ||||
|  | ||||
| public class WinBoLLClientServiceBean extends BaseBean { | ||||
|  | ||||
|     public static final String TAG = "WinBoLLClientServiceBean"; | ||||
|      | ||||
|     // 服务是否正在使用中 | ||||
|     boolean isEnable; | ||||
|      | ||||
|     public WinBoLLClientServiceBean() { | ||||
|         this.isEnable = false; | ||||
|     } | ||||
|  | ||||
|     public WinBoLLClientServiceBean(boolean isEnable) { | ||||
|         this.isEnable = isEnable; | ||||
|     } | ||||
|  | ||||
|     public void setIsEnable(boolean isEnable) { | ||||
|         this.isEnable = isEnable; | ||||
|     } | ||||
|  | ||||
|     public boolean isEnable() { | ||||
|         return isEnable; | ||||
|     } | ||||
|  | ||||
|  | ||||
|     @Override | ||||
|     public String getName() { | ||||
|         return WinBoLLClientServiceBean.class.getName(); | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public void writeThisToJsonWriter(JsonWriter jsonWriter) throws IOException { | ||||
|         super.writeThisToJsonWriter(jsonWriter); | ||||
|         WinBoLLClientServiceBean bean = this; | ||||
|         //jsonWriter.name("logLevel").value(bean.getLogLevel().ordinal()); | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public boolean initObjectsFromJsonReader(JsonReader jsonReader, String name) throws IOException { | ||||
|         if (super.initObjectsFromJsonReader(jsonReader, name)) { return true; } else { | ||||
| //            if (name.equals("logLevel")) { | ||||
| //                setLogLevel(LogUtils.LOG_LEVEL.values()[jsonReader.nextInt()]); | ||||
| //            } 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; | ||||
|     } | ||||
|  | ||||
|     public static WinBoLLClientServiceBean loadWinBoLLClientServiceBean(Context context) { | ||||
|         return new WinBoLLClientServiceBean(); | ||||
|     } | ||||
| } | ||||
| @@ -11,7 +11,8 @@ import android.content.Context; | ||||
| import android.content.Intent; | ||||
| import android.content.ServiceConnection; | ||||
| import android.os.IBinder; | ||||
| import cc.winboll.studio.libaes.winboll.WinBoLLClientService; | ||||
| import cc.winboll.studio.libaes.beans.WinBoLLClientServiceBean; | ||||
| import cc.winboll.studio.libaes.winboll.AssistantService; | ||||
| import cc.winboll.studio.libappbase.utils.ServiceUtils; | ||||
|  | ||||
| public class AssistantService extends Service { | ||||
|   | ||||
| @@ -0,0 +1,21 @@ | ||||
| package cc.winboll.studio.libaes.winboll; | ||||
|  | ||||
| import android.app.Service; | ||||
| import android.content.Intent; | ||||
| import android.os.IBinder; | ||||
|  | ||||
| /** | ||||
|  * @Author ZhanGSKen | ||||
|  * @Date 2025/05/03 19:28 | ||||
|  */ | ||||
| public class WinBoLLClientService extends Service { | ||||
|      | ||||
|     public static final String TAG = "WinBoLLClientService"; | ||||
|      | ||||
|     @Override | ||||
|     public IBinder onBind(Intent intent) { | ||||
|          | ||||
|         return null; | ||||
|     } | ||||
|      | ||||
| } | ||||
| @@ -0,0 +1,38 @@ | ||||
| package cc.winboll.studio.libaes.winboll; | ||||
| import android.content.Context; | ||||
| import android.util.AttributeSet; | ||||
| import android.widget.LinearLayout; | ||||
|  | ||||
| /** | ||||
|  * @Author ZhanGSKen | ||||
|  * @Date 2025/05/03 19:14 | ||||
|  */ | ||||
| public class WinBoLLServiceStatusView extends LinearLayout { | ||||
|      | ||||
|     public static final String TAG = "WinBoLLServiceStatusView"; | ||||
|      | ||||
|     public WinBoLLServiceStatusView(Context context) { | ||||
|         super(context); | ||||
|     } | ||||
|  | ||||
|     public WinBoLLServiceStatusView(Context context, AttributeSet attrs) { | ||||
|         super(context, attrs); | ||||
|     } | ||||
|  | ||||
|     public WinBoLLServiceStatusView(Context context, AttributeSet attrs, int defStyleAttr) { | ||||
|         super(context, attrs, defStyleAttr); | ||||
|     } | ||||
|  | ||||
|     public WinBoLLServiceStatusView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { | ||||
|         super(context, attrs, defStyleAttr, defStyleRes); | ||||
|     } | ||||
|      | ||||
|      | ||||
|     void setServerHost(String szWinBoLLServerHost) { | ||||
|          | ||||
|     } | ||||
|      | ||||
|     void setAuthInfo(String szDevUserName, String szDevUserPassword) { | ||||
|          | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 ZhanGSKen
					ZhanGSKen