Skip to content

Commit

Permalink
fix: output should be relative to project
Browse files Browse the repository at this point in the history
  • Loading branch information
russellwheatley committed Jan 13, 2023
1 parent 2f4f3dc commit 5f9f824
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ end
) async {
final file = File('${flutterApp.package.path}/firebase.json');

final relativePathFromProject = path.relative(pathToServiceFile, from: flutterApp.package.path);

// "schemes", "targets" or "default" property
final configuration = getProjectConfigurationProperty(projectConfiguration);

Expand All @@ -159,7 +161,7 @@ end
configurationMap[kProjectId] = projectId;
configurationMap[kAppId] = appId;
configurationMap[kUploadDebugSymbols] = debugSymbolScript;
configurationMap[kServiceFileOutput] = pathToServiceFile;
configurationMap[kServiceFileOutput] = relativePathFromProject;

final mapJson = json.encode(map);

Expand Down

0 comments on commit 5f9f824

Please sign in to comment.