diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 796c3f9..c61df29 100755
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -7,7 +7,7 @@
+
+
+
+
+
+
+
+
@@ -31,4 +39,10 @@
android:name="flutterEmbedding"
android:value="2" />
+
+
+
+
+
+
diff --git a/ios/Podfile.lock b/ios/Podfile.lock
index fb0e56f..86d19d6 100755
--- a/ios/Podfile.lock
+++ b/ios/Podfile.lock
@@ -1,9 +1,19 @@
PODS:
- Flutter (1.0.0)
+ - flutter_inappwebview (0.0.1):
+ - Flutter
+ - flutter_inappwebview/Core (= 0.0.1)
+ - OrderedSet (~> 5.0)
+ - flutter_inappwebview/Core (0.0.1):
+ - Flutter
+ - OrderedSet (~> 5.0)
- flutter_web_browser (0.17.1):
- Flutter
+ - OrderedSet (5.0.0)
- package_info_plus (0.4.5):
- Flutter
+ - shared_preferences_ios (0.0.1):
+ - Flutter
- video_player_avfoundation (0.0.1):
- Flutter
- wakelock (0.0.1):
@@ -13,19 +23,29 @@ PODS:
DEPENDENCIES:
- Flutter (from `Flutter`)
+ - flutter_inappwebview (from `.symlinks/plugins/flutter_inappwebview/ios`)
- flutter_web_browser (from `.symlinks/plugins/flutter_web_browser/ios`)
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
+ - shared_preferences_ios (from `.symlinks/plugins/shared_preferences_ios/ios`)
- video_player_avfoundation (from `.symlinks/plugins/video_player_avfoundation/ios`)
- wakelock (from `.symlinks/plugins/wakelock/ios`)
- webview_flutter_wkwebview (from `.symlinks/plugins/webview_flutter_wkwebview/ios`)
+SPEC REPOS:
+ trunk:
+ - OrderedSet
+
EXTERNAL SOURCES:
Flutter:
:path: Flutter
+ flutter_inappwebview:
+ :path: ".symlinks/plugins/flutter_inappwebview/ios"
flutter_web_browser:
:path: ".symlinks/plugins/flutter_web_browser/ios"
package_info_plus:
:path: ".symlinks/plugins/package_info_plus/ios"
+ shared_preferences_ios:
+ :path: ".symlinks/plugins/shared_preferences_ios/ios"
video_player_avfoundation:
:path: ".symlinks/plugins/video_player_avfoundation/ios"
wakelock:
@@ -35,8 +55,11 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
+ flutter_inappwebview: bfd58618f49dc62f2676de690fc6dcda1d6c3721
flutter_web_browser: 7bccaafbb0c5b8862afe7bcd158f15557109f61f
+ OrderedSet: aaeb196f7fef5a9edf55d89760da9176ad40b93c
package_info_plus: 6c92f08e1f853dc01228d6f553146438dafcd14e
+ shared_preferences_ios: 548a61f8053b9b8a49ac19c1ffbc8b92c50d68ad
video_player_avfoundation: e489aac24ef5cf7af82702979ed16f2a5ef84cff
wakelock: d0fc7c864128eac40eba1617cb5264d9c940b46f
webview_flutter_wkwebview: b7e70ef1ddded7e69c796c7390ee74180182971f
diff --git a/lib/api/base_api.dart b/lib/api/base_api.dart
index fa82f31..dcfb4c6 100644
--- a/lib/api/base_api.dart
+++ b/lib/api/base_api.dart
@@ -1,9 +1,13 @@
import 'dart:convert';
+import 'package:dio/dio.dart';
+import 'package:dio_cache_interceptor/dio_cache_interceptor.dart';
+import 'package:dio_cookie_manager/dio_cookie_manager.dart';
+import 'package:cookie_jar/cookie_jar.dart';
+import 'package:dio_http2_adapter/dio_http2_adapter.dart';
import 'package:flutter/foundation.dart';
import 'package:isekai_wiki/global.dart';
import 'package:isekai_wiki/utils/api_utils.dart';
-import 'package:http/http.dart' as http;
class HttpResponseCodeError extends Error {
int? statusCode;
@@ -17,25 +21,68 @@ class HttpResponseCodeError extends Error {
}
class BaseApi {
- static Future