171 lines
8.0 KiB
XML
171 lines
8.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||
xmlns:tools="http://schemas.android.com/tools">
|
||
<!-- 读取相册权限-Android 12及以下版本的权限,如果你不需要特定相机功能,可以添加下面这行降低过滤限制 -->
|
||
<uses-feature
|
||
android:name="android.hardware.camera"
|
||
android:required="false" />
|
||
|
||
<!-- 在Android14及以上版本读取SelectedPhotoAccess需要添加READ_MEDIA_VISUAL_USER_SELECTED权限 -->
|
||
<uses-permission android:name="android.permission.READ_MEDIA_VISUAL_USER_SELECTED" />
|
||
<!--相机权限,用于打开相机和拍照:如用户反馈等-->
|
||
<uses-permission android:name="android.permission.CAMERA" />
|
||
<!-- 写入外部存储权限,用于保存拍照后的图片或者下载文件,主要兼容Android 13及以下版本 -->
|
||
<uses-permission android:name = "android.permission.WRITE_EXTERNAL_STORAGE"
|
||
android:maxSdkVersion="32"
|
||
tools:ignore="ScopedStorage" />
|
||
<!-- 读取外部存储权限,用于读取相册图片,主要兼容Android 13及以下版本 -->
|
||
<uses-permission android:name = "android.permission.READ_EXTERNAL_STORAGE"
|
||
android:maxSdkVersion="32" />
|
||
<!-- 读取相册图片权限-Android 13及以上版本的权限,两种解决方案:1、使用Android 照片选择器 (Photo Picker)即:PickVisualMedia 2、使用READ_MEDIA_VISUAL_USER_SELECTED权限。这里选择第二种,因为需要自定义相册。 -->
|
||
<uses-permission android:name = "android.permission.READ_MEDIA_IMAGES"
|
||
tools:ignore="PhotoAndVideoPolicy" />
|
||
<!--检测联网方式,在网络异常状态避免数据发送,节省流量和电量-->
|
||
<uses-permission android:name = "android.permission.ACCESS_NETWORK_STATE" />
|
||
<!--查看WIFI网络状态-->
|
||
<uses-permission android:name = "android.permission.ACCESS_WIFI_STATE" />
|
||
<!--网络访问,允许SDK联网和发送数据的最基础权限-->
|
||
<uses-permission android:name = "android.permission.INTERNET" />
|
||
<!--切换网络通道-->
|
||
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>
|
||
<!--开关wifi状态,解决国内机型移动网络权限问题需要-->
|
||
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
|
||
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
|
||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
||
<!--Unimp要求-->
|
||
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
|
||
|
||
<!-- 安装应用权限 -->
|
||
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"
|
||
tools:ignore="RequestInstallPackagesPolicy" />
|
||
<uses-permission
|
||
android:name="android.permission.INSTALL_PACKAGES"
|
||
tools:ignore="ProtectedPermissions" />
|
||
|
||
<queries>
|
||
<package android:name="com.eg.android.AlipayGphone" /> <!-- 支付宝 -->
|
||
<package android:name="hk.alipay.wallet" /> <!-- AlipayHK -->
|
||
<package android:name="com.tencent.mm" />
|
||
<intent>
|
||
<action android:name="com.getui.sdk.action" />
|
||
</intent>
|
||
</queries>
|
||
|
||
<application
|
||
android:name=".BaseApplication"
|
||
android:allowBackup="true"
|
||
android:allowNativeHeapPointerTagging="false"
|
||
android:dataExtractionRules="@xml/data_extraction_rules"
|
||
android:extractNativeLibs="true"
|
||
android:fullBackupContent="@xml/backup_rules"
|
||
android:icon="@mipmap/ic_launcher_logo"
|
||
android:label="@string/app_name"
|
||
android:roundIcon="@mipmap/ic_launcher_logo"
|
||
android:supportsRtl="true"
|
||
android:theme="@style/Theme.rabbit"
|
||
android:enableOnBackInvokedCallback="true"
|
||
android:hardwareAccelerated="true"
|
||
android:requestLegacyExternalStorage="true"
|
||
android:usesCleartextTraffic="true"
|
||
android:networkSecurityConfig="@xml/network_security_config"
|
||
tools:replace="android:allowBackup,android:supportsRtl"
|
||
tools:targetApi="33">
|
||
|
||
<activity
|
||
android:name="com.img.rabbit.MainActivity"
|
||
android:theme="@style/SplashTheme"
|
||
android:screenOrientation="portrait"
|
||
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden"
|
||
android:exported="true"
|
||
android:launchMode="singleTask"
|
||
tools:ignore="DiscouragedApi,LockedOrientationActivity">
|
||
<intent-filter tools:ignore="AppLinkUrlError">
|
||
<action android:name="android.intent.action.VIEW" />
|
||
<action android:name="android.intent.action.MAIN" />
|
||
|
||
<category android:name="android.intent.category.LAUNCHER" />
|
||
</intent-filter>
|
||
</activity>
|
||
|
||
<activity
|
||
android:name=".WebViewActivity"
|
||
android:excludeFromRecents="true"
|
||
android:exported="true"
|
||
android:taskAffinity="com.img.rabbit"
|
||
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
|
||
|
||
<activity
|
||
android:name=".wxapi.WXEntryActivity"
|
||
android:excludeFromRecents="true"
|
||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||
android:exported="true"
|
||
android:screenOrientation="portrait"
|
||
android:theme="@android:style/Theme.Translucent.NoTitleBar"
|
||
tools:ignore="DiscouragedApi,LockedOrientationActivity" />
|
||
|
||
|
||
<activity
|
||
android:name="com.img.rabbit.wxapi.WXPayEntryActivity"
|
||
android:exported="true"
|
||
android:launchMode="singleTop"
|
||
android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
|
||
|
||
|
||
<!--如果是小程序模式,还需要添加这行配置-->
|
||
<activity
|
||
android:name="io.dcloud.feature.payment.weixin.WXPayProcessMeadiatorActivity"
|
||
android:excludeFromRecents="true"
|
||
android:exported="false"
|
||
android:theme="@style/ProjectDialogTheme" />
|
||
|
||
<!-- 小程序入口 -->
|
||
<!-- <activity-->
|
||
<!-- android:name="io.dcloud.feature.sdk.multi.DCUniMPEntry0"-->
|
||
<!-- android:excludeFromRecents="true"-->
|
||
<!-- android:taskAffinity="com.img.rabbit"-->
|
||
<!-- android:theme="@style/Theme.rabbit"-->
|
||
<!-- android:launchMode="singleTop"-->
|
||
<!-- tools:replace="android:launchMode,android:taskAffinity,android:theme"/>-->
|
||
|
||
<!-- 小程序运行页 -->
|
||
<!-- <activity-->
|
||
<!-- android:name="io.dcloud.feature.sdk.multi.DCUniMPActivity0"-->
|
||
<!-- android:excludeFromRecents="true"-->
|
||
<!-- android:taskAffinity="com.img.rabbit"-->
|
||
<!-- android:launchMode="singleTask"-->
|
||
<!-- android:configChanges="orientation|keyboardHidden|screenSize"-->
|
||
<!-- tools:replace="android:taskAffinity,android:launchMode,android:configChanges" />-->
|
||
|
||
|
||
<provider
|
||
android:name="androidx.core.content.FileProvider"
|
||
android:authorities="${applicationId}.fileProvider"
|
||
android:exported="false"
|
||
android:grantUriPermissions="true">
|
||
<meta-data
|
||
android:name="android.support.FILE_PROVIDER_PATHS"
|
||
android:resource="@xml/filepath_data" />
|
||
</provider>
|
||
|
||
<provider
|
||
android:name="io.dcloud.common.util.DCloud_FileProvider"
|
||
android:authorities="${apk.applicationId}.dc.fileprovider"
|
||
android:exported="false"
|
||
android:grantUriPermissions="true">
|
||
<meta-data
|
||
android:name="android.support.FILE_PROVIDER_PATHS"
|
||
android:resource="@xml/dcloud_file_provider" />
|
||
</provider>
|
||
|
||
<meta-data
|
||
android:name="UMENG_CHANNEL"
|
||
android:value="${UMENG_CHANNEL}" />
|
||
<meta-data
|
||
android:name="WX_APPID"
|
||
android:value="wx7d1a7d1507482cef" />
|
||
<meta-data
|
||
android:name="WX_SECRET"
|
||
android:value="5264c353296db25405fc29e43c40d3a5" />
|
||
</application>
|
||
|
||
</manifest> |