feat: Remove .env file for AI Scribe
It was used at the beginning for configuration purpose but now we have the JMAP capability, no need anymore.
This commit is contained in:
@@ -23,8 +23,6 @@ mixin AIScribeInComposerMixin {
|
||||
AccountId? get accountId;
|
||||
|
||||
bool get isAIScribeAvailable {
|
||||
if (!AIConfig.isAiEnabled) return false;
|
||||
|
||||
final currentSession = session;
|
||||
final currentAccountId = accountId;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"@@last_modified": "2025-12-10T10:22:35.345340",
|
||||
"@@last_modified": "2025-12-15T14:32:52.563522",
|
||||
"initializing_data": "Initializing data...",
|
||||
"@initializing_data": {
|
||||
"type": "text",
|
||||
|
||||
@@ -8,4 +8,3 @@ export 'scribe/ai/presentation/model/ai_action.dart';
|
||||
export 'scribe/ai/presentation/model/ai_scribe_menu_action.dart';
|
||||
export 'scribe/ai/data/repository/ai_repository_impl.dart';
|
||||
export 'scribe/ai/data/datasource/ai_datasource.dart';
|
||||
export 'scribe/ai/data/config/ai_config.dart';
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
import 'package:flutter_dotenv/flutter_dotenv.dart';
|
||||
|
||||
class AIConfig {
|
||||
const AIConfig._();
|
||||
|
||||
static bool get isAiEnabled => dotenv.get('AI_ENABLED', fallback: 'false') == 'true';
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"@@last_modified": "2025-12-10T10:22:36.990738",
|
||||
"@@last_modified": "2025-12-15T14:32:54.358333",
|
||||
"categoryCorrectGrammar": "Correct grammar",
|
||||
"@categoryCorrectGrammar": {
|
||||
"type": "text",
|
||||
|
||||
@@ -381,14 +381,6 @@ packages:
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.2.0"
|
||||
flutter_dotenv:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: flutter_dotenv
|
||||
sha256: d9283d92059a22e9834bc0a31336658ffba77089fb6f3cc36751f1fc7c6661a3
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "5.0.2"
|
||||
flutter_image_compress:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
||||
@@ -22,8 +22,6 @@ dependencies:
|
||||
|
||||
dio: 5.0.0
|
||||
|
||||
flutter_dotenv: 5.0.2
|
||||
|
||||
get: 4.6.6
|
||||
|
||||
pointer_interceptor: 0.10.1+2
|
||||
|
||||
@@ -8,7 +8,6 @@ import 'package:core/utils/application_manager.dart';
|
||||
import 'package:core/utils/platform_info.dart';
|
||||
import 'package:dartz/dartz.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_dotenv/flutter_dotenv.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:html_editor_enhanced/html_editor.dart';
|
||||
@@ -241,11 +240,6 @@ void main() {
|
||||
setUp(() {
|
||||
Get.testMode = true;
|
||||
|
||||
// Initialize DotEnv for testing
|
||||
dotenv.testLoad(mergeWith: {
|
||||
'AI_ENABLED': 'false',
|
||||
});
|
||||
|
||||
// Mock base controller
|
||||
mockCachingManager = MockCachingManager();
|
||||
mockLanguageCacheManager = MockLanguageCacheManager();
|
||||
|
||||
Reference in New Issue
Block a user