mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Adds the ability to pass engine switches temporarily at runtime via environment variables. Uses the same approach recently added to Windows and macOS. This is enabled only for debug/profile to avoid potential issues with tampering with released applications, but if there is a need for that in the future it could be added (potentially with a whitelist, as is currently used for Dart VM flags). Fixes flutter/flutter#60393
27 lines
783 B
C
27 lines
783 B
C
// Copyright 2013 The Flutter Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_DART_PROJECT_PRIVATE_H_
|
|
#define FLUTTER_SHELL_PLATFORM_LINUX_FL_DART_PROJECT_PRIVATE_H_
|
|
|
|
#include <glib-object.h>
|
|
|
|
#include "flutter/shell/platform/linux/public/flutter_linux/fl_dart_project.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
/**
|
|
* fl_dart_project_get_switches:
|
|
* @project: an #FlDartProject.
|
|
*
|
|
* Determines the engine switches that should be passed to the Flutter engine.
|
|
*
|
|
* Returns: an array of switches to pass to the Flutter engine.
|
|
*/
|
|
GPtrArray* fl_dart_project_get_switches(FlDartProject* project);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_DART_PROJECT_PRIVATE_H_
|