Skip to content

Commit cff3b8f

Browse files
committed
chore: update example gradle
1 parent 18e57cb commit cff3b8f

3 files changed

Lines changed: 13 additions & 8 deletions

File tree

packages/home_widget/example/android/app/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
id "com.android.application"
33
id "kotlin-android"
4+
id "org.jetbrains.kotlin.plugin.compose"
45
id "dev.flutter.flutter-gradle-plugin"
56
}
67

@@ -23,8 +24,8 @@ if (flutterVersionName == null) {
2324
}
2425

2526
android {
26-
compileSdkVersion 35
27-
ndkVersion = "26.3.11579264"
27+
compileSdkVersion = flutter.compileSdkVersion
28+
ndkVersion = flutter.ndkVersion
2829

2930
sourceSets {
3031
main.java.srcDirs += 'src/main/kotlin'
@@ -45,8 +46,8 @@ android {
4546

4647
defaultConfig {
4748
applicationId "es.antonborri.home_widget_example"
48-
minSdkVersion 23
49-
targetSdkVersion 35
49+
minSdk = flutter.minSdkVersion
50+
targetSdk = flutter.targetSdkVersion
5051
multiDexEnabled true
5152
versionCode flutterVersionCode.toInteger()
5253
versionName flutterVersionName
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
org.gradle.jvmargs=-Xmx1536M
1+
org.gradle.jvmargs=-Xmx4096M
22
android.enableR8=true
33
android.useAndroidX=true
44
android.enableJetifier=true
55
android.defaults.buildfeatures.buildconfig=true
66
android.nonTransitiveRClass=false
77
android.nonFinalResIds=false
8+
org.gradle.parallel=true
9+
org.gradle.daemon=true
10+
org.gradle.configureondemand=true

packages/home_widget/example/android/settings.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ pluginManagement {
1818

1919
plugins {
2020
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21-
id "com.android.application" version '8.6.1' apply false
22-
id "org.jetbrains.kotlin.android" version "1.9.20" apply false
21+
id "com.android.application" version "8.6.0" apply false
22+
id "org.jetbrains.kotlin.android" version "2.1.0" apply false
23+
id "org.jetbrains.kotlin.plugin.compose" version "2.1.0" apply false
2324
}
2425

25-
include ":app"
26+
include ":app"

0 commit comments

Comments
 (0)