Skip to content

Commit 67b9a97

Browse files
authored
upgrade gradle and fix bug on android (#985)
1 parent a7bc2ab commit 67b9a97

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

android/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ apply plugin: "org.jlleitschuh.gradle.ktlint"
2626

2727
android {
2828
namespace = "vn.hunghd.flutterdownloader"
29-
compileSdk = 34
29+
compileSdk = 35
3030

3131
compileOptions {
3232
sourceCompatibility JavaVersion.VERSION_1_8
@@ -45,7 +45,7 @@ android {
4545

4646
defaultConfig {
4747
minSdk = 21
48-
targetSdk = 34
48+
targetSdk = 35
4949
}
5050
}
5151

android/src/main/kotlin/vn/hunghd/flutterdownloader/TaskDao.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class TaskDao(private val dbHelper: TaskDbHelper) {
9393

9494
fun loadTasksWithRawQuery(query: String?): List<DownloadTask> {
9595
val db = dbHelper.readableDatabase
96-
val cursor = db.rawQuery(query, null)
96+
val cursor = db.rawQuery(query!!, null)
9797
val result: MutableList<DownloadTask> = ArrayList()
9898
while (cursor.moveToNext()) {
9999
result.add(parseCursor(cursor))

example/android/app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ if (flutterVersionName == null) {
2424

2525
android {
2626
namespace = "vn.hunghd.example"
27-
compileSdk = 34
27+
compileSdk = 35
2828
ndkVersion = flutter.ndkVersion
2929

3030
defaultConfig {
3131
applicationId "vn.hunghd.example"
3232
minSdk = 21
33-
targetSdk = 34
33+
targetSdk = 35
3434
versionCode = flutterVersionCode.toInteger()
3535
versionName = flutterVersionName
3636
}
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

example/android/settings.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pluginManagement {
1818

1919
plugins {
2020
id("dev.flutter.flutter-plugin-loader")
21-
id("com.android.application") version ("8.3.1") apply false
21+
id("com.android.application") version ('8.7.2') apply false
2222
id("org.jetbrains.kotlin.android") version ("1.9.23") apply false
2323
}
2424

0 commit comments

Comments
 (0)