We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c1208ca + f609b14 commit 0201c53Copy full SHA for 0201c53
lib/github.dart
@@ -0,0 +1,11 @@
1
+/// The code come from https://github.com/dart-lang/http/blob/9a17157e6a71972f929a95c6b2b36992e5e02c6d/lib/src/client.dart#L11-L16
2
+
3
+// ignore: uri_does_not_exist
4
+// ignore:
5
+export 'github_stub.dart'
6
7
+ if (dart.library.html) 'browser.dart'
8
9
+ if (dart.library.io) 'server.dart';
10
11
+export 'src/common.dart';
lib/github_stub.dart
@@ -0,0 +1,6 @@
+import 'src/common.dart';
+GitHub createGitHubClient(
+ {Authentication auth, String endpoint = "https://api.github.com"}) =>
+ throw UnsupportedError(
+ 'Cannot create a client without dart:html or dart:io.');
0 commit comments