File tree Expand file tree Collapse file tree 5 files changed +19
-5
lines changed Expand file tree Collapse file tree 5 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ Future configSetup() async {
135
135
void _errorSetup () {
136
136
authorizeResult.innerText = '''
137
137
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 ) ''' ;
139
139
}
140
140
141
141
final clientId = appOptions? .clientId;
Original file line number Diff line number Diff line change 1
1
# Copy this file as "local.config.yaml" in the same folder (.gitignored)
2
2
3
3
# The developer key needed for the picker API
4
- developerKey = [ENTER_YOUR_DEVELOPER_KEY];
4
+ # Credentials/API Keys
5
+ developerKey : [ENTER_YOUR_DEVELOPER_KEY]
5
6
# 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]
Original file line number Diff line number Diff line change @@ -13,4 +13,11 @@ class AppOptions {
13
13
clientId = map['clientId' ]? .toString ();
14
14
clientSecret = map['clientSecret' ]? .toString ();
15
15
}
16
+
17
+ @override
18
+ String toString () => {
19
+ 'developerKey' : developerKey,
20
+ 'clientId' : clientId,
21
+ 'clientSecret' : clientSecret
22
+ }.toString ();
16
23
}
Original file line number Diff line number Diff line change 1
1
import 'dart:async' ;
2
+
2
3
import 'package:http/browser_client.dart' ;
3
4
import 'package:yaml/yaml.dart' ;
4
5
Original file line number Diff line number Diff line change 1
1
name : tekartik_google_jsapi_picker
2
- version : 0.2.0
2
+ version : 0.2.1
3
3
description : file picker api
4
4
5
5
environment :
@@ -11,7 +11,10 @@ dependencies:
11
11
url : git://github.com/alextekartik/google-jsapi.dart
12
12
ref : dart2
13
13
version : ' >=0.2.0'
14
-
14
+ tekartik_common_utils :
15
+ git :
16
+ url : git://github.com/tekartik/common_utils.dart
17
+ ref : dart2
15
18
dev_dependencies :
16
19
tekartik_bootstrap :
17
20
git :
You can’t perform that action at this time.
0 commit comments