Skip to content

Commit

Permalink
fix fileprovide
Browse files Browse the repository at this point in the history
  • Loading branch information
kalu-github committed Mar 23, 2021
1 parent e522c48 commit 9574940
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 7 deletions.
8 changes: 4 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ android {
}
productFlavors {
activity {
buildConfigField("int","RequestMode", "1")
buildConfigField("int", "RequestMode", "1")
}
fragment {
buildConfigField("int","RequestMode", "2")
buildConfigField("int", "RequestMode", "2")
}
}
}
Expand All @@ -48,8 +48,8 @@ dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')

// lib_crop_native
// implementation(name: 'lib_crop_native-release', ext: 'aar')
implementation project(':lib_crop_native')
implementation(name: 'lib_crop_release_20210323', ext: 'aar')
// implementation project(':lib_crop_native')

implementation "androidx.exifinterface:exifinterface:${androidx_exifinterface_version}"
implementation "androidx.transition:transition:${androidx_transition_version}"
Expand Down
Binary file added app/libs/lib_crop_release_20210323.aar
Binary file not shown.
4 changes: 2 additions & 2 deletions lib_crop_java/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
android:allowBackup="false"
android:requestLegacyExternalStorage="true">
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.provider"
android:name="com.yalantis.ucrop.fileprovider.CropFileProvider"
android:authorities="${applicationId}.crop.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.yalantis.ucrop.fileprovider;

import androidx.annotation.Keep;

@Keep
public class CropFileProvider extends androidx.core.content.FileProvider {
}
5 changes: 5 additions & 0 deletions lib_crop_java/src/main/res/xml/crop_fileprovider.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<paths xmlns:tools="http://schemas.android.com/tools"
tools:ignore="ResourceName">
<external-path name="Pictures" path="."/>
</paths>
1 change: 0 additions & 1 deletion lib_crop_native/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.yalantis.ucrop">

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

0 comments on commit 9574940

Please sign in to comment.