File tree Expand file tree Collapse file tree 7 files changed +15
-28
lines changed Expand file tree Collapse file tree 7 files changed +15
-28
lines changed Original file line number Diff line number Diff line change @@ -36,20 +36,6 @@ android {
36
36
// TODO: Add your own signing config for the release build.
37
37
// Signing with the debug keys for now, so `flutter run --release` works.
38
38
signingConfig signingConfigs. debug
39
-
40
- // Workaround for https://github.com/flutter/flutter/issues/18494
41
- ndk {
42
- if (! project. hasProperty(' target-platform' ))
43
- abiFilters ' armeabi-v7a'
44
- else switch (project. property(' target-platform' )) {
45
- case ' android-arm' : abiFilters ' armeabi-v7a' ; break
46
- case ' android-arm64' : abiFilters ' arm64-v8a' ; break
47
- case ' android-x86' : abiFilters ' x86' ; break
48
- case ' android-x64' : abiFilters ' x86_64' ; break
49
- default :
50
- throw new GradleException (" Unrecognized target-platform: " + project. property(' target-platform' ))
51
- }
52
- }
53
39
}
54
40
}
55
41
Original file line number Diff line number Diff line change 1
1
org.gradle.jvmargs =-Xmx1536M
2
+ android.enableR8 =true
3
+ android.useAndroidX =true
4
+ android.enableJetifier =true
Original file line number Diff line number Diff line change 1
- import 'package:flutter/material.dart' ;
2
1
import 'dart:core' ;
2
+ import 'package:flutter/material.dart' ;
3
+
3
4
import 'src/loopback_sample.dart' ;
4
5
import 'src/get_user_media_sample.dart' ;
5
6
import 'src/get_display_media_sample.dart' ;
@@ -13,11 +14,6 @@ class MyApp extends StatefulWidget {
13
14
_MyAppState createState () => new _MyAppState ();
14
15
}
15
16
16
- enum DialogDemoAction {
17
- cancel,
18
- connect,
19
- }
20
-
21
17
class _MyAppState extends State <MyApp > {
22
18
List <RouteItem > items;
23
19
Original file line number Diff line number Diff line change 1
1
import 'dart:io' ;
2
+ import 'dart:core' ;
2
3
3
4
import 'package:flutter/material.dart' ;
4
5
import 'package:flutter_webrtc/webrtc.dart' ;
5
- import 'dart:core' ;
6
6
import 'package:path_provider/path_provider.dart' ;
7
7
8
8
/*
Original file line number Diff line number Diff line change 1
- import 'package:flutter/material.dart' ;
2
- import 'package:flutter_webrtc/webrtc.dart' ;
3
1
import 'dart:core' ;
4
2
import 'dart:async' ;
5
3
4
+ import 'package:flutter/material.dart' ;
5
+ import 'package:flutter_webrtc/webrtc.dart' ;
6
+
7
+
6
8
7
9
class LoopBackSample extends StatefulWidget {
8
10
@@ -43,15 +45,15 @@ class _MyAppState extends State<LoopBackSample> {
43
45
44
46
void handleStatsReport (Timer timer) async {
45
47
if (_peerConnection != null ) {
46
- List <StatsReport > reports = await _peerConnection.getStats (null );
48
+ List <StatsReport > reports = await _peerConnection.getStats ();
47
49
reports.forEach ((report) {
48
50
print ("report => { " );
49
51
print (" id: " + report.id + "," );
50
52
print (" type: " + report.type + "," );
51
53
print (" timestamp: ${report .timestamp }," );
52
54
print (" values => {" );
53
55
report.values.forEach ((key, value) {
54
- print (" " + key + " : " + value + ", " );
56
+ print (" " + key + " : " + value. toString () + ", " );
55
57
});
56
58
print (" }" );
57
59
print ("}" );
Original file line number Diff line number Diff line change 1
1
import 'package:flutter/material.dart' ;
2
- import 'dart:core' ;
3
2
4
3
typedef void RouteCallback (BuildContext context);
5
4
6
5
class RouteItem {
7
6
RouteItem ({
8
7
@required this .title,
9
- @required this .subtitle,
10
- @required this .push,
8
+ this .subtitle,
9
+ this .push,
11
10
});
12
11
13
12
final String title;
Original file line number Diff line number Diff line change 1
1
name : webrtc_example
2
2
description : Demonstrates how to use the webrtc plugin.
3
+ version : 1.0.0
3
4
4
5
dependencies :
5
6
flutter :
You can’t perform that action at this time.
0 commit comments