Skip to content

Commit dd15229

Browse files
committed
🔧 Roll AGP and Gradle for the example
1 parent cc966c0 commit dd15229

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

example/android/app/build.gradle

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,32 @@ apply plugin: 'kotlin-kapt'
2727
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2828

2929
android {
30-
compileSdkVersion 33
30+
namespace "com.fluttercandies.wechatCameraPickerExample"
31+
32+
compileSdkVersion 34
3133

3234
sourceSets {
3335
main.java.srcDirs += 'src/main/kotlin'
3436
}
3537

36-
lintOptions {
37-
disable 'InvalidPackage'
38-
}
39-
4038
defaultConfig {
4139
applicationId "com.fluttercandies.wechatCameraPickerExample"
4240
minSdkVersion 21
43-
targetSdkVersion 33
41+
targetSdkVersion 34
4442
versionCode flutterVersionCode.toInteger()
4543
versionName flutterVersionName
4644
}
4745

46+
kotlinOptions {
47+
jvmTarget = '17'
48+
}
49+
50+
compileOptions {
51+
// Sets Java compatibility to Java 17
52+
sourceCompatibility JavaVersion.VERSION_17
53+
targetCompatibility JavaVersion.VERSION_17
54+
}
55+
4856
signingConfigs {
4957
forAll {
5058
storeFile file("${rootDir.absolutePath}/key.jks")
@@ -72,6 +80,6 @@ flutter {
7280
}
7381

7482
dependencies {
75-
implementation 'com.github.bumptech.glide:glide:4.11.0'
76-
kapt 'com.github.bumptech.glide:compiler:4.11.0'
83+
implementation 'com.github.bumptech.glide:glide:4.15.0'
84+
kapt 'com.github.bumptech.glide:compiler:4.15.0'
7785
}

example/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
buildscript {
2-
ext.kotlin_version = '1.6.10'
2+
ext.kotlin_version = '1.9.20'
33
repositories {
44
google()
55
mavenCentral()
66
}
77

88
dependencies {
9-
classpath 'com.android.tools.build:gradle:7.0.3'
9+
classpath 'com.android.tools.build:gradle:8.2.2'
1010
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1111
}
1212
}

example/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-7.3.3-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip

0 commit comments

Comments
 (0)