@_nazmiforreal/flutter-ota 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/flutter-patcher.js +37 -39
- package/dart-src/packages/cli-tools/.dart_tool/package_config.json +496 -0
- package/dart-src/packages/cli-tools/.dart_tool/package_graph.json +743 -0
- package/dart-src/packages/cli-tools/.gitkeep +0 -0
- package/dart-src/packages/cli-tools/bin/flutter_patcher.dart +9 -0
- package/dart-src/packages/cli-tools/lib/flutter_patcher_cli.dart +73 -0
- package/dart-src/packages/cli-tools/lib/src/backend.dart +162 -0
- package/dart-src/packages/cli-tools/lib/src/cli_base.dart +56 -0
- package/dart-src/packages/cli-tools/lib/src/commands/build.dart +99 -0
- package/dart-src/packages/cli-tools/lib/src/commands/bundle.dart +151 -0
- package/dart-src/packages/cli-tools/lib/src/commands/channel.dart +140 -0
- package/dart-src/packages/cli-tools/lib/src/commands/config_command.dart +113 -0
- package/dart-src/packages/cli-tools/lib/src/commands/console.dart +55 -0
- package/dart-src/packages/cli-tools/lib/src/commands/deploy.dart +95 -0
- package/dart-src/packages/cli-tools/lib/src/commands/doctor.dart +48 -0
- package/dart-src/packages/cli-tools/lib/src/commands/fingerprint.dart +29 -0
- package/dart-src/packages/cli-tools/lib/src/commands/init.dart +82 -0
- package/dart-src/packages/cli-tools/lib/src/commands/keys.dart +55 -0
- package/dart-src/packages/cli-tools/lib/src/commands/migrate.dart +132 -0
- package/dart-src/packages/cli-tools/lib/src/commands/rollback.dart +41 -0
- package/dart-src/packages/cli-tools/lib/src/config.dart +715 -0
- package/dart-src/packages/cli-tools/lib/src/operations.dart +206 -0
- package/dart-src/packages/cli-tools/lib/src/pack.dart +417 -0
- package/dart-src/packages/cli-tools/lib/src/sign.dart +60 -0
- package/dart-src/packages/cli-tools/lib/src/util.dart +86 -0
- package/dart-src/packages/cli-tools/migrations/cloudflare/0001_hot-updater_init.sql +16 -0
- package/dart-src/packages/cli-tools/migrations/cloudflare/0002_hot-updater_0.13.0.sql +8 -0
- package/dart-src/packages/cli-tools/migrations/cloudflare/0003_hot-updater_0.18.0.sql +38 -0
- package/dart-src/packages/cli-tools/migrations/cloudflare/0004_hot-updater_0.29.0.sql +11 -0
- package/dart-src/packages/cli-tools/migrations/cloudflare/0005_hot-updater_0.31.0.sql +24 -0
- package/dart-src/packages/cli-tools/migrations/cloudflare/bundles.sql +42 -0
- package/dart-src/packages/cli-tools/migrations/supabase/20250103114225_init.sql +228 -0
- package/dart-src/packages/cli-tools/migrations/supabase/20250314000000_hot-updater_0.13.0.sql +134 -0
- package/dart-src/packages/cli-tools/migrations/supabase/20250516000000_hot-updater_0.18.0.sql +194 -0
- package/dart-src/packages/cli-tools/migrations/supabase/20251014000000_hot-updater_0.21.0.sql +184 -0
- package/dart-src/packages/cli-tools/migrations/supabase/20260401000000_hot-updater_0.29.0.sql +503 -0
- package/dart-src/packages/cli-tools/migrations/supabase/20260414000000_hot-updater_0.30.0.sql +50 -0
- package/dart-src/packages/cli-tools/migrations/supabase/20260422000000_hot-updater_0.31.0.sql +20 -0
- package/dart-src/packages/cli-tools/migrations/supabase/20260520014100_hot-updater_rls.sql +48 -0
- package/dart-src/packages/cli-tools/pubspec.lock +638 -0
- package/dart-src/packages/cli-tools/pubspec.yaml +37 -0
- package/dart-src/packages/core/lib/flutter_patcher_core.dart +29 -0
- package/dart-src/packages/core/lib/src/app_update_info.dart +111 -0
- package/dart-src/packages/core/lib/src/bundle.dart +191 -0
- package/dart-src/packages/core/lib/src/bundle_artifacts.dart +39 -0
- package/dart-src/packages/core/lib/src/bundle_patch_artifact.dart +47 -0
- package/dart-src/packages/core/lib/src/changed_asset.dart +77 -0
- package/dart-src/packages/core/lib/src/get_bundles_args.dart +78 -0
- package/dart-src/packages/core/lib/src/metadata.dart +31 -0
- package/dart-src/packages/core/lib/src/patch_info.dart +284 -0
- package/dart-src/packages/core/lib/src/platform.dart +15 -0
- package/dart-src/packages/core/lib/src/rollout.dart +209 -0
- package/dart-src/packages/core/lib/src/semver.dart +70 -0
- package/dart-src/packages/core/lib/src/semver_range.dart +358 -0
- package/dart-src/packages/core/lib/src/semver_version.dart +94 -0
- package/dart-src/packages/core/lib/src/status.dart +24 -0
- package/dart-src/packages/core/lib/src/strategy.dart +10 -0
- package/dart-src/packages/core/lib/src/update_bundle_params.dart +30 -0
- package/dart-src/packages/core/lib/src/uuid.dart +45 -0
- package/dart-src/packages/core/pubspec.lock +381 -0
- package/dart-src/packages/core/pubspec.yaml +9 -0
- package/dart-src/packages/core/tool/dbg.dart +6 -0
- package/dart-src/plugins/aws/.gitkeep +0 -0
- package/dart-src/plugins/aws/lib/flutter_patcher_aws.dart +12 -0
- package/dart-src/plugins/aws/lib/src/aws_cloudfront_client.dart +207 -0
- package/dart-src/plugins/aws/lib/src/aws_cloudfront_signer.dart +130 -0
- package/dart-src/plugins/aws/lib/src/aws_config.dart +59 -0
- package/dart-src/plugins/aws/lib/src/aws_database.dart +198 -0
- package/dart-src/plugins/aws/lib/src/aws_lambda_edge_storage.dart +72 -0
- package/dart-src/plugins/aws/lib/src/aws_s3_client.dart +312 -0
- package/dart-src/plugins/aws/lib/src/aws_ssm_client.dart +125 -0
- package/dart-src/plugins/aws/lib/src/aws_storage.dart +20 -0
- package/dart-src/plugins/aws/lib/src/aws_storage_profile.dart +123 -0
- package/dart-src/plugins/aws/lib/src/with_cloudfront_signed_url.dart +136 -0
- package/dart-src/plugins/aws/pubspec.lock +435 -0
- package/dart-src/plugins/aws/pubspec.yaml +22 -0
- package/dart-src/plugins/cloudflare/.gitkeep +0 -0
- package/dart-src/plugins/cloudflare/lib/flutter_patcher_cloudflare.dart +18 -0
- package/dart-src/plugins/cloudflare/lib/src/cloudflare_worker_database.dart +29 -0
- package/dart-src/plugins/cloudflare/lib/src/d1_build_where.dart +93 -0
- package/dart-src/plugins/cloudflare/lib/src/d1_bundle_mapper.dart +131 -0
- package/dart-src/plugins/cloudflare/lib/src/d1_client.dart +66 -0
- package/dart-src/plugins/cloudflare/lib/src/d1_config.dart +30 -0
- package/dart-src/plugins/cloudflare/lib/src/d1_database.dart +16 -0
- package/dart-src/plugins/cloudflare/lib/src/d1_database_plugin.dart +314 -0
- package/dart-src/plugins/cloudflare/lib/src/r2_config.dart +50 -0
- package/dart-src/plugins/cloudflare/lib/src/r2_s3_client.dart +287 -0
- package/dart-src/plugins/cloudflare/lib/src/r2_storage.dart +23 -0
- package/dart-src/plugins/cloudflare/lib/src/r2_storage_profile.dart +110 -0
- package/dart-src/plugins/cloudflare/migrations/0001_hot-updater_init.sql +16 -0
- package/dart-src/plugins/cloudflare/migrations/0002_hot-updater_0.13.0.sql +8 -0
- package/dart-src/plugins/cloudflare/migrations/0003_hot-updater_0.18.0.sql +38 -0
- package/dart-src/plugins/cloudflare/migrations/0004_hot-updater_0.29.0.sql +11 -0
- package/dart-src/plugins/cloudflare/migrations/0005_hot-updater_0.31.0.sql +24 -0
- package/dart-src/plugins/cloudflare/pubspec.lock +411 -0
- package/dart-src/plugins/cloudflare/pubspec.yaml +20 -0
- package/dart-src/plugins/cloudflare/sql/bundles.sql +42 -0
- package/dart-src/plugins/plugin-core/lib/flutter_patcher_plugin_core.dart +42 -0
- package/dart-src/plugins/plugin-core/lib/src/asset_storage_layout.dart +94 -0
- package/dart-src/plugins/plugin-core/lib/src/bundle_storage_layout.dart +44 -0
- package/dart-src/plugins/plugin-core/lib/src/bundle_unit_of_work.dart +259 -0
- package/dart-src/plugins/plugin-core/lib/src/bundle_unit_of_work_store.dart +20 -0
- package/dart-src/plugins/plugin-core/lib/src/calculate_pagination.dart +29 -0
- package/dart-src/plugins/plugin-core/lib/src/compression_format.dart +63 -0
- package/dart-src/plugins/plugin-core/lib/src/content_addressed_assets.dart +22 -0
- package/dart-src/plugins/plugin-core/lib/src/create_blob_database_plugin.dart +853 -0
- package/dart-src/plugins/plugin-core/lib/src/create_database_plugin.dart +525 -0
- package/dart-src/plugins/plugin-core/lib/src/create_storage_key_builder.dart +15 -0
- package/dart-src/plugins/plugin-core/lib/src/create_storage_plugin.dart +130 -0
- package/dart-src/plugins/plugin-core/lib/src/filter_compatible_app_versions.dart +18 -0
- package/dart-src/plugins/plugin-core/lib/src/generate_min_bundle_id.dart +19 -0
- package/dart-src/plugins/plugin-core/lib/src/get_update_info.dart +241 -0
- package/dart-src/plugins/plugin-core/lib/src/is_object.dart +5 -0
- package/dart-src/plugins/plugin-core/lib/src/legacy_asset_storage_layout.dart +9 -0
- package/dart-src/plugins/plugin-core/lib/src/paginate_bundles.dart +112 -0
- package/dart-src/plugins/plugin-core/lib/src/parse_storage_uri.dart +44 -0
- package/dart-src/plugins/plugin-core/lib/src/query_bundles.dart +70 -0
- package/dart-src/plugins/plugin-core/lib/src/request_update_bundle_state.dart +62 -0
- package/dart-src/plugins/plugin-core/lib/src/resolve_update_info_from_bundles.dart +43 -0
- package/dart-src/plugins/plugin-core/lib/src/storage_profile.dart +27 -0
- package/dart-src/plugins/plugin-core/lib/src/types.dart +454 -0
- package/dart-src/plugins/plugin-core/lib/src/uuidv7.dart +41 -0
- package/dart-src/plugins/plugin-core/pubspec.lock +396 -0
- package/dart-src/plugins/plugin-core/pubspec.yaml +15 -0
- package/dart-src/plugins/postgres/.gitkeep +0 -0
- package/dart-src/plugins/postgres/lib/flutter_patcher_postgres.dart +17 -0
- package/dart-src/plugins/postgres/lib/src/postgres_bundle_mapper.dart +130 -0
- package/dart-src/plugins/postgres/lib/src/postgres_client.dart +90 -0
- package/dart-src/plugins/postgres/lib/src/postgres_config.dart +35 -0
- package/dart-src/plugins/postgres/lib/src/postgres_database.dart +302 -0
- package/dart-src/plugins/postgres/lib/src/postgres_get_update_info.dart +120 -0
- package/dart-src/plugins/postgres/lib/src/postgres_storage.dart +205 -0
- package/dart-src/plugins/postgres/lib/src/postgres_types.dart +132 -0
- package/dart-src/plugins/postgres/pubspec.lock +427 -0
- package/dart-src/plugins/postgres/pubspec.yaml +18 -0
- package/dart-src/plugins/postgres/sql/bundles.sql +45 -0
- package/dart-src/plugins/postgres/sql/get_target_app_version_list.sql +21 -0
- package/dart-src/plugins/postgres/sql/get_update_info.spec.ts +171 -0
- package/dart-src/plugins/postgres/sql/get_update_info_by_app_version.sql +126 -0
- package/dart-src/plugins/postgres/sql/get_update_info_by_fingerprint_hash.sql +125 -0
- package/dart-src/plugins/postgres/sql/hash_user_id.sql +30 -0
- package/dart-src/plugins/postgres/sql/is_device_eligible.sql +237 -0
- package/dart-src/plugins/postgres/sql/prepareSql.ts +11 -0
- package/dart-src/plugins/standalone/.gitkeep +0 -0
- package/dart-src/plugins/standalone/lib/flutter_patcher_standalone.dart +12 -0
- package/dart-src/plugins/standalone/lib/src/standalone_config.dart +107 -0
- package/dart-src/plugins/standalone/lib/src/standalone_database.dart +233 -0
- package/dart-src/plugins/standalone/lib/src/standalone_storage.dart +175 -0
- package/dart-src/plugins/standalone/pubspec.lock +411 -0
- package/dart-src/plugins/standalone/pubspec.yaml +18 -0
- package/dart-src/plugins/supabase/lib/edge.dart +10 -0
- package/dart-src/plugins/supabase/lib/flutter_patcher_supabase.dart +21 -0
- package/dart-src/plugins/supabase/lib/src/supabase_bundle_mapper.dart +129 -0
- package/dart-src/plugins/supabase/lib/src/supabase_client_adapter.dart +154 -0
- package/dart-src/plugins/supabase/lib/src/supabase_client_http.dart +516 -0
- package/dart-src/plugins/supabase/lib/src/supabase_config.dart +34 -0
- package/dart-src/plugins/supabase/lib/src/supabase_database.dart +422 -0
- package/dart-src/plugins/supabase/lib/src/supabase_edge_function_database.dart +32 -0
- package/dart-src/plugins/supabase/lib/src/supabase_edge_function_storage.dart +99 -0
- package/dart-src/plugins/supabase/lib/src/supabase_signed_url_batcher.dart +145 -0
- package/dart-src/plugins/supabase/lib/src/supabase_storage.dart +298 -0
- package/dart-src/plugins/supabase/lib/src/types.dart +130 -0
- package/dart-src/plugins/supabase/pubspec.lock +515 -0
- package/dart-src/plugins/supabase/pubspec.yaml +19 -0
- package/dart-src/plugins/supabase/supabase/edge-functions/index.ts +44 -0
- package/dart-src/plugins/supabase/supabase/edge-functions/runtime.docker.integration.spec.ts +968 -0
- package/dart-src/plugins/supabase/supabase/migrations/20250103114225_init.sql +228 -0
- package/dart-src/plugins/supabase/supabase/migrations/20250314000000_hot-updater_0.13.0.sql +134 -0
- package/dart-src/plugins/supabase/supabase/migrations/20250516000000_hot-updater_0.18.0.sql +194 -0
- package/dart-src/plugins/supabase/supabase/migrations/20251014000000_hot-updater_0.21.0.sql +184 -0
- package/dart-src/plugins/supabase/supabase/migrations/20260401000000_hot-updater_0.29.0.sql +503 -0
- package/dart-src/plugins/supabase/supabase/migrations/20260414000000_hot-updater_0.30.0.sql +50 -0
- package/dart-src/plugins/supabase/supabase/migrations/20260422000000_hot-updater_0.31.0.sql +20 -0
- package/dart-src/plugins/supabase/supabase/migrations/20260520014100_hot-updater_rls.sql +48 -0
- package/package.json +2 -1
- package/scripts/postinstall.js +32 -23
- /package/bin/{flutter-patcher-linux → flutter-patcher-linux-x64} +0 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import 'package:flutter_patcher_plugin_core/flutter_patcher_plugin_core.dart'
|
|
2
|
+
show
|
|
3
|
+
RuntimeStorageProfile,
|
|
4
|
+
StoragePlugin,
|
|
5
|
+
StoragePluginProfiles;
|
|
6
|
+
|
|
7
|
+
import 'aws_cloudfront_signer.dart' show cloudfrontSignedUrl;
|
|
8
|
+
import 'aws_ssm_client.dart' show AwsSsmClient;
|
|
9
|
+
|
|
10
|
+
const int _oneYearInSeconds = 60 * 60 * 24 * 365;
|
|
11
|
+
|
|
12
|
+
/// Configuration for wrapping a storage plugin with CloudFront signed URLs.
|
|
13
|
+
///
|
|
14
|
+
/// Faithful port of hot-updater `WithCloudFrontSignedUrlOptions` (minus the
|
|
15
|
+
/// `TContext` generic, which the Dart runtime profile does not expose).
|
|
16
|
+
class WithCloudFrontSignedUrlOptions {
|
|
17
|
+
const WithCloudFrontSignedUrlOptions({
|
|
18
|
+
required this.keyPairId,
|
|
19
|
+
this.publicBaseUrl,
|
|
20
|
+
this.publicBaseUrlResolver,
|
|
21
|
+
this.getPrivateKey,
|
|
22
|
+
this.ssmParameterName,
|
|
23
|
+
this.ssmRegion,
|
|
24
|
+
this.expiresSeconds,
|
|
25
|
+
this.accessKeyId,
|
|
26
|
+
this.secretAccessKey,
|
|
27
|
+
this.sessionToken,
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
final String keyPairId;
|
|
31
|
+
final String? publicBaseUrl;
|
|
32
|
+
final Future<String> Function()? publicBaseUrlResolver;
|
|
33
|
+
final Future<String> Function()? getPrivateKey;
|
|
34
|
+
final String? ssmParameterName;
|
|
35
|
+
final String? ssmRegion;
|
|
36
|
+
final int? expiresSeconds;
|
|
37
|
+
final String? accessKeyId;
|
|
38
|
+
final String? secretAccessKey;
|
|
39
|
+
final String? sessionToken;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/// Wrap a storage plugin factory so that `s3://` download URLs are rewritten as
|
|
43
|
+
/// CloudFront signed URLs. Faithful port of `withCloudFrontSignedUrl.ts`.
|
|
44
|
+
StoragePlugin Function() withCloudFrontSignedUrl(
|
|
45
|
+
StoragePlugin Function() storageFactory,
|
|
46
|
+
WithCloudFrontSignedUrlOptions config,
|
|
47
|
+
) {
|
|
48
|
+
return () {
|
|
49
|
+
final base = storageFactory();
|
|
50
|
+
final runtime = base.profiles.runtime == null
|
|
51
|
+
? null
|
|
52
|
+
: _CloudFrontSignedRuntimeProfile(base.profiles.runtime!, config);
|
|
53
|
+
return _CloudFrontSignedStoragePlugin(base, runtime);
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
class _CloudFrontSignedStoragePlugin implements StoragePlugin {
|
|
58
|
+
_CloudFrontSignedStoragePlugin(this._base, this._runtime);
|
|
59
|
+
|
|
60
|
+
final StoragePlugin _base;
|
|
61
|
+
final RuntimeStorageProfile? _runtime;
|
|
62
|
+
|
|
63
|
+
@override
|
|
64
|
+
String get name => '${_base.name}WithCloudFrontSignedUrl';
|
|
65
|
+
|
|
66
|
+
@override
|
|
67
|
+
String get supportedProtocol => _base.supportedProtocol;
|
|
68
|
+
|
|
69
|
+
@override
|
|
70
|
+
StoragePluginProfiles get profiles => StoragePluginProfiles(
|
|
71
|
+
node: _base.profiles.node,
|
|
72
|
+
runtime: _runtime,
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
class _CloudFrontSignedRuntimeProfile implements RuntimeStorageProfile {
|
|
77
|
+
_CloudFrontSignedRuntimeProfile(this._base, this._config);
|
|
78
|
+
|
|
79
|
+
final RuntimeStorageProfile _base;
|
|
80
|
+
final WithCloudFrontSignedUrlOptions _config;
|
|
81
|
+
|
|
82
|
+
@override
|
|
83
|
+
Future<Map<String, String>> getDownloadUrl(String storageUri) async {
|
|
84
|
+
final parsed = Uri.parse(storageUri);
|
|
85
|
+
if (parsed.scheme != 's3') {
|
|
86
|
+
return _base.getDownloadUrl(storageUri);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
final privateKey = await _resolvePrivateKey();
|
|
90
|
+
final publicBaseUrl = await _resolvePublicBaseUrl();
|
|
91
|
+
final url = Uri.parse(publicBaseUrl);
|
|
92
|
+
final signedUrl = cloudfrontSignedUrl(
|
|
93
|
+
url: url.replace(path: parsed.path, query: null).toString(),
|
|
94
|
+
keyPairId: _config.keyPairId,
|
|
95
|
+
privateKeyPem: privateKey,
|
|
96
|
+
dateLessThan: DateTime.now().add(
|
|
97
|
+
Duration(seconds: _config.expiresSeconds ?? _oneYearInSeconds),
|
|
98
|
+
),
|
|
99
|
+
);
|
|
100
|
+
return {'fileUrl': signedUrl};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@override
|
|
104
|
+
Future<String?> readText(String storageUri) => _base.readText(storageUri);
|
|
105
|
+
|
|
106
|
+
Future<String> _resolvePrivateKey() async {
|
|
107
|
+
if (_config.getPrivateKey != null) return _config.getPrivateKey!();
|
|
108
|
+
if (_config.ssmParameterName != null && _config.ssmRegion != null) {
|
|
109
|
+
final ssm = AwsSsmClient(
|
|
110
|
+
region: _config.ssmRegion!,
|
|
111
|
+
accessKeyId: _config.accessKeyId ?? '',
|
|
112
|
+
secretAccessKey: _config.secretAccessKey ?? '',
|
|
113
|
+
sessionToken: _config.sessionToken,
|
|
114
|
+
);
|
|
115
|
+
return ssm.getParameter(_config.ssmParameterName!);
|
|
116
|
+
}
|
|
117
|
+
throw StateError(
|
|
118
|
+
'withCloudFrontSignedUrl: no private key source configured '
|
|
119
|
+
'(provide getPrivateKey or ssmParameterName/ssmRegion).',
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
Future<String> _resolvePublicBaseUrl() async {
|
|
124
|
+
if (_config.publicBaseUrlResolver != null) {
|
|
125
|
+
final value = await _config.publicBaseUrlResolver!();
|
|
126
|
+
if (value.isEmpty) {
|
|
127
|
+
throw StateError('CloudFront publicBaseUrl resolver returned empty URL');
|
|
128
|
+
}
|
|
129
|
+
return value;
|
|
130
|
+
}
|
|
131
|
+
if (_config.publicBaseUrl != null && _config.publicBaseUrl!.isNotEmpty) {
|
|
132
|
+
return _config.publicBaseUrl!;
|
|
133
|
+
}
|
|
134
|
+
throw StateError('CloudFront publicBaseUrl is empty');
|
|
135
|
+
}
|
|
136
|
+
}
|
|
@@ -0,0 +1,435 @@
|
|
|
1
|
+
# Generated by pub
|
|
2
|
+
# See https://dart.dev/tools/pub/glossary#lockfile
|
|
3
|
+
packages:
|
|
4
|
+
_fe_analyzer_shared:
|
|
5
|
+
dependency: transitive
|
|
6
|
+
description:
|
|
7
|
+
name: _fe_analyzer_shared
|
|
8
|
+
sha256: "9a3386eea899815698dd55995277cf7cb8572ee52b399a6edfb7ae2b50e5fc19"
|
|
9
|
+
url: "https://pub.dev"
|
|
10
|
+
source: hosted
|
|
11
|
+
version: "105.0.0"
|
|
12
|
+
analyzer:
|
|
13
|
+
dependency: transitive
|
|
14
|
+
description:
|
|
15
|
+
name: analyzer
|
|
16
|
+
sha256: "62993bed6eadbe9596c5c20d5c167e7bc563c5fe266657a04ddeb93bdb84f4c9"
|
|
17
|
+
url: "https://pub.dev"
|
|
18
|
+
source: hosted
|
|
19
|
+
version: "14.1.0"
|
|
20
|
+
args:
|
|
21
|
+
dependency: transitive
|
|
22
|
+
description:
|
|
23
|
+
name: args
|
|
24
|
+
sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04
|
|
25
|
+
url: "https://pub.dev"
|
|
26
|
+
source: hosted
|
|
27
|
+
version: "2.7.0"
|
|
28
|
+
asn1lib:
|
|
29
|
+
dependency: "direct main"
|
|
30
|
+
description:
|
|
31
|
+
name: asn1lib
|
|
32
|
+
sha256: "9a8f69025044eb466b9b60ef3bc3ac99b4dc6c158ae9c56d25eeccf5bc56d024"
|
|
33
|
+
url: "https://pub.dev"
|
|
34
|
+
source: hosted
|
|
35
|
+
version: "1.6.5"
|
|
36
|
+
async:
|
|
37
|
+
dependency: transitive
|
|
38
|
+
description:
|
|
39
|
+
name: async
|
|
40
|
+
sha256: e2eb0491ba5ddb6177742d2da23904574082139b07c1e33b8503b9f46f3e1a37
|
|
41
|
+
url: "https://pub.dev"
|
|
42
|
+
source: hosted
|
|
43
|
+
version: "2.13.1"
|
|
44
|
+
boolean_selector:
|
|
45
|
+
dependency: transitive
|
|
46
|
+
description:
|
|
47
|
+
name: boolean_selector
|
|
48
|
+
sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea"
|
|
49
|
+
url: "https://pub.dev"
|
|
50
|
+
source: hosted
|
|
51
|
+
version: "2.1.2"
|
|
52
|
+
cli_config:
|
|
53
|
+
dependency: transitive
|
|
54
|
+
description:
|
|
55
|
+
name: cli_config
|
|
56
|
+
sha256: ac20a183a07002b700f0c25e61b7ee46b23c309d76ab7b7640a028f18e4d99ec
|
|
57
|
+
url: "https://pub.dev"
|
|
58
|
+
source: hosted
|
|
59
|
+
version: "0.2.0"
|
|
60
|
+
collection:
|
|
61
|
+
dependency: transitive
|
|
62
|
+
description:
|
|
63
|
+
name: collection
|
|
64
|
+
sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76"
|
|
65
|
+
url: "https://pub.dev"
|
|
66
|
+
source: hosted
|
|
67
|
+
version: "1.19.1"
|
|
68
|
+
convert:
|
|
69
|
+
dependency: transitive
|
|
70
|
+
description:
|
|
71
|
+
name: convert
|
|
72
|
+
sha256: b30acd5944035672bc15c6b7a8b47d773e41e2f17de064350988c5d02adb1c68
|
|
73
|
+
url: "https://pub.dev"
|
|
74
|
+
source: hosted
|
|
75
|
+
version: "3.1.2"
|
|
76
|
+
coverage:
|
|
77
|
+
dependency: transitive
|
|
78
|
+
description:
|
|
79
|
+
name: coverage
|
|
80
|
+
sha256: "956a3de0725ca232ad353565a8290d3357592bf4250f6f298a185e2d949c5d3d"
|
|
81
|
+
url: "https://pub.dev"
|
|
82
|
+
source: hosted
|
|
83
|
+
version: "1.15.1"
|
|
84
|
+
crypto:
|
|
85
|
+
dependency: "direct main"
|
|
86
|
+
description:
|
|
87
|
+
name: crypto
|
|
88
|
+
sha256: c8ea0233063ba03258fbcf2ca4d6dadfefe14f02fab57702265467a19f27fadf
|
|
89
|
+
url: "https://pub.dev"
|
|
90
|
+
source: hosted
|
|
91
|
+
version: "3.0.7"
|
|
92
|
+
file:
|
|
93
|
+
dependency: transitive
|
|
94
|
+
description:
|
|
95
|
+
name: file
|
|
96
|
+
sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4
|
|
97
|
+
url: "https://pub.dev"
|
|
98
|
+
source: hosted
|
|
99
|
+
version: "7.0.1"
|
|
100
|
+
flutter_patcher_core:
|
|
101
|
+
dependency: "direct main"
|
|
102
|
+
description:
|
|
103
|
+
path: "../../packages/core"
|
|
104
|
+
relative: true
|
|
105
|
+
source: path
|
|
106
|
+
version: "0.1.0"
|
|
107
|
+
flutter_patcher_plugin_core:
|
|
108
|
+
dependency: "direct main"
|
|
109
|
+
description:
|
|
110
|
+
path: "../plugin-core"
|
|
111
|
+
relative: true
|
|
112
|
+
source: path
|
|
113
|
+
version: "0.0.1"
|
|
114
|
+
frontend_server_client:
|
|
115
|
+
dependency: transitive
|
|
116
|
+
description:
|
|
117
|
+
name: frontend_server_client
|
|
118
|
+
sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694
|
|
119
|
+
url: "https://pub.dev"
|
|
120
|
+
source: hosted
|
|
121
|
+
version: "4.0.0"
|
|
122
|
+
glob:
|
|
123
|
+
dependency: transitive
|
|
124
|
+
description:
|
|
125
|
+
name: glob
|
|
126
|
+
sha256: c3f1ee72c96f8f78935e18aa8cecced9ab132419e8625dc187e1c2408efc20de
|
|
127
|
+
url: "https://pub.dev"
|
|
128
|
+
source: hosted
|
|
129
|
+
version: "2.1.3"
|
|
130
|
+
http:
|
|
131
|
+
dependency: "direct main"
|
|
132
|
+
description:
|
|
133
|
+
name: http
|
|
134
|
+
sha256: "87721a4a50b19c7f1d49001e51409bddc46303966ce89a65af4f4e6004896412"
|
|
135
|
+
url: "https://pub.dev"
|
|
136
|
+
source: hosted
|
|
137
|
+
version: "1.6.0"
|
|
138
|
+
http_multi_server:
|
|
139
|
+
dependency: transitive
|
|
140
|
+
description:
|
|
141
|
+
name: http_multi_server
|
|
142
|
+
sha256: aa6199f908078bb1c5efb8d8638d4ae191aac11b311132c3ef48ce352fb52ef8
|
|
143
|
+
url: "https://pub.dev"
|
|
144
|
+
source: hosted
|
|
145
|
+
version: "3.2.2"
|
|
146
|
+
http_parser:
|
|
147
|
+
dependency: transitive
|
|
148
|
+
description:
|
|
149
|
+
name: http_parser
|
|
150
|
+
sha256: "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571"
|
|
151
|
+
url: "https://pub.dev"
|
|
152
|
+
source: hosted
|
|
153
|
+
version: "4.1.2"
|
|
154
|
+
io:
|
|
155
|
+
dependency: transitive
|
|
156
|
+
description:
|
|
157
|
+
name: io
|
|
158
|
+
sha256: dfd5a80599cf0165756e3181807ed3e77daf6dd4137caaad72d0b7931597650b
|
|
159
|
+
url: "https://pub.dev"
|
|
160
|
+
source: hosted
|
|
161
|
+
version: "1.0.5"
|
|
162
|
+
js:
|
|
163
|
+
dependency: transitive
|
|
164
|
+
description:
|
|
165
|
+
name: js
|
|
166
|
+
sha256: "53385261521cc4a0c4658fd0ad07a7d14591cf8fc33abbceae306ddb974888dc"
|
|
167
|
+
url: "https://pub.dev"
|
|
168
|
+
source: hosted
|
|
169
|
+
version: "0.7.2"
|
|
170
|
+
lints:
|
|
171
|
+
dependency: "direct dev"
|
|
172
|
+
description:
|
|
173
|
+
name: lints
|
|
174
|
+
sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235"
|
|
175
|
+
url: "https://pub.dev"
|
|
176
|
+
source: hosted
|
|
177
|
+
version: "4.0.0"
|
|
178
|
+
logging:
|
|
179
|
+
dependency: transitive
|
|
180
|
+
description:
|
|
181
|
+
name: logging
|
|
182
|
+
sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61
|
|
183
|
+
url: "https://pub.dev"
|
|
184
|
+
source: hosted
|
|
185
|
+
version: "1.3.0"
|
|
186
|
+
matcher:
|
|
187
|
+
dependency: transitive
|
|
188
|
+
description:
|
|
189
|
+
name: matcher
|
|
190
|
+
sha256: "31bd099b47c10cd1aeb55146a2d46ce0277630ecef3f7dae54ad7873f36696cd"
|
|
191
|
+
url: "https://pub.dev"
|
|
192
|
+
source: hosted
|
|
193
|
+
version: "0.12.20"
|
|
194
|
+
meta:
|
|
195
|
+
dependency: transitive
|
|
196
|
+
description:
|
|
197
|
+
name: meta
|
|
198
|
+
sha256: "307249ce4ff29d58a18e97f6345f539382eb9c9c29ecda628900f31de0443dd9"
|
|
199
|
+
url: "https://pub.dev"
|
|
200
|
+
source: hosted
|
|
201
|
+
version: "1.19.0"
|
|
202
|
+
mime:
|
|
203
|
+
dependency: transitive
|
|
204
|
+
description:
|
|
205
|
+
name: mime
|
|
206
|
+
sha256: "801fd0b26f14a4a58ccb09d5892c3fbdeff209594300a542492cf13fba9d247a"
|
|
207
|
+
url: "https://pub.dev"
|
|
208
|
+
source: hosted
|
|
209
|
+
version: "1.0.6"
|
|
210
|
+
node_preamble:
|
|
211
|
+
dependency: transitive
|
|
212
|
+
description:
|
|
213
|
+
name: node_preamble
|
|
214
|
+
sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db"
|
|
215
|
+
url: "https://pub.dev"
|
|
216
|
+
source: hosted
|
|
217
|
+
version: "2.0.2"
|
|
218
|
+
package_config:
|
|
219
|
+
dependency: transitive
|
|
220
|
+
description:
|
|
221
|
+
name: package_config
|
|
222
|
+
sha256: ffcf4cf3d6c0b74ac43708d9f56625506e8a68aa935abe9d267a7330f320eb5d
|
|
223
|
+
url: "https://pub.dev"
|
|
224
|
+
source: hosted
|
|
225
|
+
version: "3.0.0"
|
|
226
|
+
path:
|
|
227
|
+
dependency: "direct main"
|
|
228
|
+
description:
|
|
229
|
+
name: path
|
|
230
|
+
sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5"
|
|
231
|
+
url: "https://pub.dev"
|
|
232
|
+
source: hosted
|
|
233
|
+
version: "1.9.1"
|
|
234
|
+
pointycastle:
|
|
235
|
+
dependency: "direct main"
|
|
236
|
+
description:
|
|
237
|
+
name: pointycastle
|
|
238
|
+
sha256: "4be0097fcf3fd3e8449e53730c631200ebc7b88016acecab2b0da2f0149222fe"
|
|
239
|
+
url: "https://pub.dev"
|
|
240
|
+
source: hosted
|
|
241
|
+
version: "3.9.1"
|
|
242
|
+
pool:
|
|
243
|
+
dependency: transitive
|
|
244
|
+
description:
|
|
245
|
+
name: pool
|
|
246
|
+
sha256: "978783255c543aa3586a1b3c21f6e9d720eb315376a915872c61ef8b5c20177d"
|
|
247
|
+
url: "https://pub.dev"
|
|
248
|
+
source: hosted
|
|
249
|
+
version: "1.5.2"
|
|
250
|
+
pub_semver:
|
|
251
|
+
dependency: transitive
|
|
252
|
+
description:
|
|
253
|
+
name: pub_semver
|
|
254
|
+
sha256: "5bfcf68ca79ef689f8990d1160781b4bad40a3bd5e5218ad4076ddb7f4081585"
|
|
255
|
+
url: "https://pub.dev"
|
|
256
|
+
source: hosted
|
|
257
|
+
version: "2.2.0"
|
|
258
|
+
shelf:
|
|
259
|
+
dependency: transitive
|
|
260
|
+
description:
|
|
261
|
+
name: shelf
|
|
262
|
+
sha256: e7dd780a7ffb623c57850b33f43309312fc863fb6aa3d276a754bb299839ef12
|
|
263
|
+
url: "https://pub.dev"
|
|
264
|
+
source: hosted
|
|
265
|
+
version: "1.4.2"
|
|
266
|
+
shelf_packages_handler:
|
|
267
|
+
dependency: transitive
|
|
268
|
+
description:
|
|
269
|
+
name: shelf_packages_handler
|
|
270
|
+
sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e"
|
|
271
|
+
url: "https://pub.dev"
|
|
272
|
+
source: hosted
|
|
273
|
+
version: "3.0.2"
|
|
274
|
+
shelf_static:
|
|
275
|
+
dependency: transitive
|
|
276
|
+
description:
|
|
277
|
+
name: shelf_static
|
|
278
|
+
sha256: c87c3875f91262785dade62d135760c2c69cb217ac759485334c5857ad89f6e3
|
|
279
|
+
url: "https://pub.dev"
|
|
280
|
+
source: hosted
|
|
281
|
+
version: "1.1.3"
|
|
282
|
+
shelf_web_socket:
|
|
283
|
+
dependency: transitive
|
|
284
|
+
description:
|
|
285
|
+
name: shelf_web_socket
|
|
286
|
+
sha256: "3632775c8e90d6c9712f883e633716432a27758216dfb61bd86a8321c0580925"
|
|
287
|
+
url: "https://pub.dev"
|
|
288
|
+
source: hosted
|
|
289
|
+
version: "3.0.0"
|
|
290
|
+
source_map_stack_trace:
|
|
291
|
+
dependency: transitive
|
|
292
|
+
description:
|
|
293
|
+
name: source_map_stack_trace
|
|
294
|
+
sha256: c0713a43e323c3302c2abe2a1cc89aa057a387101ebd280371d6a6c9fa68516b
|
|
295
|
+
url: "https://pub.dev"
|
|
296
|
+
source: hosted
|
|
297
|
+
version: "2.1.2"
|
|
298
|
+
source_maps:
|
|
299
|
+
dependency: transitive
|
|
300
|
+
description:
|
|
301
|
+
name: source_maps
|
|
302
|
+
sha256: "14c2945847669b44089bb1222f66873d7ff7103c58911917f2a63c5a62327898"
|
|
303
|
+
url: "https://pub.dev"
|
|
304
|
+
source: hosted
|
|
305
|
+
version: "0.10.14"
|
|
306
|
+
source_span:
|
|
307
|
+
dependency: transitive
|
|
308
|
+
description:
|
|
309
|
+
name: source_span
|
|
310
|
+
sha256: "56a02f1f4cd1a2d96303c0144c93bd6d909eea6bee6bf5a0e0b685edbd4c47ab"
|
|
311
|
+
url: "https://pub.dev"
|
|
312
|
+
source: hosted
|
|
313
|
+
version: "1.10.2"
|
|
314
|
+
stack_trace:
|
|
315
|
+
dependency: transitive
|
|
316
|
+
description:
|
|
317
|
+
name: stack_trace
|
|
318
|
+
sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1"
|
|
319
|
+
url: "https://pub.dev"
|
|
320
|
+
source: hosted
|
|
321
|
+
version: "1.12.1"
|
|
322
|
+
stream_channel:
|
|
323
|
+
dependency: transitive
|
|
324
|
+
description:
|
|
325
|
+
name: stream_channel
|
|
326
|
+
sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d"
|
|
327
|
+
url: "https://pub.dev"
|
|
328
|
+
source: hosted
|
|
329
|
+
version: "2.1.4"
|
|
330
|
+
string_scanner:
|
|
331
|
+
dependency: transitive
|
|
332
|
+
description:
|
|
333
|
+
name: string_scanner
|
|
334
|
+
sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43"
|
|
335
|
+
url: "https://pub.dev"
|
|
336
|
+
source: hosted
|
|
337
|
+
version: "1.4.1"
|
|
338
|
+
term_glyph:
|
|
339
|
+
dependency: transitive
|
|
340
|
+
description:
|
|
341
|
+
name: term_glyph
|
|
342
|
+
sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e"
|
|
343
|
+
url: "https://pub.dev"
|
|
344
|
+
source: hosted
|
|
345
|
+
version: "1.2.2"
|
|
346
|
+
test:
|
|
347
|
+
dependency: "direct dev"
|
|
348
|
+
description:
|
|
349
|
+
name: test
|
|
350
|
+
sha256: "0d5ba5602ec3baa28c8ce365e1efc5575969c765f45c554a3e167dc7945b9c30"
|
|
351
|
+
url: "https://pub.dev"
|
|
352
|
+
source: hosted
|
|
353
|
+
version: "1.31.2"
|
|
354
|
+
test_api:
|
|
355
|
+
dependency: transitive
|
|
356
|
+
description:
|
|
357
|
+
name: test_api
|
|
358
|
+
sha256: "475610b2aa23c19687cce2961e44b0cc57cafe220f67c2b80201231b2a07fbe7"
|
|
359
|
+
url: "https://pub.dev"
|
|
360
|
+
source: hosted
|
|
361
|
+
version: "0.7.13"
|
|
362
|
+
test_core:
|
|
363
|
+
dependency: transitive
|
|
364
|
+
description:
|
|
365
|
+
name: test_core
|
|
366
|
+
sha256: a39c204a4fc7a7ccb04a2b985e359fda3cc37e45e0b8ac61c3fb1a05aa832132
|
|
367
|
+
url: "https://pub.dev"
|
|
368
|
+
source: hosted
|
|
369
|
+
version: "0.6.19"
|
|
370
|
+
typed_data:
|
|
371
|
+
dependency: transitive
|
|
372
|
+
description:
|
|
373
|
+
name: typed_data
|
|
374
|
+
sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006
|
|
375
|
+
url: "https://pub.dev"
|
|
376
|
+
source: hosted
|
|
377
|
+
version: "1.4.0"
|
|
378
|
+
vm_service:
|
|
379
|
+
dependency: transitive
|
|
380
|
+
description:
|
|
381
|
+
name: vm_service
|
|
382
|
+
sha256: "5f37239c4851efcef929cea7824e76df7f2f0970aef85d66bbc430afa40e72f0"
|
|
383
|
+
url: "https://pub.dev"
|
|
384
|
+
source: hosted
|
|
385
|
+
version: "15.3.0"
|
|
386
|
+
watcher:
|
|
387
|
+
dependency: transitive
|
|
388
|
+
description:
|
|
389
|
+
name: watcher
|
|
390
|
+
sha256: "1398c9f081a753f9226febe8900fce8f7d0a67163334e1c94a2438339d79d635"
|
|
391
|
+
url: "https://pub.dev"
|
|
392
|
+
source: hosted
|
|
393
|
+
version: "1.2.1"
|
|
394
|
+
web:
|
|
395
|
+
dependency: transitive
|
|
396
|
+
description:
|
|
397
|
+
name: web
|
|
398
|
+
sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a"
|
|
399
|
+
url: "https://pub.dev"
|
|
400
|
+
source: hosted
|
|
401
|
+
version: "1.1.1"
|
|
402
|
+
web_socket:
|
|
403
|
+
dependency: transitive
|
|
404
|
+
description:
|
|
405
|
+
name: web_socket
|
|
406
|
+
sha256: "34d64019aa8e36bf9842ac014bb5d2f5586ca73df5e4d9bf5c936975cae6982c"
|
|
407
|
+
url: "https://pub.dev"
|
|
408
|
+
source: hosted
|
|
409
|
+
version: "1.0.1"
|
|
410
|
+
web_socket_channel:
|
|
411
|
+
dependency: transitive
|
|
412
|
+
description:
|
|
413
|
+
name: web_socket_channel
|
|
414
|
+
sha256: d645757fb0f4773d602444000a8131ff5d48c9e47adfe9772652dd1a4f2d45c8
|
|
415
|
+
url: "https://pub.dev"
|
|
416
|
+
source: hosted
|
|
417
|
+
version: "3.0.3"
|
|
418
|
+
webkit_inspection_protocol:
|
|
419
|
+
dependency: transitive
|
|
420
|
+
description:
|
|
421
|
+
name: webkit_inspection_protocol
|
|
422
|
+
sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572"
|
|
423
|
+
url: "https://pub.dev"
|
|
424
|
+
source: hosted
|
|
425
|
+
version: "1.2.1"
|
|
426
|
+
yaml:
|
|
427
|
+
dependency: transitive
|
|
428
|
+
description:
|
|
429
|
+
name: yaml
|
|
430
|
+
sha256: b9da305ac7c39faa3f030eccd175340f968459dae4af175130b3fc47e40d76ce
|
|
431
|
+
url: "https://pub.dev"
|
|
432
|
+
source: hosted
|
|
433
|
+
version: "3.1.3"
|
|
434
|
+
sdks:
|
|
435
|
+
dart: ">=3.11.0 <4.0.0"
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: flutter_patcher_aws
|
|
2
|
+
description: AWS S3 storage + S3/DynamoDB database plugins for flutter_patcher (faithful port of hot-updater plugins/aws).
|
|
3
|
+
version: 0.1.0
|
|
4
|
+
publish_to: none
|
|
5
|
+
|
|
6
|
+
environment:
|
|
7
|
+
sdk: ">=3.3.0 <4.0.0"
|
|
8
|
+
|
|
9
|
+
dependencies:
|
|
10
|
+
flutter_patcher_core:
|
|
11
|
+
path: ../../packages/core
|
|
12
|
+
flutter_patcher_plugin_core:
|
|
13
|
+
path: ../../plugins/plugin-core
|
|
14
|
+
crypto: ^3.0.0
|
|
15
|
+
http: ^1.2.0
|
|
16
|
+
path: ^1.9.0
|
|
17
|
+
pointycastle: ^3.9.1
|
|
18
|
+
asn1lib: ^1.5.4
|
|
19
|
+
|
|
20
|
+
dev_dependencies:
|
|
21
|
+
test: ^1.25.0
|
|
22
|
+
lints: ^4.0.0
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
library;
|
|
2
|
+
|
|
3
|
+
export 'src/d1_bundle_mapper.dart'
|
|
4
|
+
show
|
|
5
|
+
buildBundlePatchId,
|
|
6
|
+
bundleToPatchRows,
|
|
7
|
+
defaultRolloutCohortCount,
|
|
8
|
+
parseMetadata,
|
|
9
|
+
parseTargetCohorts,
|
|
10
|
+
transformRowToBundle;
|
|
11
|
+
export 'src/d1_client.dart' show D1Client, D1ClientLike;
|
|
12
|
+
export 'src/d1_config.dart' show D1ClientFactory, D1DatabaseConfig, resolveD1Client;
|
|
13
|
+
export 'src/d1_database.dart' show d1Database;
|
|
14
|
+
export 'src/cloudflare_worker_database.dart'
|
|
15
|
+
show CloudflareWorkerDatabaseConfig, cloudflareWorkerDatabase;
|
|
16
|
+
export 'src/r2_config.dart' show R2S3ClientFactory, R2S3StorageConfig, resolveR2Client;
|
|
17
|
+
export 'src/r2_s3_client.dart' show R2S3Client, R2S3ClientLike;
|
|
18
|
+
export 'src/r2_storage.dart' show r2Storage;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import 'package:flutter_patcher_plugin_core/flutter_patcher_plugin_core.dart'
|
|
2
|
+
show createDatabasePlugin;
|
|
3
|
+
|
|
4
|
+
import 'd1_client.dart' show D1ClientLike;
|
|
5
|
+
import 'd1_database_plugin.dart' show D1DatabasePlugin;
|
|
6
|
+
|
|
7
|
+
/// Configuration for the Cloudflare Workers D1 database plugin.
|
|
8
|
+
///
|
|
9
|
+
/// Mirrors hot-updater's `CloudflareWorkerDatabaseConfig`: instead of talking
|
|
10
|
+
/// to D1 over the REST API, the plugin uses a `D1Like` binding supplied by
|
|
11
|
+
/// [getDb] (the Workers runtime `env.DB`). In the Dart port the binding is
|
|
12
|
+
/// represented by a [D1ClientLike], which makes it trivially testable by
|
|
13
|
+
/// injecting a mock.
|
|
14
|
+
class CloudflareWorkerDatabaseConfig {
|
|
15
|
+
const CloudflareWorkerDatabaseConfig({required this.getDb});
|
|
16
|
+
|
|
17
|
+
final D1ClientLike Function() getDb;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/// Cloudflare Workers D1 database plugin (faithful port of hot-updater's
|
|
21
|
+
/// `cloudflareWorkerDatabase`).
|
|
22
|
+
///
|
|
23
|
+
/// Shares the exact same SQL/update-info logic as [d1Database]; only the
|
|
24
|
+
/// client source differs (an in-process D1 binding instead of the REST API).
|
|
25
|
+
final cloudflareWorkerDatabase =
|
|
26
|
+
createDatabasePlugin<CloudflareWorkerDatabaseConfig>(
|
|
27
|
+
name: 'd1WorkerDatabase',
|
|
28
|
+
factory: (config) => D1DatabasePlugin(config.getDb()),
|
|
29
|
+
);
|