Skip to content

Commit 9574940

Browse files
committed
fix fileprovide
1 parent e522c48 commit 9574940

File tree

6 files changed

+18
-7
lines changed

6 files changed

+18
-7
lines changed

app/build.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ android {
3030
}
3131
productFlavors {
3232
activity {
33-
buildConfigField("int","RequestMode", "1")
33+
buildConfigField("int", "RequestMode", "1")
3434
}
3535
fragment {
36-
buildConfigField("int","RequestMode", "2")
36+
buildConfigField("int", "RequestMode", "2")
3737
}
3838
}
3939
}
@@ -48,8 +48,8 @@ dependencies {
4848
implementation fileTree(include: ['*.jar'], dir: 'libs')
4949

5050
// lib_crop_native
51-
// implementation(name: 'lib_crop_native-release', ext: 'aar')
52-
implementation project(':lib_crop_native')
51+
implementation(name: 'lib_crop_release_20210323', ext: 'aar')
52+
// implementation project(':lib_crop_native')
5353

5454
implementation "androidx.exifinterface:exifinterface:${androidx_exifinterface_version}"
5555
implementation "androidx.transition:transition:${androidx_transition_version}"
609 KB
Binary file not shown.

lib_crop_java/src/main/AndroidManifest.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
android:allowBackup="false"
1010
android:requestLegacyExternalStorage="true">
1111
<provider
12-
android:name="androidx.core.content.FileProvider"
13-
android:authorities="${applicationId}.provider"
12+
android:name="com.yalantis.ucrop.fileprovider.CropFileProvider"
13+
android:authorities="${applicationId}.crop.fileprovider"
1414
android:exported="false"
1515
android:grantUriPermissions="true">
1616
<meta-data
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.yalantis.ucrop.fileprovider;
2+
3+
import androidx.annotation.Keep;
4+
5+
@Keep
6+
public class CropFileProvider extends androidx.core.content.FileProvider {
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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>

lib_crop_native/src/main/AndroidManifest.xml

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
xmlns:tools="http://schemas.android.com/tools"
43
package="com.yalantis.ucrop">
54

65
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

0 commit comments

Comments
 (0)