fix(security): 릴리즈 빌드에서 치트 메뉴 완전 차단
- cheatsEnabled getter에 kDebugMode 가드 추가 - 세이브 파일에 cheatsEnabled=true가 저장되어도 릴리즈에서 무조건 false - tree-shaking으로 릴리즈 바이너리에서 치트 코드 완전 제거
This commit is contained in:
@@ -94,7 +94,7 @@ class GameSessionController extends ChangeNotifier {
|
|||||||
GameState? get state => _state;
|
GameState? get state => _state;
|
||||||
String? get error => _error;
|
String? get error => _error;
|
||||||
bool get isRunning => _status == GameSessionStatus.running;
|
bool get isRunning => _status == GameSessionStatus.running;
|
||||||
bool get cheatsEnabled => _cheatsEnabled;
|
bool get cheatsEnabled => kDebugMode && _cheatsEnabled;
|
||||||
|
|
||||||
/// 자동 부활 활성화 여부
|
/// 자동 부활 활성화 여부
|
||||||
bool get autoResurrect => _resurrectionManager.autoResurrect;
|
bool get autoResurrect => _resurrectionManager.autoResurrect;
|
||||||
|
|||||||
Reference in New Issue
Block a user