Skip to content

Commit 8de205a

Browse files
committed
⬆️ Raise Android dependencies for the example
1 parent 190a2ea commit 8de205a

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

example/android/app/build.gradle

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

2929
android {
30-
compileSdkVersion 30
30+
compileSdkVersion 31
3131

3232
sourceSets {
3333
main.java.srcDirs += 'src/main/kotlin'
@@ -41,7 +41,7 @@ android {
4141
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4242
applicationId "com.fluttercandies.wechat_camera_picker_demo"
4343
minSdkVersion 21
44-
targetSdkVersion 30
44+
targetSdkVersion 31
4545
versionCode flutterVersionCode.toInteger()
4646
versionName flutterVersionName
4747
}
@@ -60,7 +60,6 @@ flutter {
6060
}
6161

6262
dependencies {
63-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
6463
implementation 'com.github.bumptech.glide:glide:4.11.0'
6564
kapt 'com.github.bumptech.glide:compiler:4.11.0'
6665
}

example/android/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
android:theme="@style/LaunchTheme"
1919
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
2020
android:hardwareAccelerated="true"
21-
android:windowSoftInputMode="adjustResize">
21+
android:windowSoftInputMode="adjustResize"
22+
android:exported="true">
2223
<!-- Specifies an Android theme to apply to this Activity as soon as
2324
the Android process has started. This theme is visible to the user
2425
while the Flutter UI initializes. After that, this theme continues

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

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

example/android/gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
org.gradle.jvmargs=-Xmx1536M
2-
android.enableR8=true
32
android.useAndroidX=true
43
android.enableJetifier=true

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-6.8.3-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-all.zip

0 commit comments

Comments
 (0)