Skip to content

Commit 3450eb1

Browse files
committed
🚀 Implement AppGlideModule in example
1 parent d5bab24 commit 3450eb1

File tree

5 files changed

+14
-5
lines changed

5 files changed

+14
-5
lines changed

example/android/app/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ if (flutterVersionName == null) {
2323

2424
apply plugin: 'com.android.application'
2525
apply plugin: 'kotlin-android'
26+
apply plugin: 'kotlin-kapt'
2627
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2728

2829
android {
@@ -60,4 +61,6 @@ flutter {
6061

6162
dependencies {
6263
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
64+
implementation 'com.github.bumptech.glide:glide:4.11.0'
65+
kapt 'com.github.bumptech.glide:compiler:4.11.0'
6366
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.fluttercandies.wechat_camera_picker_demo
2+
3+
import com.bumptech.glide.annotation.GlideModule
4+
import com.bumptech.glide.module.AppGlideModule
5+
6+
@GlideModule
7+
class ExampleAppGlideModule : AppGlideModule()

example/android/app/src/main/kotlin/com/fluttercandies/wechat_camera_picker_demo/MainActivity.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ package com.fluttercandies.wechat_camera_picker_demo
22

33
import io.flutter.embedding.android.FlutterActivity
44

5-
class MainActivity: FlutterActivity() {
6-
}
5+
class MainActivity: FlutterActivity()

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.3.50'
2+
ext.kotlin_version = '1.4.21'
33
repositories {
44
google()
55
jcenter()
66
}
77

88
dependencies {
9-
classpath 'com.android.tools.build:gradle:3.5.0'
9+
classpath 'com.android.tools.build:gradle:3.6.4'
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-5.6.2-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6.1-all.zip

0 commit comments

Comments
 (0)