8bc50e07ef
- scripts/flutter-env.sh: toolchain PATH/JAVA_HOME/ANDROID_HOME + pub 镜像 env - apps/mobile: flutter create (com.photolive.photo_live, android+ios) - Android minSdk 24 / targetSdk 36;INTERNET 权限(main manifest,debug+release) - iOS Info.plist:本地网络 ATS 例外 + 相册/相机用途说明(zh+en) - 依赖接入:riverpod / drift(+sqlite3_flutter_libs) / dio / secure_storage / image_picker / camera / qr_flutter / path_provider / path / intl - l10n:l10n.yaml + app_zh/app_en arb(20 键),gen-l10n(zh 模板,非空 getter) - 基线:Material 3 主题、/login→/home 命名路由、底部导航(相册/队列/设置桩)、 locale provider 脚手架(Task 10 完成切换) - flutter analyze 零问题;widget 测试通过;debug apk 构建成功 (MuMu 冒烟因宿主 commit 内存耗尽未完成,Task 2 重试) Co-Authored-By: Claude Code <noreply@anthropic.com>
46 lines
1.4 KiB
Kotlin
46 lines
1.4 KiB
Kotlin
plugins {
|
||
id("com.android.application")
|
||
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
|
||
id("dev.flutter.flutter-gradle-plugin")
|
||
}
|
||
|
||
android {
|
||
namespace = "com.photolive.photo_live"
|
||
compileSdk = flutter.compileSdkVersion
|
||
ndkVersion = flutter.ndkVersion
|
||
|
||
compileOptions {
|
||
sourceCompatibility = JavaVersion.VERSION_17
|
||
targetCompatibility = JavaVersion.VERSION_17
|
||
}
|
||
|
||
defaultConfig {
|
||
applicationId = "com.photolive.photo_live"
|
||
// P3 约定:minSdk 24(Flutter 默认下限);targetSdk 36(Android 16)。
|
||
// Task 7 原生桥接:targetSdk>=34 走 WorkManager expedited + dataSync 前台服务;
|
||
// 若需降级(厂商兼容),路径 = 普通 WorkManager + 前台服务通知(见技术方案 §6.3)。
|
||
minSdk = 24
|
||
targetSdk = 36
|
||
versionCode = flutter.versionCode
|
||
versionName = flutter.versionName
|
||
}
|
||
|
||
buildTypes {
|
||
release {
|
||
// TODO: Add your own signing config for the release build.
|
||
// Signing with the debug keys for now, so `flutter run --release` works.
|
||
signingConfig = signingConfigs.getByName("debug")
|
||
}
|
||
}
|
||
}
|
||
|
||
kotlin {
|
||
compilerOptions {
|
||
jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
|
||
}
|
||
}
|
||
|
||
flutter {
|
||
source = "../.."
|
||
}
|