This repository was archived by the owner on Feb 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6k
ios: remove shared_application and support app extension build #44732
Merged
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,12 +9,12 @@ | |
|
|
||
| NS_ASSUME_NONNULL_BEGIN | ||
|
|
||
| // Finds a bundle with the named `bundleID` within `searchURL`. | ||
| // Finds a bundle with the named `flutterFrameworkBundleID` within `searchURL`. | ||
| // | ||
| // Returns `nil` if the bundle cannot be found or if errors are encountered. | ||
| NSBundle* FLTFrameworkBundleInternal(NSString* bundleID, NSURL* searchURL); | ||
| NSBundle* FLTFrameworkBundleInternal(NSString* flutterFrameworkBundleID, NSURL* searchURL); | ||
|
|
||
| // Finds a bundle with the named `bundleID`. | ||
| // Finds a bundle with the named `flutterFrameworkBundleID`. | ||
| // | ||
| // `+[NSBundle bundleWithIdentifier:]` is slow, and can take in the order of | ||
| // tens of milliseconds in a minimal flutter app, and closer to 100 milliseconds | ||
|
|
@@ -28,7 +28,20 @@ NSBundle* FLTFrameworkBundleInternal(NSString* bundleID, NSURL* searchURL); | |
| // frameworks used by this file are placed. If the desired bundle cannot be | ||
| // found here, the implementation falls back to | ||
| // `+[NSBundle bundleWithIdentifier:]`. | ||
| NSBundle* FLTFrameworkBundleWithIdentifier(NSString* bundleID); | ||
| NSBundle* FLTFrameworkBundleWithIdentifier(NSString* flutterFrameworkBundleID); | ||
|
|
||
| // Find the bundle of the application. | ||
| // | ||
| // This returns [NSBundle mainBundle] if the current running process is the application. | ||
|
||
| NSBundle* FLTGetApplicationBundle(); | ||
stuartmorgan-g marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| // Find the Flutter asset directory from `bundle`. | ||
|
||
| // | ||
| // The raw path can be set by the application via info.plist's `FLTAssetsPath` key. | ||
| // If the key is not set, `flutter_assets` is used as the raw path value. | ||
| // | ||
| // If no valid asset is found under the raw path, return nil. | ||
|
||
| NSURL* FLTAssetsURLFromBundle(NSBundle* bundle); | ||
|
|
||
| NS_ASSUME_NONNULL_END | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Finds