mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
* Re-land "Support multiple shells in a single process. (#4932)" This reverts commit 723c7d01439da4261bc836075fb55651ce9e7f03.
27 lines
741 B
C++
27 lines
741 B
C++
// Copyright 2018 The Fuchsia Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#include <trace-provider/provider.h>
|
|
#include <cstdlib>
|
|
|
|
#include "application_runner.h"
|
|
#include "lib/fsl/tasks/message_loop.h"
|
|
|
|
int main(int argc, char const* argv[]) {
|
|
fsl::MessageLoop loop;
|
|
|
|
trace::TraceProvider provider(loop.async());
|
|
FXL_DCHECK(provider.is_valid()) << "Trace provider must be valid.";
|
|
|
|
FXL_LOG(INFO) << "Flutter application services initialized.";
|
|
flutter::ApplicationRunner runner([&loop]() {
|
|
loop.PostQuitTask();
|
|
FXL_LOG(INFO) << "Flutter application services terminated. Good bye...";
|
|
});
|
|
|
|
loop.Run();
|
|
|
|
return EXIT_SUCCESS;
|
|
}
|