This repository was archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[android_intent] Migrate to the new embedding #2143
Merged
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
5a82ef0
Refactor the existing logic
c26003e
Migrate the plugin to the new embedding
7cca6f9
Add a unit test.
dd6079c
Review feedback.
a5caa9f
Changes from chat discussion
0a0e3e3
Naming changes based on offline discussion.
5434ffb
Last migration fixes
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
Changes from chat discussion
1. Move all classes into `dev`. 2. Clean up the MethodChannel based on the engine lifecycle handlers.
- Loading branch information
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
28 changes: 28 additions & 0 deletions
28
...android/src/main/java/dev/flutter/plugins/androidintent/AndroidIntentPluginRegistrar.java
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 |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| // Copyright 2017 The Chromium Authors. All rights reserved. | ||
| // Use of this source code is governed by a BSD-style license that can be | ||
| // found in the LICENSE file. | ||
|
|
||
| package dev.flutter.plugins.androidintent; | ||
|
|
||
| import io.flutter.plugin.common.PluginRegistry.Registrar; | ||
|
|
||
| /** | ||
| * Automatically registers a plugin implementation that relies on the stable {@code | ||
| * io.flutter.plugin.common} package. | ||
| */ | ||
| public final class AndroidIntentPluginRegistrar { | ||
| private AndroidIntentPluginRegistrar() {} | ||
|
|
||
| /** | ||
| * Registers a plugin implementation that uses the stable {@code io.flutter.plugin.common} | ||
| * package. | ||
| * | ||
| * <p>Calling this automatically initializes the plugin. However plugins initialized this way | ||
| * won't react to changes in activity or context, unlike {@link AndroidIntentPlugin}. | ||
| */ | ||
| public static void registerWith(Registrar registrar) { | ||
| IntentSender sender = new IntentSender(registrar.activity(), registrar.context()); | ||
| MethodCallHandlerImpl impl = new MethodCallHandlerImpl(sender); | ||
| impl.startListening(registrar.messenger()); | ||
| } | ||
| } |
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
26 changes: 0 additions & 26 deletions
26
...id_intent/android/src/main/java/io/flutter/plugins/androidintent/AndroidIntentPlugin.java
This file was deleted.
Oops, something went wrong.
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
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.
Uh oh!
There was an error while loading. Please reload this page.