Update codebase
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
import 'dart:developer' as developer;
|
||||
|
||||
import 'package:flutter/foundation.dart' show kDebugMode;
|
||||
|
||||
class Log {
|
||||
Log._();
|
||||
|
||||
/// ⚠️ يُطبع في وضع التطوير فقط.
|
||||
/// `developer.log` لا يُحذف في نسخة الإصدار — يذهب إلى os_log على iOS
|
||||
/// و logcat على أندرويد، وكان يسرّب الـ JWT وسر الـ HMAC وأرقام الهواتف
|
||||
/// وردود الـ API كاملة إلى سجلّ النظام على جهاز المستخدم.
|
||||
static void print(String value, {StackTrace? stackTrace}) {
|
||||
if (!kDebugMode) return;
|
||||
developer.log(value, name: 'LOG', stackTrace: stackTrace);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user