File tree Expand file tree Collapse file tree 3 files changed +14
-11
lines changed Expand file tree Collapse file tree 3 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ const String keyApplicationName = '';
2
2
const String keyParseApplicationId = '' ;
3
3
const String keyParseMasterKey = '' ;
4
4
const String keyParseServerUrl = '' ;
5
+ const bool keyDebug = true ;
Original file line number Diff line number Diff line change @@ -94,22 +94,22 @@ class _MyAppState extends State<MyApp> {
94
94
95
95
Future <void > runTestQueries () async {
96
96
// Basic repository example
97
- await repositoryAddUser ();
97
+ /* await repositoryAddUser();
98
98
await repositoryAddItems();
99
99
await repositoryGetAllItems();
100
-
100
+ */
101
101
//Basic usage
102
- await createItem ();
102
+ /* await createItem();
103
103
await getAllItems();
104
104
await getAllItemsByName();
105
105
await getSingleItem();
106
106
await getConfigs();
107
- await query ();
107
+ await query();*/
108
108
await initUser ();
109
- await initInstallation ();
109
+ /* await initInstallation();
110
110
await function();
111
111
await functionWithParameters();
112
- await test ();
112
+ await test();*/
113
113
}
114
114
115
115
Future <void > initInstallation () async {
@@ -221,16 +221,19 @@ class _MyAppState extends State<MyApp> {
221
221
Future <void > initUser () async {
222
222
// All return type ParseUser except all
223
223
ParseUser user =
224
- ParseUser ('TestFlutter ' , 'TestPassword123 ' , 'test.flutter@gmail .com' );
224
+ ParseUser ('RE9fU360lishjFKC5dLZS4Zwm ' , 'password ' , 'test@facebook .com' );
225
225
226
226
/// Sign-up
227
- ParseResponse response = await user.signUp ();
227
+ /* ParseResponse response = await user.signUp();
228
228
if (response.success) {
229
229
user = response.result;
230
- }
230
+ }*/
231
+
232
+ ParseUser user1 = await ParseUser .currentUser ();
233
+ user1.authData;
231
234
232
235
/// Login
233
- response = await user.login ();
236
+ ParseResponse response = await user.login ();
234
237
if (response.success) {
235
238
user = response.result;
236
239
}
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ dependencies:
20
20
xxtea : ^2.0.2
21
21
shared_preferences : ^0.5.3+2
22
22
23
-
24
23
# Utils
25
24
path_provider : ^1.1.2
26
25
uuid : ^2.0.0
You can’t perform that action at this time.
0 commit comments