Skip to content

Commit bb05fed

Browse files
committed
Merge remote-tracking branch 'origin/dart2' into dart2
2 parents 670dd5f + 2b40344 commit bb05fed

File tree

5 files changed

+19
-5
lines changed

5 files changed

+19
-5
lines changed

example/google_jsapi_picker_example.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Future configSetup() async {
135135
void _errorSetup() {
136136
authorizeResult.innerText = '''
137137
ERROR: Missing clientId, clientSecret or developerKey
138-
Create local.config.yaml from sample.local.config.yaml''';
138+
Create local.config.yaml from sample.local.config.yaml ($appOptions)''';
139139
}
140140

141141
final clientId = appOptions?.clientId;

example/sample.local.config.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Copy this file as "local.config.yaml" in the same folder (.gitignored)
22

33
# The developer key needed for the picker API
4-
developerKey = [ENTER_YOUR_DEVELOPER_KEY];
4+
# Credentials/API Keys
5+
developerKey: [ENTER_YOUR_DEVELOPER_KEY]
56
# The Client ID obtained from the Google Cloud Console.
6-
cliendId = [ENTER_YOUR_CLIENT_ID.apps.googleusercontent.com];
7+
# Credentials/OAuth 2.0 Client IDs
8+
clientId: [ENTER_YOUR_CLIENT_ID.apps.googleusercontent.com]
9+
clientSecret: [ENTER_YOUR_CLIENT_SECRET]

example/test_config.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,11 @@ class AppOptions {
1313
clientId = map['clientId']?.toString();
1414
clientSecret = map['clientSecret']?.toString();
1515
}
16+
17+
@override
18+
String toString() => {
19+
'developerKey': developerKey,
20+
'clientId': clientId,
21+
'clientSecret': clientSecret
22+
}.toString();
1623
}

example/test_setup.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import 'dart:async';
2+
23
import 'package:http/browser_client.dart';
34
import 'package:yaml/yaml.dart';
45

pubspec.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: tekartik_google_jsapi_picker
2-
version: 0.2.0
2+
version: 0.2.1
33
description: file picker api
44

55
environment:
@@ -11,7 +11,10 @@ dependencies:
1111
url: git://github.com/alextekartik/google-jsapi.dart
1212
ref: dart2
1313
version: '>=0.2.0'
14-
14+
tekartik_common_utils:
15+
git:
16+
url: git://github.com/tekartik/common_utils.dart
17+
ref: dart2
1518
dev_dependencies:
1619
tekartik_bootstrap:
1720
git:

0 commit comments

Comments
 (0)