diff --git a/packages/stadata_flutter_sdk/lib/src/base/usecase.dart b/packages/stadata_flutter_sdk/lib/src/base/usecase.dart index 01e88a72..ced23d75 100644 --- a/packages/stadata_flutter_sdk/lib/src/base/usecase.dart +++ b/packages/stadata_flutter_sdk/lib/src/base/usecase.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; abstract class UseCase { diff --git a/packages/stadata_flutter_sdk/lib/src/core/constants/constants.dart b/packages/stadata_flutter_sdk/lib/src/core/constants/constants.dart index d618cb5b..c18e2c70 100644 --- a/packages/stadata_flutter_sdk/lib/src/core/constants/constants.dart +++ b/packages/stadata_flutter_sdk/lib/src/core/constants/constants.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - class StorageConstant { /// Key identifier for api key in the local storage static const apiKey = 'api_key'; diff --git a/packages/stadata_flutter_sdk/lib/src/core/di/injector.dart b/packages/stadata_flutter_sdk/lib/src/core/di/injector.dart index 448a7184..d274fb9b 100644 --- a/packages/stadata_flutter_sdk/lib/src/core/di/injector.dart +++ b/packages/stadata_flutter_sdk/lib/src/core/di/injector.dart @@ -1,4 +1,4 @@ -// ignore_for_file: use_if_null_to_convert_nulls_to_bools, avoid_dynamic_calls, public_member_api_docs, lines_longer_than_80_chars +// ignore_for_file: use_if_null_to_convert_nulls_to_bools import 'package:logger/logger.dart'; import 'package:stadata_flutter_sdk/src/config/api_config.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/core/di/module_injector.dart b/packages/stadata_flutter_sdk/lib/src/core/di/module_injector.dart index c7977fc8..a5faf249 100644 --- a/packages/stadata_flutter_sdk/lib/src/core/di/module_injector.dart +++ b/packages/stadata_flutter_sdk/lib/src/core/di/module_injector.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/di/injector.dart'; abstract class ModuleInjector { diff --git a/packages/stadata_flutter_sdk/lib/src/core/di/register_module.dart b/packages/stadata_flutter_sdk/lib/src/core/di/register_module.dart index 63214ae9..821f065e 100644 --- a/packages/stadata_flutter_sdk/lib/src/core/di/register_module.dart +++ b/packages/stadata_flutter_sdk/lib/src/core/di/register_module.dart @@ -1,12 +1,8 @@ -// ignore_for_file: public_member_api_docs - import 'package:logger/logger.dart'; import 'package:stadata_flutter_sdk/src/config/config.dart'; +import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/core/log/filter/release_log_filter.dart'; import 'package:stadata_flutter_sdk/src/core/log/printer/simple_log_printer.dart'; -import 'package:stadata_flutter_sdk/src/core/network/http/http_client.dart'; -import 'package:stadata_flutter_sdk/src/core/network/http/http_setting.dart'; -import 'package:stadata_flutter_sdk/src/core/network/http/interceptors/authentication_interceptor.dart'; abstract class RegisterModule { Logger get logger => Logger( diff --git a/packages/stadata_flutter_sdk/lib/src/core/exceptions/exceptions.dart b/packages/stadata_flutter_sdk/lib/src/core/exceptions/exceptions.dart index 78de5444..cc01353b 100644 --- a/packages/stadata_flutter_sdk/lib/src/core/exceptions/exceptions.dart +++ b/packages/stadata_flutter_sdk/lib/src/core/exceptions/exceptions.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - class StadataException implements Exception { const StadataException({required this.message}); diff --git a/packages/stadata_flutter_sdk/lib/src/core/failures/failures.dart b/packages/stadata_flutter_sdk/lib/src/core/failures/failures.dart index 485cd056..7f1f58bc 100644 --- a/packages/stadata_flutter_sdk/lib/src/core/failures/failures.dart +++ b/packages/stadata_flutter_sdk/lib/src/core/failures/failures.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; sealed class Failure extends BaseEntity { diff --git a/packages/stadata_flutter_sdk/lib/src/core/log/filter/release_log_filter.dart b/packages/stadata_flutter_sdk/lib/src/core/log/filter/release_log_filter.dart index 03a13af6..de7d43d0 100644 --- a/packages/stadata_flutter_sdk/lib/src/core/log/filter/release_log_filter.dart +++ b/packages/stadata_flutter_sdk/lib/src/core/log/filter/release_log_filter.dart @@ -1,8 +1,4 @@ -// Flutter imports: -// ignore_for_file: public_member_api_docs - import 'package:flutter/foundation.dart'; -// Package imports: import 'package:logger/logger.dart'; class ReleaseLogFilter extends LogFilter { diff --git a/packages/stadata_flutter_sdk/lib/src/core/log/log.dart b/packages/stadata_flutter_sdk/lib/src/core/log/log.dart index 781767cf..61c41071 100644 --- a/packages/stadata_flutter_sdk/lib/src/core/log/log.dart +++ b/packages/stadata_flutter_sdk/lib/src/core/log/log.dart @@ -1,6 +1,3 @@ -// Package imports: -// ignore_for_file: public_member_api_docs - import 'package:logger/logger.dart'; import 'package:stadata_flutter_sdk/src/core/di/injector.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/core/log/printer/simple_log_printer.dart b/packages/stadata_flutter_sdk/lib/src/core/log/printer/simple_log_printer.dart index f85ba38a..39efa9f1 100644 --- a/packages/stadata_flutter_sdk/lib/src/core/log/printer/simple_log_printer.dart +++ b/packages/stadata_flutter_sdk/lib/src/core/log/printer/simple_log_printer.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:logger/logger.dart'; class SimpleLogPrinter extends LogPrinter { diff --git a/packages/stadata_flutter_sdk/lib/src/core/network/api_endpoint.dart b/packages/stadata_flutter_sdk/lib/src/core/network/api_endpoint.dart index b59f7954..c0f8a61e 100644 --- a/packages/stadata_flutter_sdk/lib/src/core/network/api_endpoint.dart +++ b/packages/stadata_flutter_sdk/lib/src/core/network/api_endpoint.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/stadata_flutter_sdk.dart'; class ApiEndpoint { diff --git a/packages/stadata_flutter_sdk/lib/src/core/network/http/http_client.dart b/packages/stadata_flutter_sdk/lib/src/core/network/http/http_client.dart index c0566e92..cf1a92ac 100644 --- a/packages/stadata_flutter_sdk/lib/src/core/network/http/http_client.dart +++ b/packages/stadata_flutter_sdk/lib/src/core/network/http/http_client.dart @@ -1,12 +1,6 @@ -// ignore_for_file: public_member_api_docs - -// Dart imports: import 'dart:developer' as dev; import 'dart:math' as math; -// Project imports: - -// Package imports: import 'package:dio/dio.dart'; import 'package:dio/io.dart'; import 'package:dio_smart_retry/dio_smart_retry.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/core/network/http/http_module.dart b/packages/stadata_flutter_sdk/lib/src/core/network/http/http_module.dart index 2b9be3f4..f214b9a7 100644 --- a/packages/stadata_flutter_sdk/lib/src/core/network/http/http_module.dart +++ b/packages/stadata_flutter_sdk/lib/src/core/network/http/http_module.dart @@ -1,4 +1,4 @@ -// ignore_for_file: public_member_api_docs, inference_failure_on_function_invocation, lines_longer_than_80_chars +// ignore_for_file: inference_failure_on_function_invocation import 'dart:async'; import 'dart:convert'; diff --git a/packages/stadata_flutter_sdk/lib/src/core/network/http/http_setting.dart b/packages/stadata_flutter_sdk/lib/src/core/network/http/http_setting.dart index fd02cfb5..86f1fab6 100644 --- a/packages/stadata_flutter_sdk/lib/src/core/network/http/http_setting.dart +++ b/packages/stadata_flutter_sdk/lib/src/core/network/http/http_setting.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:dio/dio.dart'; class HttpSetting { diff --git a/packages/stadata_flutter_sdk/lib/src/core/network/http/interceptors/authentication_interceptor.dart b/packages/stadata_flutter_sdk/lib/src/core/network/http/interceptors/authentication_interceptor.dart index a8673cc7..3877935c 100644 --- a/packages/stadata_flutter_sdk/lib/src/core/network/http/interceptors/authentication_interceptor.dart +++ b/packages/stadata_flutter_sdk/lib/src/core/network/http/interceptors/authentication_interceptor.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:dio/dio.dart'; import 'package:stadata_flutter_sdk/src/config/config.dart'; import 'package:stadata_flutter_sdk/src/core/core.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/core/network/http/interceptors/logging_interceptor.dart b/packages/stadata_flutter_sdk/lib/src/core/network/http/interceptors/logging_interceptor.dart index 4f40d287..724bbefa 100644 --- a/packages/stadata_flutter_sdk/lib/src/core/network/http/interceptors/logging_interceptor.dart +++ b/packages/stadata_flutter_sdk/lib/src/core/network/http/interceptors/logging_interceptor.dart @@ -1,4 +1,4 @@ -// ignore_for_file: public_member_api_docs, cascade_invocations +// ignore_for_file: cascade_invocations import 'package:dio/dio.dart'; import 'package:stadata_flutter_sdk/src/core/di/injector.dart'; import 'package:stadata_flutter_sdk/src/core/log/log.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/core/network/http/modules/stadata_http_module.dart b/packages/stadata_flutter_sdk/lib/src/core/network/http/modules/stadata_http_module.dart index cf9970f5..77a8cf03 100644 --- a/packages/stadata_flutter_sdk/lib/src/core/network/http/modules/stadata_http_module.dart +++ b/packages/stadata_flutter_sdk/lib/src/core/network/http/modules/stadata_http_module.dart @@ -1,10 +1,4 @@ -// Package imports: - -// ignore_for_file: public_member_api_docs - -import 'package:stadata_flutter_sdk/src/core/di/injector.dart'; -import 'package:stadata_flutter_sdk/src/core/network/http/http_client.dart'; -import 'package:stadata_flutter_sdk/src/core/network/http/http_module.dart'; +import 'package:stadata_flutter_sdk/src/core/core.dart'; class StadataHttpModule extends HttpModule { StadataHttpModule() : super(injector.get()); diff --git a/packages/stadata_flutter_sdk/lib/src/core/network/http/modules/stadata_list_http_module.dart b/packages/stadata_flutter_sdk/lib/src/core/network/http/modules/stadata_list_http_module.dart index 8bc80669..de717b40 100644 --- a/packages/stadata_flutter_sdk/lib/src/core/network/http/modules/stadata_list_http_module.dart +++ b/packages/stadata_flutter_sdk/lib/src/core/network/http/modules/stadata_list_http_module.dart @@ -1,10 +1,4 @@ -// Package imports: - -// ignore_for_file: public_member_api_docs - -import 'package:stadata_flutter_sdk/src/core/di/injector.dart'; -import 'package:stadata_flutter_sdk/src/core/network/http/http_client.dart'; -import 'package:stadata_flutter_sdk/src/core/network/http/http_module.dart'; +import 'package:stadata_flutter_sdk/src/core/core.dart'; class StadataListHttpModule extends HttpModule { StadataListHttpModule() diff --git a/packages/stadata_flutter_sdk/lib/src/core/network/http/modules/stadata_view_http_module.dart b/packages/stadata_flutter_sdk/lib/src/core/network/http/modules/stadata_view_http_module.dart index 898970b7..742d289b 100644 --- a/packages/stadata_flutter_sdk/lib/src/core/network/http/modules/stadata_view_http_module.dart +++ b/packages/stadata_flutter_sdk/lib/src/core/network/http/modules/stadata_view_http_module.dart @@ -1,10 +1,4 @@ -// Package imports: - -// ignore_for_file: public_member_api_docs - -import 'package:stadata_flutter_sdk/src/core/di/injector.dart'; -import 'package:stadata_flutter_sdk/src/core/network/http/http_client.dart'; -import 'package:stadata_flutter_sdk/src/core/network/http/http_module.dart'; +import 'package:stadata_flutter_sdk/src/core/core.dart'; class StadataViewHttpModule extends HttpModule { StadataViewHttpModule() diff --git a/packages/stadata_flutter_sdk/lib/src/core/storage/local_storage.dart b/packages/stadata_flutter_sdk/lib/src/core/storage/local_storage.dart index d9e3010a..902d485b 100644 --- a/packages/stadata_flutter_sdk/lib/src/core/storage/local_storage.dart +++ b/packages/stadata_flutter_sdk/lib/src/core/storage/local_storage.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - abstract class LocalStorage { Future get(String key); Future save(String key, dynamic value); diff --git a/packages/stadata_flutter_sdk/lib/src/core/typedef/typedef.dart b/packages/stadata_flutter_sdk/lib/src/core/typedef/typedef.dart index 05f6319b..a24af03b 100644 --- a/packages/stadata_flutter_sdk/lib/src/core/typedef/typedef.dart +++ b/packages/stadata_flutter_sdk/lib/src/core/typedef/typedef.dart @@ -1,4 +1,2 @@ -// ignore_for_file: public_member_api_docs - typedef JSON = Map; typedef InstanceCreator = T Function(); diff --git a/packages/stadata_flutter_sdk/lib/src/features/domains/data/datasources/domain_remote_data_source.dart b/packages/stadata_flutter_sdk/lib/src/features/domains/data/datasources/domain_remote_data_source.dart index 09a3ded7..48c7bfe5 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/domains/data/datasources/domain_remote_data_source.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/domains/data/datasources/domain_remote_data_source.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/domains/data/models/domain_model.dart b/packages/stadata_flutter_sdk/lib/src/features/domains/data/models/domain_model.dart index 9e405cf2..60113f76 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/domains/data/models/domain_model.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/domains/data/models/domain_model.dart @@ -1,4 +1,3 @@ -// ignore_for_file: public_member_api_docs import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/domains/domain/repositories/domain_repository.dart b/packages/stadata_flutter_sdk/lib/src/features/domains/domain/repositories/domain_repository.dart index 5fd9c27c..456d08d2 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/domains/domain/repositories/domain_repository.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/domains/domain/repositories/domain_repository.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/domains/domain/usecases/get_domains.dart b/packages/stadata_flutter_sdk/lib/src/features/domains/domain/usecases/get_domains.dart index eb9472ce..f550c4b9 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/domains/domain/usecases/get_domains.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/domains/domain/usecases/get_domains.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/base/usecase.dart'; import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/infographics/data/datasources/infographic_remote_data_source.dart b/packages/stadata_flutter_sdk/lib/src/features/infographics/data/datasources/infographic_remote_data_source.dart index 0284a318..3ad25227 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/infographics/data/datasources/infographic_remote_data_source.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/infographics/data/datasources/infographic_remote_data_source.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/infographics/data/models/infographic_model.dart b/packages/stadata_flutter_sdk/lib/src/features/infographics/data/models/infographic_model.dart index 268f19ad..baf0194c 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/infographics/data/models/infographic_model.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/infographics/data/models/infographic_model.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:flutter/material.dart'; import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/infographics/domain/repositories/infographic_repository.dart b/packages/stadata_flutter_sdk/lib/src/features/infographics/domain/repositories/infographic_repository.dart index 17093a76..7d8a5d39 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/infographics/domain/repositories/infographic_repository.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/infographics/domain/repositories/infographic_repository.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/infographics/domain/usecases/get_all_infographics.dart b/packages/stadata_flutter_sdk/lib/src/features/infographics/domain/usecases/get_all_infographics.dart index f5db1ab0..b4d1029c 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/infographics/domain/usecases/get_all_infographics.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/infographics/domain/usecases/get_all_infographics.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/base/usecase.dart'; import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/news/data/datasources/news_remote_data_source.dart b/packages/stadata_flutter_sdk/lib/src/features/news/data/datasources/news_remote_data_source.dart index c47e9e34..4d6b1ab0 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/news/data/datasources/news_remote_data_source.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/news/data/datasources/news_remote_data_source.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/news/data/models/news_model.dart b/packages/stadata_flutter_sdk/lib/src/features/news/data/models/news_model.dart index b49f08c8..4fb0c4b3 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/news/data/models/news_model.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/news/data/models/news_model.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/typedef/typedef.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/news/domain/repositories/news_repository.dart b/packages/stadata_flutter_sdk/lib/src/features/news/domain/repositories/news_repository.dart index 90917302..523b3707 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/news/domain/repositories/news_repository.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/news/domain/repositories/news_repository.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/news/domain/usecases/get_all_news.dart b/packages/stadata_flutter_sdk/lib/src/features/news/domain/usecases/get_all_news.dart index ee198dce..a3f89994 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/news/domain/usecases/get_all_news.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/news/domain/usecases/get_all_news.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/base/usecase.dart'; import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/news/domain/usecases/get_detail_news.dart b/packages/stadata_flutter_sdk/lib/src/features/news/domain/usecases/get_detail_news.dart index a517af8f..659a68d0 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/news/domain/usecases/get_detail_news.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/news/domain/usecases/get_detail_news.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/base/usecase.dart'; import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/news_categories/data/datasources/news_category_remote_data_source.dart b/packages/stadata_flutter_sdk/lib/src/features/news_categories/data/datasources/news_category_remote_data_source.dart index 76479cf8..1c387444 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/news_categories/data/datasources/news_category_remote_data_source.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/news_categories/data/datasources/news_category_remote_data_source.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/news_categories/data/models/news_category_model.dart b/packages/stadata_flutter_sdk/lib/src/features/news_categories/data/models/news_category_model.dart index 9865506f..bdf09e7b 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/news_categories/data/models/news_category_model.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/news_categories/data/models/news_category_model.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/news_categories/domain/repositories/news_category_repository.dart b/packages/stadata_flutter_sdk/lib/src/features/news_categories/domain/repositories/news_category_repository.dart index e418930c..42c799a3 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/news_categories/domain/repositories/news_category_repository.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/news_categories/domain/repositories/news_category_repository.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/news_categories/domain/usecases/get_all_news_categories.dart b/packages/stadata_flutter_sdk/lib/src/features/news_categories/domain/usecases/get_all_news_categories.dart index bef60eab..7f5a3bda 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/news_categories/domain/usecases/get_all_news_categories.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/news_categories/domain/usecases/get_all_news_categories.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/base/usecase.dart'; import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/press_releases/data/converters/abstract_converter.dart b/packages/stadata_flutter_sdk/lib/src/features/press_releases/data/converters/abstract_converter.dart index 82f338e1..e429c625 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/press_releases/data/converters/abstract_converter.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/press_releases/data/converters/abstract_converter.dart @@ -1,19 +1,12 @@ +import 'package:html_unescape/html_unescape_small.dart'; import 'package:stadata_flutter_sdk/src/base/base.dart'; class AbstractConverter extends BaseConverter { const AbstractConverter(); @override - String? fromJson(String? json) => json - ?.replaceAll('"', '"') - .replaceAll('quot;', '"') - .replaceAll(' ', '') - .replaceAll('&', '&') - .replaceAll('<', '<') - .replaceAll('>', '>') - .replaceAll(r'\r', '') - .replaceAll('', '

') - .replaceAll('', '

'); + String? fromJson(String? json) => + json == null ? null : HtmlUnescape().convert(json); @override String? toJson(String? object) => object; diff --git a/packages/stadata_flutter_sdk/lib/src/features/press_releases/data/datasources/press_release_remote_data_source.dart b/packages/stadata_flutter_sdk/lib/src/features/press_releases/data/datasources/press_release_remote_data_source.dart index 2e6161cf..0de513e9 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/press_releases/data/datasources/press_release_remote_data_source.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/press_releases/data/datasources/press_release_remote_data_source.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/press_releases/data/models/press_release_model.dart b/packages/stadata_flutter_sdk/lib/src/features/press_releases/data/models/press_release_model.dart index d4443141..03214b94 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/press_releases/data/models/press_release_model.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/press_releases/data/models/press_release_model.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:flutter/material.dart'; import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/press_releases/domain/repositories/press_release_repository.dart b/packages/stadata_flutter_sdk/lib/src/features/press_releases/domain/repositories/press_release_repository.dart index 5e5bbac2..625c9759 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/press_releases/domain/repositories/press_release_repository.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/press_releases/domain/repositories/press_release_repository.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/press_releases/domain/usecases/get_all_press_releases.dart b/packages/stadata_flutter_sdk/lib/src/features/press_releases/domain/usecases/get_all_press_releases.dart index 12458636..b2b1cbd5 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/press_releases/domain/usecases/get_all_press_releases.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/press_releases/domain/usecases/get_all_press_releases.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/base/usecase.dart'; import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/press_releases/domain/usecases/get_detail_press_release.dart b/packages/stadata_flutter_sdk/lib/src/features/press_releases/domain/usecases/get_detail_press_release.dart index 0d3306af..75aed6a4 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/press_releases/domain/usecases/get_detail_press_release.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/press_releases/domain/usecases/get_detail_press_release.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/base/usecase.dart'; import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/publications/data/datasources/publication_remote_data_source.dart b/packages/stadata_flutter_sdk/lib/src/features/publications/data/datasources/publication_remote_data_source.dart index f6bd6a19..dfe90bf9 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/publications/data/datasources/publication_remote_data_source.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/publications/data/datasources/publication_remote_data_source.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/publications/data/models/publication_model.dart b/packages/stadata_flutter_sdk/lib/src/features/publications/data/models/publication_model.dart index 9435d156..bafeb8c5 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/publications/data/models/publication_model.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/publications/data/models/publication_model.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:flutter/material.dart'; import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/static_tables/data/converters/table_converter.dart b/packages/stadata_flutter_sdk/lib/src/features/static_tables/data/converters/table_converter.dart index e37d42c8..1ff0867c 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/static_tables/data/converters/table_converter.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/static_tables/data/converters/table_converter.dart @@ -1,4 +1,4 @@ -import 'package:html_unescape/html_unescape.dart'; +import 'package:html_unescape/html_unescape_small.dart'; import 'package:stadata_flutter_sdk/src/base/base.dart'; class TableConverter extends BaseConverter { diff --git a/packages/stadata_flutter_sdk/lib/src/features/static_tables/data/datasources/static_table_remote_data_source.dart b/packages/stadata_flutter_sdk/lib/src/features/static_tables/data/datasources/static_table_remote_data_source.dart index 35eb0f64..c426ecbd 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/static_tables/data/datasources/static_table_remote_data_source.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/static_tables/data/datasources/static_table_remote_data_source.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/static_tables/domain/repositories/static_table_repository.dart b/packages/stadata_flutter_sdk/lib/src/features/static_tables/domain/repositories/static_table_repository.dart index b1ae768b..9ba26cdc 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/static_tables/domain/repositories/static_table_repository.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/static_tables/domain/repositories/static_table_repository.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/static_tables/domain/usecases/get_all_static_tables.dart b/packages/stadata_flutter_sdk/lib/src/features/static_tables/domain/usecases/get_all_static_tables.dart index ab9f133b..b89c0b6e 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/static_tables/domain/usecases/get_all_static_tables.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/static_tables/domain/usecases/get_all_static_tables.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/base/usecase.dart'; import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/static_tables/domain/usecases/get_detail_static_table.dart b/packages/stadata_flutter_sdk/lib/src/features/static_tables/domain/usecases/get_detail_static_table.dart index 3a7e69f7..77608808 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/static_tables/domain/usecases/get_detail_static_table.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/static_tables/domain/usecases/get_detail_static_table.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/base/usecase.dart'; import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/strategic_indicators/data/datasources/strategic_indicator_remote_data_source.dart b/packages/stadata_flutter_sdk/lib/src/features/strategic_indicators/data/datasources/strategic_indicator_remote_data_source.dart index 16b4556d..c2147ba1 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/strategic_indicators/data/datasources/strategic_indicator_remote_data_source.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/strategic_indicators/data/datasources/strategic_indicator_remote_data_source.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/strategic_indicators/data/models/strategic_indicator_model.dart b/packages/stadata_flutter_sdk/lib/src/features/strategic_indicators/data/models/strategic_indicator_model.dart index fdf06edf..5174c7cd 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/strategic_indicators/data/models/strategic_indicator_model.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/strategic_indicators/data/models/strategic_indicator_model.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:flutter/foundation.dart'; import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/strategic_indicators/domain/repositories/strategic_indicator_repository.dart b/packages/stadata_flutter_sdk/lib/src/features/strategic_indicators/domain/repositories/strategic_indicator_repository.dart index beae26de..916598fb 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/strategic_indicators/domain/repositories/strategic_indicator_repository.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/strategic_indicators/domain/repositories/strategic_indicator_repository.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/strategic_indicators/domain/usecases/get_all_strategic_indicators.dart b/packages/stadata_flutter_sdk/lib/src/features/strategic_indicators/domain/usecases/get_all_strategic_indicators.dart index ea502186..39f3f50b 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/strategic_indicators/domain/usecases/get_all_strategic_indicators.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/strategic_indicators/domain/usecases/get_all_strategic_indicators.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/base/usecase.dart'; import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/subject_categories/data/datasources/subject_category_remote_data_source.dart b/packages/stadata_flutter_sdk/lib/src/features/subject_categories/data/datasources/subject_category_remote_data_source.dart index 7c0c63c3..16c8c915 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/subject_categories/data/datasources/subject_category_remote_data_source.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/subject_categories/data/datasources/subject_category_remote_data_source.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/subject_categories/data/models/subject_category_model.dart b/packages/stadata_flutter_sdk/lib/src/features/subject_categories/data/models/subject_category_model.dart index c8e886f3..867ba294 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/subject_categories/data/models/subject_category_model.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/subject_categories/data/models/subject_category_model.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/subject_categories/domain/repositories/subject_category_repository.dart b/packages/stadata_flutter_sdk/lib/src/features/subject_categories/domain/repositories/subject_category_repository.dart index 561df83d..9673dc22 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/subject_categories/domain/repositories/subject_category_repository.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/subject_categories/domain/repositories/subject_category_repository.dart @@ -1,5 +1,3 @@ -// ignore_for_file: one_member_abstracts, public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/subject_categories/domain/usecases/get_all_subject_categories.dart b/packages/stadata_flutter_sdk/lib/src/features/subject_categories/domain/usecases/get_all_subject_categories.dart index 8e21b82d..ff215b61 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/subject_categories/domain/usecases/get_all_subject_categories.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/subject_categories/domain/usecases/get_all_subject_categories.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/base/usecase.dart'; import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/subjects/data/datasources/subject_remote_data_source.dart b/packages/stadata_flutter_sdk/lib/src/features/subjects/data/datasources/subject_remote_data_source.dart index 1bdf9047..3dc062ec 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/subjects/data/datasources/subject_remote_data_source.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/subjects/data/datasources/subject_remote_data_source.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/subjects/domain/repositories/subject_repository.dart b/packages/stadata_flutter_sdk/lib/src/features/subjects/domain/repositories/subject_repository.dart index 34c64259..a8c62f7b 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/subjects/domain/repositories/subject_repository.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/subjects/domain/repositories/subject_repository.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/subjects/domain/usecases/get_all_subjects.dart b/packages/stadata_flutter_sdk/lib/src/features/subjects/domain/usecases/get_all_subjects.dart index 99332cb0..2a761447 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/subjects/domain/usecases/get_all_subjects.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/subjects/domain/usecases/get_all_subjects.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/base/usecase.dart'; import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/units/data/datasources/unit_data_remote_data_source.dart b/packages/stadata_flutter_sdk/lib/src/features/units/data/datasources/unit_data_remote_data_source.dart index f3c0aa26..4a1a927a 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/units/data/datasources/unit_data_remote_data_source.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/units/data/datasources/unit_data_remote_data_source.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/units/data/models/unit_data_model.dart b/packages/stadata_flutter_sdk/lib/src/features/units/data/models/unit_data_model.dart index 07d09888..aa044315 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/units/data/models/unit_data_model.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/units/data/models/unit_data_model.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/units/domain/repositories/unit_data_repository.dart b/packages/stadata_flutter_sdk/lib/src/features/units/domain/repositories/unit_data_repository.dart index 170707a5..e64a7ba3 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/units/domain/repositories/unit_data_repository.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/units/domain/repositories/unit_data_repository.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/units/domain/usecases/get_all_units.dart b/packages/stadata_flutter_sdk/lib/src/features/units/domain/usecases/get_all_units.dart index 0bd83127..a8813ce1 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/units/domain/usecases/get_all_units.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/units/domain/usecases/get_all_units.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/base/usecase.dart'; import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/variables/data/converters/note_converter.dart b/packages/stadata_flutter_sdk/lib/src/features/variables/data/converters/note_converter.dart index 8f563f0e..9cf4ce8d 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/variables/data/converters/note_converter.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/variables/data/converters/note_converter.dart @@ -1,4 +1,4 @@ -import 'package:html_unescape/html_unescape.dart'; +import 'package:html_unescape/html_unescape_small.dart'; import 'package:stadata_flutter_sdk/src/base/base.dart'; class NoteConverter extends BaseConverter { diff --git a/packages/stadata_flutter_sdk/lib/src/features/variables/data/datasources/variable_remote_data_source.dart b/packages/stadata_flutter_sdk/lib/src/features/variables/data/datasources/variable_remote_data_source.dart index 58f6f1dd..ea45713a 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/variables/data/datasources/variable_remote_data_source.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/variables/data/datasources/variable_remote_data_source.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/variables/data/models/variable_model.dart b/packages/stadata_flutter_sdk/lib/src/features/variables/data/models/variable_model.dart index ed672d37..dedfab34 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/variables/data/models/variable_model.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/variables/data/models/variable_model.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:flutter/material.dart'; import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/variables/domain/repositories/variable_repository.dart b/packages/stadata_flutter_sdk/lib/src/features/variables/domain/repositories/variable_repository.dart index 39c0b90e..73561411 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/variables/domain/repositories/variable_repository.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/variables/domain/repositories/variable_repository.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/variables/domain/usecases/get_all_variables.dart b/packages/stadata_flutter_sdk/lib/src/features/variables/domain/usecases/get_all_variables.dart index 168ed4df..fb8bb50f 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/variables/domain/usecases/get_all_variables.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/variables/domain/usecases/get_all_variables.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/base/usecase.dart'; import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/vertical_variables/data/datasources/vertical_variable_remote_data_source.dart b/packages/stadata_flutter_sdk/lib/src/features/vertical_variables/data/datasources/vertical_variable_remote_data_source.dart index 344ad988..662d1990 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/vertical_variables/data/datasources/vertical_variable_remote_data_source.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/vertical_variables/data/datasources/vertical_variable_remote_data_source.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/vertical_variables/domain/repositories/vertical_variable_repository.dart b/packages/stadata_flutter_sdk/lib/src/features/vertical_variables/domain/repositories/vertical_variable_repository.dart index e172da12..127f7d69 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/vertical_variables/domain/repositories/vertical_variable_repository.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/vertical_variables/domain/repositories/vertical_variable_repository.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/features/vertical_variables/domain/usecases/get_all_vertical_variables.dart b/packages/stadata_flutter_sdk/lib/src/features/vertical_variables/domain/usecases/get_all_vertical_variables.dart index 6598f1dd..c4ca4b5b 100644 --- a/packages/stadata_flutter_sdk/lib/src/features/vertical_variables/domain/usecases/get_all_vertical_variables.dart +++ b/packages/stadata_flutter_sdk/lib/src/features/vertical_variables/domain/usecases/get_all_vertical_variables.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/base/usecase.dart'; import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/list/list.dart b/packages/stadata_flutter_sdk/lib/src/list/list.dart index 74034742..abbc519f 100644 --- a/packages/stadata_flutter_sdk/lib/src/list/list.dart +++ b/packages/stadata_flutter_sdk/lib/src/list/list.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/features/features.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/shared/data/serializers/api_status_serializer.dart b/packages/stadata_flutter_sdk/lib/src/shared/data/converters/api_status_converter.dart similarity index 52% rename from packages/stadata_flutter_sdk/lib/src/shared/data/serializers/api_status_serializer.dart rename to packages/stadata_flutter_sdk/lib/src/shared/data/converters/api_status_converter.dart index 32c44693..1df95bdc 100644 --- a/packages/stadata_flutter_sdk/lib/src/shared/data/serializers/api_status_serializer.dart +++ b/packages/stadata_flutter_sdk/lib/src/shared/data/converters/api_status_converter.dart @@ -1,9 +1,7 @@ -// ignore_for_file: public_member_api_docs, depend_on_referenced_packages - import 'package:stadata_flutter_sdk/src/base/base.dart'; -class ApiStatusSerializer extends BaseConverter { - const ApiStatusSerializer(); +class ApiStatusConverter extends BaseConverter { + const ApiStatusConverter(); @override bool fromJson(String json) => json == 'OK'; diff --git a/packages/stadata_flutter_sdk/lib/src/shared/data/converters/converters.dart b/packages/stadata_flutter_sdk/lib/src/shared/data/converters/converters.dart new file mode 100644 index 00000000..acae293b --- /dev/null +++ b/packages/stadata_flutter_sdk/lib/src/shared/data/converters/converters.dart @@ -0,0 +1,2 @@ +export 'api_status_converter.dart'; +export 'data_availability_converter.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/shared/data/serializers/data_availability_serializer.dart b/packages/stadata_flutter_sdk/lib/src/shared/data/converters/data_availability_converter.dart similarity index 78% rename from packages/stadata_flutter_sdk/lib/src/shared/data/serializers/data_availability_serializer.dart rename to packages/stadata_flutter_sdk/lib/src/shared/data/converters/data_availability_converter.dart index e22eb723..6674e35d 100644 --- a/packages/stadata_flutter_sdk/lib/src/shared/data/serializers/data_availability_serializer.dart +++ b/packages/stadata_flutter_sdk/lib/src/shared/data/converters/data_availability_converter.dart @@ -1,11 +1,9 @@ -// ignore_for_file: public_member_api_docs, depend_on_referenced_packages - import 'package:stadata_flutter_sdk/src/base/base.dart'; import 'package:stadata_flutter_sdk/src/shared/domain/enums/data_availability.dart'; -class DataAvailabilitySerializer +class DataAvailabilityConverter extends BaseConverter { - const DataAvailabilitySerializer(); + const DataAvailabilityConverter(); @override DataAvailability fromJson(String json) { diff --git a/packages/stadata_flutter_sdk/lib/src/shared/data/data.dart b/packages/stadata_flutter_sdk/lib/src/shared/data/data.dart index a76a746b..30d03eaf 100644 --- a/packages/stadata_flutter_sdk/lib/src/shared/data/data.dart +++ b/packages/stadata_flutter_sdk/lib/src/shared/data/data.dart @@ -1,2 +1,2 @@ +export 'converters/converters.dart'; export 'models/models.dart'; -export 'serializers/serializers.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/shared/data/models/api_response_model.dart b/packages/stadata_flutter_sdk/lib/src/shared/data/models/api_response_model.dart index 32efefe3..a2943663 100644 --- a/packages/stadata_flutter_sdk/lib/src/shared/data/models/api_response_model.dart +++ b/packages/stadata_flutter_sdk/lib/src/shared/data/models/api_response_model.dart @@ -1,4 +1,4 @@ -// ignore_for_file: public_member_api_docs +// ignore_for_file: overridden_fields import 'package:flutter/material.dart'; import 'package:stadata_flutter_sdk/src/core/core.dart'; @@ -14,19 +14,22 @@ class ApiResponseModel extends ApiResponse { required super.status, super.dataAvailability, super.message, - super.pagination, + this.pagination, super.data, - }); + }) : super(pagination: pagination); + + @override + final PaginationModel? pagination; factory ApiResponseModel.fromJson( JSON json, T Function(Object? json) fromJson, ) => ApiResponseModel( - status: const ApiStatusSerializer().fromJson( + status: const ApiStatusConverter().fromJson( json[_statusKey] as String, ), - dataAvailability: const DataAvailabilitySerializer().fromJson( + dataAvailability: const DataAvailabilityConverter().fromJson( json[_dataAvailabilityKey] as String, ), message: json[_messageKey] as String?, @@ -44,13 +47,13 @@ class ApiResponseModel extends ApiResponse { required Object? Function(T value) toJson, }) => { - _statusKey: const ApiStatusSerializer().toJson(status), + _statusKey: const ApiStatusConverter().toJson(status), _dataAvailabilityKey: dataAvailability == null ? null - : const DataAvailabilitySerializer().toJson(dataAvailability!), + : const DataAvailabilityConverter().toJson(dataAvailability!), _messageKey: message, _dataKey: [ - (pagination as PaginationModel?)?.toJson(), + pagination?.toJson(), _handleToJsonData( toJson: toJson, input: data, diff --git a/packages/stadata_flutter_sdk/lib/src/shared/data/models/pagination_model.dart b/packages/stadata_flutter_sdk/lib/src/shared/data/models/pagination_model.dart index a9949846..99923c38 100644 --- a/packages/stadata_flutter_sdk/lib/src/shared/data/models/pagination_model.dart +++ b/packages/stadata_flutter_sdk/lib/src/shared/data/models/pagination_model.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:flutter/material.dart'; import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/shared/data/serializers/serializers.dart b/packages/stadata_flutter_sdk/lib/src/shared/data/serializers/serializers.dart deleted file mode 100644 index 48adb285..00000000 --- a/packages/stadata_flutter_sdk/lib/src/shared/data/serializers/serializers.dart +++ /dev/null @@ -1,2 +0,0 @@ -export 'api_status_serializer.dart'; -export 'data_availability_serializer.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/shared/domain/entities/api_response.dart b/packages/stadata_flutter_sdk/lib/src/shared/domain/entities/api_response.dart index 0f7cd7d9..fc146413 100644 --- a/packages/stadata_flutter_sdk/lib/src/shared/domain/entities/api_response.dart +++ b/packages/stadata_flutter_sdk/lib/src/shared/domain/entities/api_response.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - import 'package:stadata_flutter_sdk/src/core/core.dart'; import 'package:stadata_flutter_sdk/src/shared/shared.dart'; diff --git a/packages/stadata_flutter_sdk/lib/src/shared/domain/enums/data_availability.dart b/packages/stadata_flutter_sdk/lib/src/shared/domain/enums/data_availability.dart index 096ef31f..d50f9133 100644 --- a/packages/stadata_flutter_sdk/lib/src/shared/domain/enums/data_availability.dart +++ b/packages/stadata_flutter_sdk/lib/src/shared/domain/enums/data_availability.dart @@ -1,5 +1,3 @@ -// ignore_for_file: public_member_api_docs - enum DataAvailability { available, notAvailable,