diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index f178d24..d58a7b8 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -23,6 +23,7 @@ if (flutterVersionName == null) { apply plugin: 'com.android.application' apply plugin: 'kotlin-android' +apply plugin: 'kotlin-kapt' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { @@ -60,4 +61,6 @@ flutter { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" + implementation 'com.github.bumptech.glide:glide:4.11.0' + kapt 'com.github.bumptech.glide:compiler:4.11.0' } diff --git a/example/android/app/src/main/kotlin/com/fluttercandies/wechat_camera_picker_demo/ExampleAppGlideModule.kt b/example/android/app/src/main/kotlin/com/fluttercandies/wechat_camera_picker_demo/ExampleAppGlideModule.kt new file mode 100644 index 0000000..59b579f --- /dev/null +++ b/example/android/app/src/main/kotlin/com/fluttercandies/wechat_camera_picker_demo/ExampleAppGlideModule.kt @@ -0,0 +1,7 @@ +package com.fluttercandies.wechat_camera_picker_demo + +import com.bumptech.glide.annotation.GlideModule +import com.bumptech.glide.module.AppGlideModule + +@GlideModule +class ExampleAppGlideModule : AppGlideModule() diff --git a/example/android/app/src/main/kotlin/com/fluttercandies/wechat_camera_picker_demo/MainActivity.kt b/example/android/app/src/main/kotlin/com/fluttercandies/wechat_camera_picker_demo/MainActivity.kt index f7d8f13..182c052 100644 --- a/example/android/app/src/main/kotlin/com/fluttercandies/wechat_camera_picker_demo/MainActivity.kt +++ b/example/android/app/src/main/kotlin/com/fluttercandies/wechat_camera_picker_demo/MainActivity.kt @@ -2,5 +2,4 @@ package com.fluttercandies.wechat_camera_picker_demo import io.flutter.embedding.android.FlutterActivity -class MainActivity: FlutterActivity() { -} +class MainActivity: FlutterActivity() diff --git a/example/android/build.gradle b/example/android/build.gradle index 3100ad2..dcf3457 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -1,12 +1,12 @@ buildscript { - ext.kotlin_version = '1.3.50' + ext.kotlin_version = '1.4.21' repositories { google() jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:3.5.0' + classpath 'com.android.tools.build:gradle:3.6.4' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } diff --git a/example/android/gradle/wrapper/gradle-wrapper.properties b/example/android/gradle/wrapper/gradle-wrapper.properties index 296b146..e5e73da 100644 --- a/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/example/android/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.6.1-all.zip