Skip to content

Commit 2878f8c

Browse files
committed
v1.0.23 - Released
1 parent 2462fca commit 2878f8c

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

example/lib/domain/constants/application_constants.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ const String keyApplicationName = '';
22
const String keyParseApplicationId = '';
33
const String keyParseMasterKey = '';
44
const String keyParseServerUrl = '';
5+
const bool keyDebug = true;

example/lib/main.dart

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,22 +94,22 @@ class _MyAppState extends State<MyApp> {
9494

9595
Future<void> runTestQueries() async {
9696
// Basic repository example
97-
await repositoryAddUser();
97+
/* await repositoryAddUser();
9898
await repositoryAddItems();
9999
await repositoryGetAllItems();
100-
100+
*/
101101
//Basic usage
102-
await createItem();
102+
/* await createItem();
103103
await getAllItems();
104104
await getAllItemsByName();
105105
await getSingleItem();
106106
await getConfigs();
107-
await query();
107+
await query();*/
108108
await initUser();
109-
await initInstallation();
109+
/* await initInstallation();
110110
await function();
111111
await functionWithParameters();
112-
await test();
112+
await test();*/
113113
}
114114

115115
Future<void> initInstallation() async {
@@ -221,16 +221,19 @@ class _MyAppState extends State<MyApp> {
221221
Future<void> initUser() async {
222222
// All return type ParseUser except all
223223
ParseUser user =
224-
ParseUser('TestFlutter', 'TestPassword123', 'test.flutter@gmail.com');
224+
ParseUser('RE9fU360lishjFKC5dLZS4Zwm', 'password', 'test@facebook.com');
225225

226226
/// Sign-up
227-
ParseResponse response = await user.signUp();
227+
/*ParseResponse response = await user.signUp();
228228
if (response.success) {
229229
user = response.result;
230-
}
230+
}*/
231+
232+
ParseUser user1 = await ParseUser.currentUser();
233+
user1.authData;
231234

232235
/// Login
233-
response = await user.login();
236+
ParseResponse response = await user.login();
234237
if (response.success) {
235238
user = response.result;
236239
}

pubspec.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ dependencies:
2020
xxtea: ^2.0.2
2121
shared_preferences: ^0.5.3+2
2222

23-
2423
# Utils
2524
path_provider: ^1.1.2
2625
uuid: ^2.0.0

0 commit comments

Comments
 (0)