Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit b8cfc01

Browse files
committed
More documentation changes
1 parent 2130d59 commit b8cfc01

File tree

3 files changed

+26
-10
lines changed

3 files changed

+26
-10
lines changed

shell/common/engine.h

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,10 @@ class Engine final : public RuntimeDelegate,
269269
/// `LoadDartDeferredLibrary`
270270
///
271271
/// @param[in] loading_unit_id The unique id of the deferred library's
272-
/// loading unit.
272+
/// loading unit. This id is to be passed
273+
/// back into LoadDartDeferredLibrary
274+
/// in order to identify which deferred
275+
/// library to load.
273276
///
274277
virtual void RequestDartDeferredLibrary(intptr_t loading_unit_id) = 0;
275278
};
@@ -787,17 +790,19 @@ class Engine final : public RuntimeDelegate,
787790
/// The Dart compiler may generate separate shared libraries
788791
/// files called 'loading units' when libraries are imported
789792
/// as deferred. Each of these shared libraries are identified
790-
/// by a unique loading unit id and can be dynamically loaded
791-
/// into the VM by dlopen-ing and resolving the data and
792-
/// instructions symbols.
793+
/// by a unique loading unit id. Callers should dlopen the
794+
/// shared library file and use dlsym to resolve the dart
795+
/// symbols. These symbols can then be passed to this method to
796+
/// be dynamically loaded into the VM.
793797
///
794798
/// This method is paired with a RequestDartDeferredLibrary
795799
/// invocation that provides the embedder with the loading unit id
796800
/// of the deferred library to load.
797801
///
798802
///
799803
/// @param[in] loading_unit_id The unique id of the deferred library's
800-
/// loading unit.
804+
/// loading unit, as passed in by
805+
/// RequestDartDeferredLibrary.
801806
///
802807
/// @param[in] snapshot_data Dart snapshot data of the loading unit's
803808
/// shared library.

shell/common/platform_view.h

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ class PlatformView {
238238
const uint8_t* snapshot_data,
239239
const uint8_t* snapshot_instructions) = 0;
240240

241+
// TODO(garyq): Implement a proper asset_resolver replacement instead of
242+
// overwriting the entire asset manager.
241243
//--------------------------------------------------------------------------
242244
/// @brief Sets the asset manager of the engine to asset_manager
243245
///
@@ -608,7 +610,10 @@ class PlatformView {
608610
/// `LoadDartDeferredLibrary`
609611
///
610612
/// @param[in] loading_unit_id The unique id of the deferred library's
611-
/// loading unit.
613+
/// loading unit. This id is to be passed
614+
/// back into LoadDartDeferredLibrary
615+
/// in order to identify which deferred
616+
/// library to load.
612617
///
613618
virtual void RequestDartDeferredLibrary(intptr_t loading_unit_id);
614619

@@ -620,17 +625,19 @@ class PlatformView {
620625
/// The Dart compiler may generate separate shared libraries
621626
/// files called 'loading units' when libraries are imported
622627
/// as deferred. Each of these shared libraries are identified
623-
/// by a unique loading unit id and can be dynamically loaded
624-
/// into the VM by dlopen-ing and resolving the data and
625-
/// instructions symbols.
628+
/// by a unique loading unit id. Callers should dlopen the
629+
/// shared library file and use dlsym to resolve the dart
630+
/// symbols. These symbols can then be passed to this method to
631+
/// be dynamically loaded into the VM.
626632
///
627633
/// This method is paired with a RequestDartDeferredLibrary
628634
/// invocation that provides the embedder with the loading unit id
629635
/// of the deferred library to load.
630636
///
631637
///
632638
/// @param[in] loading_unit_id The unique id of the deferred library's
633-
/// loading unit.
639+
/// loading unit, as passed in by
640+
/// RequestDartDeferredLibrary.
634641
///
635642
/// @param[in] snapshot_data Dart snapshot data of the loading unit's
636643
/// shared library.

shell/platform/android/embedding_bundle/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ android {
4848
embedding "androidx.lifecycle:lifecycle-common:$lifecycle_version"
4949
embedding "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"
5050

51+
// This dependency is here to allow linking to Play core in tests, but
52+
// is not used in a default Flutter app. This dependency should be manually
53+
// added to the user's app gradle in order to opt into using split AOT
54+
// dynamic features.
5155
embedding "com.google.android.play:core:1.8.0"
5256

5357
// Testing

0 commit comments

Comments
 (0)