@_nazmiforreal/flutter-ota 0.1.18 → 0.1.20
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-ota-linux-x64 +0 -0
- package/dart-src/packages/cli-tools/.dart_tool/package_config.json +2 -0
- package/dart-src/packages/cli-tools/.dart_tool/package_graph.json +8 -8
- package/dart-src/packages/cli-tools/lib/flutter_ota_kit_cli.dart +2 -2
- package/dart-src/packages/cli-tools/lib/src/commands/pocketbase.dart +1379 -11
- package/dart-src/packages/cli-tools/lib/src/pocketbase/installer.dart +1 -1
- package/dart-src/packages/cli-tools/lib/src/pocketbase/process_manager.dart +104 -9
- package/dart-src/packages/cli-tools/lib/src/pocketbase/schema_installer.dart +59 -5
- package/dart-src/packages/cli-tools/pubspec.lock +7 -7
- package/dart-src/packages/cli-tools/pubspec.yaml +8 -8
- package/dart-src/packages/cli-tools/test/mocks/mock_pocketbase_client.dart +149 -0
- package/dart-src/packages/cli-tools/test/pocketbase_schema_test.dart +14 -9
- package/dart-src/packages/core/CHANGELOG.md +6 -1
- package/dart-src/packages/core/lib/src/app_update_info.dart +2 -0
- package/dart-src/packages/core/pubspec.yaml +1 -1
- package/dart-src/plugins/aws/CHANGELOG.md +5 -1
- package/dart-src/plugins/aws/pubspec.yaml +3 -3
- package/dart-src/plugins/cloudflare/CHANGELOG.md +5 -1
- package/dart-src/plugins/cloudflare/pubspec.yaml +3 -3
- package/dart-src/plugins/plugin-core/CHANGELOG.md +5 -1
- package/dart-src/plugins/plugin-core/pubspec.yaml +2 -2
- package/dart-src/plugins/pocketbase/CHANGELOG.md +5 -1
- package/dart-src/plugins/pocketbase/lib/flutter_ota_kit_pocketbase.dart +2 -1
- package/dart-src/plugins/pocketbase/lib/src/pocketbase_bundle_mapper.dart +10 -2
- package/dart-src/plugins/pocketbase/lib/src/pocketbase_client.dart +614 -4
- package/dart-src/plugins/pocketbase/lib/src/pocketbase_database.dart +262 -42
- package/dart-src/plugins/pocketbase/lib/src/pocketbase_storage.dart +9 -2
- package/dart-src/plugins/pocketbase/pubspec.yaml +3 -3
- package/dart-src/plugins/postgres/CHANGELOG.md +5 -1
- package/dart-src/plugins/postgres/pubspec.yaml +3 -3
- package/dart-src/plugins/supabase/CHANGELOG.md +6 -1
- package/dart-src/plugins/supabase/lib/src/supabase_database.dart +4 -0
- package/dart-src/plugins/supabase/pubspec.yaml +3 -3
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
name: flutter_ota_kit_cloudflare
|
|
2
2
|
description: Cloudflare D1 + R2 storage plugins for flutter_ota_kit (faithful port of hot-updater plugins/cloudflare).
|
|
3
|
-
version: 0.1.
|
|
3
|
+
version: 0.1.7
|
|
4
4
|
homepage: https://github.com/HYPER12755/flutter-ota-kit
|
|
5
5
|
repository: https://github.com/HYPER12755/flutter-ota-kit
|
|
6
6
|
issue_tracker: https://github.com/HYPER12755/flutter-ota-kit/issues
|
|
@@ -11,8 +11,8 @@ environment:
|
|
|
11
11
|
sdk: ">=3.13.2 <4.0.0"
|
|
12
12
|
|
|
13
13
|
dependencies:
|
|
14
|
-
flutter_ota_kit_core: ^0.1.
|
|
15
|
-
flutter_ota_kit_plugin_core: ^0.0.
|
|
14
|
+
flutter_ota_kit_core: ^0.1.6
|
|
15
|
+
flutter_ota_kit_plugin_core: ^0.0.8
|
|
16
16
|
crypto: ^3.0.0
|
|
17
17
|
http: ^1.2.0
|
|
18
18
|
path: ^1.9.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
name: flutter_ota_kit_plugin_core
|
|
2
2
|
description: Plugin core abstractions for flutter_ota_kit — database, storage, and build interfaces.
|
|
3
|
-
version: 0.0.
|
|
3
|
+
version: 0.0.8
|
|
4
4
|
homepage: https://github.com/HYPER12755/flutter-ota-kit
|
|
5
5
|
repository: https://github.com/HYPER12755/flutter-ota-kit
|
|
6
6
|
issue_tracker: https://github.com/HYPER12755/flutter-ota-kit/issues
|
|
@@ -11,7 +11,7 @@ environment:
|
|
|
11
11
|
sdk: ">=3.13.2 <4.0.0"
|
|
12
12
|
|
|
13
13
|
dependencies:
|
|
14
|
-
flutter_ota_kit_core: ^0.1.
|
|
14
|
+
flutter_ota_kit_core: ^0.1.6
|
|
15
15
|
mime: ^2.0.0
|
|
16
16
|
|
|
17
17
|
dev_dependencies:
|
|
@@ -16,7 +16,8 @@ export 'src/pocketbase_client.dart'
|
|
|
16
16
|
PocketBaseClient,
|
|
17
17
|
PocketBaseClientFactory,
|
|
18
18
|
PocketBaseException,
|
|
19
|
-
PocketBaseList
|
|
19
|
+
PocketBaseList,
|
|
20
|
+
PocketBaseBackup;
|
|
20
21
|
export 'src/pocketbase_database.dart'
|
|
21
22
|
show pocketbaseDatabase, PocketBaseDatabaseConfig;
|
|
22
23
|
export 'src/pocketbase_storage.dart'
|
|
@@ -96,8 +96,16 @@ class PocketBaseBundleRow {
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
/// Convert a [PocketBaseBundleRow] into a [Bundle].
|
|
99
|
-
|
|
99
|
+
///
|
|
100
|
+
/// If [patches] is provided, they are attached as [BundlePatchArtifact]s.
|
|
101
|
+
Bundle mapRowToBundle(
|
|
102
|
+
PocketBaseBundleRow row, {
|
|
103
|
+
List<Map<String, dynamic>>? patches,
|
|
104
|
+
}) {
|
|
100
105
|
final rawMetadata = normalizeMetadata(row.metadata);
|
|
106
|
+
final patchArtifacts = patches
|
|
107
|
+
?.map((p) => BundlePatchArtifact.fromJson(p.cast<String, dynamic>()))
|
|
108
|
+
.toList();
|
|
101
109
|
return Bundle(
|
|
102
110
|
id: row.id,
|
|
103
111
|
channel: row.channel,
|
|
@@ -114,7 +122,7 @@ Bundle mapRowToBundle(PocketBaseBundleRow row) {
|
|
|
114
122
|
manifestStorageUri: row.manifestStorageUri,
|
|
115
123
|
manifestFileHash: row.manifestFileHash,
|
|
116
124
|
assetBaseStorageUri: row.assetBaseStorageUri,
|
|
117
|
-
patches:
|
|
125
|
+
patches: patchArtifacts,
|
|
118
126
|
rolloutCohortCount: row.rolloutCohortCount,
|
|
119
127
|
targetCohorts: row.targetCohorts,
|
|
120
128
|
);
|