Skip to content

Commit

Permalink
rhttp
Browse files Browse the repository at this point in the history
  • Loading branch information
Notsfsssf committed Dec 19, 2024
1 parent 892fa67 commit 90dcc5c
Show file tree
Hide file tree
Showing 35 changed files with 869 additions and 693 deletions.
5 changes: 3 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdk 34
ndkVersion "27.2.12479018"

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
Expand All @@ -81,8 +82,8 @@ android {
applicationId packageName
minSdkVersion 21
targetSdkVersion 34
versionCode 10009530
versionName "0.9.53 Space"
versionCode 10009540
versionName "0.9.54 rhttp"
ndk { abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86_64' }
}
compileOptions {
Expand Down
1 change: 0 additions & 1 deletion ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,4 @@ end
target 'TinkerExtension' do
use_frameworks!
use_modular_headers!
pod 'FMDB', '2.7.12'
end
43 changes: 21 additions & 22 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ PODS:
- flutter_inappwebview_ios/Core (0.0.1):
- Flutter
- OrderedSet (~> 6.0.3)
- FMDB (2.7.12):
- FMDB/standard (= 2.7.12)
- FMDB/Core (2.7.12)
- FMDB/standard (2.7.12):
- FMDB/Core
- image_picker_ios (0.0.1):
- Flutter
- in_app_purchase_storekit (0.0.1):
Expand All @@ -31,14 +26,16 @@ PODS:
- FlutterMacOS
- permission_handler_apple (9.3.0):
- Flutter
- receive_sharing_intent (1.8.0):
- receive_sharing_intent (1.8.1):
- Flutter
- rhttp (0.0.1):
- Flutter
- share_plus (0.0.1):
- Flutter
- shared_preferences_foundation (0.0.1):
- Flutter
- FlutterMacOS
- sqflite (0.0.3):
- sqflite_darwin (0.0.4):
- Flutter
- FlutterMacOS
- url_launcher_ios (0.0.1):
Expand All @@ -50,31 +47,31 @@ PODS:
- Flutter
- webview_flutter_wkwebview (0.0.1):
- Flutter
- FlutterMacOS

DEPENDENCIES:
- audio_session (from `.symlinks/plugins/audio_session/ios`)
- device_info_plus (from `.symlinks/plugins/device_info_plus/ios`)
- Flutter (from `Flutter`)
- flutter_inappwebview_ios (from `.symlinks/plugins/flutter_inappwebview_ios/ios`)
- FMDB (= 2.7.12)
- image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`)
- in_app_purchase_storekit (from `.symlinks/plugins/in_app_purchase_storekit/darwin`)
- just_audio (from `.symlinks/plugins/just_audio/ios`)
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
- permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`)
- receive_sharing_intent (from `.symlinks/plugins/receive_sharing_intent/ios`)
- rhttp (from `.symlinks/plugins/rhttp/ios`)
- share_plus (from `.symlinks/plugins/share_plus/ios`)
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
- sqflite (from `.symlinks/plugins/sqflite/darwin`)
- sqflite_darwin (from `.symlinks/plugins/sqflite_darwin/darwin`)
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
- video_player_avfoundation (from `.symlinks/plugins/video_player_avfoundation/darwin`)
- wakelock_plus (from `.symlinks/plugins/wakelock_plus/ios`)
- webview_flutter_wkwebview (from `.symlinks/plugins/webview_flutter_wkwebview/ios`)
- webview_flutter_wkwebview (from `.symlinks/plugins/webview_flutter_wkwebview/darwin`)

SPEC REPOS:
trunk:
- FMDB
- OrderedSet

EXTERNAL SOURCES:
Expand All @@ -100,43 +97,45 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/permission_handler_apple/ios"
receive_sharing_intent:
:path: ".symlinks/plugins/receive_sharing_intent/ios"
rhttp:
:path: ".symlinks/plugins/rhttp/ios"
share_plus:
:path: ".symlinks/plugins/share_plus/ios"
shared_preferences_foundation:
:path: ".symlinks/plugins/shared_preferences_foundation/darwin"
sqflite:
:path: ".symlinks/plugins/sqflite/darwin"
sqflite_darwin:
:path: ".symlinks/plugins/sqflite_darwin/darwin"
url_launcher_ios:
:path: ".symlinks/plugins/url_launcher_ios/ios"
video_player_avfoundation:
:path: ".symlinks/plugins/video_player_avfoundation/darwin"
wakelock_plus:
:path: ".symlinks/plugins/wakelock_plus/ios"
webview_flutter_wkwebview:
:path: ".symlinks/plugins/webview_flutter_wkwebview/ios"
:path: ".symlinks/plugins/webview_flutter_wkwebview/darwin"

SPEC CHECKSUMS:
audio_session: 088d2483ebd1dc43f51d253d4a1c517d9a2e7207
device_info_plus: 97af1d7e84681a90d0693e63169a5d50e0839a0d
device_info_plus: bf2e3232933866d73fe290f2942f2156cdd10342
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
flutter_inappwebview_ios: 6f63631e2c62a7c350263b13fa5427aedefe81d4
FMDB: 728731dd336af3936ce00f91d9d8495f5718a0e6
image_picker_ios: c560581cceedb403a6ff17f2f816d7fea1421fc1
in_app_purchase_storekit: 8c3b0b3eb1b0f04efbff401c3de6266d4258d433
just_audio: baa7252489dbcf47a4c7cc9ca663e9661c99aafa
OrderedSet: e539b66b644ff081c73a262d24ad552a69be3a94
package_info_plus: 58f0028419748fad15bf008b270aaa8e54380b1c
package_info_plus: c0502532a26c7662a62a356cebe2692ec5fe4ec4
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
permission_handler_apple: 9878588469a2b0d0fc1e048d9f43605f92e6cec2
receive_sharing_intent: df9c334dc9feadcbd3266e5cb49c8443405e1c9f
share_plus: 8875f4f2500512ea181eef553c3e27dba5135aad
receive_sharing_intent: 79c848f5b045674ad60b9fea3bafea59962ad2c1
rhttp: 367a8162e63311c6dde543169b591cc04454dcd6
share_plus: 8b6f8b3447e494cca5317c8c3073de39b3600d1f
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
sqflite: 673a0e54cc04b7d6dba8d24fb8095b31c3a99eec
sqflite_darwin: 5a7236e3b501866c1c9befc6771dfd73ffb8702d
url_launcher_ios: 5334b05cef931de560670eeae103fd3e431ac3fe
video_player_avfoundation: 7c6c11d8470e1675df7397027218274b6d2360b3
wakelock_plus: 78ec7c5b202cab7761af8e2b2b3d0671be6c4ae1
webview_flutter_wkwebview: 2a23822e9039b7b1bc52e5add778e5d89ad488d1
webview_flutter_wkwebview: 0982481e3d9c78fd5c6f62a002fcd24fc791f1e4

PODFILE CHECKSUM: 3d4560dfd92eabd6be8bf4fff6ae87fa5f5b1faa
PODFILE CHECKSUM: c2b65be859261ad3ee99d53a1debf9d814d4521b

COCOAPODS: 1.15.2
56 changes: 39 additions & 17 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
A70B475725D4D94200AE0717 /* CodeGen.swift in Sources */ = {isa = PBXBuildFile; fileRef = A70B475625D4D94200AE0717 /* CodeGen.swift */; };
CF18B5662D0EDB1A0096872D /* FMDB in Frameworks */ = {isa = PBXBuildFile; productRef = CF18B5652D0EDB1A0096872D /* FMDB */; };
CF18B5682D0EDB4D0096872D /* FMDB in Frameworks */ = {isa = PBXBuildFile; productRef = CF18B5672D0EDB4D0096872D /* FMDB */; };
CF725E382ACE7C7600615536 /* DeepLinkPlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = CF725E372ACE7C7600615536 /* DeepLinkPlugin.swift */; };
CFB8EE8C28C4437500B8D74E /* AppWidgetDBManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = CFB8EE8B28C4437500B8D74E /* AppWidgetDBManager.swift */; };
CFFFA8252C3B75EC00800F00 /* WidgetKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7C8B5968260F680500098D5C /* WidgetKit.framework */; };
Expand All @@ -39,16 +41,6 @@
/* End PBXContainerItemProxy section */

/* Begin PBXCopyFilesBuildPhase section */
9705A1C41CF9048500538489 /* Embed Frameworks */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
CFFFA8322C3B75ED00800F00 /* Embed Foundation Extensions */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -107,6 +99,7 @@
CF0E66D727BAA7B000DF1121 /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = es.lproj/LaunchScreen.strings; sourceTree = "<group>"; };
CF0E66D827BAA7F200DF1121 /* ru */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ru; path = ru.lproj/Main.strings; sourceTree = "<group>"; };
CF0E66D927BAA7F300DF1121 /* ru */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ru; path = ru.lproj/LaunchScreen.strings; sourceTree = "<group>"; };
CF18B5612D0ED9470096872D /* sqflite_darwin.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = sqflite_darwin.framework; sourceTree = BUILT_PRODUCTS_DIR; };
CF24B04C28CB42C600AE445E /* AppWidgetDBManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppWidgetDBManager.swift; sourceTree = "<group>"; };
CF725E372ACE7C7600615536 /* DeepLinkPlugin.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeepLinkPlugin.swift; sourceTree = "<group>"; };
CFB8EE8B28C4437500B8D74E /* AppWidgetDBManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppWidgetDBManager.swift; sourceTree = "<group>"; };
Expand All @@ -129,6 +122,7 @@
buildActionMask = 2147483647;
files = (
D866EE375373955B58348C31 /* Pods_Runner.framework in Frameworks */,
CF18B5662D0EDB1A0096872D /* FMDB in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -137,6 +131,7 @@
buildActionMask = 2147483647;
files = (
CFFFA8262C3B75EC00800F00 /* SwiftUI.framework in Frameworks */,
CF18B5682D0EDB4D0096872D /* FMDB in Frameworks */,
CFFFA8252C3B75EC00800F00 /* WidgetKit.framework in Frameworks */,
4F9E83EA3732672F6515B5C3 /* Pods_TinkerExtension.framework in Frameworks */,
);
Expand Down Expand Up @@ -167,6 +162,7 @@
66193F2780F8195CEF68B3C0 /* Frameworks */ = {
isa = PBXGroup;
children = (
CF18B5612D0ED9470096872D /* sqflite_darwin.framework */,
CFB8EEB228C4B86B00B8D74E /* FMDB.framework */,
CFB8EEAE28C4B50800B8D74E /* FMDB.framework */,
CFB8EEAA28C4B34400B8D74E /* sqflite.framework */,
Expand Down Expand Up @@ -256,7 +252,6 @@
9740EEB61CF901F6004384FC /* Run Script */,
97C146EA1CF9000F007C117D /* Sources */,
97C146EB1CF9000F007C117D /* Frameworks */,
9705A1C41CF9048500538489 /* Embed Frameworks */,
CFFFA8322C3B75ED00800F00 /* Embed Foundation Extensions */,
97C146EC1CF9000F007C117D /* Resources */,
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
Expand Down Expand Up @@ -325,6 +320,9 @@
ru,
);
mainGroup = 97C146E51CF9000F007C117D;
packageReferences = (
CF18B5642D0EDB1A0096872D /* XCRemoteSwiftPackageReference "fmdb" */,
);
productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
projectDirPath = "";
projectRoot = "";
Expand Down Expand Up @@ -810,7 +808,7 @@
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_ENTITLEMENTS = TinkerExtension.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = L9F8ZWCR8Z;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
Expand All @@ -825,7 +823,7 @@
"@executable_path/../../Frameworks",
);
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MARKETING_VERSION = 1.0;
MARKETING_VERSION = 1.1;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.perol.pixez.Tinker;
Expand Down Expand Up @@ -854,7 +852,7 @@
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_ENTITLEMENTS = TinkerExtension.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = L9F8ZWCR8Z;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
Expand All @@ -869,7 +867,7 @@
"@executable_path/../../Frameworks",
);
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MARKETING_VERSION = 1.0;
MARKETING_VERSION = 1.1;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.perol.pixez.Tinker;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -895,7 +893,7 @@
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_ENTITLEMENTS = TinkerExtension.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = L9F8ZWCR8Z;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
Expand All @@ -910,7 +908,7 @@
"@executable_path/../../Frameworks",
);
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MARKETING_VERSION = 1.0;
MARKETING_VERSION = 1.1;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.perol.pixez.Tinker;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -955,6 +953,30 @@
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
CF18B5642D0EDB1A0096872D /* XCRemoteSwiftPackageReference "fmdb" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/ccgus/fmdb";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 2.7.12;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
CF18B5652D0EDB1A0096872D /* FMDB */ = {
isa = XCSwiftPackageProductDependency;
package = CF18B5642D0EDB1A0096872D /* XCRemoteSwiftPackageReference "fmdb" */;
productName = FMDB;
};
CF18B5672D0EDB4D0096872D /* FMDB */ = {
isa = XCSwiftPackageProductDependency;
package = CF18B5642D0EDB1A0096872D /* XCRemoteSwiftPackageReference "fmdb" */;
productName = FMDB;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 97C146E61CF9000F007C117D /* Project object */;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"originHash" : "edf512815619ed6bb2e67b3bdb38a134d5e8f6b3f3f79c05028ab9cbffc0efd2",
"pins" : [
{
"identity" : "fmdb",
"kind" : "remoteSourceControl",
"location" : "https://github.com/ccgus/fmdb",
"state" : {
"revision" : "1227a3fa2b9916bfd75fe380eb45cd210e69e251",
"version" : "2.7.12"
}
}
],
"version" : 3
}
15 changes: 15 additions & 0 deletions ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"originHash" : "edf512815619ed6bb2e67b3bdb38a134d5e8f6b3f3f79c05028ab9cbffc0efd2",
"pins" : [
{
"identity" : "fmdb",
"kind" : "remoteSourceControl",
"location" : "https://github.com/ccgus/fmdb",
"state" : {
"revision" : "1227a3fa2b9916bfd75fe380eb45cd210e69e251",
"version" : "2.7.12"
}
}
],
"version" : 3
}
6 changes: 3 additions & 3 deletions ios/Runner/AppWidgetDBManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Created by Perol Notsf on 2022/9/4.
//

import sqflite
import FMDB
import Foundation

struct AppWidgetIllust {
Expand Down Expand Up @@ -47,14 +47,14 @@ enum AppWidgetDBManager {
}
}

static func groupDB() -> SqfliteDarwinDatabase? {
static func groupDB() -> FMDatabase? {
let fileManager = FileManager.default
let dummyDatabaseName = "glanceillustpersist.db"
if let directory = fileManager.containerURL(forSecurityApplicationGroupIdentifier: "group.pixez") {
let newDirectory = directory.appendingPathComponent("DB")
try? fileManager.createDirectory(at: newDirectory, withIntermediateDirectories: false, attributes: nil)
let url = newDirectory.appendingPathComponent(dummyDatabaseName)
return SqfliteDarwinDatabase(path: url.path)
return FMDatabase(path: url.path)
}
return nil
}
Expand Down
1 change: 0 additions & 1 deletion ios/Runner/Runner-Bridging-Header.h
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
#import "GeneratedPluginRegistrant.h"
#import "SqfliteDarwinDatabase.h"
4 changes: 2 additions & 2 deletions lib/clipboard_plugin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class ClipboardPlugin {

/// 下载或从缓存中加载图片
static Future<File> _getImagePathFromUrl(String url) async {
final image = await pixivCacheManager.getFileFromCache(url) ??
await pixivCacheManager.downloadFile(url);
final image = await pixivCacheManager!.getFileFromCache(url) ??
await pixivCacheManager!.downloadFile(url);

return image.file;
}
Expand Down
Loading

0 comments on commit 90dcc5c

Please sign in to comment.