[flutter_tools] rename output LICENSE file to NOTICES and support loading either (#57871)
Work towards #16723 This is only safe to land after #58131 lands in google3. Only build NOTICES in asset manfiest, and load either LICENSE or NOTICES from pubspec dependencies.
This commit is contained in:
@@ -11,7 +11,7 @@ import 'package:flutter_devicelab/framework/utils.dart';
|
||||
|
||||
final List<String> flutterAssets = <String>[
|
||||
'assets/flutter_assets/AssetManifest.json',
|
||||
'assets/flutter_assets/LICENSE',
|
||||
'assets/flutter_assets/NOTICES',
|
||||
'assets/flutter_assets/fonts/MaterialIcons-Regular.ttf',
|
||||
'assets/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf',
|
||||
];
|
||||
|
||||
@@ -544,7 +544,7 @@ class CompileTest {
|
||||
|
||||
final _UnzipListEntry libflutter = fileToMetadata['lib/armeabi-v7a/libflutter.so'];
|
||||
final _UnzipListEntry libapp = fileToMetadata['lib/armeabi-v7a/libapp.so'];
|
||||
final _UnzipListEntry license = fileToMetadata['assets/flutter_assets/LICENSE'];
|
||||
final _UnzipListEntry license = fileToMetadata['assets/flutter_assets/NOTICES'];
|
||||
|
||||
return <String, dynamic>{
|
||||
'libflutter_uncompressed_bytes': libflutter.uncompressedSize,
|
||||
|
||||
Reference in New Issue
Block a user