Skip to content

Commit c43a6b5

Browse files
committed
Possible fix of Android 11 crash
1 parent 9bc33eb commit c43a6b5

11 files changed

Lines changed: 224 additions & 32 deletions

File tree

593 Bytes
Binary file not shown.

.idea/codeStyles/Project.xml

Lines changed: 134 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jarRepositories.xml

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 17 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 28
5-
buildToolsVersion "28.0.3"
4+
compileSdkVersion 30
5+
buildToolsVersion "30.0.2"
66
defaultConfig {
77
applicationId "com.codekidlabs.storagechooserdemo"
88
minSdkVersion 16
9-
targetSdkVersion 28
9+
targetSdkVersion 30
1010
versionCode 1
1111
versionName "1.0"
1212
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -27,9 +27,9 @@ dependencies {
2727
exclude group: 'com.android.support', module: 'support-annotations'
2828
})
2929

30-
implementation 'androidx.cardview:cardview:1.0.0-beta01'
31-
implementation 'androidx.appcompat:appcompat:1.0.0-beta01'
32-
implementation 'com.google.android.material:material:1.0.0-beta01'
30+
implementation 'androidx.cardview:cardview:1.0.0'
31+
implementation 'androidx.appcompat:appcompat:1.2.0'
32+
implementation 'com.google.android.material:material:1.2.1'
3333
testImplementation 'junit:junit:4.12'
3434

3535
implementation project (':storagechooser')

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
android:icon="@mipmap/ic_launcher"
1111
android:label="@string/app_name"
1212
android:supportsRtl="true"
13-
android:theme="@style/AppTheme">
13+
android:theme="@style/AppTheme"
14+
android:requestLegacyExternalStorage="true">
1415
<activity
1516
android:name=".MainActivity"
1617
android:label="@string/app_name"

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ buildscript {
1111
}
1212
}
1313
dependencies {
14-
classpath 'com.android.tools.build:gradle:3.3.2'
14+
classpath 'com.android.tools.build:gradle:4.0.1'
1515
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
1616

1717
// NOTE: Do not place your application dependencies here; they belong
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Mon Mar 25 14:17:17 IST 2019
1+
#Wed Sep 16 15:14:22 MSK 2020
22
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-4.10.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip

storagechooser/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ apply plugin: 'com.github.dcendents.android-maven'
44
group = 'com.github.codekidX'
55

66
android {
7-
compileSdkVersion 28
8-
buildToolsVersion "28.0.3"
7+
compileSdkVersion 30
8+
buildToolsVersion "30.0.2"
99

1010
defaultConfig {
1111
minSdkVersion 16
12-
targetSdkVersion 28
12+
targetSdkVersion 30
1313
versionCode 1
1414
versionName "1.0"
1515

@@ -31,8 +31,8 @@ dependencies {
3131
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0-alpha4', {
3232
exclude group: 'com.android.support', module: 'support-annotations'
3333
})
34-
implementation 'androidx.appcompat:appcompat:1.0.0-beta01'
35-
implementation 'com.google.android.material:material:1.0.0-beta01'
34+
implementation 'androidx.appcompat:appcompat:1.2.0'
35+
implementation 'com.google.android.material:material:1.2.1'
3636
testImplementation 'junit:junit:4.12'
3737
}
3838

0 commit comments

Comments
 (0)