Files
arcx-app/lib/core/providers/app_providers.dart
T
2026-08-08 10:57:54 +08:00

16 lines
654 B
Dart

import 'package:flutter/foundation.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:isar/isar.dart';
import '../../data/local/app_database.dart';
/// Exposes the opened Isar instance. Throws if [AppDatabase.open] has not run.
final isarProvider = FutureProvider<Isar>((ref) => AppDatabase.instance.open());
/// Apple IAP product identifier for the one-time unlock.
/// Configure the matching product in App Store Connect when publishing.
const String kUnlockProductId = 'com.shelingxingqiu.arcx.unlock';
/// Whether the build is a debug build (used to surface a dev-only unlock).
final bool kIsDebugBuild = kDebugMode;