Skip to content

Commit 0b25e6a

Browse files
committed
Add snapshot id as an additional parameter
1 parent ea91e52 commit 0b25e6a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

bin/flutterflow_cli.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ void main(List<String> args) async {
5959
exportAsModule: parsedArguments.command!['as-module'],
6060
exportAsDebug: parsedArguments.command!['as-debug'],
6161
environmentName: parsedArguments.command!['project-environment'],
62+
snapshotId: parsedArguments.command!['snapshot-id'],
6263
);
6364
break;
6465
case 'deploy-firebase':

lib/src/flutterflow_api_client.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ Future<String?> exportCode({
7676
String? branchName,
7777
String? environmentName,
7878
String? commitHash,
79+
String? snapshotId,
7980
bool exportAsDebug = false,
8081
}) async {
8182
stderr.write('Downloading code with the FlutterFlow CLI...\n');
@@ -97,6 +98,7 @@ Future<String?> exportCode({
9798
branchName: branchName,
9899
environmentName: environmentName,
99100
commitHash: commitHash,
101+
snapshotId: snapshotId,
100102
exportAsModule: exportAsModule,
101103
includeAssets: includeAssets,
102104
format: format,
@@ -173,6 +175,7 @@ Future<dynamic> _callExport({
173175
String? branchName,
174176
String? environmentName,
175177
String? commitHash,
178+
String? snapshotId,
176179
required bool exportAsModule,
177180
required bool includeAssets,
178181
required bool format,
@@ -187,6 +190,7 @@ Future<dynamic> _callExport({
187190
'include_assets_map': includeAssets,
188191
'format': format,
189192
'export_as_debug': exportAsDebug,
193+
'snapshot_id': snapshotId,
190194
});
191195
return await _callEndpoint(
192196
client: client,

0 commit comments

Comments
 (0)