Compare commits

..

2 Commits

Author SHA1 Message Date
5277913606 <appbase>APK 15.15.22 release Publish. 2026-05-09 20:49:55 +08:00
c1bd31df2f refactor(libappbase): 完全重构 LogUtils 日志工具类
- 重构目录结构,按功能模块化拆分初始化、私有工具、日志级别等方法
- 补全所有日志重载方法(Error/Warn/Info/Debug/Verbose)
- 优化日志文件裁剪逻辑,保留最新3MB内容
- 新增TAG自动扫描管理机制
- 替换所有内部 LogUtils 调用为 android.util.Log,避免递归嵌套
- 严格遵循 Java 7 语法规范(final 参数、传统 try-catch)
- 优化异常/堆栈格式化输出
2026-05-09 20:43:17 +08:00
23 changed files with 389 additions and 608 deletions

View File

@@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle
#Tue Apr 28 17:08:30 HKT 2026
stageCount=22
#Sat May 09 20:49:55 HKT 2026
stageCount=23
libraryProject=libappbase
baseVersion=15.15
publishVersion=15.15.21
publishVersion=15.15.22
buildCount=0
baseBetaVersion=15.15.22
baseBetaVersion=15.15.23

View File

@@ -96,8 +96,8 @@ allprojects {
// 1. 对纯 Java 模块的 JavaCompile 任务配置(升级为 Java 11
tasks.withType(JavaCompile) {
options.compilerArgs << "-parameters"
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
// 可选:确保编码一致
options.encoding = "UTF-8"
}

View File

@@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle
#Tue Apr 28 17:08:04 HKT 2026
stageCount=22
#Sat May 09 20:49:55 HKT 2026
stageCount=23
libraryProject=libappbase
baseVersion=15.15
publishVersion=15.15.21
publishVersion=15.15.22
buildCount=0
baseBetaVersion=15.15.22
baseBetaVersion=15.15.23

View File

@@ -1 +0,0 @@
/build

View File

@@ -1,38 +0,0 @@
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'
apply from: '../.winboll/winboll_lib_build.gradle'
apply from: '../.winboll/winboll_lint_build.gradle'
android {
// 适配MIUI12
compileSdkVersion 30
buildToolsVersion "30.0.3"
defaultConfig {
minSdkVersion 26
targetSdkVersion 30
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
// 网络连接类库
api 'com.squareup.okhttp3:okhttp:4.4.1'
// Gson
api 'com.google.code.gson:gson:2.8.9'
// Html 解析
api 'org.jsoup:jsoup:1.13.1'
// 添加JSch依赖SFTP核心com.jcraft:jsch:0.1.54
api 'com.jcraft:jsch:0.1.54'
// WinBoLL库 nexus.winboll.cc 地址
api 'cc.winboll.studio:libaes:15.15.10'
api 'cc.winboll.studio:libappbase:15.15.23'
api fileTree(dir: 'libs', include: ['*.jar'])
}

View File

@@ -1,8 +0,0 @@
#Created by .winboll/winboll_app_build.gradle
#Sat May 09 21:11:12 GMT 2026
stageCount=27
libraryProject=libwinboll
baseVersion=15.11
publishVersion=15.11.26
buildCount=30
baseBetaVersion=15.11.27

View File

@@ -1,17 +0,0 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in C:/tools/adt-bundle-windows-x86_64-20131030/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

View File

@@ -1,12 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="cc.winboll.studio.libwinboll" >
<application>
<activity
android:name=".WinBoLLLibraryActivity">
</activity>
</application>
</manifest>

View File

@@ -1,17 +0,0 @@
package cc.winboll.studio.libwinboll;
import android.app.Activity;
import android.os.Bundle;
import cc.winboll.studio.libappbase.ToastUtils;
public class WinBoLLLibraryActivity extends Activity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_winbolllibrary);
ToastUtils.show("WinBoLLLibraryActivity onCreate");
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

View File

@@ -1,11 +0,0 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="cc.winboll.studio.libwinboll.WinBoLLLibraryActivity"/>
</LinearLayout>

View File

@@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="@android:style/Theme.Material.Light">
</style>
</resources>

View File

@@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="lib_name">libwinboll</string>
<string name="hello_world">Hello world!</string>
</resources>

View File

@@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="@android:style/Theme.Holo.Light">
</style>
</resources>

View File

@@ -72,7 +72,6 @@
// WinBoLL 项目编译设置
//include ':winboll'
//include ':libwinboll'
//rootProject.name = "winboll"
// RegExpUtils 项目编译设置

View File

@@ -50,7 +50,6 @@ android {
}
dependencies {
api project(':libwinboll')
api 'com.google.code.gson:gson:2.10.1'
@@ -109,8 +108,8 @@ dependencies {
implementation 'com.termux:termux-shared:0.118.0'
// WinBoLL库 nexus.winboll.cc 地址
api 'cc.winboll.studio:libaes:15.15.10'
api 'cc.winboll.studio:libappbase:15.15.23'
api 'cc.winboll.studio:libaes:15.15.2'
api 'cc.winboll.studio:libappbase:15.15.11'
// WinBoLL备用库 jitpack.io 地址
//api 'com.github.ZhanGSKen:AES:aes-v15.15.7'

View File

@@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle
#Sat May 09 21:11:12 GMT 2026
#Wed May 06 13:39:52 CST 2026
stageCount=27
libraryProject=libwinboll
libraryProject=
baseVersion=15.11
publishVersion=15.11.26
buildCount=30
buildCount=22
baseBetaVersion=15.11.27

View File

@@ -41,29 +41,28 @@ public class MainActivity extends DrawerFragmentActivity {
initMainHandler();
if (mBrowserFragment == null) {
LogUtils.d(TAG, "The code in this line is not fix yet.");
// String externalUrl = extractExternalUrl(getIntent());
// if (externalUrl != null) {
// mBrowserFragment = BrowserFragment.newInstance(externalUrl);
// } else {
// mBrowserFragment = new BrowserFragment();
// }
// addFragment(mBrowserFragment);
String externalUrl = extractExternalUrl(getIntent());
if (externalUrl != null) {
mBrowserFragment = BrowserFragment.newInstance(externalUrl);
} else {
mBrowserFragment = new BrowserFragment();
}
addFragment(mBrowserFragment);
}
showFragment(mBrowserFragment);
}
// @Override
// protected void onNewIntent(Intent intent) {
// super.onNewIntent(intent);
// String externalUrl = extractExternalUrl(intent);
// if (externalUrl != null && mBrowserFragment != null && mBrowserFragment.getBrowserHandler() != null) {
// Message msg = Message.obtain();
// msg.what = BrowserFragment.MSG_OPEN_URL;
// msg.obj = externalUrl;
// mBrowserFragment.getBrowserHandler().sendMessage(msg);
// }
// }
@Override
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
String externalUrl = extractExternalUrl(intent);
if (externalUrl != null && mBrowserFragment != null && mBrowserFragment.getBrowserHandler() != null) {
Message msg = Message.obtain();
msg.what = BrowserFragment.MSG_OPEN_URL;
msg.obj = externalUrl;
mBrowserFragment.getBrowserHandler().sendMessage(msg);
}
}
private String extractExternalUrl(Intent intent) {
if (intent != null && Intent.ACTION_VIEW.equals(intent.getAction())) {
@@ -192,10 +191,6 @@ public class MainActivity extends DrawerFragmentActivity {
} else if (nItemId == R.id.item_termux_env_test) {
Intent intent = new Intent(getApplicationContext(), TermuxEnvTestActivity.class);
WinBoLLActivityManager.getInstance().startWinBoLLActivity(getApplicationContext(), intent, AboutActivity.class);
} else if (nItemId == R.id.item_library_activity) {
Intent intent = new Intent(getApplicationContext(), cc.winboll.studio.libwinboll.WinBoLLLibraryActivity.class);
WinBoLLActivityManager.getInstance().startWinBoLLActivity(getApplicationContext(), intent, AboutActivity.class);
} else {
return super.onOptionsItemSelected(item);

View File

@@ -7,9 +7,6 @@
<item
android:id="@+id/item_termux_env_test"
android:title="TermuxEnvTestActivity"/>
<item
android:id="@+id/item_library_activity"
android:title="WinBoLLLibraryActivity"/>
</menu>
</item>
</menu>