Skip to content

Commit 3027550

Browse files
committed
Updating the manifest so that that each application gets its own unique FileProvider authority name setting
1 parent 766c3a1 commit 3027550

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

AndroidFilePickerLightLibrary/build.gradle

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

3-
import java.io.File;
43
import java.text.DateFormat
54
import java.text.SimpleDateFormat
65

@@ -31,8 +30,8 @@ android {
3130
defaultConfig {
3231
minSdkVersion 29
3332
targetSdkVersion 30
34-
versionCode 12
35-
versionName "1.1.1"
33+
versionCode 13
34+
versionName "1.1.2"
3635
}
3736

3837
compileOptions {

AndroidFilePickerLightLibrary/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
<provider
6666
android:name="com.maxieds.androidfilepickerlightlibrary.BasicFileProvider"
67-
android:authorities="com.maxieds.androidfilepickerlightlibrary.FileChooserActivity"
67+
android:authorities="${applicationId}.FileChooserActivity"
6868
android:exported="true"
6969
android:enabled="true"
7070
android:grantUriPermissions="true"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ better at this point than after a forced system upgrade that breaks my applicati
426426
Here is an example that determines whether a file path (a priori known to point to a normal file, not directory)
427427
is text based based on its mime type. Then, if it is, the second function below fetches its contents in ``String`` form:
428428
```java
429-
public static boolean isFileContentsTextBased(String filePath) {
429+
public static boolean isFileContentsTextBased(String filePath) {
430430
try {
431431
BasicFileProvider.DocumentPointer docRef = new BasicFileProvider.DocumentPointer(CONFIG_DEFAULT_STORAGE_TYPE, FileUtils.getFileBasePath(filePath));
432432
if (!docRef.isValid()) {

0 commit comments

Comments
 (0)