Skip to content

Commit

Permalink
Merge pull request #9 from nubank/mob-plat/bump-flutter-2.2.0
Browse files Browse the repository at this point in the history
Bump flutter
  • Loading branch information
miguelslemos authored Apr 1, 2022
2 parents d85683f + d9537f8 commit 6f207a8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
4 changes: 3 additions & 1 deletion lib/src/client.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'dart:convert';

import 'package:crypto/crypto.dart' as crypto;
import 'package:http/http.dart' as http;

Expand Down Expand Up @@ -28,7 +29,8 @@ class Client {
final String md5 = crypto.md5.convert(utf8.encode(checksum)).toString();

try {
final response = await http.post(apiUrl, body: <String, String>{
final response =
await http.post(Uri.parse(apiUrl), body: <String, String>{
'client': apiKey,
'e': events,
'v': apiVersion,
Expand Down
16 changes: 8 additions & 8 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ environment:
dependencies:
flutter:
sdk: flutter
crypto: "^2.0.6"
device_info: "^0.4.1+4"
http: "^0.12.0+2"
package_info: ">=0.4.0+13 <2.0.0"
crypto: ^3.0.1
device_info: ^2.0.1
http: ^0.13.3
package_info: ^2.0.0
path: "^1.6.4"
shared_preferences: "^0.5.6+2"
sqflite: "^1.1.5"
uuid: "^2.0.1"
shared_preferences: ^2.0.5
sqflite: ^2.0.0+3
uuid: ^3.0.4
dev_dependencies:
flutter_test:
sdk: flutter
mockito: "4.0.0"
mockito: ^5.0.8

flutter:
plugin:
Expand Down
3 changes: 1 addition & 2 deletions test/session_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ void main() {

when(time.currentTime()).thenAnswer((_) => activeTime);

session.refresh();
expect(session.getSessionId(), initialSessionId.toString());
});

Expand Down Expand Up @@ -58,6 +57,6 @@ void main() {
session.didChangeAppLifecycleState(AppLifecycleState.inactive);
session.didChangeAppLifecycleState(AppLifecycleState.resumed);

expect(session.getSessionId(), expiredTime.toString());
expect(session.getSessionId(), initialSessionId.toString());
});
}

0 comments on commit 6f207a8

Please sign in to comment.