Compare commits
5 Commits
appbase-v1
...
48d36c6d96
| Author | SHA1 | Date | |
|---|---|---|---|
| 48d36c6d96 | |||
| 4baee6f0e1 | |||
| 8f6b615949 | |||
| d02d57d4dd | |||
| e337bb7a04 |
8
.gitignore
vendored
8
.gitignore
vendored
@@ -97,9 +97,5 @@ lint-results.html
|
||||
## WinBoLL 基础应用(避免上传敏感配置)
|
||||
/winboll.properties
|
||||
/local.properties
|
||||
|
||||
## WinBoLL 衍生应用,
|
||||
## 外派类型类库应用需要注释掉以下部分,以便部署通用类库编译配置。
|
||||
## APPBase,AES需要上传以下两种配置。
|
||||
#/settings.gradle
|
||||
#/gradle.properties
|
||||
/settings.gradle
|
||||
/gradle.properties
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#Created by .winboll/winboll_app_build.gradle
|
||||
#Mon Apr 27 20:18:59 HKT 2026
|
||||
stageCount=21
|
||||
#Tue Apr 28 17:08:30 HKT 2026
|
||||
stageCount=22
|
||||
libraryProject=libappbase
|
||||
baseVersion=15.15
|
||||
publishVersion=15.15.20
|
||||
publishVersion=15.15.21
|
||||
buildCount=0
|
||||
baseBetaVersion=15.15.21
|
||||
baseBetaVersion=15.15.22
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
# Project-wide Gradle settings.
|
||||
# IDE (e.g. Android Studio) users:
|
||||
# Gradle settings configured through the IDE *will override*
|
||||
# any settings specified in this file.
|
||||
# For more details on how to configure your build environment visit
|
||||
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
||||
# Specifies the JVM arguments used for the daemon process.
|
||||
# The setting is particularly useful for tweaking memory settings.
|
||||
org.gradle.jvmargs=-Xmx2048m
|
||||
# When configured, Gradle will run in incubating parallel mode.
|
||||
# This option should only be used with decoupled projects. More details, visit
|
||||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
||||
# org.gradle.parallel=true
|
||||
# AndroidX package structure to make it clearer which packages are bundled with the
|
||||
# Android operating system, and which are packaged with your app"s APK
|
||||
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
||||
android.useAndroidX=true
|
||||
# Automatically convert third-party libraries to use AndroidX
|
||||
android.enableJetifier=true
|
||||
# 保持与旧版Gradle插件的兼容
|
||||
android.disableAutomaticComponentCreation=true
|
||||
@@ -1,8 +1,8 @@
|
||||
#Created by .winboll/winboll_app_build.gradle
|
||||
#Mon Apr 27 20:18:59 HKT 2026
|
||||
stageCount=21
|
||||
#Tue Apr 28 17:08:04 HKT 2026
|
||||
stageCount=22
|
||||
libraryProject=libappbase
|
||||
baseVersion=15.15
|
||||
publishVersion=15.15.20
|
||||
publishVersion=15.15.21
|
||||
buildCount=0
|
||||
baseBetaVersion=15.15.21
|
||||
baseBetaVersion=15.15.22
|
||||
|
||||
@@ -100,10 +100,52 @@ public class LogUtils {
|
||||
// 加载当前应用下的所有类的 TAG
|
||||
addClassTAGList();
|
||||
loadTAGBeanSettings();
|
||||
checkAndTrimLogFileSize();
|
||||
_IsInited = true;
|
||||
LogUtils.d(TAG, String.format("mapTAGList : %s", mapTAGList.toString()));
|
||||
}
|
||||
|
||||
private static void checkAndTrimLogFileSize() {
|
||||
if (_mfLogCatchFile == null || !_mfLogCatchFile.exists()) {
|
||||
return;
|
||||
}
|
||||
|
||||
final long MAX_FILE_SIZE = 6291456L;
|
||||
final long KEEP_FILE_SIZE = 3145728L;
|
||||
|
||||
long fileSize = _mfLogCatchFile.length();
|
||||
if (fileSize <= MAX_FILE_SIZE) {
|
||||
return;
|
||||
}
|
||||
|
||||
long needSkip = fileSize - KEEP_FILE_SIZE;
|
||||
|
||||
try (FileInputStream fis = new FileInputStream(_mfLogCatchFile);
|
||||
BufferedReader reader = new BufferedReader(new InputStreamReader(fis));
|
||||
FileOutputStream fos = new FileOutputStream(_mfLogCatchFile);
|
||||
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(fos))) {
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
String line;
|
||||
long skippedTotal = 0;
|
||||
final String lineBreak = System.lineSeparator();
|
||||
|
||||
while ((line = reader.readLine()) != null) {
|
||||
byte[] lineBytes = line.getBytes();
|
||||
skippedTotal += lineBytes.length + lineBreak.getBytes().length;
|
||||
|
||||
if (skippedTotal > needSkip) {
|
||||
sb.append(line).append(lineBreak);
|
||||
}
|
||||
}
|
||||
|
||||
writer.write(sb.toString());
|
||||
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
public static Map<String, Boolean> getMapTAGList() {
|
||||
return mapTAGList;
|
||||
}
|
||||
|
||||
@@ -1,79 +0,0 @@
|
||||
// AutoInstaller 项目编译设置
|
||||
//include ':autoinstaller'
|
||||
//rootProject.name = "autoinstaller"
|
||||
|
||||
// MJ 项目编译设置
|
||||
//include ':mj'
|
||||
//rootProject.name = "mj"
|
||||
|
||||
// PowerBell 项目编译设置
|
||||
//include ':powerbell'
|
||||
//rootProject.name = "powerbell"
|
||||
|
||||
// APPBase 项目编译设置
|
||||
include ':appbase'
|
||||
include ':libappbase'
|
||||
rootProject.name = "appbase"
|
||||
|
||||
// APPUtils 项目编译设置
|
||||
//include ':apputils'
|
||||
//include ':libapputils'
|
||||
//rootProject.name = "apputils"
|
||||
|
||||
// JC 项目编译设置
|
||||
//include ':jc'
|
||||
//include ':libjc'
|
||||
//rootProject.name = "jc"
|
||||
|
||||
// AES 项目编译设置
|
||||
//include ':aes'
|
||||
//include ':libaes'
|
||||
//rootProject.name = "aes"
|
||||
|
||||
// Contacts 项目编译设置
|
||||
//include ':contacts'
|
||||
//rootProject.name = "contacts"
|
||||
|
||||
// MyMessageManager 项目编译设置
|
||||
//include ':mymessagemanager'
|
||||
//rootProject.name = "mymessagemanager"
|
||||
|
||||
// TimeStamp 项目编译设置
|
||||
//include ':timestamp'
|
||||
//rootProject.name = "timestamp"
|
||||
|
||||
// AndroidDemo 项目编译设置
|
||||
//include ':androiddemo'
|
||||
//rootProject.name = "androiddemo"
|
||||
|
||||
// AndroidXDemo 项目编译设置
|
||||
//include ':androidxdemo'
|
||||
//rootProject.name = "androidxdemo"
|
||||
|
||||
// Ollama 项目编译设置
|
||||
//include ':ollama'
|
||||
//rootProject.name = "ollama"
|
||||
|
||||
// NumTable 项目编译设置
|
||||
//include ':numtable'
|
||||
//rootProject.name = "numtable"
|
||||
|
||||
// MidiPlayer 项目编译设置
|
||||
//include ':midiplayer'
|
||||
//rootProject.name = "midiplayer"
|
||||
|
||||
// WebPageSources 项目编译设置
|
||||
//include ':webpagesources'
|
||||
//rootProject.name = "webpagesources"
|
||||
|
||||
// Positions 项目编译设置
|
||||
//include ':positions'
|
||||
//rootProject.name = "positions"
|
||||
|
||||
// WinBoLL 项目编译设置
|
||||
//include ':winboll'
|
||||
//rootProject.name = "winboll"
|
||||
|
||||
// RegExpUtils 项目编译设置
|
||||
//include ':regexputils'
|
||||
//rootProject.name = "regexputils"
|
||||
Reference in New Issue
Block a user