Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit d163b6e

Browse files
committed
Update FileProvider sample's target SDK
This commit updates the targetSdkVersion in the build.gradle file of the FileProvider sample. - Updated targetSdkVersion from 30 to 31 - Added exported=true to MainActivity
1 parent 6e6496a commit d163b6e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

FileProvider/app/build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@ apply plugin: 'kotlin-android'
1919
apply plugin: 'kotlin-android-extensions'
2020

2121
android {
22-
compileSdkVersion 30
23-
buildToolsVersion "30.0.3"
22+
compileSdkVersion 31
2423

2524
defaultConfig {
2625
applicationId "com.example.graygallery"
2726
minSdkVersion 21
28-
targetSdkVersion 30
27+
targetSdkVersion 31
2928
versionCode 1
3029
versionName "1.0"
3130

FileProvider/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939

4040
<activity
4141
android:name=".MainActivity"
42-
android:label="@string/app_name">
42+
android:exported="true"
43+
>
4344
<intent-filter>
4445
<action android:name="android.intent.action.MAIN" />
4546

0 commit comments

Comments
 (0)