@@ -35,8 +35,7 @@ import 'package:agora_rtc_engine/src/impl/native_iris_api_engine_binding_delegat
35
35
import 'package:flutter/foundation.dart'
36
36
show ChangeNotifier, defaultTargetPlatform;
37
37
import 'package:flutter/services.dart' show MethodChannel;
38
- import 'package:flutter/widgets.dart'
39
- show VoidCallback, TargetPlatform, debugPrint;
38
+ import 'package:flutter/widgets.dart' show VoidCallback, TargetPlatform;
40
39
import 'package:iris_method_channel/iris_method_channel.dart' ;
41
40
import 'package:meta/meta.dart' ;
42
41
@@ -259,11 +258,8 @@ class RtcEngineImpl extends rtc_engine_ex_binding.RtcEngineExImpl
259
258
_initializingCompleter = Completer <void >();
260
259
engineMethodChannel = const MethodChannel ('agora_rtc_ng' );
261
260
262
- String externalFilesDir = '' ;
263
261
if (defaultTargetPlatform == TargetPlatform .android) {
264
- final androidInitResult =
265
- await engineMethodChannel.invokeMethod ('androidInit' );
266
- externalFilesDir = androidInitResult['externalFilesDir' ] ?? '' ;
262
+ await engineMethodChannel.invokeMethod ('androidInit' );
267
263
}
268
264
269
265
List <int > args = [];
@@ -284,16 +280,6 @@ class RtcEngineImpl extends rtc_engine_ex_binding.RtcEngineExImpl
284
280
jsonEncode ({'appType' : 4 }),
285
281
));
286
282
287
- if (externalFilesDir.isNotEmpty) {
288
- try {
289
- // Reset the sdk log file to ensure the iris log path has been set
290
- await setLogFile ('$externalFilesDir /agorasdk.log' );
291
- } catch (e) {
292
- debugPrint (
293
- '[RtcEngine] setLogFile fail, make sure the permission is granted.' );
294
- }
295
- }
296
-
297
283
_rtcEngineState.isInitialzed = true ;
298
284
_isReleased = false ;
299
285
_initializingCompleter? .complete (null );
0 commit comments