Flutter Engine
The Flutter Engine
FlutterApplicationInfo.java
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5package io.flutter.embedding.engine.loader;
6
7/** Encapsulates all the information that Flutter needs from application manifest. */
8public final class FlutterApplicationInfo {
9 private static final String DEFAULT_AOT_SHARED_LIBRARY_NAME = "libapp.so";
10 private static final String DEFAULT_VM_SNAPSHOT_DATA = "vm_snapshot_data";
11 private static final String DEFAULT_ISOLATE_SNAPSHOT_DATA = "isolate_snapshot_data";
12 private static final String DEFAULT_FLUTTER_ASSETS_DIR = "flutter_assets";
13
14 public final String aotSharedLibraryName;
15 public final String vmSnapshotData;
16 public final String isolateSnapshotData;
17 public final String flutterAssetsDir;
18 public final String domainNetworkPolicy;
19 public final String nativeLibraryDir;
21
24 String vmSnapshotData,
26 String flutterAssetsDir,
28 String nativeLibraryDir,
30 this.aotSharedLibraryName =
31 aotSharedLibraryName == null ? DEFAULT_AOT_SHARED_LIBRARY_NAME : aotSharedLibraryName;
32 this.vmSnapshotData = vmSnapshotData == null ? DEFAULT_VM_SNAPSHOT_DATA : vmSnapshotData;
33 this.isolateSnapshotData =
34 isolateSnapshotData == null ? DEFAULT_ISOLATE_SNAPSHOT_DATA : isolateSnapshotData;
35 this.flutterAssetsDir =
36 flutterAssetsDir == null ? DEFAULT_FLUTTER_ASSETS_DIR : flutterAssetsDir;
37 this.nativeLibraryDir = nativeLibraryDir;
38 this.domainNetworkPolicy = domainNetworkPolicy == null ? "" : domainNetworkPolicy;
39 this.automaticallyRegisterPlugins = automaticallyRegisterPlugins;
40 }
41}
FlutterApplicationInfo(String aotSharedLibraryName, String vmSnapshotData, String isolateSnapshotData, String flutterAssetsDir, String domainNetworkPolicy, String nativeLibraryDir, boolean automaticallyRegisterPlugins)