toUriCompat

fun File.toUriCompat(authority: String = uriAuthority): Uri

FileUri,适配android7的 FileProvider.getUriForFile. 默认authorityuriAuthority,是packageName+".fileProvider",如果和你声明的provider 名称不一致,请直接传参更改,或者直接更改uriAuthority.

Since

4.0.0