File tree Expand file tree Collapse file tree 5 files changed +59
-17
lines changed Expand file tree Collapse file tree 5 files changed +59
-17
lines changed Original file line number Diff line number Diff line change 12
12
android : requestLegacyExternalStorage =" true"
13
13
android : label =" @string/app_name"
14
14
android : theme =" @style/AppTheme" >
15
- <provider
16
- android : name =" androidx.core.content.FileProvider"
17
- android : authorities =" @string/file_provider_authorities"
18
- android : exported =" false"
19
- android : grantUriPermissions =" true" >
20
- <meta-data
21
- android : name =" android.support.FILE_PROVIDER_PATHS"
22
- android : resource =" @xml/file_provider_paths" />
23
- </provider >
24
15
25
16
<activity
26
17
android : name =" .SampleActivity"
36
27
android : name =" .ResultActivity"
37
28
android : screenOrientation =" portrait" />
38
29
39
- <activity
40
- android : name =" com.yalantis.ucrop.UCropActivity"
41
- android : screenOrientation =" portrait"
42
- android : theme =" @style/Theme.AppCompat.Light.NoActionBar" />
43
-
44
30
</application >
45
31
46
32
</manifest >
Original file line number Diff line number Diff line change 43
43
<string name =" toast_cannot_retrieve_cropped_image" >Cannot retrieve cropped image</string >
44
44
<string name =" toast_unexpected_error" >Unexpected error</string >
45
45
46
- <string name =" file_provider_authorities" >com.yalantis.ucrop.provider</string >
47
46
<string name =" channel_name" >ucrop_chanel</string >
48
47
<string name =" channel_description" >ucrop result image</string >
49
48
</resources >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <manifest package =" com.yalantis.ucrop" />
2
+ <manifest xmlns : android =" http://schemas.android.com/apk/res/android"
3
+ package =" com.yalantis.ucrop" >
4
+
5
+ <uses-permission android : name =" android.permission.READ_EXTERNAL_STORAGE" />
6
+ <uses-permission android : name =" android.permission.WRITE_EXTERNAL_STORAGE" />
7
+
8
+ <application
9
+ android : allowBackup =" false"
10
+ android : requestLegacyExternalStorage =" true" >
11
+ <provider
12
+ android : name =" androidx.core.content.FileProvider"
13
+ android : authorities =" ${applicationId}.provider"
14
+ android : exported =" false"
15
+ android : grantUriPermissions =" true" >
16
+ <meta-data
17
+ android : name =" android.support.FILE_PROVIDER_PATHS"
18
+ android : resource =" @xml/crop_fileprovider" />
19
+ </provider >
20
+
21
+ <activity
22
+ android : name =" com.yalantis.ucrop.UCropActivity"
23
+ android : screenOrientation =" portrait"
24
+ android : theme =" @style/Theme.AppCompat.Light.NoActionBar" />
25
+
26
+ </application >
27
+
28
+ </manifest >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <manifest package =" com.yalantis.ucrop" />
2
+ <manifest xmlns : android =" http://schemas.android.com/apk/res/android"
3
+ package =" com.yalantis.ucrop" >
4
+
5
+ <uses-permission android : name =" android.permission.READ_EXTERNAL_STORAGE" />
6
+ <uses-permission android : name =" android.permission.WRITE_EXTERNAL_STORAGE" />
7
+
8
+ <application
9
+ android : allowBackup =" false"
10
+ android : requestLegacyExternalStorage =" true" >
11
+ <provider
12
+ android : name =" androidx.core.content.FileProvider"
13
+ android : authorities =" ${applicationId}.provider"
14
+ android : exported =" false"
15
+ android : grantUriPermissions =" true" >
16
+ <meta-data
17
+ android : name =" android.support.FILE_PROVIDER_PATHS"
18
+ android : resource =" @xml/crop_fileprovider" />
19
+ </provider >
20
+
21
+ <activity
22
+ android : name =" com.yalantis.ucrop.UCropActivity"
23
+ android : screenOrientation =" portrait"
24
+ android : theme =" @style/Theme.AppCompat.Light.NoActionBar" />
25
+
26
+ </application >
27
+
28
+ </manifest >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <paths xmlns : tools =" http://schemas.android.com/tools"
3
+ tools : ignore =" ResourceName" >
4
+ <external-path name =" Pictures" path =" ." />
5
+ </paths >
You can’t perform that action at this time.
0 commit comments