287 lines
10 KiB
XML
287 lines
10 KiB
XML
<?xml version="1.0" encoding="utf-8"?><!-- 清单文件合并指引:https://developer.android.google.cn/studio/build/manifest-merge?hl=zh-cn -->
|
||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||
xmlns:tools="http://schemas.android.com/tools"
|
||
package="com.yinhetairui.digitalagriculture">
|
||
|
||
<!-- 网络相关 -->
|
||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
||
<uses-permission android:name="android.permission.INTERNET" />
|
||
|
||
<!-- 外部存储 -->
|
||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
||
<uses-permission
|
||
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
|
||
tools:ignore="ScopedStorage" />
|
||
|
||
<!-- 拍照权限 -->
|
||
<uses-permission android:name="android.permission.CAMERA" />
|
||
|
||
<!-- 安装权限 -->
|
||
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
|
||
|
||
<!-- 定位权限(用于 WebView 定位)-->
|
||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
||
|
||
<!-- Application 节点详解:https://developer.android.google.cn/guide/topics/manifest/application-element -->
|
||
<!-- Activity 节点详解:https://developer.android.google.cn/guide/topics/manifest/activity-element -->
|
||
<application
|
||
android:name=".app.AppApplication"
|
||
android:allowBackup="false"
|
||
android:icon="@mipmap/launcher_ic"
|
||
android:label="${app_name}"
|
||
android:networkSecurityConfig="@xml/network_security_config"
|
||
android:requestLegacyExternalStorage="true"
|
||
android:resizeableActivity="true"
|
||
android:roundIcon="@mipmap/launcher_ic"
|
||
android:supportsRtl="false"
|
||
android:theme="@style/AppTheme"
|
||
android:usesCleartextTraffic="true"
|
||
tools:ignore="AllowBackup,LockedOrientationActivity"
|
||
tools:replace="android:allowBackup,android:supportsRtl"
|
||
tools:targetApi="n">
|
||
|
||
<!-- 表示当前已经适配了分区存储 -->
|
||
<meta-data
|
||
android:name="ScopedStorage"
|
||
android:value="true" />
|
||
|
||
<!-- 适配 Android 7.0 文件意图 -->
|
||
<provider
|
||
android:name="androidx.core.content.FileProvider"
|
||
android:authorities="${applicationId}.provider"
|
||
android:exported="false"
|
||
android:grantUriPermissions="true">
|
||
|
||
<meta-data
|
||
android:name="android.support.FILE_PROVIDER_PATHS"
|
||
android:resource="@xml/file_paths" />
|
||
</provider>
|
||
|
||
<!-- 闪屏页 -->
|
||
<activity
|
||
android:name=".ui.splash.SplashActivity"
|
||
android:launchMode="singleTop"
|
||
android:screenOrientation="portrait"
|
||
android:theme="@style/SplashTheme">
|
||
|
||
<!-- 程序入口 -->
|
||
<intent-filter>
|
||
<action android:name="android.intent.action.MAIN" />
|
||
<action android:name="android.intent.action.VIEW" />
|
||
|
||
<category android:name="android.intent.category.LAUNCHER" />
|
||
</intent-filter>
|
||
|
||
</activity>
|
||
|
||
<!-- 土地资源管理 -->
|
||
<activity
|
||
android:name=".ui.landManage.LandManageActivity"
|
||
android:launchMode="singleTop"
|
||
android:screenOrientation="portrait" />
|
||
|
||
<!-- 溯源报告 -->
|
||
<activity
|
||
android:name=".ui.traceabilityManage.TraceabilityReportActivity"
|
||
android:launchMode="singleTop"
|
||
android:screenOrientation="portrait" />
|
||
|
||
<!-- 溯源查询 -->
|
||
<activity
|
||
android:name=".ui.traceabilityManage.TraceabilityInquiryActivity"
|
||
android:launchMode="singleTop"
|
||
android:screenOrientation="portrait" />
|
||
|
||
<!-- 检测机构详情 -->
|
||
<activity
|
||
android:name=".ui.traceabilityManage.InstitutionDetailActivity"
|
||
android:launchMode="singleTop"
|
||
android:screenOrientation="portrait" />
|
||
|
||
<!-- 检测机构 -->
|
||
<activity
|
||
android:name=".ui.traceabilityManage.TestingOrganizationActivity"
|
||
android:launchMode="singleTop"
|
||
android:screenOrientation="portrait" />
|
||
|
||
<!-- 检测详情 -->
|
||
<activity
|
||
android:name=".ui.traceabilityManage.DetectionDetailActivity"
|
||
android:launchMode="singleTop"
|
||
android:screenOrientation="portrait" />
|
||
|
||
<!-- 检测信息填写 -->
|
||
<activity
|
||
android:name=".ui.traceabilityManage.DetectionInfoActivity"
|
||
android:launchMode="singleTop"
|
||
android:screenOrientation="portrait" />
|
||
|
||
<!-- 溯源检测 -->
|
||
<activity
|
||
android:name=".ui.traceabilityManage.TraceabilityTestingActivity"
|
||
android:launchMode="singleTop"
|
||
android:screenOrientation="portrait" />
|
||
|
||
<!-- 检测申请审核信息 -->
|
||
<activity
|
||
android:name=".ui.traceabilityManage.ReviewInfoActivity"
|
||
android:launchMode="singleTop"
|
||
android:screenOrientation="portrait" />
|
||
|
||
<!-- 检测申请审核 -->
|
||
<activity
|
||
android:name=".ui.traceabilityManage.ApplicationReviewActivity"
|
||
android:launchMode="singleTop"
|
||
android:screenOrientation="portrait" />
|
||
|
||
<!-- 溯源管理 -->
|
||
<activity
|
||
android:name=".ui.traceabilityManage.TraceabilityManageActivity"
|
||
android:launchMode="singleTop"
|
||
android:screenOrientation="portrait" />
|
||
|
||
<!-- 注册结果 -->
|
||
<activity
|
||
android:name=".ui.login.RegisterResultActivity"
|
||
android:launchMode="singleTop"
|
||
android:screenOrientation="portrait" />
|
||
|
||
<!-- 设置密码 -->
|
||
<activity
|
||
android:name=".ui.login.SetPasswordActivity"
|
||
android:launchMode="singleTop"
|
||
android:screenOrientation="portrait" />
|
||
|
||
<!-- 注册 -->
|
||
<activity
|
||
android:name=".ui.login.RegisterActivity"
|
||
android:launchMode="singleTop"
|
||
android:screenOrientation="portrait" />
|
||
|
||
<!-- 引导页 -->
|
||
<activity
|
||
android:name=".ui.splash.GuideActivity"
|
||
android:launchMode="singleTop"
|
||
android:screenOrientation="portrait" />
|
||
|
||
<!-- 首页 -->
|
||
<activity
|
||
android:name=".ui.HomeActivity"
|
||
android:launchMode="singleTask"
|
||
android:screenOrientation="portrait"
|
||
android:windowSoftInputMode="adjustPan" />
|
||
|
||
<!-- 登录页 -->
|
||
<activity
|
||
android:name=".ui.login.LoginActivity"
|
||
android:launchMode="singleTop"
|
||
android:screenOrientation="portrait"
|
||
android:windowSoftInputMode="stateHidden" />
|
||
|
||
<!-- 崩溃展示(必须在独立进程) -->
|
||
<activity
|
||
android:name=".uitools.activity.CrashActivity"
|
||
android:launchMode="singleTop"
|
||
android:process=":crash"
|
||
android:screenOrientation="landscape" />
|
||
|
||
<!-- 重启应用(必须在独立进程) -->
|
||
<activity
|
||
android:name=".uitools.activity.RestartActivity"
|
||
android:launchMode="singleTop"
|
||
android:process=":restart" />
|
||
|
||
<!-- 拍照选择 -->
|
||
<activity
|
||
android:name=".uitools.activity.CameraActivity"
|
||
android:launchMode="singleTop"
|
||
android:screenOrientation="portrait" />
|
||
|
||
<!-- 图片选择 -->
|
||
<activity
|
||
android:name=".uitools.activity.ImageSelectActivity"
|
||
android:label="@string/image_select_title"
|
||
android:launchMode="singleTop"
|
||
android:screenOrientation="portrait" />
|
||
|
||
<!-- 查看大图 -->
|
||
<activity
|
||
android:name=".uitools.activity.ImagePreviewActivity"
|
||
android:launchMode="singleTop"
|
||
android:screenOrientation="portrait" />
|
||
|
||
<!-- 播放视频(自适应方向) -->
|
||
<activity
|
||
android:name=".uitools.activity.VideoPlayActivity"
|
||
android:launchMode="singleTop"
|
||
android:theme="@style/FullScreenTheme" />
|
||
|
||
<!-- 播放视频(竖屏方向) -->
|
||
<activity
|
||
android:name=".uitools.activity.VideoPlayActivity$Portrait"
|
||
android:launchMode="singleTop"
|
||
android:screenOrientation="portrait"
|
||
android:theme="@style/FullScreenTheme" />
|
||
|
||
<!-- 播放视频(横屏方向) -->
|
||
<activity
|
||
android:name=".uitools.activity.VideoPlayActivity$Landscape"
|
||
android:launchMode="singleTop"
|
||
android:screenOrientation="landscape"
|
||
android:theme="@style/FullScreenTheme" />
|
||
|
||
<!-- 选择视频 -->
|
||
<activity
|
||
android:name=".uitools.activity.VideoSelectActivity"
|
||
android:launchMode="singleTop"
|
||
android:screenOrientation="portrait" />
|
||
|
||
<!-- 对话框案例 -->
|
||
<activity
|
||
android:name=".uitools.activity.DialogActivity"
|
||
android:launchMode="singleTop"
|
||
android:screenOrientation="portrait" />
|
||
|
||
</application>
|
||
|
||
<!-- Android 11 软件包可见性适配:https://www.jianshu.com/p/d1ccd425c4ce -->
|
||
<queries>
|
||
<!-- 拍照意图:MediaStore.ACTION_IMAGE_CAPTURE -->
|
||
<intent>
|
||
<action android:name="android.media.action.IMAGE_CAPTURE" />
|
||
</intent>
|
||
|
||
<!-- 拍摄意图:MediaStore.ACTION_VIDEO_CAPTURE -->
|
||
<intent>
|
||
<action android:name="android.media.action.VIDEO_CAPTURE" />
|
||
</intent>
|
||
|
||
<!-- 图片裁剪意图 -->
|
||
<intent>
|
||
<action android:name="com.android.camera.action.CROP" />
|
||
</intent>
|
||
|
||
<!-- 打电话意图:Intent.ACTION_DIAL -->
|
||
<intent>
|
||
<action android:name="android.intent.action.DIAL" />
|
||
</intent>
|
||
|
||
<!-- 调起分享意图:Intent.ACTION_SEND -->
|
||
<intent>
|
||
<action android:name="android.intent.action.SEND" />
|
||
</intent>
|
||
|
||
<!-- 调起其他页面意图:Intent.ACTION_VIEW -->
|
||
<intent>
|
||
<action android:name="android.intent.action.VIEW" />
|
||
</intent>
|
||
|
||
<!-- 调起系统文件选择器:Intent.ACTION_GET_CONTENT -->
|
||
<intent>
|
||
<action android:name="android.intent.action.GET_CONTENT" />
|
||
</intent>
|
||
</queries>
|
||
|
||
</manifest> |