refactor: デッドコード削除 — analyzeSakeHybrid/analyzeSakeText

- gemini_service.dart: 未使用の analyzeSakeHybrid / analyzeSakeText を削除
  (どこからも呼ばれておらず、画像直接解析 analyzeSakeLabel のみ使用中)
- main.dart: isProVersion を「現在未使用」コメントに更新
- version: 1.0.28+35

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ponshu Developer 2026-04-11 09:19:03 +09:00
parent c7168e831c
commit 675e67e3c1
3 changed files with 3 additions and 85 deletions

View File

@ -10,13 +10,8 @@ import 'screens/main_screen.dart';
import 'screens/license_screen.dart';
import 'services/migration_service.dart';
/// Pro版かLite版かを判定するビルド時フラグ
///
/// :
/// - Pro版: flutter build apk --release --dart-define=IS_PRO_VERSION=true
/// - Lite版: flutter build apk --release --dart-define=IS_PRO_VERSION=false
///
/// falseLite版 ponshu_room_liteディレクトリのため
/// Pro解放フラグ使 isProProviderで管理
/// isProProvider (license_provider.dart) 使
const bool isProVersion = bool.fromEnvironment('IS_PRO_VERSION', defaultValue: false);
///

View File

@ -57,83 +57,6 @@ class GeminiService {
);
}
/// OCRテキストと画像のハイブリッド解析
Future<SakeAnalysisResult> analyzeSakeHybrid(String extractedText, List<String> imagePaths) async {
final prompt = '''
OCR抽出テキストは参考情報です
OCRテキストはあくまで補助的なヒントとして扱い
OCRテキスト:
"""
$extractedText
"""
JSON形式で情報を抽出してください
{
"name": "銘柄名",
"brand": "蔵元名",
"prefecture": "都道府県名",
"type": "特定名称(純米大吟醸など)",
"description": "味や特徴の魅力的な説明文(100文字程度)",
"catchCopy": "短いキャッチコピー(20文字以内)",
"confidenceScore": 80,
"flavorTags": ["フルーティー", "辛口", "華やか"],
"tasteStats": {"aroma":3,"sweetness":3,"acidity":3,"bitterness":3,"body":3},
"alcoholContent": 15.0,
"polishingRatio": 50,
"sakeMeterValue": 3.0,
"riceVariety": "山田錦",
"yeast": "きょうかい9号",
"manufacturingYearMonth": "2023.10"
}
:
- "name" "brand"****使
- tasteStats1-53
- alcoholContent, polishingRatio, sakeMeterValue
- null
''';
return _callProxyApi(imagePaths: imagePaths, customPrompt: prompt);
}
/// ()
Future<SakeAnalysisResult> analyzeSakeText(String extractedText) async {
final prompt = '''
OCRで抽出された日本酒ラベルのテキスト情報を分析してください
"name""brand"使
:
"""
$extractedText
"""
JSON形式で返してください
{
"name": "銘柄名",
"brand": "蔵元名",
"prefecture": "都道府県名",
"type": "特定名称",
"description": "特徴(100文字)",
"catchCopy": "キャッチコピー(20文字)",
"confidenceScore": 0-100,
"flavorTags": ["タグ"],
"tasteStats": {"aroma":3,"sweetness":3,"acidity":3,"bitterness":3,"body":3},
"alcoholContent": 15.5,
"polishingRatio": 50,
"sakeMeterValue": 3.0,
"riceVariety": "山田錦",
"yeast": "きょうかい9号",
"manufacturingYearMonth": "2023.10"
}
''';
return _callProxyApi(imagePaths: [], customPrompt: prompt);
}
/// : ProxyへのAPIコール
Future<SakeAnalysisResult> _callProxyApi({
required List<String> imagePaths,

View File

@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.0.27+34
version: 1.0.28+35
environment:
sdk: ^3.10.1