Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1480)

Unified Diff: pkg/kernel/lib/target/flutter.dart

Issue 2980513002: Add native extension to flutter targets (this was removed accidentally in an (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/target/flutter.dart
diff --git a/pkg/kernel/lib/target/flutter.dart b/pkg/kernel/lib/target/flutter.dart
index 79b307156554150d54d84a4e259f71f8421dcc1a..ea24427f61c47b6678dcba697351050e0864be3c 100644
--- a/pkg/kernel/lib/target/flutter.dart
+++ b/pkg/kernel/lib/target/flutter.dart
@@ -87,4 +87,12 @@ class FlutterTarget extends Target {
// TODO(ahe): This should probably return the same as VmTarget does.
return new InvalidExpression();
}
+
+ // TODO(sigmund,ahe): limit this to `dart-ext` libraries only (see
+ // https://github.com/dart-lang/sdk/issues/29763).
+ @override
+ bool enableNative(Uri uri) => true;
+
+ @override
+ bool get nativeExtensionExpectsString => true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698