File tree Expand file tree Collapse file tree 5 files changed +29
-14
lines changed Expand file tree Collapse file tree 5 files changed +29
-14
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ apply plugin: 'kotlin-kapt'
27
27
apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
28
28
29
29
android {
30
- compileSdkVersion 31
30
+ compileSdkVersion flutter . compileSdkVersion
31
31
32
32
sourceSets {
33
33
main. java. srcDirs + = ' src/main/kotlin'
@@ -38,19 +38,31 @@ android {
38
38
}
39
39
40
40
defaultConfig {
41
- // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
42
41
applicationId " com.fluttercandies.wechat_camera_picker_demo"
43
42
minSdkVersion 21
44
- targetSdkVersion 31
43
+ targetSdkVersion flutter . compileSdkVersion
45
44
versionCode flutterVersionCode. toInteger()
46
45
versionName flutterVersionName
47
46
}
48
47
48
+ signingConfigs {
49
+ forAll {
50
+ storeFile file(" ${ rootDir.absolutePath} /key.jks" )
51
+ storePassword ' picker'
52
+ keyAlias ' picker'
53
+ keyPassword ' picker'
54
+ }
55
+ }
56
+
49
57
buildTypes {
58
+ debug {
59
+ signingConfig signingConfigs. forAll
60
+ }
61
+ profile {
62
+ signingConfig signingConfigs. forAll
63
+ }
50
64
release {
51
- // TODO: Add your own signing config for the release build.
52
- // Signing with the debug keys for now, so `flutter run --release` works.
53
- signingConfig signingConfigs. debug
65
+ signingConfig signingConfigs. forAll
54
66
}
55
67
}
56
68
}
Original file line number Diff line number Diff line change 1
1
<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
2
2
package =" com.fluttercandies.wechat_camera_picker_demo" >
3
3
4
- <uses-permission android : name =" android.permission.INTERNET" />
5
- <uses-permission android : name =" android.permission.FLASHLIGHT" />
4
+ <uses-permission android : name =" android.permission.INTERNET" />
5
+ <uses-permission android : name =" android.permission.FLASHLIGHT" />
6
+ <uses-permission android : name =" android.permission.WRITE_EXTERNAL_STORAGE" />
6
7
7
8
<uses-feature
8
9
android : name =" android.hardware.camera"
9
10
android : required =" true" />
10
11
11
12
<application
12
13
android : label =" wechat_camera_picker_demo"
13
- android : icon =" @mipmap/ic_launcher" >
14
+ android : icon =" @mipmap/ic_launcher"
15
+ android : requestLegacyExternalStorage =" true"
16
+ android : allowBackup =" false" >
14
17
<activity
15
18
android : name =" .MainActivity"
16
19
android : launchMode =" singleTop"
Original file line number Diff line number Diff line change 1
1
buildscript {
2
- ext. kotlin_version = ' 1.6.0 '
2
+ ext. kotlin_version = ' 1.6.10 '
3
3
repositories {
4
4
google()
5
- jcenter ()
5
+ mavenCentral ()
6
6
}
7
7
8
8
dependencies {
9
- classpath ' com.android.tools.build:gradle:7.0.2 '
9
+ classpath ' com.android.tools.build:gradle:7.0.3 '
10
10
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
11
11
}
12
12
}
13
13
14
14
allprojects {
15
15
repositories {
16
16
google()
17
- jcenter ()
17
+ mavenCentral ()
18
18
}
19
19
}
20
20
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
6
- distributionUrl =https\://services.gradle.org/distributions/gradle-7.3.1 -all.zip
6
+ distributionUrl =https\://services.gradle.org/distributions/gradle-7.3.3 -all.zip
You can’t perform that action at this time.
0 commit comments