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
Added support for authentication codes for the VM service #8527
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9464c62
Added support for authentication codes for the VM service
bkonyi de4712c
Merge branch 'master' into auth_codes
bkonyi 4ce96bf
Formatting
bkonyi 17df86d
Licenses
bkonyi 012a5c6
Disable auth codes by default for now
bkonyi fd02195
Comments
bkonyi 66713ea
Comments
bkonyi 4aba26b
Comments
bkonyi 3be42f4
Update FlutterActivityDelegate.java
bkonyi 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
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 |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| Signature: 1ab2f2e559e655ad5cfe1e759d241b54 | ||
| Signature: 866085660a05bb407caffc09636cbd32 | ||
|
|
||
| UNUSED LICENSES: | ||
|
|
||
|
|
||
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
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 |
|---|---|---|
|
|
@@ -27,6 +27,8 @@ public class FlutterShellArgs { | |
| public static final String ARG_TRACE_STARTUP = "--trace-startup"; | ||
| public static final String ARG_KEY_START_PAUSED = "start-paused"; | ||
| public static final String ARG_START_PAUSED = "--start-paused"; | ||
| public static final String ARG_KEY_ENABLE_SERVICE_AUTH_CODES = "enable-service-auth-codes"; | ||
| public static final String ARG_ENABLE_SERVICE_AUTH_CODES = "--enable-service-auth-codes"; | ||
| public static final String ARG_KEY_USE_TEST_FONTS = "use-test-fonts"; | ||
| public static final String ARG_USE_TEST_FONTS = "--use-test-fonts"; | ||
| public static final String ARG_KEY_ENABLE_DART_PROFILING = "enable-dart-profiling"; | ||
|
|
@@ -56,6 +58,11 @@ public static FlutterShellArgs fromIntent(@NonNull Intent intent) { | |
| if (intent.getBooleanExtra(ARG_KEY_START_PAUSED, false)) { | ||
| args.add(ARG_START_PAUSED); | ||
| } | ||
| // TODO(bkonyi): when authentication codes are enabled by default, change | ||
| // to 'disable-service-auth-codes' instead of 'enable-service-auth-codes'. | ||
| if (intent.getBooleanExtra(ARG_KEY_ENABLE_SERVICE_AUTH_CODES, false)) { | ||
| args.add(ARG_ENABLE_SERVICE_AUTH_CODES); | ||
| } | ||
| if (intent.getBooleanExtra(ARG_KEY_USE_TEST_FONTS, false)) { | ||
| args.add(ARG_USE_TEST_FONTS); | ||
| } | ||
|
|
@@ -133,4 +140,4 @@ public String[] toArray() { | |
| String[] argsArray = new String[args.size()]; | ||
| return args.toArray(argsArray); | ||
| } | ||
| } | ||
| } | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure why this line changed, but I'm guessing it's something to do with Vim. I tried to fix it but wasn't having much luck. If it's a problem, I'll go and fight with it some more.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Your editor (or maybe git) is adding a newline at the end of the file. |
||
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.
Can this not be a negative please?
enable_service_auth_codes = falseThere 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.
This is meant to be temporary and will be enabled by default later. I'd really rather avoid having to change everything only to have to change it back in the next day or so.