File tree Expand file tree Collapse file tree 9 files changed +118
-52
lines changed
lib/src/impl/platform/web
integration_test_app/android
iris_tester/example/android Expand file tree Collapse file tree 9 files changed +118
-52
lines changed Original file line number Diff line number Diff line change 1
1
import 'dart:async' ;
2
2
import 'dart:html' as html;
3
- import 'dart:ui ' as ui;
3
+ import 'dart:ui_web ' as ui;
4
4
5
5
import '/agora_rtc_engine.dart' ;
6
6
import '/src/impl/platform/global_video_view_controller_platform.dart' ;
7
- import 'package:iris_method_channel/iris_method_channel.dart' ;
8
7
9
8
// ignore_for_file: public_member_api_docs
10
9
@@ -47,8 +46,7 @@ final Map<int, _View> _viewMap = {};
47
46
48
47
class GlobalVideoViewControllerWeb extends GlobalVideoViewControllerPlatfrom {
49
48
GlobalVideoViewControllerWeb (
50
- IrisMethodChannel irisMethodChannel, RtcEngine rtcEngine)
51
- : super (irisMethodChannel, rtcEngine) {
49
+ super .irisMethodChannel, super .rtcEngine) {
52
50
// ignore: undefined_prefixed_name
53
51
ui.platformViewRegistry.registerViewFactory (_platformRendererViewType,
54
52
(int viewId) {
Original file line number Diff line number Diff line change
1
+ plugins {
2
+ id " com.android.application"
3
+ id " kotlin-android"
4
+ id " dev.flutter.flutter-gradle-plugin"
5
+ }
1
6
def localProperties = new Properties ()
2
7
def localPropertiesFile = rootProject. file(' local.properties' )
3
8
if (localPropertiesFile. exists()) {
@@ -21,10 +26,6 @@ if (flutterVersionName == null) {
21
26
flutterVersionName = ' 1.0'
22
27
}
23
28
24
- apply plugin : ' com.android.application'
25
- apply plugin : ' kotlin-android'
26
- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
27
-
28
29
android {
29
30
compileSdkVersion flutter. compileSdkVersion
30
31
Original file line number Diff line number Diff line change 1
- include ' :app'
1
+ pluginManagement {
2
+ def flutterSdkPath = {
3
+ def properties = new Properties ()
4
+ file(" local.properties" ). withInputStream { properties. load(it) }
5
+ def flutterSdkPath = properties. getProperty(" flutter.sdk" )
6
+ assert flutterSdkPath != null , " flutter.sdk not set in local.properties"
7
+ return flutterSdkPath
8
+ }
9
+ settings. ext. flutterSdkPath = flutterSdkPath()
10
+
11
+ includeBuild(" ${ settings.ext.flutterSdkPath} /packages/flutter_tools/gradle" )
2
12
3
- def localPropertiesFile = new File (rootProject. projectDir, " local.properties" )
4
- def properties = new Properties ()
13
+ repositories {
14
+ google()
15
+ mavenCentral()
16
+ gradlePluginPortal()
17
+ }
18
+ }
5
19
6
- assert localPropertiesFile. exists()
7
- localPropertiesFile. withReader(" UTF-8" ) { reader -> properties. load(reader) }
20
+ plugins {
21
+ id " dev.flutter.flutter-plugin-loader" version " 1.0.0"
22
+ id " com.android.application" version " 8.3.0" apply false
23
+ id " org.jetbrains.kotlin.android" version " 1.9.10" apply false
24
+ }
25
+
26
+ include ' :app'
8
27
9
- def flutterSdkPath = properties. getProperty(" flutter.sdk" )
10
- assert flutterSdkPath != null , " flutter.sdk not set in local.properties"
11
- apply from : " $flutterSdkPath /packages/flutter_tools/gradle/app_plugin_loader.gradle"
Original file line number Diff line number Diff line change
1
+ plugins {
2
+ id " com.android.application"
3
+ id " kotlin-android"
4
+ id " dev.flutter.flutter-gradle-plugin"
5
+ }
1
6
def localProperties = new Properties ()
2
7
def localPropertiesFile = rootProject. file(' local.properties' )
3
8
if (localPropertiesFile. exists()) {
@@ -21,10 +26,6 @@ if (flutterVersionName == null) {
21
26
flutterVersionName = ' 1.0'
22
27
}
23
28
24
- apply plugin : ' com.android.application'
25
- apply plugin : ' kotlin-android'
26
- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
27
-
28
29
android {
29
30
compileSdkVersion 34
30
31
Original file line number Diff line number Diff line change 1
- include ' :app'
1
+ pluginManagement {
2
+ def flutterSdkPath = {
3
+ def properties = new Properties ()
4
+ file(" local.properties" ). withInputStream { properties. load(it) }
5
+ def flutterSdkPath = properties. getProperty(" flutter.sdk" )
6
+ assert flutterSdkPath != null , " flutter.sdk not set in local.properties"
7
+ return flutterSdkPath
8
+ }
9
+ settings. ext. flutterSdkPath = flutterSdkPath()
10
+
11
+ includeBuild(" ${ settings.ext.flutterSdkPath} /packages/flutter_tools/gradle" )
2
12
3
- def localPropertiesFile = new File (rootProject. projectDir, " local.properties" )
4
- def properties = new Properties ()
13
+ repositories {
14
+ google()
15
+ mavenCentral()
16
+ gradlePluginPortal()
17
+ }
18
+ }
5
19
6
- assert localPropertiesFile. exists()
7
- localPropertiesFile. withReader(" UTF-8" ) { reader -> properties. load(reader) }
20
+ plugins {
21
+ id " dev.flutter.flutter-plugin-loader" version " 1.0.0"
22
+ id " com.android.application" version " 8.3.0" apply false
23
+ id " org.jetbrains.kotlin.android" version " 1.9.10" apply false
24
+ }
25
+
26
+ include ' :app'
8
27
9
- def flutterSdkPath = properties. getProperty(" flutter.sdk" )
10
- assert flutterSdkPath != null , " flutter.sdk not set in local.properties"
11
- apply from : " $flutterSdkPath /packages/flutter_tools/gradle/app_plugin_loader.gradle"
Original file line number Diff line number Diff line change
1
+ plugins {
2
+ id " com.android.application"
3
+ id " kotlin-android"
4
+ id " dev.flutter.flutter-gradle-plugin"
5
+ }
1
6
def localProperties = new Properties ()
2
7
def localPropertiesFile = rootProject. file(' local.properties' )
3
8
if (localPropertiesFile. exists()) {
@@ -21,10 +26,6 @@ if (flutterVersionName == null) {
21
26
flutterVersionName = ' 1.0'
22
27
}
23
28
24
- apply plugin : ' com.android.application'
25
- apply plugin : ' kotlin-android'
26
- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
27
-
28
29
android {
29
30
compileSdkVersion flutter. compileSdkVersion
30
31
ndkVersion flutter. ndkVersion
Original file line number Diff line number Diff line change 1
- include ' :app'
1
+ pluginManagement {
2
+ def flutterSdkPath = {
3
+ def properties = new Properties ()
4
+ file(" local.properties" ). withInputStream { properties. load(it) }
5
+ def flutterSdkPath = properties. getProperty(" flutter.sdk" )
6
+ assert flutterSdkPath != null , " flutter.sdk not set in local.properties"
7
+ return flutterSdkPath
8
+ }
9
+ settings. ext. flutterSdkPath = flutterSdkPath()
10
+
11
+ includeBuild(" ${ settings.ext.flutterSdkPath} /packages/flutter_tools/gradle" )
2
12
3
- def localPropertiesFile = new File (rootProject. projectDir, " local.properties" )
4
- def properties = new Properties ()
13
+ repositories {
14
+ google()
15
+ mavenCentral()
16
+ gradlePluginPortal()
17
+ }
18
+ }
5
19
6
- assert localPropertiesFile. exists()
7
- localPropertiesFile. withReader(" UTF-8" ) { reader -> properties. load(reader) }
20
+ plugins {
21
+ id " dev.flutter.flutter-plugin-loader" version " 1.0.0"
22
+ id " com.android.application" version " 8.3.0" apply false
23
+ id " org.jetbrains.kotlin.android" version " 1.9.10" apply false
24
+ }
25
+
26
+ include ' :app'
8
27
9
- def flutterSdkPath = properties. getProperty(" flutter.sdk" )
10
- assert flutterSdkPath != null , " flutter.sdk not set in local.properties"
11
- apply from : " $flutterSdkPath /packages/flutter_tools/gradle/app_plugin_loader.gradle"
Original file line number Diff line number Diff line change
1
+ plugins {
2
+ id " com.android.application"
3
+ id " kotlin-android"
4
+ id " dev.flutter.flutter-gradle-plugin"
5
+ }
1
6
def localProperties = new Properties ()
2
7
def localPropertiesFile = rootProject. file(' local.properties' )
3
8
if (localPropertiesFile. exists()) {
@@ -21,10 +26,6 @@ if (flutterVersionName == null) {
21
26
flutterVersionName = ' 1.0'
22
27
}
23
28
24
- apply plugin : ' com.android.application'
25
- apply plugin : ' kotlin-android'
26
- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
27
-
28
29
android {
29
30
compileSdkVersion flutter. compileSdkVersion
30
31
ndkVersion flutter. ndkVersion
Original file line number Diff line number Diff line change 1
- include ' :app'
1
+ pluginManagement {
2
+ def flutterSdkPath = {
3
+ def properties = new Properties ()
4
+ file(" local.properties" ). withInputStream { properties. load(it) }
5
+ def flutterSdkPath = properties. getProperty(" flutter.sdk" )
6
+ assert flutterSdkPath != null , " flutter.sdk not set in local.properties"
7
+ return flutterSdkPath
8
+ }
9
+ settings. ext. flutterSdkPath = flutterSdkPath()
10
+
11
+ includeBuild(" ${ settings.ext.flutterSdkPath} /packages/flutter_tools/gradle" )
2
12
3
- def localPropertiesFile = new File (rootProject. projectDir, " local.properties" )
4
- def properties = new Properties ()
13
+ repositories {
14
+ google()
15
+ mavenCentral()
16
+ gradlePluginPortal()
17
+ }
18
+ }
5
19
6
- assert localPropertiesFile. exists()
7
- localPropertiesFile. withReader(" UTF-8" ) { reader -> properties. load(reader) }
20
+ plugins {
21
+ id " dev.flutter.flutter-plugin-loader" version " 1.0.0"
22
+ id " com.android.application" version " 8.3.0" apply false
23
+ id " org.jetbrains.kotlin.android" version " 1.9.10" apply false
24
+ }
25
+
26
+ include ' :app'
8
27
9
- def flutterSdkPath = properties. getProperty(" flutter.sdk" )
10
- assert flutterSdkPath != null , " flutter.sdk not set in local.properties"
11
- apply from : " $flutterSdkPath /packages/flutter_tools/gradle/app_plugin_loader.gradle"
You can’t perform that action at this time.
0 commit comments