一个轻柔的快照
此刻的感受
演示数值,并非测得的大脑数据或健康评估。
一次与自己的对话
留意当下。寻找一个小小的下一步。
一个轻柔的快照
演示数值,并非测得的大脑数据或健康评估。
信号实验室
您的文字最重要
您的笔记不会被包含在 AI 摘要中。
保存签到最近的一些时刻
您的下一次记录将显示在这里。
点滴瞬间,汇聚成海
一份关于您选择关注之事的私密记录。
示例时刻有明确标记且可以删除。仅您自己的记录会被用于可选的 AI 趋势分析。
一次深思熟虑的对话
反思,寻找规律,并选择一个小小的下一步。
从提示词开始
私密、按需的 AI
询问关于签到、您注意到的模式或自我关怀的小方法。这是反思支持,而非医疗诊断。
发送消息时,您的消息和近期聊天记录将发送给 Claude。如果已启用,两周的心情统计数据也可能会被共享;笔记和演示信号除外。
打造你的专属空间
选择 MoodChroma 记住的内容以及你分享的内容。
你的体验
仅在您要求时使用 AI
MoodChroma 使用 Miniapps AI 连接。请勿在此处粘贴 Anthropic API 密钥;本页面不存储任何密钥。
硬件与信号
此浏览器微应用无法保持 Android 前台服务运行,也无法解码 Muse、Emotiv、NeuroSky 或 OpenBCI 数据包。信号预览为模拟信号。真实的 EEG 需要具有设备特定蓝牙驱动程序的原生应用。
阅读连接说明原生应用参考
一个独立 Android Studio 项目的设置指南和 Gradle 模板。此 Web 微应用无法编译 APK。
打开 Android 构建指南您的记录
导出可移植副本或删除您保存的签到和对话。
保存的记录使用私有 Miniapps 存储。如果存储不可用,本次访问仍可运行,但更改可能无法持久保存。
关于硬件的明确说明
MoodChroma 是一款浏览器健康伴侣。它包含真实的模拟 EEG 可视化、私密记录日志、色彩主题以及按需提供的 Claude 反思。它不会访问你的摄像头、麦克风、蓝牙 EEG 数据包,也不会在页面关闭后运行。
原生 Android 项目
本页面是一个浏览器微应用,而非 Android 项目。请将此指南作为移交给独立 Android Studio 项目的参考;此处不生成 APK。
提供的代码片段仅作为起点,而非经过验证的完整项目。它们引用了此工作区中不存在的其他 Kotlin 类、资源和模型资产。Android 无法保证 24/7 全天候后台运行或自动启动;现代版本限制了后台服务对摄像头和麦克风的使用。
启用 USB 调试,连接设备,然后运行 adb install -r path/to/app.apk。对于侧载,请传输 APK 并允许从该文件管理器安装。
这是您提供的配置,以可复制模板的形式保存。它依赖于匹配的根 Gradle 插件版本、wrapper、源码和资源。
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
}
android {
namespace 'com.moodchroma.portable'
compileSdk 34
defaultConfig {
applicationId "com.moodchroma.portable"
minSdk 24 // Android 7.0 for wider compatibility
targetSdk 34
versionCode 1
versionName "1.0.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary true
}
// Enable multidex for large app
multiDexEnabled true
// Native libraries - include all ABIs for portability
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
}
}
signingConfigs {
release {
// For portable APK, use debug signing or create your own keystore
// Replace with your keystore details for production
storeFile file("debug.keystore")
storePassword "android"
keyAlias "androiddebugkey"
keyPassword "android"
}
}
buildTypes {
release {
minifyEnabled true // Enable code shrinking
shrinkResources true // Remove unused resources
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
// Optimize APK size
ndk {
debugSymbolLevel 'NONE'
}
}
debug {
applicationIdSuffix ".debug"
debuggable true
minifyEnabled false
}
}
// Build variants for different devices
flavorDimensions = ["version"]
productFlavors {
full {
dimension "version"
// Full version with all features
}
lite {
dimension "version"
// Lightweight version for older devices
minSdk 21
versionNameSuffix "-lite"
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '17'
}
buildFeatures {
compose true
buildConfig true
}
composeOptions {
kotlinCompilerExtensionVersion '1.5.3'
}
packaging {
resources {
excludes += '/META-INF/{AL2.0,LGPL2.1}'
excludes += '/META-INF/DEPENDENCIES'
excludes += '/META-INF/LICENSE'
excludes += '/META-INF/LICENSE.txt'
excludes += '/META-INF/license.txt'
excludes += '/META-INF/NOTICE'
excludes += '/META-INF/NOTICE.txt'
excludes += '/META-INF/notice.txt'
excludes += '/META-INF/ASL2.0'
excludes += '/META-INF/*.kotlin_module'
}
}
// Split APKs by ABI for smaller downloads (optional)
splits {
abi {
enable true
reset()
include 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
universalApk true // Generate universal APK too
}
}
}
dependencies {
// Core Android
implementation 'androidx.core:core-ktx:1.12.0'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.2'
implementation 'androidx.activity:activity-compose:1.8.1'
implementation 'androidx.work:work-runtime-ktx:2.9.0'
// Compose
implementation platform('androidx.compose:compose-bom:2023.10.01')
implementation 'androidx.compose.ui:ui'
implementation 'androidx.compose.ui:ui-graphics'
implementation 'androidx.compose.ui:ui-tooling-preview'
implementation 'androidx.compose.material3:material3'
// Coroutines
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3'
// CameraX for camera access
def camerax_version = "1.3.0"
implementation "androidx.camera:camera-core:$camerax_version"
implementation "androidx.camera:camera-camera2:$camerax_version"
implementation "androidx.camera:camera-lifecycle:$camerax_version"
implementation "androidx.camera:camera-view:$camerax_version"
// TensorFlow Lite for ML inference
implementation 'org.tensorflow:tensorflow-lite:2.14.0'
implementation 'org.tensorflow:tensorflow-lite-gpu:2.14.0'
implementation 'org.tensorflow:tensorflow-lite-support:0.4.4'
// ML Kit for face detection
implementation 'com.google.mlkit:face-detection:16.1.5'
// Permissions handling
implementation 'com.google.accompanist:accompanist-permissions:0.32.0'
// Preferences DataStore
implementation 'androidx.datastore:datastore-preferences:1.0.0'
// JSON serialization
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0'
// Encryption
implementation 'androidx.security:security-crypto:1.1.0-alpha06'
// Multidex
implementation 'androidx.multidex:multidex:2.0.1'
// Testing
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
androidTestImplementation platform('androidx.compose:compose-bom:2023.10.01')
androidTestImplementation 'androidx.compose.ui:ui-test-junit4'
// Debug
debugImplementation 'androidx.compose.ui:ui-tooling'
debugImplementation 'androidx.compose.ui:ui-test-manifest'
}
// Task to generate universal APK
android.applicationVariants.all { variant ->
if (variant.name == "fullRelease") {
variant.outputs.all { output ->
outputFileName = "MoodChroma-${variant.versionName}-${variant.buildType.name}.apk"
}
}
}
// Build instructions task
tasks.register('buildPortableApk') {
group = 'build'
description = 'Build portable APK for sideloading'
dependsOn 'assembleFullRelease'
doLast {
println """
===============================================
MoodChroma Portable APK Built Successfully!
===============================================
APK Location:
app/build/outputs/apk/full/release/
Installation Instructions:
1. Enable "Install from Unknown Sources" on your Android device
2. Transfer the APK to your device
3. Tap the APK file to install
4. Grant requested permissions
5. The app will auto-start on device boot
Features:
✓ Self-launching on boot
✓ Runs in background
✓ Persistent foreground service
✓ Auto-restarts if killed
✓ Works without Google Play Services
===============================================
"""
}
}
此操作无法撤销
这将删除所有日志条目,包括示例记录。在您添加新的记录之前,您的日志将保持为空。