-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
优化和补充框架的使用文档 优化 Json 格式化的方式 优化框架中部分类命名和变量命名 优化框架日志打印的 TAG 和 LOG 优化 BodyRequest 类中的代码逻辑 优化 IRequestHandler 方法参数结构 优化 IRequestInterceptor 方法参数结构 修正使用 JSONObject 带来的斜杠转义问题 修复异常对象被修改之后没有打印原有异常的问题 修复下载时使用分区存储时出现文件读取失败的问题 修复使用空元素的 List 集合导致没有数据返回后台的问题 修复使用缓存策略 USE_CACHE_FIRST 出现泛型为空的问题 修复使用 SSL 来创建证书时可能导致出现的框架未初始化异常
- Loading branch information
1 parent
4db8dec
commit 87bd11b
Showing
54 changed files
with
1,355 additions
and
1,160 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,62 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
package="com.hjq.easy.demo"> | ||
|
||
<!-- 联网权限 --> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<!-- 访问网络状态 --> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | ||
|
||
<!-- 外部存储读写权限 --> | ||
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | ||
|
||
<!-- 安装包的权限 --> | ||
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" /> | ||
|
||
<application | ||
android:name=".AppApplication" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:networkSecurityConfig="@xml/network_security_config" | ||
android:roundIcon="@mipmap/ic_launcher_round" | ||
android:requestLegacyExternalStorage="true" | ||
android:theme="@style/AppTheme" | ||
tools:ignore="LockedOrientationActivity,UnusedAttribute" | ||
tools:targetApi="n"> | ||
|
||
<!-- 适配 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=".MainActivity" | ||
android:configChanges="orientation|screenSize|keyboardHidden" | ||
android:launchMode="singleTop" | ||
android:screenOrientation="portrait"> | ||
<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> | ||
|
||
</application> | ||
|
||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
package="com.hjq.easy.demo"> | ||
|
||
<!-- 联网权限 --> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<!-- 访问网络状态 --> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | ||
|
||
<!-- 外部存储读写权限 --> | ||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | ||
|
||
<!-- 安装包的权限 --> | ||
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" /> | ||
|
||
<application | ||
android:name=".AppApplication" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:networkSecurityConfig="@xml/network_security_config" | ||
android:requestLegacyExternalStorage="true" | ||
android:roundIcon="@mipmap/ic_launcher_round" | ||
android:theme="@style/AppTheme" | ||
tools:ignore="LockedOrientationActivity,UnusedAttribute" | ||
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=".MainActivity" | ||
android:configChanges="orientation|screenSize|keyboardHidden" | ||
android:exported="true" | ||
android:launchMode="singleTop" | ||
android:screenOrientation="portrait"> | ||
<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> | ||
|
||
</application> | ||
|
||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.