mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2026-01-25 12:01:02 +00:00
feat: update rules of analysis_options.yaml. and solved all problems (#665)
* update rules of analysis_options.yaml. and solved all problems * refactor: fix remaining problems --------- Co-authored-by: Ushie <ushiekane@gmail.com>
This commit is contained in:
@@ -13,9 +13,11 @@ class CrowdinAPI {
|
||||
|
||||
Future<void> initialize() async {
|
||||
try {
|
||||
_dio = Dio(BaseOptions(
|
||||
baseUrl: 'https://api.crowdin.com/api/v2',
|
||||
));
|
||||
_dio = Dio(
|
||||
BaseOptions(
|
||||
baseUrl: 'https://api.crowdin.com/api/v2',
|
||||
),
|
||||
);
|
||||
|
||||
_dio.interceptors.add(_dioCacheManager.interceptor);
|
||||
_dio.addSentry(
|
||||
@@ -36,7 +38,7 @@ class CrowdinAPI {
|
||||
|
||||
Future<List> getLanguages() async {
|
||||
try {
|
||||
var response = await _dio.get(
|
||||
final response = await _dio.get(
|
||||
'/projects',
|
||||
options: buildCacheOptions(
|
||||
const Duration(hours: 6),
|
||||
@@ -49,7 +51,7 @@ class CrowdinAPI {
|
||||
),
|
||||
),
|
||||
);
|
||||
List targetLanguages =
|
||||
final List targetLanguages =
|
||||
await response.data['data'][0]['data']['targetLanguages'];
|
||||
|
||||
return targetLanguages;
|
||||
|
||||
Reference in New Issue
Block a user