crazycodeboy / TakePhoto

一款用于在Android设备上获取照片(拍照或从相册、文件中选择)、裁剪图片、压缩图片的开源工具库
http://www.devio.org/tags/#TakePhoto
Apache License 2.0
7.25k stars 1.51k forks source link

Android12(SDK:31)不适配 #576

Open skyaccross opened 1 year ago

skyaccross commented 1 year ago

Android12(SDK:31) 要求 intent-filter 主动声明 android:exported 属性 4.1.0版本依赖的 com.darsh.multipleimageselect:multipleimageselect:1.0.5 这个包里面 有两个Activity 没有 设置该属性,导致无法打包。

wyba commented 1 year ago

可以覆盖啊,哈哈,傻了吧! <activity android:name="com.darsh.multipleimageselect.activities.AlbumSelectActivity" android:configChanges="orientation|screenSize" android:label="@string/app_name" android:theme="@style/MultipleImageSelectTheme" android:exported="true">

    <activity
        android:name="com.darsh.multipleimageselect.activities.ImageSelectActivity"
        android:configChanges="orientation|screenSize"
        android:label="@string/app_name"
        android:theme="@style/MultipleImageSelectTheme"
        android:exported="true">
        <intent-filter>
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>