Revamp stage one - individual account and account setup fixed
This commit is contained in:
@@ -15,8 +15,8 @@ class DioClient {
|
||||
|
||||
DioClient._internal()
|
||||
: dio = Dio(BaseOptions(
|
||||
baseUrl: 'https://app.technobeesolutions.in/api/kifi-v2',
|
||||
//baseUrl: 'http://192.168.0.104:8080/api/kifi-v2', // Local Mac IP for physical device testing
|
||||
//baseUrl: 'https://app.technobeesolutions.in/api/kifi-v2',
|
||||
baseUrl: 'http://192.168.0.104:8080/api/kifi-v2', // Local Mac IP for physical device testing
|
||||
connectTimeout: const Duration(seconds: 10),
|
||||
receiveTimeout: const Duration(seconds: 10),
|
||||
)),
|
||||
|
||||
@@ -35,4 +35,8 @@ class CryptoService {
|
||||
}
|
||||
|
||||
bool get isInitialized => _publicKey != null;
|
||||
|
||||
void clearKey() {
|
||||
_publicKey = null;
|
||||
}
|
||||
}
|
||||
|
||||
21
kifi-app/lib/core/utils/masking_utils.dart
Normal file
21
kifi-app/lib/core/utils/masking_utils.dart
Normal file
@@ -0,0 +1,21 @@
|
||||
class MaskingUtils {
|
||||
static String maskMobile(String mobile) {
|
||||
if (mobile.length < 4) return mobile;
|
||||
return 'XXXXXX${mobile.substring(mobile.length - 4)}';
|
||||
}
|
||||
|
||||
static String maskPan(String pan) {
|
||||
if (pan.length < 4) return pan;
|
||||
return '${pan.substring(0, 2)}XXXXXX${pan.substring(pan.length - 2)}';
|
||||
}
|
||||
|
||||
static String maskGst(String gst) {
|
||||
if (gst.length < 4) return gst;
|
||||
return '${gst.substring(0, 2)}XXXXXXXXXX${gst.substring(gst.length - 3)}';
|
||||
}
|
||||
|
||||
static String maskMsme(String msme) {
|
||||
if (msme.length < 4) return msme;
|
||||
return '${msme.substring(0, 4)}XXXX${msme.substring(msme.length - 4)}';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user