Allow to customize applicationId

This commit is contained in:
xynngh 2020-09-10 23:11:39 +04:00
parent c26157e808
commit c0e96ed1d3
2 changed files with 4 additions and 2 deletions

View File

@ -140,7 +140,7 @@
<provider <provider
android:name="androidx.core.content.FileProvider" android:name="androidx.core.content.FileProvider"
android:authorities="dummydomain.yetanothercallblocker.fileprovider" android:authorities="${applicationId}.fileprovider"
android:exported="false" android:exported="false"
android:grantUriPermissions="true"> android:grantUriPermissions="true">
<meta-data <meta-data

View File

@ -14,9 +14,11 @@ import org.slf4j.LoggerFactory;
import java.io.File; import java.io.File;
import dummydomain.yetanothercallblocker.BuildConfig;
public class FileUtils { public class FileUtils {
private static final String FILEPROVIDER_AUTHORITY = "dummydomain.yetanothercallblocker.fileprovider"; private static final String FILEPROVIDER_AUTHORITY = BuildConfig.APPLICATION_ID + ".fileprovider";
private static final Logger LOG = LoggerFactory.getLogger(FileUtils.class); private static final Logger LOG = LoggerFactory.getLogger(FileUtils.class);