Skip to content

Commit 0b5b06a

Browse files
committed
app: Bump Android compile SDK to 36 and Java to 21
Fixes build problems.
1 parent fe1cfe4 commit 0b5b06a

8 files changed

Lines changed: 60 additions & 58 deletions

File tree

companion_app/android/app/build.gradle

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,12 @@ if (flutterVersionName == null) {
3131

3232
android {
3333
namespace 'mrrfv.backup.companion'
34-
compileSdkVersion 34
34+
compileSdkVersion 36
3535

3636
compileOptions {
3737
coreLibraryDesugaringEnabled true
38-
sourceCompatibility JavaVersion.VERSION_1_8
39-
targetCompatibility JavaVersion.VERSION_1_8
40-
}
41-
42-
kotlinOptions {
43-
jvmTarget = '1.8'
38+
sourceCompatibility JavaVersion.VERSION_21
39+
targetCompatibility JavaVersion.VERSION_21
4440
}
4541

4642
sourceSets {

companion_app/android/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ subprojects {
2323
afterEvaluate { project ->
2424
if (project.plugins.hasPlugin("com.android.application") ||
2525
project.plugins.hasPlugin("com.android.library")) {
26-
project.android {
27-
compileSdkVersion 34
28-
buildToolsVersion "34.0.0"
29-
}
26+
project.android {
27+
compileSdkVersion 36
28+
buildToolsVersion "36.0.0"
29+
}
3030
}
3131
}
3232
}
@@ -41,4 +41,4 @@ subprojects {
4141

4242
tasks.register("clean", Delete) {
4343
delete rootProject.buildDir
44-
}
44+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
plugins {
2+
id("com.android.application") version "8.9.1" apply false
3+
id("com.android.library") version "8.9.1" apply false
4+
id("org.jetbrains.kotlin.android") version "1.9.22" apply false
5+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
org.gradle.jvmargs=-Xmx1536M --add-opens java.base/java.io=ALL-UNNAMED
22
android.useAndroidX=true
33
android.enableJetifier=true
4+
android.newDsl=false

companion_app/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.0-all.zip

companion_app/android/settings.gradle

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

1919
plugins {
2020
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21-
id "com.android.application" version "8.6.0" apply false
22-
id "org.jetbrains.kotlin.android" version "2.1.0" apply false
21+
id "com.android.application" version "8.13.2" apply false
22+
id "org.jetbrains.kotlin.android" version "2.3.0" apply false
2323
}
2424

2525
include ":app"

companion_app/pubspec.lock

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ packages:
55
dependency: transitive
66
description:
77
name: async
8-
sha256: d2872f9c19731c2e5f10444b14686eb7cc85c76274bd6c16e1816bff9a3bab63
8+
sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb"
99
url: "https://pub.dev"
1010
source: hosted
11-
version: "2.12.0"
11+
version: "2.13.0"
1212
boolean_selector:
1313
dependency: transitive
1414
description:
@@ -21,10 +21,10 @@ packages:
2121
dependency: "direct main"
2222
description:
2323
name: call_log
24-
sha256: "871fa94c00abd69b71998a785b42822ad9613546069446be2fdc4be45bdc5b85"
24+
sha256: "6ad3e241efa2bc82febc537fe11112a62c94eb5db826bd532500574ba34a78a2"
2525
url: "https://pub.dev"
2626
source: hosted
27-
version: "5.1.0"
27+
version: "6.0.1"
2828
characters:
2929
dependency: transitive
3030
description:
@@ -61,18 +61,18 @@ packages:
6161
dependency: "direct main"
6262
description:
6363
name: device_info_plus
64-
sha256: "0c6396126421b590089447154c5f98a5de423b70cfb15b1578fd018843ee6f53"
64+
sha256: "4df8babf73058181227e18b08e6ea3520cf5fc5d796888d33b7cb0f33f984b7c"
6565
url: "https://pub.dev"
6666
source: hosted
67-
version: "11.4.0"
67+
version: "12.3.0"
6868
device_info_plus_platform_interface:
6969
dependency: transitive
7070
description:
7171
name: device_info_plus_platform_interface
72-
sha256: "0b04e02b30791224b31969eb1b50d723498f402971bff3630bca2ba839bd1ed2"
72+
sha256: e1ea89119e34903dca74b883d0dd78eb762814f97fb6c76f35e9ff74d261a18f
7373
url: "https://pub.dev"
7474
source: hosted
75-
version: "7.0.2"
75+
version: "7.0.3"
7676
fake_async:
7777
dependency: transitive
7878
description:
@@ -85,10 +85,10 @@ packages:
8585
dependency: transitive
8686
description:
8787
name: ffi
88-
sha256: "289279317b4b16eb2bb7e271abccd4bf84ec9bdcbe999e278a94b804f5630418"
88+
sha256: d07d37192dbf97461359c1518788f203b0c9102cfd2c35a716b823741219542c
8989
url: "https://pub.dev"
9090
source: hosted
91-
version: "2.1.4"
91+
version: "2.1.5"
9292
file:
9393
dependency: transitive
9494
description:
@@ -114,10 +114,10 @@ packages:
114114
dependency: "direct dev"
115115
description:
116116
name: flutter_lints
117-
sha256: "5398f14efa795ffb7a33e9b6a08798b26a180edac4ad7db3f231e40f82ce11e1"
117+
sha256: "3105dc8492f6183fb076ccf1f351ac3d60564bff92e20bfc4af9cc1651f4e7e1"
118118
url: "https://pub.dev"
119119
source: hosted
120-
version: "5.0.0"
120+
version: "6.0.0"
121121
flutter_sms_inbox:
122122
dependency: "direct main"
123123
description:
@@ -140,10 +140,10 @@ packages:
140140
dependency: transitive
141141
description:
142142
name: leak_tracker
143-
sha256: "8dcda04c3fc16c14f48a7bb586d4be1f0d1572731b6d81d51772ef47c02081e0"
143+
sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de"
144144
url: "https://pub.dev"
145145
source: hosted
146-
version: "11.0.1"
146+
version: "11.0.2"
147147
leak_tracker_flutter_testing:
148148
dependency: transitive
149149
description:
@@ -164,10 +164,10 @@ packages:
164164
dependency: transitive
165165
description:
166166
name: lints
167-
sha256: c35bb79562d980e9a453fc715854e1ed39e24e7d0297a880ef54e17f9874a9d7
167+
sha256: a5e2b223cb7c9c8efdc663ef484fdd95bb243bff242ef5b13e26883547fce9a0
168168
url: "https://pub.dev"
169169
source: hosted
170-
version: "5.1.1"
170+
version: "6.0.0"
171171
matcher:
172172
dependency: transitive
173173
description:
@@ -188,10 +188,10 @@ packages:
188188
dependency: transitive
189189
description:
190190
name: meta
191-
sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c
191+
sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394"
192192
url: "https://pub.dev"
193193
source: hosted
194-
version: "1.16.0"
194+
version: "1.17.0"
195195
path:
196196
dependency: transitive
197197
description:
@@ -204,10 +204,10 @@ packages:
204204
dependency: "direct main"
205205
description:
206206
name: permission_handler
207-
sha256: "2d070d8684b68efb580a5997eb62f675e8a885ef0be6e754fb9ef489c177470f"
207+
sha256: bc917da36261b00137bbc8896bf1482169cd76f866282368948f032c8c1caae1
208208
url: "https://pub.dev"
209209
source: hosted
210-
version: "12.0.0+1"
210+
version: "12.0.1"
211211
permission_handler_android:
212212
dependency: transitive
213213
description:
@@ -305,10 +305,10 @@ packages:
305305
dependency: transitive
306306
description:
307307
name: test_api
308-
sha256: "522f00f556e73044315fa4585ec3270f1808a4b186c936e612cab0b565ff1e00"
308+
sha256: ab2726c1a94d3176a45960b6234466ec367179b87dd74f1611adb1f3b5fb9d55
309309
url: "https://pub.dev"
310310
source: hosted
311-
version: "0.7.6"
311+
version: "0.7.7"
312312
url_launcher:
313313
dependency: "direct main"
314314
description:
@@ -321,34 +321,34 @@ packages:
321321
dependency: transitive
322322
description:
323323
name: url_launcher_android
324-
sha256: "0aedad096a85b49df2e4725fa32118f9fa580f3b14af7a2d2221896a02cd5656"
324+
sha256: "767344bf3063897b5cf0db830e94f904528e6dd50a6dfaf839f0abf509009611"
325325
url: "https://pub.dev"
326326
source: hosted
327-
version: "6.3.17"
327+
version: "6.3.28"
328328
url_launcher_ios:
329329
dependency: transitive
330330
description:
331331
name: url_launcher_ios
332-
sha256: d80b3f567a617cb923546034cc94bfe44eb15f989fe670b37f26abdb9d939cb7
332+
sha256: cfde38aa257dae62ffe79c87fab20165dfdf6988c1d31b58ebf59b9106062aad
333333
url: "https://pub.dev"
334334
source: hosted
335-
version: "6.3.4"
335+
version: "6.3.6"
336336
url_launcher_linux:
337337
dependency: transitive
338338
description:
339339
name: url_launcher_linux
340-
sha256: "4e9ba368772369e3e08f231d2301b4ef72b9ff87c31192ef471b380ef29a4935"
340+
sha256: d5e14138b3bc193a0f63c10a53c94b91d399df0512b1f29b94a043db7482384a
341341
url: "https://pub.dev"
342342
source: hosted
343-
version: "3.2.1"
343+
version: "3.2.2"
344344
url_launcher_macos:
345345
dependency: transitive
346346
description:
347347
name: url_launcher_macos
348-
sha256: c043a77d6600ac9c38300567f33ef12b0ef4f4783a2c1f00231d2b1941fea13f
348+
sha256: "368adf46f71ad3c21b8f06614adb38346f193f3a59ba8fe9a2fd74133070ba18"
349349
url: "https://pub.dev"
350350
source: hosted
351-
version: "3.2.3"
351+
version: "3.2.5"
352352
url_launcher_platform_interface:
353353
dependency: transitive
354354
description:
@@ -361,18 +361,18 @@ packages:
361361
dependency: transitive
362362
description:
363363
name: url_launcher_web
364-
sha256: "4bd2b7b4dc4d4d0b94e5babfffbca8eac1a126c7f3d6ecbc1a11013faa3abba2"
364+
sha256: d0412fcf4c6b31ecfdb7762359b7206ffba3bbffd396c6d9f9c4616ece476c1f
365365
url: "https://pub.dev"
366366
source: hosted
367-
version: "2.4.1"
367+
version: "2.4.2"
368368
url_launcher_windows:
369369
dependency: transitive
370370
description:
371371
name: url_launcher_windows
372-
sha256: "3284b6d2ac454cf34f114e1d3319866fdd1e19cdc329999057e44ffe936cfa77"
372+
sha256: "712c70ab1b99744ff066053cbe3e80c73332b38d46e5e945c98689b2e66fc15f"
373373
url: "https://pub.dev"
374374
source: hosted
375-
version: "3.1.4"
375+
version: "3.1.5"
376376
vector_math:
377377
dependency: transitive
378378
description:
@@ -385,10 +385,10 @@ packages:
385385
dependency: transitive
386386
description:
387387
name: vm_service
388-
sha256: "0968250880a6c5fe7edc067ed0a13d4bae1577fe2771dcf3010d52c4a9d3ca14"
388+
sha256: "45caa6c5917fa127b5dbcfbd1fa60b14e583afdc08bfc96dda38886ca252eb60"
389389
url: "https://pub.dev"
390390
source: hosted
391-
version: "14.3.1"
391+
version: "15.0.2"
392392
web:
393393
dependency: transitive
394394
description:
@@ -401,10 +401,10 @@ packages:
401401
dependency: transitive
402402
description:
403403
name: win32
404-
sha256: dc6ecaa00a7c708e5b4d10ee7bec8c270e9276dfcab1783f57e9962d7884305f
404+
sha256: d7cb55e04cd34096cd3a79b3330245f54cb96a370a1c27adb3c84b917de8b08e
405405
url: "https://pub.dev"
406406
source: hosted
407-
version: "5.12.0"
407+
version: "5.15.0"
408408
win32_registry:
409409
dependency: transitive
410410
description:
@@ -414,5 +414,5 @@ packages:
414414
source: hosted
415415
version: "2.1.0"
416416
sdks:
417-
dart: ">=3.8.0-0 <4.0.0"
418-
flutter: ">=3.29.0"
417+
dart: ">=3.10.0 <4.0.0"
418+
flutter: ">=3.38.0"

companion_app/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ dependencies:
3636
#cupertino_icons: ^1.0.2
3737
flutter_contacts: ^1.1.5
3838
permission_handler: ^12.0.0+1
39-
device_info_plus: ^11.4.0
39+
device_info_plus: ^12.3.0
4040
flutter_sms_inbox: ^1.0.2
4141
csv: ^6.0.0
42-
call_log: ^5.1.0
42+
call_log: ^6.0.1
4343
url_launcher: ^6.3.2
4444

4545
dev_dependencies:
@@ -51,7 +51,7 @@ dev_dependencies:
5151
# activated in the `analysis_options.yaml` file located at the root of your
5252
# package. See that file for information about deactivating specific lint
5353
# rules and activating additional ones.
54-
flutter_lints: ^5.0.0
54+
flutter_lints: ^6.0.0
5555

5656
# For information on the generic Dart part of this file, see the
5757
# following page: https://dart.dev/tools/pub/pubspec

0 commit comments

Comments
 (0)