init
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
class AppDefaults {
|
||||
const AppDefaults._();
|
||||
|
||||
static const int singletonId = 1;
|
||||
|
||||
static const int defaultFreeTrialLimit = 2;
|
||||
static const int nicknameRandomMin = 1000;
|
||||
static const int nicknameRandomMax = 9999;
|
||||
|
||||
static const String defaultAvatarAssetPath =
|
||||
'assets/images/avatar_default.png';
|
||||
|
||||
static const String localDatabaseName = 'arcx_local_first_db';
|
||||
static const String avatarFileName = 'avatar.png';
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user