feat: init
Signed-off-by: 小草林(田梓萱) <xcl@xuegao-tzx.top>
This commit is contained in:
commit
192037f48a
15
.gitignore
vendored
Normal file
15
.gitignore
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
*.iml
|
||||
.gradle
|
||||
/local.properties
|
||||
/.idea/caches
|
||||
/.idea/libraries
|
||||
/.idea/modules.xml
|
||||
/.idea/workspace.xml
|
||||
/.idea/navEditor.xml
|
||||
/.idea/assetWizardSettings.xml
|
||||
.DS_Store
|
||||
/build
|
||||
/captures
|
||||
.externalNativeBuild
|
||||
.cxx
|
||||
local.properties
|
3
.idea/.gitignore
vendored
Normal file
3
.idea/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
1
.idea/.name
Normal file
1
.idea/.name
Normal file
@ -0,0 +1 @@
|
||||
AIChat
|
45
.idea/appInsightsSettings.xml
Normal file
45
.idea/appInsightsSettings.xml
Normal file
@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="AppInsightsSettings">
|
||||
<option name="tabSettings">
|
||||
<map>
|
||||
<entry key="Android Vitals">
|
||||
<value>
|
||||
<InsightsFilterSettings>
|
||||
<option name="connection">
|
||||
<ConnectionSetting>
|
||||
<option name="appId" value="ink.xcl.aitra" />
|
||||
</ConnectionSetting>
|
||||
</option>
|
||||
<option name="failureTypes">
|
||||
<list>
|
||||
<option value="FATAL" />
|
||||
</list>
|
||||
</option>
|
||||
<option name="signal" value="SIGNAL_UNSPECIFIED" />
|
||||
<option name="timeIntervalDays" value="SEVEN_DAYS" />
|
||||
<option name="visibilityType" value="ALL" />
|
||||
</InsightsFilterSettings>
|
||||
</value>
|
||||
</entry>
|
||||
<entry key="Firebase Crashlytics">
|
||||
<value>
|
||||
<InsightsFilterSettings>
|
||||
<option name="connection">
|
||||
<ConnectionSetting>
|
||||
<option name="appId" value="PLACEHOLDER" />
|
||||
<option name="mobileSdkAppId" value="" />
|
||||
<option name="projectId" value="" />
|
||||
<option name="projectNumber" value="" />
|
||||
</ConnectionSetting>
|
||||
</option>
|
||||
<option name="signal" value="SIGNAL_UNSPECIFIED" />
|
||||
<option name="timeIntervalDays" value="THIRTY_DAYS" />
|
||||
<option name="visibilityType" value="ALL" />
|
||||
</InsightsFilterSettings>
|
||||
</value>
|
||||
</entry>
|
||||
</map>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
6
.idea/compiler.xml
Normal file
6
.idea/compiler.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="CompilerConfiguration">
|
||||
<bytecodeTargetLevel target="17" />
|
||||
</component>
|
||||
</project>
|
10
.idea/deploymentTargetDropDown.xml
Normal file
10
.idea/deploymentTargetDropDown.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="deploymentTargetDropDown">
|
||||
<value>
|
||||
<entry key="app">
|
||||
<State />
|
||||
</entry>
|
||||
</value>
|
||||
</component>
|
||||
</project>
|
19
.idea/gradle.xml
Normal file
19
.idea/gradle.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="GradleMigrationSettings" migrationVersion="1" />
|
||||
<component name="GradleSettings">
|
||||
<option name="linkedExternalProjectsSettings">
|
||||
<GradleProjectSettings>
|
||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||
<option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
|
||||
<option name="modules">
|
||||
<set>
|
||||
<option value="$PROJECT_DIR$" />
|
||||
<option value="$PROJECT_DIR$/app" />
|
||||
</set>
|
||||
</option>
|
||||
<option name="resolveExternalAnnotations" value="false" />
|
||||
</GradleProjectSettings>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
6
.idea/kotlinc.xml
Normal file
6
.idea/kotlinc.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="KotlinJpsPluginSettings">
|
||||
<option name="version" value="1.9.22" />
|
||||
</component>
|
||||
</project>
|
6
.idea/ktfmt.xml
Normal file
6
.idea/ktfmt.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="KtfmtSettings">
|
||||
<option name="enabled" value="false" />
|
||||
</component>
|
||||
</project>
|
10
.idea/migrations.xml
Normal file
10
.idea/migrations.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectMigrations">
|
||||
<option name="MigrateToGradleLocalJavaHome">
|
||||
<set>
|
||||
<option value="$PROJECT_DIR$" />
|
||||
</set>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
10
.idea/misc.xml
Normal file
10
.idea/misc.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
<option name="id" value="Android" />
|
||||
</component>
|
||||
</project>
|
6
.idea/vcs.xml
Normal file
6
.idea/vcs.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
1
app/.gitignore
vendored
Normal file
1
app/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/build
|
478
app/build.gradle.kts
Normal file
478
app/build.gradle.kts
Normal file
@ -0,0 +1,478 @@
|
||||
/*
|
||||
* Copyright (c) 田梓萱[小草林] 2021-2024.
|
||||
* All Rights Reserved.
|
||||
* All codes are protected by China's regulations on the protection of computer software, and infringement must be investigated.
|
||||
* 版权所有 (c) 田梓萱[小草林] 2021-2024.
|
||||
* 所有代码均受中国《计算机软件保护条例》保护,侵权必究.
|
||||
*/
|
||||
@file:Suppress("UnstableApiUsage")
|
||||
import java.time.LocalDate
|
||||
import java.time.format.DateTimeFormatter.ofPattern
|
||||
import java.util.Properties
|
||||
|
||||
plugins {
|
||||
id("com.android.application")
|
||||
id("com.didiglobal.booster")
|
||||
id("io.github.leavesczy.trace")
|
||||
id("com.google.devtools.ksp")
|
||||
id("androidx.room")
|
||||
id("kotlin-android")
|
||||
id("kotlin-parcelize")
|
||||
id("kotlinx-serialization")
|
||||
id("androidx.navigation.safeargs.kotlin")
|
||||
id("com.google.gms.google-services")
|
||||
id("com.google.firebase.firebase-perf")
|
||||
// id("com.google.firebase.crashlytics")
|
||||
id("version-catalog")
|
||||
id("io.sentry.android.gradle")
|
||||
id("io.sentry.kotlin.compiler.gradle")
|
||||
id("com.mikepenz.aboutlibraries.plugin")
|
||||
id("android.aop")
|
||||
}
|
||||
|
||||
val properties = Properties()
|
||||
val isDebug = gradle.startParameter.taskNames.any { it.contains("debug", true) }
|
||||
|
||||
properties.load(project.rootProject.file("gradle.properties").inputStream())
|
||||
|
||||
room { schemaDirectory("$projectDir/schemas") }
|
||||
|
||||
android {
|
||||
namespace = "ink.xcl.saitra"
|
||||
compileSdk = 34
|
||||
ndkVersion = "26.1.10909125"
|
||||
// compileSdkPreview = "UpsideDownCake"
|
||||
// flavorDimensions += listOf("arch")
|
||||
// productFlavors {
|
||||
// create("arm64") {
|
||||
// dimension = "arch"
|
||||
// ndk {
|
||||
// abiFilters += listOf("arm64-v8a") // 仅64位
|
||||
// }
|
||||
// externalNativeBuild {
|
||||
// cmake {
|
||||
// cFlags += listOf("-Os -flto -ffunction-sections -fdata-sections -fvisibility=hidden")
|
||||
// abiFilters += listOf("arm64-v8a")
|
||||
// cppFlags += listOf("-Os -flto -ffunction-sections -fdata-sections
|
||||
// -fvisibility=hidden")
|
||||
// arguments += listOf("-Wl,--gc-sections", "-DANDROID_STL=c++_static")
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// create("arm32") {
|
||||
// dimension = "arch"
|
||||
// ndk {
|
||||
// abiFilters += listOf("armeabi-v7a") // 仅32位
|
||||
// }
|
||||
// externalNativeBuild {
|
||||
// cmake {
|
||||
// cFlags += listOf("-Os -flto -ffunction-sections -fdata-sections -fvisibility=hidden")
|
||||
// abiFilters += listOf("armeabi-v7a")
|
||||
// cppFlags += listOf("-Os -flto -ffunction-sections -fdata-sections
|
||||
// -fvisibility=hidden")
|
||||
// arguments += listOf("-Wl,--gc-sections", "-DANDROID_STL=c++_static")
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
lint {
|
||||
quiet = true
|
||||
ignoreWarnings = true
|
||||
abortOnError = false
|
||||
checkReleaseBuilds = true
|
||||
}
|
||||
experimentalProperties["android.experimental.art-profile-r8-rewriting"] = true
|
||||
experimentalProperties["android.experimental.r8.dex-startup-optimization"] = true
|
||||
defaultConfig {
|
||||
applicationId = "ink.xcl.saitra"
|
||||
multiDexEnabled = true
|
||||
ndk {
|
||||
abiFilters +=
|
||||
listOf(
|
||||
"armeabi-v7a", // 兼容32位
|
||||
"arm64-v8a", // 兼容64位
|
||||
// "x86",//不兼容x86
|
||||
// "x86_64",//不兼容x86_64
|
||||
) // 仅兼容64位
|
||||
}
|
||||
minSdk = 22
|
||||
targetSdk = 34
|
||||
versionCode = LocalDate.now().format(ofPattern("yyyyMMdd")).toInt()
|
||||
versionName = "0.0.1"
|
||||
proguardFiles(getDefaultProguardFile("proguard-defaults.txt"), "proguard-rules.pro")
|
||||
multiDexKeepProguard = file("multidex-config.pro")
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
vectorDrawables { useSupportLibrary = true }
|
||||
// externalNativeBuild {
|
||||
// cmake {
|
||||
// cFlags += listOf("-Os -flto -ffunction-sections -fdata-sections -fvisibility=hidden")
|
||||
// abiFilters += listOf("armeabi-v7a", "arm64-v8a")
|
||||
// cppFlags += listOf("-Os -flto -ffunction-sections -fdata-sections -fvisibility=hidden")
|
||||
// arguments += listOf("-Wl,--gc-sections", "-DANDROID_STL=c++_static")
|
||||
// }
|
||||
// }
|
||||
}
|
||||
bundle {
|
||||
abi {
|
||||
// This property is set to true by default.
|
||||
enableSplit = true
|
||||
}
|
||||
}
|
||||
// signingConfigs {
|
||||
// // We use a bundled debug keystore, to allow debug builds from CI to be upgradable
|
||||
// create("release") {
|
||||
// storeFile = rootProject.file("./key/saitra.keystore")
|
||||
// storePassword = "2025Tzx."
|
||||
// keyAlias = "XCL_TZX_EI_AChatI"
|
||||
// keyPassword = "2025Tzx."
|
||||
// enableV1Signing = true
|
||||
// enableV2Signing = true
|
||||
// enableV3Signing = true
|
||||
// enableV4Signing = true
|
||||
// }
|
||||
// }
|
||||
composeOptions { kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get() }
|
||||
packaging {
|
||||
// jniLibs {
|
||||
// excludes += "**/libchat.so"
|
||||
// }//动态加载-不合规-暂时移除
|
||||
resources {
|
||||
excludes += "META-INF/DEPENDENCIES"
|
||||
excludes += "META-INF/NOTICE"
|
||||
excludes += "META-INF/LICENSE"
|
||||
excludes += "META-INF/LICENSE.txt"
|
||||
excludes += "META-INF/NOTICE.txt"
|
||||
excludes += "META-INF/LICENSE.md"
|
||||
excludes += "META-INF/LICENSE-notice.md"
|
||||
excludes += "META-INF/{AL2.0,LGPL2.1,LICENSE,NOTICE,DEPENDENCIES}"
|
||||
excludes += "DebugProbesKt.bin"
|
||||
excludes += "META-INF/*.kotlin_module"
|
||||
excludes += "**/*.kotlin_module"
|
||||
excludes += "**/*.version"
|
||||
}
|
||||
}
|
||||
buildTypes {
|
||||
debug {
|
||||
isDebuggable = true
|
||||
isCrunchPngs = true
|
||||
isJniDebuggable = true
|
||||
isMinifyEnabled = false
|
||||
isShrinkResources = false
|
||||
// signingConfig = signingConfigs.getByName("release")
|
||||
// versionNameSuffix = "-debug-${LocalDate.now().format(ofPattern("yyyy-MM-dd"))}"
|
||||
}
|
||||
|
||||
release {
|
||||
isDebuggable = false
|
||||
isCrunchPngs = true
|
||||
isJniDebuggable = false
|
||||
isMinifyEnabled = true
|
||||
isShrinkResources = true
|
||||
// signingConfig = signingConfigs.getByName("release")
|
||||
// versionNameSuffix = "-release-${LocalDate.now().format(ofPattern("yyyy-MM-dd"))}"
|
||||
}
|
||||
// create("benchmark") {
|
||||
// signingConfig = signingConfigs.getByName("release")
|
||||
// matchingFallbacks += listOf("release")
|
||||
// isDebuggable = false
|
||||
// }
|
||||
}
|
||||
compileOptions {
|
||||
isCoreLibraryDesugaringEnabled = true
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
}
|
||||
kotlinOptions {
|
||||
jvmTarget = "17"
|
||||
val arguments =
|
||||
listOf(
|
||||
// https://kotlinlang.org/docs/compiler-reference.html#progressive
|
||||
"-progressive",
|
||||
// Enable Java default method generation.
|
||||
"-Xjvm-default=all",
|
||||
"-Xjsr305=strict",
|
||||
// Generate smaller bytecode by not generating runtime not-null assertions.
|
||||
"-Xno-call-assertions",
|
||||
"-Xno-param-assertions",
|
||||
"-Xno-receiver-assertions",
|
||||
)
|
||||
freeCompilerArgs += arguments
|
||||
}
|
||||
splits {
|
||||
abi {
|
||||
isEnable = true
|
||||
reset()
|
||||
include("armeabi-v7a", "arm64-v8a")
|
||||
isUniversalApk = true
|
||||
}
|
||||
}
|
||||
buildFeatures {
|
||||
compose = true
|
||||
// dataBinding = false
|
||||
viewBinding = true
|
||||
buildConfig = true
|
||||
aidl = true
|
||||
}
|
||||
// externalNativeBuild {
|
||||
// cmake {
|
||||
// path = file("CMakeLists.txt")
|
||||
// version = "3.22.1"
|
||||
// }
|
||||
// }
|
||||
// 屏蔽 task (uploadCrashlyticsMappingFileRelease)-仅限国内构建、使用Mini打包不需要
|
||||
// gradle.taskGraph.whenReady {
|
||||
// tasks.find { it.name == "uploadCrashlyticsMappingFileRelease" }?.enabled = false
|
||||
// }
|
||||
|
||||
applicationVariants.all {
|
||||
outputs.all {
|
||||
if (this is com.android.build.gradle.internal.api.ApkVariantOutputImpl) {
|
||||
val filterData = getFilter(com.android.build.OutputFile.ABI)
|
||||
// println("EI_v${versionName}(${versionCode})_${filterData}_${buildType.name}.apk")
|
||||
outputFileName =
|
||||
if (filterData.isNullOrEmpty()) {
|
||||
"Tra_v${versionName}(${versionCode})_${buildType.name}.apk"
|
||||
} else {
|
||||
"Tra_v${versionName}(${versionCode})_(${filterData}|${buildType.name}).apk"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
sourceSets { getByName("main") { jniLibs.srcDir("libs") } }
|
||||
}
|
||||
|
||||
aboutLibraries {
|
||||
// - `./gradlew app:exportLibraryDefinitions -PaboutLibraries.exportPath=src/main/res/raw`
|
||||
registerAndroidTasks = false
|
||||
outputFileName = "aboutlibraries.json"
|
||||
configPath = "config"
|
||||
offlineMode = false
|
||||
fetchRemoteLicense = true
|
||||
fetchRemoteFunding = true
|
||||
excludeFields = arrayOf("developers", "funding")
|
||||
includePlatform = true
|
||||
strictMode = com.mikepenz.aboutlibraries.plugin.StrictMode.WARN
|
||||
duplicationMode = com.mikepenz.aboutlibraries.plugin.DuplicateMode.MERGE
|
||||
duplicationRule = com.mikepenz.aboutlibraries.plugin.DuplicateRule.GROUP
|
||||
prettyPrint = true
|
||||
}
|
||||
|
||||
dependencies {
|
||||
// implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
|
||||
implementation(libs.material) {
|
||||
exclude(group = "org.jetbrains.kotlin", module = "kotlin-bom")
|
||||
exclude(group = "androidx.activity", module = "activity")
|
||||
exclude(group = "androidx.appcompat", module = "appcompat")
|
||||
}
|
||||
implementation(libs.material3)
|
||||
implementation(libs.material3.adaptive)
|
||||
implementation(libs.material3.adaptive.navigation.suite)
|
||||
implementation(libs.material3.window.size)
|
||||
implementation(libs.androidx.foundation)
|
||||
implementation(libs.androidx.foundation.layout)
|
||||
implementation(libs.androidx.ui)
|
||||
implementation(libs.androidx.ui.util)
|
||||
implementation(libs.androidx.ui.graphics)
|
||||
debugImplementation(libs.androidx.ui.tooling)
|
||||
debugImplementation(libs.androidx.ui.tooling.preview)
|
||||
debugImplementation(libs.squareup.leakcanary)
|
||||
implementation(libs.androidx.material)
|
||||
implementation(libs.androidx.material.icons.core)
|
||||
implementation(libs.androidx.material.icons.extended)
|
||||
implementation(libs.androidx.runtime)
|
||||
implementation(libs.androidx.animation)
|
||||
implementation(libs.androidx.recyclerview)
|
||||
implementation(libs.androidx.recyclerview.selection)
|
||||
// androidTestImplementation(libs.androidx.runtime.tracing)
|
||||
// androidTestImplementation(libs.androidx.ui.test.manifest)
|
||||
// androidTestImplementation(libs.androidx.ui.test.junit4)
|
||||
implementation(libs.androidx.glance)
|
||||
implementation(libs.androidx.glance.appwidget)
|
||||
// implementation(libs.androidx.glance.material)
|
||||
implementation(libs.androidx.glance.material3)
|
||||
debugImplementation(libs.glance.appwidget.viewer)
|
||||
implementation(libs.glance.appwidget.host)
|
||||
implementation(libs.glance.appwidget.configuration)
|
||||
// implementation(libs.accompanist.permissions)
|
||||
implementation(libs.accompanist.navigation.material) {
|
||||
exclude(group = "androidx.navigation", module = "navigation-compose")
|
||||
}
|
||||
implementation(libs.accompanist.drawablepainter)
|
||||
implementation(libs.accompanist.adaptive)
|
||||
implementation(libs.androidx.navigation.ui.ktx)
|
||||
implementation(libs.androidx.navigation.compose)
|
||||
// androidTestImplementation(libs.androidx.navigation.testing)
|
||||
implementation(libs.androidx.window)
|
||||
implementation(libs.androidx.window.java)
|
||||
// androidTestImplementation(libs.androidx.window.testing)
|
||||
implementation(libs.androidx.lifecycle.viewmodel.ktx)
|
||||
implementation(libs.androidx.lifecycle.viewmodel.compose)
|
||||
implementation(libs.androidx.lifecycle.runtime.compose)
|
||||
implementation(libs.androidx.lifecycle.viewmodel.savedstate)
|
||||
implementation(libs.androidx.lifecycle.common.java8)
|
||||
implementation(libs.androidx.lifecycle.service)
|
||||
implementation(libs.androidx.lifecycle.process)
|
||||
implementation(libs.androidx.lifecycle.reactivestreams.ktx)
|
||||
implementation(libs.androidx.lifecycle.livedata.ktx)
|
||||
// androidTestImplementation(libs.androidx.core.testing)
|
||||
// androidTestImplementation(libs.androidx.lifecycle.runtime.testing)
|
||||
// room数据库
|
||||
implementation(libs.androidx.room.runtime)
|
||||
// annotationProcessor(libs.androidx.room.compiler)
|
||||
ksp(libs.androidx.room.compiler)
|
||||
implementation(libs.androidx.room.ktx)
|
||||
implementation(libs.androidx.room.guava)
|
||||
// testImplementation(libs.androidx.room.testing)
|
||||
implementation(libs.sqlcipher.android) { exclude(group = "androidx.sqlite", module = "sqlite") }
|
||||
implementation(libs.androidx.sqlite)
|
||||
implementation(libs.androidx.sqlite.ktx)
|
||||
implementation(libs.androidx.sqlite.framework)
|
||||
// work
|
||||
implementation(libs.androidx.work.runtime.ktx)
|
||||
implementation(libs.androidx.work.gcm)
|
||||
// androidTestImplementation(libs.androidx.work.testing)
|
||||
implementation(libs.androidx.work.multiprocess)
|
||||
// sentry
|
||||
implementation(libs.sentry.android)
|
||||
implementation(libs.sentry.compose.android)
|
||||
implementation(libs.sentry.android.okhttp) {
|
||||
exclude(group = "com.squareup.okhttp3", module = "okhttp")
|
||||
}
|
||||
// implementation(libs.firebase.perf.ktx)
|
||||
// implementation(libs.firebase.crashlytics.ktx)
|
||||
// implementation(libs.firebase.crashlytics.ndk)
|
||||
// implementation(libs.firebase.config.ktx)
|
||||
// implementation(libs.firebase.analytics.ktx)
|
||||
// implementation(libs.firebase.messaging.ktx)
|
||||
// Ktor
|
||||
implementation(libs.ktor.client.core)
|
||||
implementation(libs.ktor.client.okhttp) {
|
||||
exclude(group = "com.squareup.okhttp3", module = "okhttp")
|
||||
}
|
||||
implementation(libs.ktor.client.logging)
|
||||
implementation(libs.ktor.client.content.negotiation)
|
||||
implementation(libs.ktor.client.encoding)
|
||||
implementation(libs.ktor.serialization.kotlinx.protobuf)
|
||||
// androidTestImplementation(libs.ktor.client.mock)
|
||||
// Okhttp
|
||||
implementation(libs.okhttp)
|
||||
implementation(libs.okhttp.sse)
|
||||
debugImplementation(libs.okhttp.monitor)
|
||||
releaseImplementation(libs.okhttp.monitor.noop)
|
||||
// Grpc
|
||||
// runtimeOnly(libs.grpc.okhttp)
|
||||
// api(libs.grpc.stub)
|
||||
// api(libs.grpc.protobuf.lite)
|
||||
// api(libs.grpc.kotlin.stub)
|
||||
// implementation(libs.protobuf.kotlinlite) // protobuf-kotlin解析
|
||||
implementation(libs.kotlinx.serialization.protobuf) {
|
||||
exclude(group = "com.google.protobuf", module = "protobuf-javalite")
|
||||
} // protobuf-serialization解析
|
||||
implementation(libs.protobuf.javalite) // protobuf-java解析
|
||||
// 图片渲染-Coil
|
||||
implementation(libs.coil3)
|
||||
implementation(libs.coil3.compose)
|
||||
implementation(libs.coil3.gif)
|
||||
implementation(libs.coil3.svg) { exclude(group = "com.caverock", module = "androidsvg-aar") }
|
||||
implementation(libs.coil3.video)
|
||||
implementation(libs.coil3.network) { exclude(group = "com.squareup.okhttp3", module = "okhttp") }
|
||||
implementation(libs.zoomimage.compose.coil)
|
||||
implementation(libs.coil)
|
||||
implementation(libs.coil.compose)
|
||||
// Koin依赖注入
|
||||
implementation(libs.koin.core)
|
||||
implementation(libs.koin.core.coroutines)
|
||||
implementation(libs.koin.android)
|
||||
implementation(libs.koin.android.compat)
|
||||
// implementation(libs.koin.androidx.workmanager)
|
||||
implementation(libs.koin.androidx.compose)
|
||||
implementation(libs.koin.androidx.compose.navigation)
|
||||
// androidTestImplementation(libs.koin.android.test)
|
||||
// androidTestImplementation(libs.androidx.tracing.perfetto)
|
||||
// androidTestImplementation(libs.androidx.tracing.perfetto.binary)
|
||||
implementation(libs.androidx.core)
|
||||
implementation(libs.androidx.core.google.shortcuts)
|
||||
implementation(libs.androidx.core.ktx)
|
||||
implementation(libs.androidx.core.animation)
|
||||
implementation(libs.androidx.core.performance)
|
||||
implementation(libs.androidx.core.splashscreen)
|
||||
implementation(libs.androidx.startup.runtime)
|
||||
implementation(libs.androidx.appcompat) {
|
||||
exclude(group = "androidx.fragment", module = "fragment")
|
||||
}
|
||||
implementation(libs.androidx.appcompat.resources)
|
||||
implementation(libs.androidx.emoji2)
|
||||
implementation(libs.androidx.emoji2.bundled)
|
||||
// implementation(libs.androidx.emoji2.emojipicker)
|
||||
// implementation(libs.androidx.gridlayout)
|
||||
// implementation(libs.billing.ktx)
|
||||
// implementation(libs.alipaysdk.android)//应用内支付-支付宝-暂时移除
|
||||
implementation(libs.androidx.activity.ktx)
|
||||
implementation(libs.androidx.activity.compose)
|
||||
implementation(libs.annotation)
|
||||
implementation(libs.androidx.concurrent.futures.ktx)
|
||||
implementation(libs.androidx.annotation.experimental)
|
||||
implementation(libs.androidx.constraintlayout)
|
||||
implementation(libs.androidx.constraintlayout.compose)
|
||||
implementation(libs.androidx.asynclayoutinflater)
|
||||
implementation(libs.androidx.collection.ktx)
|
||||
// exoplayer
|
||||
implementation(libs.media3.exoplayer)
|
||||
// agora
|
||||
implementation(libs.agora.rtc.basic)
|
||||
// implementation(libs.material)
|
||||
implementation(libs.androidx.multidex)
|
||||
coreLibraryDesugaring(libs.desugar.jdk.libs)
|
||||
implementation(libs.bcprov.jdk15on)
|
||||
implementation(libs.relinker)
|
||||
implementation(libs.guava)
|
||||
// implementation(libs.lottie.compose) // AE动画
|
||||
implementation(libs.androidx.transition.ktx)
|
||||
// 协程
|
||||
implementation(libs.kotlinx.coroutines.core)
|
||||
implementation(libs.kotlinx.coroutines.play.services)
|
||||
implementation(libs.kotlinx.coroutines.android)
|
||||
implementation(libs.kotlin.reflect)
|
||||
implementation(libs.kotlin.stdlib)
|
||||
implementation(libs.kotlin.stdlib.jdk7)
|
||||
implementation(libs.kotlin.stdlib.jdk8)
|
||||
// androidTestImplementation(libs.kotlinx.coroutines.test)
|
||||
// androidTestImplementation(libs.androidx.junit)
|
||||
// androidTestImplementation(libs.androidx.espresso.core)
|
||||
// testImplementation(libs.junit.jupiter.api)
|
||||
// androidTestImplementation(libs.junit.jupiter.api)
|
||||
// Acra 异常全局捕获
|
||||
implementation(libs.acra.core)
|
||||
implementation(libs.acra.toast)
|
||||
implementation(libs.acra.advanced.scheduler)
|
||||
implementation(libs.auto.service.annotations)
|
||||
ksp(libs.auto.service.ksp)
|
||||
implementation(libs.androidx.fragment)
|
||||
// GMS
|
||||
implementation(libs.play.services.location)
|
||||
// implementation(libs.integrity)
|
||||
// TODO:暂时取消掉翻译的依赖
|
||||
// implementation(libs.playstore.dynamic.feature.support)
|
||||
// {
|
||||
// exclude(group = "com.google.android.play", module = "core")
|
||||
// }
|
||||
// implementation(libs.translate)//文本翻译
|
||||
// Play Core
|
||||
implementation(libs.asset.delivery.ktx)
|
||||
implementation(libs.feature.delivery.ktx)
|
||||
// implementation(libs.review.ktx)
|
||||
implementation(libs.app.update.ktx)
|
||||
implementation(libs.android.aop.core)
|
||||
implementation(libs.android.aop.annotation)
|
||||
ksp(libs.android.aop.ksp)
|
||||
implementation(libs.aboutlibraries.core)
|
||||
implementation(libs.aboutlibraries.compose.m3)
|
||||
// QrCode
|
||||
// implementation(libs.qrose)
|
||||
// 拼音
|
||||
// implementation(libs.pinyin4j)
|
||||
// profile优化
|
||||
implementation(libs.androidx.profileinstaller)
|
||||
}
|
||||
|
||||
configurations.all { resolutionStrategy.cacheChangingModulesFor(10, TimeUnit.SECONDS) }
|
21
app/proguard-rules.pro
vendored
Normal file
21
app/proguard-rules.pro
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
# Add project specific ProGuard rules here.
|
||||
# You can control the set of applied configuration files using the
|
||||
# proguardFiles setting in build.gradle.
|
||||
#
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
|
||||
# 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 *;
|
||||
#}
|
||||
|
||||
# Uncomment this to preserve the line number information for
|
||||
# debugging stack traces.
|
||||
#-keepattributes SourceFile,LineNumberTable
|
||||
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
28
app/src/main/AndroidManifest.xml
Normal file
28
app/src/main/AndroidManifest.xml
Normal file
@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:dataExtractionRules="@xml/data_extraction_rules"
|
||||
android:fullBackupContent="@xml/backup_rules"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/Theme.AiTra"
|
||||
tools:targetApi="31">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:exported="true"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/Theme.AiTra">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</application>
|
||||
|
||||
</manifest>
|
38
app/src/main/java/ink/xcl/saitra/MainActivity.kt
Normal file
38
app/src/main/java/ink/xcl/saitra/MainActivity.kt
Normal file
@ -0,0 +1,38 @@
|
||||
package ink.xcl.saitra
|
||||
|
||||
import android.os.Bundle
|
||||
import androidx.activity.ComponentActivity
|
||||
import androidx.activity.compose.setContent
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.Surface
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import ink.xcl.saitra.ui.theme.AiTraTheme
|
||||
|
||||
class MainActivity : ComponentActivity() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
setContent {
|
||||
AiTraTheme {
|
||||
// A surface container using the 'background' color from the theme
|
||||
Surface(
|
||||
modifier = Modifier.fillMaxSize(),
|
||||
color = MaterialTheme.colorScheme.background
|
||||
) {
|
||||
Greeting("Android")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
fun Greeting(name: String, modifier: Modifier = Modifier) {
|
||||
Text(
|
||||
text = "Hello $name!",
|
||||
modifier = modifier
|
||||
)
|
||||
}
|
11
app/src/main/java/ink/xcl/saitra/ui/theme/Color.kt
Normal file
11
app/src/main/java/ink/xcl/saitra/ui/theme/Color.kt
Normal file
@ -0,0 +1,11 @@
|
||||
package ink.xcl.saitra.ui.theme
|
||||
|
||||
import androidx.compose.ui.graphics.Color
|
||||
|
||||
val Purple80 = Color(0xFFD0BCFF)
|
||||
val PurpleGrey80 = Color(0xFFCCC2DC)
|
||||
val Pink80 = Color(0xFFEFB8C8)
|
||||
|
||||
val Purple40 = Color(0xFF6650a4)
|
||||
val PurpleGrey40 = Color(0xFF625b71)
|
||||
val Pink40 = Color(0xFF7D5260)
|
70
app/src/main/java/ink/xcl/saitra/ui/theme/Theme.kt
Normal file
70
app/src/main/java/ink/xcl/saitra/ui/theme/Theme.kt
Normal file
@ -0,0 +1,70 @@
|
||||
package ink.xcl.saitra.ui.theme
|
||||
|
||||
import android.app.Activity
|
||||
import android.os.Build
|
||||
import androidx.compose.foundation.isSystemInDarkTheme
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.darkColorScheme
|
||||
import androidx.compose.material3.dynamicDarkColorScheme
|
||||
import androidx.compose.material3.dynamicLightColorScheme
|
||||
import androidx.compose.material3.lightColorScheme
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.SideEffect
|
||||
import androidx.compose.ui.graphics.toArgb
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.platform.LocalView
|
||||
import androidx.core.view.WindowCompat
|
||||
|
||||
private val DarkColorScheme = darkColorScheme(
|
||||
primary = Purple80,
|
||||
secondary = PurpleGrey80,
|
||||
tertiary = Pink80
|
||||
)
|
||||
|
||||
private val LightColorScheme = lightColorScheme(
|
||||
primary = Purple40,
|
||||
secondary = PurpleGrey40,
|
||||
tertiary = Pink40
|
||||
|
||||
/* Other default colors to override
|
||||
background = Color(0xFFFFFBFE),
|
||||
surface = Color(0xFFFFFBFE),
|
||||
onPrimary = Color.White,
|
||||
onSecondary = Color.White,
|
||||
onTertiary = Color.White,
|
||||
onBackground = Color(0xFF1C1B1F),
|
||||
onSurface = Color(0xFF1C1B1F),
|
||||
*/
|
||||
)
|
||||
|
||||
@Composable
|
||||
fun AiTraTheme(
|
||||
darkTheme: Boolean = isSystemInDarkTheme(),
|
||||
// Dynamic color is available on Android 12+
|
||||
dynamicColor: Boolean = true,
|
||||
content: @Composable () -> Unit
|
||||
) {
|
||||
val colorScheme = when {
|
||||
dynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> {
|
||||
val context = LocalContext.current
|
||||
if (darkTheme) dynamicDarkColorScheme(context) else dynamicLightColorScheme(context)
|
||||
}
|
||||
|
||||
darkTheme -> DarkColorScheme
|
||||
else -> LightColorScheme
|
||||
}
|
||||
val view = LocalView.current
|
||||
if (!view.isInEditMode) {
|
||||
SideEffect {
|
||||
val window = (view.context as Activity).window
|
||||
window.statusBarColor = colorScheme.primary.toArgb()
|
||||
WindowCompat.getInsetsController(window, view).isAppearanceLightStatusBars = darkTheme
|
||||
}
|
||||
}
|
||||
|
||||
MaterialTheme(
|
||||
colorScheme = colorScheme,
|
||||
typography = Typography,
|
||||
content = content
|
||||
)
|
||||
}
|
34
app/src/main/java/ink/xcl/saitra/ui/theme/Type.kt
Normal file
34
app/src/main/java/ink/xcl/saitra/ui/theme/Type.kt
Normal file
@ -0,0 +1,34 @@
|
||||
package ink.xcl.saitra.ui.theme
|
||||
|
||||
import androidx.compose.material3.Typography
|
||||
import androidx.compose.ui.text.TextStyle
|
||||
import androidx.compose.ui.text.font.FontFamily
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.unit.sp
|
||||
|
||||
// Set of Material typography styles to start with
|
||||
val Typography = Typography(
|
||||
bodyLarge = TextStyle(
|
||||
fontFamily = FontFamily.Default,
|
||||
fontWeight = FontWeight.Normal,
|
||||
fontSize = 16.sp,
|
||||
lineHeight = 24.sp,
|
||||
letterSpacing = 0.5.sp
|
||||
)
|
||||
/* Other default text styles to override
|
||||
titleLarge = TextStyle(
|
||||
fontFamily = FontFamily.Default,
|
||||
fontWeight = FontWeight.Normal,
|
||||
fontSize = 22.sp,
|
||||
lineHeight = 28.sp,
|
||||
letterSpacing = 0.sp
|
||||
),
|
||||
labelSmall = TextStyle(
|
||||
fontFamily = FontFamily.Default,
|
||||
fontWeight = FontWeight.Medium,
|
||||
fontSize = 11.sp,
|
||||
lineHeight = 16.sp,
|
||||
letterSpacing = 0.5.sp
|
||||
)
|
||||
*/
|
||||
)
|
30
app/src/main/res/drawable-v24/ic_launcher_foreground.xml
Normal file
30
app/src/main/res/drawable-v24/ic_launcher_foreground.xml
Normal file
@ -0,0 +1,30 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="108"
|
||||
android:viewportHeight="108">
|
||||
<path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:endX="85.84757"
|
||||
android:endY="92.4963"
|
||||
android:startX="42.9492"
|
||||
android:startY="49.59793"
|
||||
android:type="linear">
|
||||
<item
|
||||
android:color="#44000000"
|
||||
android:offset="0.0" />
|
||||
<item
|
||||
android:color="#00000000"
|
||||
android:offset="1.0" />
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:fillColor="#FFFFFF"
|
||||
android:fillType="nonZero"
|
||||
android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
|
||||
android:strokeWidth="1"
|
||||
android:strokeColor="#00000000" />
|
||||
</vector>
|
170
app/src/main/res/drawable/ic_launcher_background.xml
Normal file
170
app/src/main/res/drawable/ic_launcher_background.xml
Normal file
@ -0,0 +1,170 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="108"
|
||||
android:viewportHeight="108">
|
||||
<path
|
||||
android:fillColor="#3DDC84"
|
||||
android:pathData="M0,0h108v108h-108z" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M9,0L9,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,0L19,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M29,0L29,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M39,0L39,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M49,0L49,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M59,0L59,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M69,0L69,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M79,0L79,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M89,0L89,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M99,0L99,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,9L108,9"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,19L108,19"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,29L108,29"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,39L108,39"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,49L108,49"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,59L108,59"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,69L108,69"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,79L108,79"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,89L108,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,99L108,99"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,29L89,29"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,39L89,39"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,49L89,49"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,59L89,59"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,69L89,69"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,79L89,79"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M29,19L29,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M39,19L39,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M49,19L49,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M59,19L59,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M69,19L69,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M79,19L79,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
</vector>
|
6
app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Normal file
6
app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
|
||||
</adaptive-icon>
|
6
app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
Normal file
6
app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
|
||||
</adaptive-icon>
|
BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
Normal file
BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.8 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
Normal file
BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.6 KiB |
10
app/src/main/res/values/colors.xml
Normal file
10
app/src/main/res/values/colors.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="purple_200">#FFBB86FC</color>
|
||||
<color name="purple_500">#FF6200EE</color>
|
||||
<color name="purple_700">#FF3700B3</color>
|
||||
<color name="teal_200">#FF03DAC5</color>
|
||||
<color name="teal_700">#FF018786</color>
|
||||
<color name="black">#FF000000</color>
|
||||
<color name="white">#FFFFFFFF</color>
|
||||
</resources>
|
3
app/src/main/res/values/strings.xml
Normal file
3
app/src/main/res/values/strings.xml
Normal file
@ -0,0 +1,3 @@
|
||||
<resources>
|
||||
<string name="app_name">AiTra</string>
|
||||
</resources>
|
5
app/src/main/res/values/themes.xml
Normal file
5
app/src/main/res/values/themes.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="Theme.AiTra" parent="android:Theme.Material.Light.NoActionBar" />
|
||||
</resources>
|
13
app/src/main/res/xml/backup_rules.xml
Normal file
13
app/src/main/res/xml/backup_rules.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
Sample backup rules file; uncomment and customize as necessary.
|
||||
See https://developer.android.com/guide/topics/data/autobackup
|
||||
for details.
|
||||
Note: This file is ignored for devices older that API 31
|
||||
See https://developer.android.com/about/versions/12/backup-restore
|
||||
-->
|
||||
<full-backup-content>
|
||||
<!--
|
||||
<include domain="sharedpref" path="."/>
|
||||
<exclude domain="sharedpref" path="device.xml"/>
|
||||
-->
|
||||
</full-backup-content>
|
19
app/src/main/res/xml/data_extraction_rules.xml
Normal file
19
app/src/main/res/xml/data_extraction_rules.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
Sample data extraction rules file; uncomment and customize as necessary.
|
||||
See https://developer.android.com/about/versions/12/backup-restore#xml-changes
|
||||
for details.
|
||||
-->
|
||||
<data-extraction-rules>
|
||||
<cloud-backup>
|
||||
<!-- TODO: Use <include> and <exclude> to control what is backed up.
|
||||
<include .../>
|
||||
<exclude .../>
|
||||
-->
|
||||
</cloud-backup>
|
||||
<!--
|
||||
<device-transfer>
|
||||
<include .../>
|
||||
<exclude .../>
|
||||
</device-transfer>
|
||||
-->
|
||||
</data-extraction-rules>
|
70
build.gradle.kts
Normal file
70
build.gradle.kts
Normal file
@ -0,0 +1,70 @@
|
||||
@file:Suppress("UnstableApiUsage")
|
||||
|
||||
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
|
||||
|
||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
buildscript {
|
||||
val debug = gradle.startParameter.taskNames.any { it.contains("debug", true) }
|
||||
dependencies {
|
||||
classpath(libs.gradlePlugin.android)
|
||||
classpath(libs.navigation.safe.args.gradle.plugin)
|
||||
classpath(libs.gradlePlugin.kotlin)
|
||||
classpath(libs.google.services)
|
||||
classpath(libs.perf.plugin)
|
||||
// classpath(libs.firebase.crashlytics.gradle)
|
||||
classpath(libs.booster.gradle.plugin)
|
||||
classpath(libs.android.aop.plugin)
|
||||
if (!debug) {
|
||||
classpath(libs.booster.transform.thread)
|
||||
classpath(libs.booster.transform.res.check)
|
||||
classpath(libs.booster.transform.finalizer.watchdog.daemon)
|
||||
classpath(libs.booster.transform.activity.thread)
|
||||
classpath(libs.booster.task.resource.deredundancy)
|
||||
classpath(libs.booster.task.compression.processed.res)
|
||||
classpath(libs.booster.transform.shared.preferences)
|
||||
classpath(libs.com.didiglobal.booster.booster.transform.media.player)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.littlerobots)
|
||||
alias(libs.plugins.benmanes)
|
||||
alias(libs.plugins.ksp) apply false
|
||||
alias(libs.plugins.room) apply false
|
||||
alias(libs.plugins.trace) apply false
|
||||
alias(libs.plugins.sentry) apply false
|
||||
alias(libs.plugins.sentry.kotlin) apply false
|
||||
alias(libs.plugins.application) apply false
|
||||
alias(libs.plugins.kotlin.android) apply false
|
||||
alias(libs.plugins.kotlin.serialization) apply false
|
||||
alias(libs.plugins.kotlin.parcelize) apply false
|
||||
alias(libs.plugins.android.test) apply false
|
||||
alias(libs.plugins.android.library) apply false
|
||||
alias(libs.plugins.aboutlibraries) apply false
|
||||
}
|
||||
|
||||
tasks.withType<org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask>().configureEach {
|
||||
kaptProcessJvmArgs.add("-Xmx3g")
|
||||
}
|
||||
|
||||
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile>().configureEach {
|
||||
compilerOptions.languageVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_1_9)
|
||||
}
|
||||
|
||||
tasks.withType<DependencyUpdatesTask> { rejectVersionIf { false } }
|
||||
|
||||
tasks.named<DependencyUpdatesTask>("dependencyUpdates").configure {
|
||||
checkConstraints = true
|
||||
checkBuildEnvironmentConstraints = true
|
||||
checkForGradleUpdate = true
|
||||
outputFormatter = "json"
|
||||
outputDir = "build/dependencyUpdates"
|
||||
reportfileName = "report"
|
||||
}
|
||||
|
||||
versionCatalogUpdate { sortByKey.set(true) }
|
||||
|
||||
tasks.register("clean", Delete::class) { delete(rootProject.layout.buildDirectory) }
|
||||
|
||||
configurations.all { resolutionStrategy.cacheChangingModulesFor(0, TimeUnit.SECONDS) }
|
81
gradle.properties
Normal file
81
gradle.properties
Normal file
@ -0,0 +1,81 @@
|
||||
# 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=-Xmx10g -Xss1024k -XX:ParallelGCThreads=8 -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=5g -Dkotlin.daemon.jvm.options\="-Xmx10g"
|
||||
org.gradle.parallel=true
|
||||
org.gradle.configureondemand=true
|
||||
org.gradle.caching=true
|
||||
systemProp.https.protocols=TLSv1.3,TLSv1.2,TLSv1.1
|
||||
systemProp.jdk.tls.client.protocols=TLSv1.3,TLSv1.2,TLSv1.1
|
||||
#org.gradle.unsafe.configuration-cache=true
|
||||
# Use this flag carefully, in case some of the plugins are not fully compatible.
|
||||
#org.gradle.unsafe.configuration-cache-problems=warn
|
||||
# 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
|
||||
android.enableJetifier=false
|
||||
android.nonTransitiveRClass=true
|
||||
android.suppressUnsupportedCompileSdk=UpsideDownCake
|
||||
android.debug.obsoleteApi=false
|
||||
# Kotlin code style for this project: "official" or "obsolete":
|
||||
kotlin.code.style=official
|
||||
kotlin.build.report.output=file
|
||||
vcsInfo.include=true
|
||||
# android.enableVcsInfo=true
|
||||
# Enables namespacing of each library's R class so that its R class includes only the
|
||||
# resources declared in the library itself and none from the library's dependencies,
|
||||
# thereby reducing the size of the R class for that library
|
||||
# Enable R8 full mode.
|
||||
android.enableR8.fullMode=true
|
||||
# Only for Debug
|
||||
android.injected.testOnly=false
|
||||
#kotlin incremental
|
||||
kotlin.incremental=true
|
||||
kotlin.incremental.java=true
|
||||
kotlin.caching.enabled=true
|
||||
#kotlin parallel
|
||||
kotlin.parallel.tasks.in.project=true
|
||||
kotlin.native.binary.memoryModel=experimental
|
||||
kotlin.native.binary.freezing=disabled
|
||||
#kapt
|
||||
# Decrease gradle builds time
|
||||
kapt.use.worker.api=true
|
||||
#incremental
|
||||
kapt.incremental.apt=true
|
||||
#kapt avoiding
|
||||
kapt.include.compile.classpath=false
|
||||
kapt.verbose=false
|
||||
kapt.use.k2=false
|
||||
ksp.useKSP2=false
|
||||
#MPP
|
||||
kotlin.mpp.enableCInteropCommonization=true
|
||||
kotlin.mpp.androidSourceSetLayoutVersion=2
|
||||
firebasePerformanceInstrumentationEnabled=true
|
||||
# update: ./gradlew wrapper --gradle-version=8.3
|
||||
dependencyUpdates.gradleReleaseChannel="nightly"
|
||||
nl.littlerobots.vcu.resolver=true
|
||||
android.defaults.buildfeatures.compose=true
|
||||
android.defaults.buildfeatures.viewBinding=true
|
||||
android.packagingOptions.jniLibs.useLegacyPackaging=true
|
||||
android.precompileDependenciesResources=false
|
||||
# Use latest lint alpha for best available K2 support
|
||||
# https://googlesamples.github.io/android-custom-lint-rules/usage/newer-lint.md.html
|
||||
android.experimental.lint.version=8.3.0-beta02
|
||||
# Use K2 compiler
|
||||
kotlin.experimental.tryK2=true
|
||||
# Run lint on K2
|
||||
android.lint.useK2Uast=true
|
||||
# buildId
|
||||
buildId=10786750
|
||||
#booster
|
||||
booster.transform.activity.thread.packages.ignore=com.didiglobal.booster,io.johnsonlee.booster
|
371
gradle/libs.versions.toml
Normal file
371
gradle/libs.versions.toml
Normal file
@ -0,0 +1,371 @@
|
||||
[versions]
|
||||
accompanistPermissions = "0.35.1-SNAPSHOT"
|
||||
activityCompose = "1.9.0-alpha02"
|
||||
alipaysdkAndroid = "15.8.17"
|
||||
androidGifDrawable = "1.2.28"
|
||||
androidx-annotation = "1.7.1"
|
||||
animation = "1.7.0-alpha01"
|
||||
recyclerview = "1.4.0-alpha01"
|
||||
viewpager2 = "1.1.0-beta02"
|
||||
recyclerview-selection = "1.2.0-alpha01"
|
||||
annotationExperimental = "1.4.0"
|
||||
appcompat = "1.7.0-alpha03"
|
||||
assetDeliveryKtx = "2.1.0"
|
||||
asynclayoutinflater = "1.1.0-alpha01"
|
||||
bcprovJdk15on = "1.70"
|
||||
benchmarkMacroJunit4 = "1.2.3"
|
||||
billingKtx = "6.1.0"
|
||||
boosterGradlePlugin = "5.0.0-alpha1"
|
||||
coil = "2.6.0-SNAPSHOT"
|
||||
coil3 = "3.0.0-SNAPSHOT"
|
||||
camerax = "1.4.0-alpha04"
|
||||
collectionKtx = "1.4.0"
|
||||
commonmarkExtGfmStrikethrough = "0.21.0"
|
||||
composeCompiler = "1.5.8"
|
||||
concurrentFuturesKtx = "1.2.0-alpha02"
|
||||
constraintlayout = "2.2.0-alpha13"
|
||||
constraintlayoutCompose = "1.1.0-alpha13"
|
||||
core = "1.0.0"
|
||||
coreAnimation = "1.0.0-rc01"
|
||||
coreGoogleShortcuts = "1.2.0-alpha01"
|
||||
coreKtx = "1.13.0-alpha04"
|
||||
corePerformance = "1.0.0"
|
||||
coreTesting = "2.2.0"
|
||||
splashscreen = "1.1.0-alpha02"
|
||||
libphonenumber = "8.13.28"
|
||||
agora = "4.2.6"
|
||||
media3 = "1.3.0-alpha01"
|
||||
datastore = "1.1.0-beta01"
|
||||
desugar_jdk_libs = "2.0.4"
|
||||
espressoCore = "3.6.0-alpha03"
|
||||
eventbus = "3.3.1"
|
||||
exifinterface = "1.3.7"
|
||||
firebase-crashlytics-gradle = "2.9.9"
|
||||
compose = "1.7.0-alpha01"
|
||||
firebaseAnalyticsKtx = "21.5.0"
|
||||
firebaseConfigKtx = "21.6.0"
|
||||
firebaseCrashlyticsKtx = "18.6.1"
|
||||
firebaseDynamicModuleSupport = "16.0.0-beta03"
|
||||
firebaseMessagingKtx = "23.4.0"
|
||||
firebasePerfKtx = "20.5.1"
|
||||
glance = "1.0.0"
|
||||
glance-experimental = "0.2.2"
|
||||
google-material = "1.12.0-alpha03"
|
||||
google-services = "4.4.0"
|
||||
gridlayout = "1.1.0-beta01"
|
||||
integrity = "1.3.0"
|
||||
junit = "1.2.0-alpha03"
|
||||
junitJupiterApi = "5.11.0-SNAPSHOT"
|
||||
koinCore = "3.6.0-wasm-alpha2"
|
||||
kotlinx-collections-immutable = "0.3.7"
|
||||
kotlinxCoroutinesCore = "1.8.0-RC2"
|
||||
kotlinxSerializationProtobuf = "1.6.2"
|
||||
ktorClientCoreJvm = "2.3.8"
|
||||
lifecycleExtensions = "2.2.0"
|
||||
lifecycleRuntimeTesting = "2.8.0-alpha01"
|
||||
lottieCompose = "6.3.0"
|
||||
material = "1.7.0-alpha01"
|
||||
material3 = "1.2.0-rc01"
|
||||
material3-adaptive = "1.0.0-alpha05"
|
||||
material3-adaptive-navigation-suite = "1.0.0-alpha02"
|
||||
emoji2 = "1.5.0-alpha01"
|
||||
multidex = "2.0.1"
|
||||
navigation-safe-args-gradle-plugin = "2.8.0-alpha01"
|
||||
objectbox-gradle-plugin = "3.7.1"
|
||||
room = "2.6.1"
|
||||
sqlite = "2.4.0"
|
||||
sqlcipher = "4.5.6"
|
||||
okhttp = "5.0.0-SNAPSHOT"
|
||||
monitor = "1.4.5"
|
||||
okio = "3.7.0"
|
||||
grpc = "1.61.1"
|
||||
grpc-kotlin = "1.4.1"
|
||||
perf-plugin = "1.4.2"
|
||||
kotlin-plugin = "1.9.22"
|
||||
gradle-plugin = "8.3.0-beta02"
|
||||
pinyin4j = "2.5.1"
|
||||
playServicesLocation = "21.1.0"
|
||||
playstoreDynamicFeatureSupport = "16.0.0-beta2"
|
||||
profileinstaller = "1.3.1"
|
||||
protobufJavalite = "3.25.2"
|
||||
relinker = "1.4.5"
|
||||
reviewKtx = "2.0.1"
|
||||
runner = "1.6.0-alpha06"
|
||||
fragment = "1.7.0-alpha09"
|
||||
runtimeTracing = "1.0.0-beta01"
|
||||
startupRuntime = "1.2.0-alpha02"
|
||||
tracing = "1.3.0-alpha02"
|
||||
tracingPerfetto = "1.0.0"
|
||||
transitionKtx = "1.5.0-alpha06"
|
||||
translate = "17.0.2"
|
||||
uiautomator = "2.3.0-beta01"
|
||||
vectordrawableAnimated = "1.1.0"
|
||||
window = "1.3.0-alpha01"
|
||||
workMultiprocess = "2.10.0-alpha01"
|
||||
guava = "33.0.0-jre"
|
||||
sentry = "7.3.0"
|
||||
qrose = "1.0.0-beta3"
|
||||
aboutlibraries = "11.1.0-b01"
|
||||
zoomimage = "1.0.2"
|
||||
leakcanary = "3.0-alpha-1"
|
||||
acra = "5.11.3"
|
||||
auto-service = "1.1.1"
|
||||
auto-service-ksp = "1.1.0"
|
||||
junit-junit = "5.0-SNAPSHOT"
|
||||
android-aop = "1.4.0"
|
||||
|
||||
[plugins]
|
||||
littlerobots = "nl.littlerobots.version-catalog-update:0.8.4"
|
||||
benmanes = "com.github.ben-manes.versions:0.51.0"
|
||||
application = "com.android.application:8.3.0-beta02"
|
||||
trace = "io.github.leavesczy.trace:0.0.5"
|
||||
room = "androidx.room:2.6.1"
|
||||
ksp = "com.google.devtools.ksp:1.9.22-1.0.17"
|
||||
sentry = "io.sentry.android.gradle:4.2.0"
|
||||
sentry-kotlin = "io.sentry.kotlin.compiler.gradle:4.2.0"
|
||||
kotlin-android = "org.jetbrains.kotlin.android:1.9.22"
|
||||
kotlin-serialization = "org.jetbrains.kotlin.plugin.serialization:1.9.22"
|
||||
kotlin-parcelize = "org.jetbrains.kotlin.plugin.parcelize:1.9.22"
|
||||
android-test = "com.android.test:8.3.0-beta02"
|
||||
android-library = "com.android.library:8.3.0-beta02"
|
||||
aboutlibraries = "com.mikepenz.aboutlibraries.plugin:11.1.0-b01"
|
||||
android-aop = "io.github.FlyJingFish.AndroidAop.android-aop:1.4.0"
|
||||
|
||||
[libraries]
|
||||
accompanist-adaptive = { module = "com.google.accompanist:accompanist-adaptive", version.ref = "accompanistPermissions" }
|
||||
accompanist-drawablepainter = { module = "com.google.accompanist:accompanist-drawablepainter", version.ref = "accompanistPermissions" }
|
||||
accompanist-navigation-material = { module = "com.google.accompanist:accompanist-navigation-material", version.ref = "accompanistPermissions" }
|
||||
accompanist-permissions = { module = "com.google.accompanist:accompanist-permissions", version.ref = "accompanistPermissions" }
|
||||
alipaysdk-android = { module = "com.alipay.sdk:alipaysdk-android", version.ref = "alipaysdkAndroid" }
|
||||
android-gif-drawable = { module = "pl.droidsonroids.gif:android-gif-drawable", version.ref = "androidGifDrawable" }
|
||||
androidx-activity-compose = { module = "androidx.activity:activity-compose", version.ref = "activityCompose" }
|
||||
androidx-activity-ktx = { module = "androidx.activity:activity-ktx", version.ref = "activityCompose" }
|
||||
androidx-viewpager2 = { module = "androidx.viewpager2:viewpager2", version.ref = "viewpager2" }
|
||||
androidx-recyclerview = { module = "androidx.recyclerview:recyclerview", version.ref = "recyclerview" }
|
||||
androidx-recyclerview-selection = { module = "androidx.recyclerview:recyclerview-selection", version.ref = "recyclerview-selection" }
|
||||
androidx-animation = { module = "androidx.compose.animation:animation", version.ref = "animation" }
|
||||
androidx-annotation-experimental = { module = "androidx.annotation:annotation-experimental", version.ref = "annotationExperimental" }
|
||||
androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "appcompat" }
|
||||
androidx-appcompat-resources = { module = "androidx.appcompat:appcompat-resources", version.ref = "appcompat" }
|
||||
androidx-asynclayoutinflater = { module = "androidx.asynclayoutinflater:asynclayoutinflater", version.ref = "asynclayoutinflater" }
|
||||
androidx-benchmark-macro-junit4 = { module = "androidx.benchmark:benchmark-macro-junit4", version.ref = "benchmarkMacroJunit4" }
|
||||
androidx-camera-core = { module = "androidx.camera:camera-core", version.ref = "camerax" }
|
||||
androidx-camera-camera2 = { module = "androidx.camera:camera-camera2", version.ref = "camerax" }
|
||||
androidx-camera-lifecycle = { module = "androidx.camera:camera-lifecycle", version.ref = "camerax" }
|
||||
androidx-camera-video = { module = "androidx.camera:camera-video", version.ref = "camerax" }
|
||||
androidx-camera-view = { module = "androidx.camera:camera-view", version.ref = "camerax" }
|
||||
androidx-camera-extensions = { module = "androidx.camera:camera-extensions", version.ref = "camerax" }
|
||||
androidx-collection-ktx = { module = "androidx.collection:collection-ktx", version.ref = "collectionKtx" }
|
||||
androidx-concurrent-futures-ktx = { module = "androidx.concurrent:concurrent-futures-ktx", version.ref = "concurrentFuturesKtx" }
|
||||
androidx-constraintlayout = { module = "androidx.constraintlayout:constraintlayout", version.ref = "constraintlayout" }
|
||||
androidx-constraintlayout-compose = { module = "androidx.constraintlayout:constraintlayout-compose", version.ref = "constraintlayoutCompose" }
|
||||
androidx-core = { module = "androidx.window.extensions.core:core", version.ref = "core" }
|
||||
androidx-core-animation = { module = "androidx.core:core-animation", version.ref = "coreAnimation" }
|
||||
androidx-core-google-shortcuts = { module = "androidx.core:core-google-shortcuts", version.ref = "coreGoogleShortcuts" }
|
||||
androidx-core-ktx = { module = "androidx.core:core-ktx", version.ref = "coreKtx" }
|
||||
androidx-core-performance = { module = "androidx.core:core-performance", version.ref = "corePerformance" }
|
||||
androidx-core-testing = { module = "androidx.arch.core:core-testing", version.ref = "coreTesting" }
|
||||
androidx-core-splashscreen = { module = "androidx.core:core-splashscreen", version.ref = "splashscreen" }
|
||||
booster-gradle-plugin = { module = "com.didiglobal.booster:booster-gradle-plugin", version.ref = "boosterGradlePlugin" }
|
||||
booster-task-compression-processed-res = { module = "com.didiglobal.booster:booster-task-compression-processed-res", version.ref = "boosterGradlePlugin" }
|
||||
booster-task-resource-deredundancy = { module = "com.didiglobal.booster:booster-task-resource-deredundancy", version.ref = "boosterGradlePlugin" }
|
||||
booster-transform-activity-thread = { module = "com.didiglobal.booster:booster-transform-activity-thread", version.ref = "boosterGradlePlugin" }
|
||||
booster-transform-finalizer-watchdog-daemon = { module = "com.didiglobal.booster:booster-transform-finalizer-watchdog-daemon", version.ref = "boosterGradlePlugin" }
|
||||
booster-transform-res-check = { module = "com.didiglobal.booster:booster-transform-res-check", version.ref = "boosterGradlePlugin" }
|
||||
booster-transform-shared-preferences = { module = "com.didiglobal.booster:booster-transform-shared-preferences", version.ref = "boosterGradlePlugin" }
|
||||
booster-transform-thread = { module = "com.didiglobal.booster:booster-transform-thread", version.ref = "boosterGradlePlugin" }
|
||||
coil = { module = "io.coil-kt:coil", version.ref = "coil" }
|
||||
coil-base = { module = "io.coil-kt:coil-base", version.ref = "coil" }
|
||||
coil-compose = { module = "io.coil-kt:coil-compose", version.ref = "coil" }
|
||||
coil-gif = { module = "io.coil-kt:coil-gif", version.ref = "coil" }
|
||||
coil-svg = { module = "io.coil-kt:coil-svg", version.ref = "coil" }
|
||||
coil-video = { module = "io.coil-kt:coil-video", version.ref = "coil" }
|
||||
coil3 = { module = "io.coil-kt.coil3:coil", version.ref = "coil3" }
|
||||
coil3-core = { module = "io.coil-kt.coil3:coil-core", version.ref = "coil3" }
|
||||
coil3-compose = { module = "io.coil-kt.coil3:coil-compose", version.ref = "coil3" }
|
||||
coil3-network = { module = "io.coil-kt.coil3:coil-network-okhttp", version.ref = "coil3" }
|
||||
coil3-gif = { module = "io.coil-kt.coil3:coil-gif", version.ref = "coil3" }
|
||||
coil3-svg = { module = "io.coil-kt.coil3:coil-svg", version.ref = "coil3" }
|
||||
coil3-video = { module = "io.coil-kt.coil3:coil-video", version.ref = "coil3" }
|
||||
com-didiglobal-booster-booster-transform-media-player = { module = "com.didiglobal.booster:booster-transform-media-player", version.ref = "boosterGradlePlugin" }
|
||||
libphonenumber = { module = "io.michaelrocks:libphonenumber-android", version.ref = "libphonenumber" }
|
||||
media3-exoplayer = { module = "androidx.media3:media3-exoplayer", version.ref = "media3" }
|
||||
media3-exoplayer-ui = { module = "androidx.media3:media3-ui", version.ref = "media3" }
|
||||
agora-rtc-basic = { module = "io.agora.rtc:full-rtc-basic", version.ref = "agora" }
|
||||
androidx-datastore = { module = "androidx.datastore:datastore", version.ref = "datastore" }
|
||||
androidx-datastore-preferences = { module = "androidx.datastore:datastore-preferences", version.ref = "datastore" }
|
||||
androidx-espresso-core = { module = "androidx.test.espresso:espresso-core", version.ref = "espressoCore" }
|
||||
androidx-exifinterface = { module = "androidx.exifinterface:exifinterface", version.ref = "exifinterface" }
|
||||
androidx-foundation = { module = "androidx.compose.foundation:foundation", version.ref = "compose" }
|
||||
androidx-foundation-layout = { module = "androidx.compose.foundation:foundation-layout", version.ref = "compose" }
|
||||
androidx-glance = { module = "androidx.glance:glance", version.ref = "glance" }
|
||||
androidx-glance-appwidget = { module = "androidx.glance:glance-appwidget", version.ref = "glance" }
|
||||
androidx-glance-material = { module = "androidx.glance:glance-material", version.ref = "glance" }
|
||||
androidx-glance-material3 = { module = "androidx.glance:glance-material3", version.ref = "glance" }
|
||||
glance-appwidget-viewer = { module = "com.google.android.glance.tools:appwidget-viewer", version.ref = "glance-experimental" }
|
||||
glance-appwidget-host = { module = "com.google.android.glance.tools:appwidget-host", version.ref = "glance-experimental" }
|
||||
glance-appwidget-configuration = { module = "com.google.android.glance.tools:appwidget-configuration", version.ref = "glance-experimental" }
|
||||
androidx-gridlayout = { module = "androidx.gridlayout:gridlayout", version.ref = "gridlayout" }
|
||||
androidx-junit = { module = "androidx.test.ext:junit", version.ref = "junit" }
|
||||
androidx-lifecycle-extensions = { module = "androidx.lifecycle:lifecycle-extensions", version.ref = "lifecycleExtensions" }
|
||||
androidx-lifecycle-lifecycle-compiler = { module = "androidx.lifecycle:lifecycle-compiler", version.ref = "lifecycleRuntimeTesting" }
|
||||
androidx-lifecycle-common-java8 = { module = "androidx.lifecycle:lifecycle-common-java8", version.ref = "lifecycleRuntimeTesting" }
|
||||
androidx-lifecycle-livedata-ktx = { module = "androidx.lifecycle:lifecycle-livedata-ktx", version.ref = "lifecycleRuntimeTesting" }
|
||||
androidx-lifecycle-process = { module = "androidx.lifecycle:lifecycle-process", version.ref = "lifecycleRuntimeTesting" }
|
||||
androidx-lifecycle-reactivestreams-ktx = { module = "androidx.lifecycle:lifecycle-reactivestreams-ktx", version.ref = "lifecycleRuntimeTesting" }
|
||||
androidx-lifecycle-runtime-compose = { module = "androidx.lifecycle:lifecycle-runtime-compose", version.ref = "lifecycleRuntimeTesting" }
|
||||
androidx-lifecycle-runtime-ktx = { module = "androidx.lifecycle:lifecycle-runtime-ktx", version.ref = "lifecycleRuntimeTesting" }
|
||||
androidx-lifecycle-runtime-testing = { module = "androidx.lifecycle:lifecycle-runtime-testing", version.ref = "lifecycleRuntimeTesting" }
|
||||
androidx-lifecycle-service = { module = "androidx.lifecycle:lifecycle-service", version.ref = "lifecycleRuntimeTesting" }
|
||||
androidx-lifecycle-viewmodel-compose = { module = "androidx.lifecycle:lifecycle-viewmodel-compose", version.ref = "lifecycleRuntimeTesting" }
|
||||
androidx-lifecycle-viewmodel-ktx = { module = "androidx.lifecycle:lifecycle-viewmodel-ktx", version.ref = "lifecycleRuntimeTesting" }
|
||||
androidx-lifecycle-viewmodel-savedstate = { module = "androidx.lifecycle:lifecycle-viewmodel-savedstate", version.ref = "lifecycleRuntimeTesting" }
|
||||
androidx-emoji2 = { module = "androidx.emoji2:emoji2", version.ref = "emoji2" }
|
||||
androidx-emoji2-bundled = { module = "androidx.emoji2:emoji2-bundled", version.ref = "emoji2" }
|
||||
androidx-emoji2-emojipicker = { module = "androidx.emoji2:emoji2-emojipicker", version.ref = "emoji2" }
|
||||
androidx-multidex = { module = "androidx.multidex:multidex", version.ref = "multidex" }
|
||||
androidx-navigation-compose = { module = "androidx.navigation:navigation-compose", version.ref = "navigation-safe-args-gradle-plugin" }
|
||||
androidx-navigation-dynamic-features-fragment = { module = "androidx.navigation:navigation-dynamic-features-fragment", version.ref = "navigation-safe-args-gradle-plugin" }
|
||||
androidx-navigation-testing = { module = "androidx.navigation:navigation-testing", version.ref = "navigation-safe-args-gradle-plugin" }
|
||||
androidx-navigation-ui-ktx = { module = "androidx.navigation:navigation-ui-ktx", version.ref = "navigation-safe-args-gradle-plugin" }
|
||||
androidx-profileinstaller = { module = "androidx.profileinstaller:profileinstaller", version.ref = "profileinstaller" }
|
||||
androidx-fragment = { module = "androidx.fragment:fragment-ktx", version.ref = "fragment" }
|
||||
androidx-runner = { module = "androidx.test:runner", version.ref = "runner" }
|
||||
androidx-runtime = { module = "androidx.compose.runtime:runtime", version.ref = "compose" }
|
||||
androidx-runtime-livedata = { module = "androidx.compose.runtime:runtime-livedata", version.ref = "compose" }
|
||||
androidx-runtime-tracing = { module = "androidx.compose.runtime:runtime-tracing", version.ref = "runtimeTracing" }
|
||||
androidx-startup-runtime = { module = "androidx.startup:startup-runtime", version.ref = "startupRuntime" }
|
||||
androidx-tracing = { module = "androidx.tracing:tracing", version.ref = "tracing" }
|
||||
androidx-tracing-perfetto = { module = "androidx.tracing:tracing-perfetto", version.ref = "tracingPerfetto" }
|
||||
androidx-tracing-perfetto-binary = { module = "androidx.tracing:tracing-perfetto-binary", version.ref = "tracingPerfetto" }
|
||||
androidx-transition-ktx = { module = "androidx.transition:transition-ktx", version.ref = "transitionKtx" }
|
||||
androidx-ui = { module = "androidx.compose.ui:ui", version.ref = "compose" }
|
||||
androidx-ui-graphics = { module = "androidx.compose.ui:ui-graphics", version.ref = "compose" }
|
||||
androidx-ui-test-junit4 = { module = "androidx.compose.ui:ui-test-junit4", version.ref = "compose" }
|
||||
androidx-ui-test-manifest = { module = "androidx.compose.ui:ui-test-manifest", version.ref = "compose" }
|
||||
androidx-ui-tooling = { module = "androidx.compose.ui:ui-tooling", version.ref = "compose" }
|
||||
androidx-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview", version.ref = "compose" }
|
||||
androidx-ui-util = { module = "androidx.compose.ui:ui-util", version.ref = "compose" }
|
||||
androidx-uiautomator = { module = "androidx.test.uiautomator:uiautomator", version.ref = "uiautomator" }
|
||||
androidx-vectordrawable-animated = { module = "androidx.vectordrawable:vectordrawable-animated", version.ref = "vectordrawableAnimated" }
|
||||
androidx-window = { module = "androidx.window:window", version.ref = "window" }
|
||||
androidx-window-java = { module = "androidx.window:window-java", version.ref = "window" }
|
||||
androidx-window-testing = { module = "androidx.window:window-testing", version.ref = "window" }
|
||||
androidx-work-gcm = { module = "androidx.work:work-gcm", version.ref = "workMultiprocess" }
|
||||
androidx-work-multiprocess = { module = "androidx.work:work-multiprocess", version.ref = "workMultiprocess" }
|
||||
androidx-work-runtime-ktx = { module = "androidx.work:work-runtime-ktx", version.ref = "workMultiprocess" }
|
||||
androidx-work-testing = { module = "androidx.work:work-testing", version.ref = "workMultiprocess" }
|
||||
annotation = { module = "androidx.annotation:annotation", version.ref = "androidx-annotation" }
|
||||
app-update-ktx = { module = "com.google.android.play:app-update-ktx", version.ref = "assetDeliveryKtx" }
|
||||
asset-delivery-ktx = { module = "com.google.android.play:asset-delivery-ktx", version.ref = "assetDeliveryKtx" }
|
||||
bcprov-jdk15on = { module = "org.bouncycastle:bcprov-jdk15on", version.ref = "bcprovJdk15on" }
|
||||
billing-ktx = { module = "com.android.billingclient:billing-ktx", version.ref = "billingKtx" }
|
||||
commonmark = { module = "org.commonmark:commonmark", version.ref = "commonmarkExtGfmStrikethrough" }
|
||||
commonmark-ext-gfm-strikethrough = { module = "org.commonmark:commonmark-ext-gfm-strikethrough", version.ref = "commonmarkExtGfmStrikethrough" }
|
||||
commonmark-ext-gfm-tables = { module = "org.commonmark:commonmark-ext-gfm-tables", version.ref = "commonmarkExtGfmStrikethrough" }
|
||||
desugar_jdk_libs = { module = "com.android.tools:desugar_jdk_libs", version.ref = "desugar_jdk_libs" }
|
||||
eventbus = { module = "org.greenrobot:eventbus", version.ref = "eventbus" }
|
||||
feature-delivery-ktx = { module = "com.google.android.play:feature-delivery-ktx", version.ref = "assetDeliveryKtx" }
|
||||
firebase-analytics-ktx = { module = "com.google.firebase:firebase-analytics-ktx", version.ref = "firebaseAnalyticsKtx" }
|
||||
firebase-config-ktx = { module = "com.google.firebase:firebase-config-ktx", version.ref = "firebaseConfigKtx" }
|
||||
firebase-crashlytics-gradle = { module = "com.google.firebase:firebase-crashlytics-gradle", version.ref = "firebase-crashlytics-gradle" }
|
||||
firebase-crashlytics-ktx = { module = "com.google.firebase:firebase-crashlytics-ktx", version.ref = "firebaseCrashlyticsKtx" }
|
||||
firebase-crashlytics-ndk = { module = "com.google.firebase:firebase-crashlytics-ndk", version.ref = "firebaseCrashlyticsKtx" }
|
||||
firebase-dynamic-module-support = { module = "com.google.firebase:firebase-dynamic-module-support", version.ref = "firebaseDynamicModuleSupport" }
|
||||
firebase-messaging-ktx = { module = "com.google.firebase:firebase-messaging-ktx", version.ref = "firebaseMessagingKtx" }
|
||||
firebase-perf-ktx = { module = "com.google.firebase:firebase-perf-ktx", version.ref = "firebasePerfKtx" }
|
||||
google-services = { module = "com.google.gms:google-services", version.ref = "google-services" }
|
||||
integrity = { module = "com.google.android.play:integrity", version.ref = "integrity" }
|
||||
junit-jupiter-api = { module = "org.junit.jupiter:junit-jupiter-api", version.ref = "junitJupiterApi" }
|
||||
koin-android = { module = "io.insert-koin:koin-android", version.ref = "koinCore" }
|
||||
koin-android-compat = { module = "io.insert-koin:koin-android-compat", version.ref = "koinCore" }
|
||||
koin-android-test = { module = "io.insert-koin:koin-android-test", version.ref = "koinCore" }
|
||||
koin-androidx-compose = { module = "io.insert-koin:koin-androidx-compose", version.ref = "koinCore" }
|
||||
koin-androidx-compose-navigation = { module = "io.insert-koin:koin-androidx-compose-navigation", version.ref = "koinCore" }
|
||||
koin-androidx-workmanager = { module = "io.insert-koin:koin-androidx-workmanager", version.ref = "koinCore" }
|
||||
koin-core = { module = "io.insert-koin:koin-core", version.ref = "koinCore" }
|
||||
koin-core-coroutines = { module = "io.insert-koin:koin-core-coroutines", version.ref = "koinCore" }
|
||||
kotlin-reflect = { module = "org.jetbrains.kotlin:kotlin-reflect", version.ref = "kotlin-plugin" }
|
||||
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin-plugin" }
|
||||
kotlin-stdlib-jdk7 = { module = "org.jetbrains.kotlin:kotlin-stdlib-jdk7", version.ref = "kotlin-plugin" }
|
||||
kotlin-stdlib-jdk8 = { module = "org.jetbrains.kotlin:kotlin-stdlib-jdk8", version.ref = "kotlin-plugin" }
|
||||
kotlinx-immutable = { module = "org.jetbrains.kotlinx:kotlinx-collections-immutable", version.ref = "kotlinx-collections-immutable" }
|
||||
kotlinx-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "kotlinxCoroutinesCore" }
|
||||
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinxCoroutinesCore" }
|
||||
kotlinx-coroutines-play-services = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-play-services", version.ref = "kotlinxCoroutinesCore" }
|
||||
kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "kotlinxCoroutinesCore" }
|
||||
kotlinx-serialization-protobuf = { module = "org.jetbrains.kotlinx:kotlinx-serialization-protobuf", version.ref = "kotlinxSerializationProtobuf" }
|
||||
ktor-client-content-negotiation = { module = "io.ktor:ktor-client-content-negotiation", version.ref = "ktorClientCoreJvm" }
|
||||
ktor-client-core = { module = "io.ktor:ktor-client-core", version.ref = "ktorClientCoreJvm" }
|
||||
ktor-client-encoding = { module = "io.ktor:ktor-client-encoding", version.ref = "ktorClientCoreJvm" }
|
||||
ktor-client-logging = { module = "io.ktor:ktor-client-logging", version.ref = "ktorClientCoreJvm" }
|
||||
ktor-client-mock = { module = "io.ktor:ktor-client-mock", version.ref = "ktorClientCoreJvm" }
|
||||
ktor-client-okhttp = { module = "io.ktor:ktor-client-okhttp", version.ref = "ktorClientCoreJvm" }
|
||||
ktor-client-websockets = { module = "io.ktor:ktor-client-websockets", version.ref = "ktorClientCoreJvm" }
|
||||
ktor-serialization-kotlinx-protobuf = { module = "io.ktor:ktor-serialization-kotlinx-protobuf", version.ref = "ktorClientCoreJvm" }
|
||||
lottie-compose = { module = "com.airbnb.android:lottie-compose", version.ref = "lottieCompose" }
|
||||
material = { module = "com.google.android.material:material", version.ref = "google-material" }
|
||||
androidx-material = { module = "androidx.compose.material:material", version.ref = "material" }
|
||||
androidx-material-icons-core = { module = "androidx.compose.material:material-icons-core", version.ref = "material" }
|
||||
androidx-material-icons-extended = { module = "androidx.compose.material:material-icons-extended", version.ref = "material" }
|
||||
material3 = { module = "androidx.compose.material3:material3", version.ref = "material3" }
|
||||
material3-window-size = { module = "androidx.compose.material3:material3-window-size-class", version.ref = "material3" }
|
||||
material3-adaptive = { module = "androidx.compose.material3:material3-adaptive", version.ref = "material3-adaptive" }
|
||||
material3-adaptive-navigation-suite = { module = "androidx.compose.material3:material3-adaptive-navigation-suite", version.ref = "material3-adaptive-navigation-suite" }
|
||||
navigation-safe-args-gradle-plugin = { module = "androidx.navigation:navigation-safe-args-gradle-plugin", version.ref = "navigation-safe-args-gradle-plugin" }
|
||||
androidx-sqlite = { module = "androidx.sqlite:sqlite", version.ref = "sqlite" }
|
||||
androidx-sqlite-ktx = { module = "androidx.sqlite:sqlite-ktx", version.ref = "sqlite" }
|
||||
androidx-sqlite-framework = { module = "androidx.sqlite:sqlite-framework", version.ref = "sqlite" }
|
||||
androidx-room-runtime = { module = "androidx.room:room-runtime", version.ref = "room" }
|
||||
androidx-room-compiler = { module = "androidx.room:room-compiler", version.ref = "room" }
|
||||
androidx-room-ktx = { module = "androidx.room:room-ktx", version.ref = "room" }
|
||||
androidx-room-guava = { module = "androidx.room:room-guava", version.ref = "room" }
|
||||
androidx-room-testing = { module = "androidx.room:room-testing", version.ref = "room" }
|
||||
sqlcipher-android = { module = "net.zetetic:sqlcipher-android", version.ref = "sqlcipher" }
|
||||
objectbox-android = { module = "io.objectbox:objectbox-android", version.ref = "objectbox-gradle-plugin" }
|
||||
objectbox-android-objectbrowser = { module = "io.objectbox:objectbox-android-objectbrowser", version.ref = "objectbox-gradle-plugin" }
|
||||
objectbox-gradle-plugin = { module = "io.objectbox:objectbox-gradle-plugin", version.ref = "objectbox-gradle-plugin" }
|
||||
objectbox-java = { module = "io.objectbox:objectbox-java", version.ref = "objectbox-gradle-plugin" }
|
||||
objectbox-kotlin = { module = "io.objectbox:objectbox-kotlin", version.ref = "objectbox-gradle-plugin" }
|
||||
objectbox-processor = { module = "io.objectbox:objectbox-processor", version.ref = "objectbox-gradle-plugin" }
|
||||
okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" }
|
||||
okhttp-sse = { module = "com.squareup.okhttp3:okhttp-sse", version.ref = "okhttp" }
|
||||
okhttp-monitor = { module = "io.github.leavesczy:monitor", version.ref = "monitor" }
|
||||
okhttp-monitor-noop = { module = "io.github.leavesczy:monitor-no-op", version.ref = "monitor" }
|
||||
okio = { module = "com.squareup.okio:okio", version.ref = "okio" }
|
||||
grpc-okhttp = { module = "io.grpc:grpc-okhttp", version.ref = "grpc" }
|
||||
grpc-stub = { module = "io.grpc:grpc-stub", version.ref = "grpc" }
|
||||
grpc-protobuf-lite = { module = "io.grpc:grpc-protobuf-lite", version.ref = "grpc" }
|
||||
grpc-kotlin-stub = { module = "io.grpc:grpc-kotlin-stub", version.ref = "grpc-kotlin" }
|
||||
perf-plugin = { module = "com.google.firebase:perf-plugin", version.ref = "perf-plugin" }
|
||||
gradlePlugin-android = { module = "com.android.tools.build:gradle", version.ref = "gradle-plugin" }
|
||||
gradlePlugin-kotlin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin-plugin" }
|
||||
pinyin4j = { module = "com.belerweb:pinyin4j", version.ref = "pinyin4j" }
|
||||
play-services-location = { module = "com.google.android.gms:play-services-location", version.ref = "playServicesLocation" }
|
||||
playstore-dynamic-feature-support = { module = "com.google.mlkit:playstore-dynamic-feature-support", version.ref = "playstoreDynamicFeatureSupport" }
|
||||
protobuf-javalite = { module = "com.google.protobuf:protobuf-javalite", version.ref = "protobufJavalite" }
|
||||
protobuf-kotlinlite = { module = "com.google.protobuf:protobuf-kotlin-lite", version.ref = "protobufJavalite" }
|
||||
relinker = { module = "com.getkeepsafe.relinker:relinker", version.ref = "relinker" }
|
||||
review-ktx = { module = "com.google.android.play:review-ktx", version.ref = "reviewKtx" }
|
||||
translate = { module = "com.google.mlkit:translate", version.ref = "translate" }
|
||||
guava = { module = "com.google.guava:guava", version.ref = "guava" }
|
||||
sentry-android = { module = "io.sentry:sentry-android", version.ref = "sentry" }
|
||||
sentry-compose-android = { module = "io.sentry:sentry-compose-android", version.ref = "sentry" }
|
||||
sentry-android-okhttp = { module = "io.sentry:sentry-okhttp", version.ref = "sentry" }
|
||||
zoomimage-compose-coil = { module = "io.github.panpf.zoomimage:zoomimage-compose-coil", version.ref = "zoomimage" }
|
||||
squareup-leakcanary = { module = "com.squareup.leakcanary:leakcanary-android", version.ref = "leakcanary" }
|
||||
acra-http = { module = "ch.acra:acra-http", version.ref = "acra" }
|
||||
acra-core = { module = "ch.acra:acra-core", version.ref = "acra" }
|
||||
acra-toast = { module = "ch.acra:acra-toast", version.ref = "acra" }
|
||||
acra-advanced-scheduler = { module = "ch.acra:acra-advanced-scheduler", version.ref = "acra" }
|
||||
auto-service-annotations = { module = "com.google.auto.service:auto-service-annotations", version.ref = "auto-service" }
|
||||
auto-service = { module = "com.google.auto.service:auto-service", version.ref = "auto-service" }
|
||||
auto-service-ksp = { module = "dev.zacsweers.autoservice:auto-service-ksp", version.ref = "auto-service-ksp" }
|
||||
qrose = { module = "io.github.alexzhirkevich:qrose", version.ref = "qrose" }
|
||||
aboutlibraries-core = { module = "com.mikepenz:aboutlibraries-core", version.ref = "aboutlibraries" }
|
||||
aboutlibraries-compose-m3 = { module = "com.mikepenz:aboutlibraries-compose-m3", version.ref = "aboutlibraries" }
|
||||
junit = { group = "junit", name = "junit", version.ref = "junit-junit" }
|
||||
android-aop-plugin = { group = "io.github.FlyJingFish.AndroidAop", name = "android-aop-plugin", version.ref = "android-aop" }
|
||||
android-aop-core = { group = "io.github.FlyJingFish.AndroidAop", name = "android-aop-core", version.ref = "android-aop" }
|
||||
android-aop-annotation = { group = "io.github.FlyJingFish.AndroidAop", name = "android-aop-annotation", version.ref = "android-aop" }
|
||||
android-aop-ksp = { group = "io.github.FlyJingFish.AndroidAop", name = "android-aop-ksp", version.ref = "android-aop" }
|
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
Binary file not shown.
7
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
7
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
249
gradlew
vendored
Executable file
249
gradlew
vendored
Executable file
@ -0,0 +1,249 @@
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Copyright © 2015-2021 the original authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
# Gradle start up script for POSIX generated by Gradle.
|
||||
#
|
||||
# Important for running:
|
||||
#
|
||||
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
|
||||
# noncompliant, but you have some other compliant shell such as ksh or
|
||||
# bash, then to run this script, type that shell name before the whole
|
||||
# command line, like:
|
||||
#
|
||||
# ksh Gradle
|
||||
#
|
||||
# Busybox and similar reduced shells will NOT work, because this script
|
||||
# requires all of these POSIX shell features:
|
||||
# * functions;
|
||||
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
|
||||
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
|
||||
# * compound commands having a testable exit status, especially «case»;
|
||||
# * various built-in commands including «command», «set», and «ulimit».
|
||||
#
|
||||
# Important for patching:
|
||||
#
|
||||
# (2) This script targets any POSIX shell, so it avoids extensions provided
|
||||
# by Bash, Ksh, etc; in particular arrays are avoided.
|
||||
#
|
||||
# The "traditional" practice of packing multiple parameters into a
|
||||
# space-separated string is a well documented source of bugs and security
|
||||
# problems, so this is (mostly) avoided, by progressively accumulating
|
||||
# options in "$@", and eventually passing that to Java.
|
||||
#
|
||||
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
|
||||
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
|
||||
# see the in-line comments for details.
|
||||
#
|
||||
# There are tweaks for specific operating systems such as AIX, CygWin,
|
||||
# Darwin, MinGW, and NonStop.
|
||||
#
|
||||
# (3) This script is generated from the Groovy template
|
||||
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# within the Gradle project.
|
||||
#
|
||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
# Attempt to set APP_HOME
|
||||
|
||||
# Resolve links: $0 may be a link
|
||||
app_path=$0
|
||||
|
||||
# Need this for daisy-chained symlinks.
|
||||
while
|
||||
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
|
||||
[ -h "$app_path" ]
|
||||
do
|
||||
ls=$( ls -ld "$app_path" )
|
||||
link=${ls#*' -> '}
|
||||
case $link in #(
|
||||
/*) app_path=$link ;; #(
|
||||
*) app_path=$APP_HOME$link ;;
|
||||
esac
|
||||
done
|
||||
|
||||
# This is normally unused
|
||||
# shellcheck disable=SC2034
|
||||
APP_BASE_NAME=${0##*/}
|
||||
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD=maximum
|
||||
|
||||
warn () {
|
||||
echo "$*"
|
||||
} >&2
|
||||
|
||||
die () {
|
||||
echo
|
||||
echo "$*"
|
||||
echo
|
||||
exit 1
|
||||
} >&2
|
||||
|
||||
# OS specific support (must be 'true' or 'false').
|
||||
cygwin=false
|
||||
msys=false
|
||||
darwin=false
|
||||
nonstop=false
|
||||
case "$( uname )" in #(
|
||||
CYGWIN* ) cygwin=true ;; #(
|
||||
Darwin* ) darwin=true ;; #(
|
||||
MSYS* | MINGW* ) msys=true ;; #(
|
||||
NONSTOP* ) nonstop=true ;;
|
||||
esac
|
||||
|
||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||
|
||||
|
||||
# Determine the Java command to use to start the JVM.
|
||||
if [ -n "$JAVA_HOME" ] ; then
|
||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||
# IBM's JDK on AIX uses strange locations for the executables
|
||||
JAVACMD=$JAVA_HOME/jre/sh/java
|
||||
else
|
||||
JAVACMD=$JAVA_HOME/bin/java
|
||||
fi
|
||||
if [ ! -x "$JAVACMD" ] ; then
|
||||
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
else
|
||||
JAVACMD=java
|
||||
if ! command -v java >/dev/null 2>&1
|
||||
then
|
||||
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
fi
|
||||
|
||||
# Increase the maximum file descriptors if we can.
|
||||
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
||||
case $MAX_FD in #(
|
||||
max*)
|
||||
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
|
||||
# shellcheck disable=SC2039,SC3045
|
||||
MAX_FD=$( ulimit -H -n ) ||
|
||||
warn "Could not query maximum file descriptor limit"
|
||||
esac
|
||||
case $MAX_FD in #(
|
||||
'' | soft) :;; #(
|
||||
*)
|
||||
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
|
||||
# shellcheck disable=SC2039,SC3045
|
||||
ulimit -n "$MAX_FD" ||
|
||||
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
||||
esac
|
||||
fi
|
||||
|
||||
# Collect all arguments for the java command, stacking in reverse order:
|
||||
# * args from the command line
|
||||
# * the main class name
|
||||
# * -classpath
|
||||
# * -D...appname settings
|
||||
# * --module-path (only if needed)
|
||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
|
||||
|
||||
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||
if "$cygwin" || "$msys" ; then
|
||||
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
||||
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
|
||||
|
||||
JAVACMD=$( cygpath --unix "$JAVACMD" )
|
||||
|
||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||
for arg do
|
||||
if
|
||||
case $arg in #(
|
||||
-*) false ;; # don't mess with options #(
|
||||
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
|
||||
[ -e "$t" ] ;; #(
|
||||
*) false ;;
|
||||
esac
|
||||
then
|
||||
arg=$( cygpath --path --ignore --mixed "$arg" )
|
||||
fi
|
||||
# Roll the args list around exactly as many times as the number of
|
||||
# args, so each arg winds up back in the position where it started, but
|
||||
# possibly modified.
|
||||
#
|
||||
# NB: a `for` loop captures its iteration list before it begins, so
|
||||
# changing the positional parameters here affects neither the number of
|
||||
# iterations, nor the values presented in `arg`.
|
||||
shift # remove old arg
|
||||
set -- "$@" "$arg" # push replacement arg
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||
|
||||
# Collect all arguments for the java command:
|
||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
||||
# and any embedded shellness will be escaped.
|
||||
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
||||
# treated as '${Hostname}' itself on the command line.
|
||||
|
||||
set -- \
|
||||
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
||||
-classpath "$CLASSPATH" \
|
||||
org.gradle.wrapper.GradleWrapperMain \
|
||||
"$@"
|
||||
|
||||
# Stop when "xargs" is not available.
|
||||
if ! command -v xargs >/dev/null 2>&1
|
||||
then
|
||||
die "xargs is not available"
|
||||
fi
|
||||
|
||||
# Use "xargs" to parse quoted args.
|
||||
#
|
||||
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
|
||||
#
|
||||
# In Bash we could simply go:
|
||||
#
|
||||
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
|
||||
# set -- "${ARGS[@]}" "$@"
|
||||
#
|
||||
# but POSIX shell has neither arrays nor command substitution, so instead we
|
||||
# post-process each arg (as a line of input to sed) to backslash-escape any
|
||||
# character that might be a shell metacharacter, then use eval to reverse
|
||||
# that process (while maintaining the separation between arguments), and wrap
|
||||
# the whole thing up as a single "set" statement.
|
||||
#
|
||||
# This will of course break if any of these variables contains a newline or
|
||||
# an unmatched quote.
|
||||
#
|
||||
|
||||
eval "set -- $(
|
||||
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
|
||||
xargs -n1 |
|
||||
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
|
||||
tr '\n' ' '
|
||||
)" '"$@"'
|
||||
|
||||
exec "$JAVACMD" "$@"
|
92
gradlew.bat
vendored
Normal file
92
gradlew.bat
vendored
Normal file
@ -0,0 +1,92 @@
|
||||
@rem
|
||||
@rem Copyright 2015 the original author or authors.
|
||||
@rem
|
||||
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@rem you may not use this file except in compliance with the License.
|
||||
@rem You may obtain a copy of the License at
|
||||
@rem
|
||||
@rem https://www.apache.org/licenses/LICENSE-2.0
|
||||
@rem
|
||||
@rem Unless required by applicable law or agreed to in writing, software
|
||||
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@rem See the License for the specific language governing permissions and
|
||||
@rem limitations under the License.
|
||||
@rem
|
||||
|
||||
@if "%DEBUG%"=="" @echo off
|
||||
@rem ##########################################################################
|
||||
@rem
|
||||
@rem Gradle startup script for Windows
|
||||
@rem
|
||||
@rem ##########################################################################
|
||||
|
||||
@rem Set local scope for the variables with windows NT shell
|
||||
if "%OS%"=="Windows_NT" setlocal
|
||||
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%"=="" set DIRNAME=.
|
||||
@rem This is normally unused
|
||||
set APP_BASE_NAME=%~n0
|
||||
set APP_HOME=%DIRNAME%
|
||||
|
||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
||||
|
||||
@rem Find java.exe
|
||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||
|
||||
set JAVA_EXE=java.exe
|
||||
%JAVA_EXE% -version >NUL 2>&1
|
||||
if %ERRORLEVEL% equ 0 goto execute
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:findJavaFromJavaHome
|
||||
set JAVA_HOME=%JAVA_HOME:"=%
|
||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||
|
||||
if exist "%JAVA_EXE%" goto execute
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
if %ERRORLEVEL% equ 0 goto mainEnd
|
||||
|
||||
:fail
|
||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||
rem the _cmd.exe /c_ return code!
|
||||
set EXIT_CODE=%ERRORLEVEL%
|
||||
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
||||
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
|
||||
exit /b %EXIT_CODE%
|
||||
|
||||
:mainEnd
|
||||
if "%OS%"=="Windows_NT" endlocal
|
||||
|
||||
:omega
|
50
settings.gradle.kts
Normal file
50
settings.gradle.kts
Normal file
@ -0,0 +1,50 @@
|
||||
@file:Suppress("UnstableApiUsage")
|
||||
|
||||
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
|
||||
|
||||
pluginManagement {
|
||||
val buildId: String by settings
|
||||
repositories {
|
||||
maven { url = uri("https://repo1.maven.org/maven2/") }
|
||||
maven { url = uri("https://dl.google.com/dl/android/maven2/") }
|
||||
google()
|
||||
mavenCentral()
|
||||
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven/") }
|
||||
maven { url = uri("https://androidx.dev/storage/compose-compiler/repository/") }
|
||||
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev") }
|
||||
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots/") }
|
||||
maven { url = uri("https://jitpack.io/") }
|
||||
gradlePluginPortal()
|
||||
maven { url = uri("https://developer.huawei.com/repo/") }
|
||||
// maven {
|
||||
// url = uri("https://androidx.dev/snapshots/builds/$buildId/artifacts/repository")
|
||||
// }
|
||||
// flatDir { dirs("libs") }
|
||||
}
|
||||
}
|
||||
|
||||
dependencyResolutionManagement {
|
||||
val buildId: String by settings
|
||||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
||||
repositories {
|
||||
maven { url = uri("https://repo1.maven.org/maven2/") }
|
||||
maven { url = uri("https://dl.google.com/dl/android/maven2/") }
|
||||
google()
|
||||
mavenCentral()
|
||||
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven/") }
|
||||
maven { url = uri("https://androidx.dev/storage/compose-compiler/repository/") }
|
||||
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev") }
|
||||
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots/") }
|
||||
maven { url = uri("https://jitpack.io/") }
|
||||
gradlePluginPortal()
|
||||
maven { url = uri("https://developer.huawei.com/repo/") }
|
||||
// maven {
|
||||
// url = uri("https://androidx.dev/snapshots/builds/$buildId/artifacts/repository")
|
||||
// }
|
||||
// flatDir { dirs("libs") }
|
||||
}
|
||||
}
|
||||
|
||||
rootProject.name = "AIChat"
|
||||
// 主工程
|
||||
include(":app")
|
Reference in New Issue
Block a user