File tree Expand file tree Collapse file tree 3 files changed +32
-15
lines changed Expand file tree Collapse file tree 3 files changed +32
-15
lines changed 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,14 +26,10 @@ 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
namespace " io.agora.agora_rtc_ng_example"
30
31
31
- compileSdkVersion 34
32
+ compileSdkVersion 35
32
33
33
34
compileOptions {
34
35
sourceCompatibility JavaVersion . VERSION_1_8
@@ -47,7 +48,7 @@ android {
47
48
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
48
49
applicationId " io.agora.agora_rtc_ng_example"
49
50
minSdkVersion 21
50
- targetSdkVersion flutter . targetSdkVersion
51
+ targetSdkVersion 35
51
52
versionCode flutterVersionCode. toInteger()
52
53
versionName flutterVersionName
53
54
}
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.7.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 @@ -30,7 +30,7 @@ dependencies:
30
30
# Use with the CupertinoIcons class for iOS style icons.
31
31
cupertino_icons : ^1.0.2
32
32
33
- permission_handler : ^10.2 .0
33
+ permission_handler : ^11.3 .0
34
34
path_provider : ^2.0.8
35
35
36
36
dev_dependencies :
You can’t perform that action at this time.
0 commit comments