Skip to content

Commit 08e56a2

Browse files
committed
Updated readme
1 parent 1a956e4 commit 08e56a2

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,22 @@ or clone this repository and add to your project. As this is an early developmen
2323
Once you have the library added to your project, upon first call to your app (Similar to what your application class would be) add the following...
2424
2525
```dart
26-
Parse().initialize(
26+
await Parse().initialize(
2727
ApplicationConstants.keyApplicationId,
2828
ApplicationConstants.keyParseServerUrl);
2929
```
3030
if you want to use secure storage also that's allow using sdk on desktop application
3131
```dart
3232
33-
Parse().initialize(keyParseApplicationId, keyParseServerUrl,
33+
await Parse().initialize(keyParseApplicationId, keyParseServerUrl,
3434
masterKey: keyParseMasterKey,
3535
debug: true,
36-
coreStore: CoreStoreImp.getInstance());
36+
coreStore: await CoreStoreSembastImp.getInstance());
3737
```
3838
It's possible to add other params, such as ...
3939

4040
```dart
41-
Parse().initialize(
41+
await Parse().initialize(
4242
ApplicationConstants.keyApplicationId,
4343
ApplicationConstants.keyParseServerUrl,
4444
masterKey: ApplicationConstants.keyParseMasterKey,
@@ -47,7 +47,7 @@ Parse().initialize(
4747
liveQueryUrl: ApplicationConstants.keyLiveQueryUrl,
4848
autoSendSessionId: true,
4949
securityContext: securityContext,
50-
coreStore: CoreStoreSembastImp.getInstance());
50+
coreStore: await CoreStoreSharedPrefsImp.getInstance());
5151
```
5252

5353
## Objects

example/lib/main.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ class _MyAppState extends State<MyApp> {
6868

6969
// Initialize parse
7070
await Parse().initialize(keyParseApplicationId, keyParseServerUrl,
71-
masterKey: keyParseMasterKey, debug: true, coreStore: coreStore);
71+
masterKey: keyParseMasterKey,
72+
debug: true,
73+
coreStore: await CoreStoreSharedPrefsImp.getInstance());
7274

7375
//parse serve with secure store and desktop support
7476

0 commit comments

Comments
 (0)