4
4
/// Dart package for accessing Parse Server
5
5
library flutter_parse;
6
6
7
- import 'package:http/http.dart' as http ;
7
+ import 'package:http/http.dart' ;
8
8
import 'package:meta/meta.dart' ;
9
+ import 'package:sembast/sembast.dart' ;
10
+ import 'package:sembast/sembast_memory.dart' ;
9
11
10
12
export 'src/parse_acl.dart' ;
11
13
export 'src/parse_config.dart' ;
@@ -18,7 +20,7 @@ export 'src/parse_role.dart';
18
20
export 'src/parse_session.dart' ;
19
21
export 'src/parse_user.dart' ;
20
22
21
- const String kParseSdkVersion = "0.2.0 " ;
23
+ const String kParseSdkVersion = "0.2.3 " ;
22
24
23
25
final Parse parse = Parse ._internal ();
24
26
@@ -65,9 +67,6 @@ class Parse {
65
67
bool get enableLogging => configuration.enableLogging;
66
68
67
69
bool get initialized => configuration != null ;
68
-
69
- bool get isWebPlatform =>
70
- Uri .base .scheme != 'file' || ! Uri .base .path.endsWith ('/' );
71
70
}
72
71
73
72
class ParseConfiguration {
@@ -76,14 +75,17 @@ class ParseConfiguration {
76
75
@required this .applicationId,
77
76
this .clientKey,
78
77
this .enableLogging,
79
- this .client,
80
- }) : uri = Uri .parse ((server.endsWith ("/" )
78
+ this .httpClient,
79
+ DatabaseFactory databaseFactory,
80
+ }) : uri = Uri .parse ((server.endsWith ("/" )
81
81
? server.substring (0 , server.length - 1 )
82
- : server));
82
+ : server)),
83
+ databaseFactory = databaseFactoryMemory;
83
84
84
85
final Uri uri;
85
86
final String applicationId;
86
87
final String clientKey;
87
88
final bool enableLogging;
88
- final http.BaseClient client;
89
+ final BaseClient httpClient;
90
+ final DatabaseFactory databaseFactory;
89
91
}
0 commit comments