Skip to content

Commit 3c8bfd2

Browse files
committed
update SDK to 35 (Android 15)
1 parent 536e0d0 commit 3c8bfd2

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

app/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ android {
3939
}
4040
}
4141

42-
compileSdk = 34
42+
compileSdk = 35
4343
buildToolsVersion = "35.0.0"
4444
ndkVersion = "27.1.12297006"
4545

app/src/main/java/app/grapheneos/camera/BlurBitmap.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ object BlurBitmap {
1111
val width = (sentBitmap.width * 0.1f).roundToInt()
1212
val height = (sentBitmap.height * 0.1f).roundToInt()
1313
sentBitmap = Bitmap.createScaledBitmap(sentBitmap, width, height, false)
14-
val bitmap = sentBitmap.copy(sentBitmap.config, true)
14+
val bitmap = sentBitmap.copy(sentBitmap.config!!, true)
1515
val w = bitmap.width
1616
val h = bitmap.height
1717
val pix = IntArray(w * h)

app/src/main/java/app/grapheneos/camera/CapturedItems.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ object CapturedItems {
212212
list.add(0, treeUri)
213213

214214
while (list.size > MAX_NUMBER_OF_TRACKED_PREVIOUS_SAF_TREES) {
215-
list.removeLast()
215+
// list.removeLast() requires API level 35 now due to Java adding it
216+
list.removeAt(list.lastIndex)
216217
}
217218

218219
prefs.edit {

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ plugins {
55

66
allprojects {
77
tasks.withType<JavaCompile> {
8-
options.compilerArgs.addAll(listOf("-Xlint", "-Xlint:-cast", "-Xlint:-rawtypes", "-Xlint:-serial"))
8+
options.compilerArgs.addAll(listOf("-Xlint", "-Xlint:-cast", "-Xlint:-classfile", "-Xlint:-rawtypes", "-Xlint:-serial"))
99
}
1010
}

0 commit comments

Comments
 (0)