feat: supported changing data location on Android (#2131)

This commit is contained in:
Huang Xin
2025-09-26 23:32:16 +08:00
committed by GitHub
parent 3fc4c05e50
commit e1deff341d
5 changed files with 68 additions and 16 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ export abstract class BaseAppService implements AppService {
hasHaptics = false;
hasUpdater = false;
hasOrientationLock = false;
canCustomRootDir = false;
canCustomizeRootDir = false;
distChannel = 'readest';
protected abstract fs: FileSystem;
@@ -341,8 +341,9 @@ export class NativeAppService extends BaseAppService {
// orientation lock is not supported on iPad
override hasOrientationLock =
(OS_TYPE === 'ios' && getOSPlatform() === 'ios') || OS_TYPE === 'android';
override canCustomRootDir = OS_TYPE !== 'ios';
override canCustomizeRootDir = OS_TYPE !== 'ios';
override distChannel = process.env['NEXT_PUBLIC_DIST_CHANNEL'] || 'readest';
private execDir?: string = undefined;
override async init() {