forked from flutter/plugins
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into implement_zoomEnabled_for_ios_and_android
* master: Implement Android WebView api with pigeon (Java portion) (flutter#4441) [in_app_purchase] Update to the latest pkg:json_serializable (flutter#4434) Implement Android WebView api with pigeon (Dart portion) (flutter#4435) upgraded usage of BinaryMessenger (flutter#4451) [flutter_plugin_tools] Fix pubspec-check on Windows (flutter#4428) Use OpenJDK 11 in CI jobs (flutter#4419) [google_sign_in] remove the commented out code in tests (flutter#4442)
- Loading branch information
Showing
77 changed files
with
8,738 additions
and
929 deletions.
There are no files selected for viewing
This file contains 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 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 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,67 @@ | ||
// Copyright 2013 The Flutter Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
// | ||
// stable_conditional.dart | ||
// | ||
// Performs simple find and replace operations for conditional compilation | ||
// before executing stable channel tests. | ||
// | ||
// Example input: | ||
// int main() { | ||
// // FLUTTER_STABLE_CONDITIONAL_IF_NOT_STABLE | ||
// printf("hello world\n"); | ||
// // FLUTTER_STABLE_CONDITIONAL_ELSE | ||
// // printf("goodbye world\n"); | ||
// // FLUTTER_STABLE_CONDITIONAL_ENDIF | ||
// } | ||
// | ||
// Example output: | ||
// int main() { | ||
// printf("goodbye world\n"); | ||
// } | ||
|
||
import 'dart:convert' show LineSplitter; | ||
import 'dart:io' show FileSystemEntity, File; | ||
|
||
final List<String> _filesToProcess = <String>[ | ||
'packages/android_intent/android/src/test/java/io/flutter/plugins/androidintent/MethodCallHandlerImplTest.java', | ||
'packages/camera/camera/android/src/test/java/io/flutter/plugins/camera/DartMessengerTest.java', | ||
'packages/quick_actions/quick_actions/android/src/test/java/io/flutter/plugins/quickactions/QuickActionsTest.java', | ||
'packages/url_launcher/url_launcher/android/src/test/java/io/flutter/plugins/urllauncher/MethodCallHandlerImplTest.java', | ||
]; | ||
|
||
final RegExp _replacer = RegExp( | ||
r'^\s*// FLUTTER_STABLE_CONDITIONAL_IF_NOT_STABLE(.*?)^\s*// FLUTTER_STABLE_CONDITIONAL_ELSE(.*?)^\s*// FLUTTER_STABLE_CONDITIONAL_ENDIF', | ||
multiLine: true, | ||
dotAll: true); | ||
final RegExp _commentRemover = RegExp(r'^(\s*)\/\/\s*(.*)'); | ||
const String _newline = '\n'; | ||
|
||
void _process(FileSystemEntity entity) { | ||
const LineSplitter splitter = LineSplitter(); | ||
final String text = File(entity.path).readAsStringSync(); | ||
String replaced = ''; | ||
int index = 0; | ||
for (final RegExpMatch match in _replacer.allMatches(text)) { | ||
replaced += text.substring(index, match.start); | ||
for (final String line in splitter.convert(match.group(2)!)) { | ||
final RegExpMatch? commentRemoverMatch = _commentRemover.firstMatch(line); | ||
if (commentRemoverMatch != null) { | ||
replaced += commentRemoverMatch.group(1)! + | ||
commentRemoverMatch.group(2)! + | ||
_newline; | ||
} | ||
} | ||
index = match.end; | ||
} | ||
if (replaced.isNotEmpty) { | ||
replaced += text.substring(index, text.length); | ||
File(entity.path).writeAsStringSync(replaced); | ||
print('modified: ${entity.path}'); | ||
} | ||
} | ||
|
||
void main(List<String> args) { | ||
_filesToProcess.map((String path) => File(path)).forEach(_process); | ||
} |
This file contains 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 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 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
5 changes: 0 additions & 5 deletions
5
...es/connectivity/connectivity/example/android/app/gradle/wrapper/gradle-wrapper.properties
This file was deleted.
Oops, something went wrong.
This file contains 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 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 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 was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md
This file contains 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 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,7 +1,8 @@ | ||
# See https://pub.dev/packages/build_config | ||
targets: | ||
$default: | ||
builders: | ||
json_serializable: | ||
options: | ||
any_map: true | ||
create_to_json: true | ||
create_to_json: false |
Oops, something went wrong.