Skip to content

Commit a8734f1

Browse files
committed
适配 Android 12
升级到 Gradle 7.2 对项目通用和代码资源进行抽取和分类 更新第三方框架远程依赖版本 更新 smallestWidth 限定符适配资源 更新项目 loading 的 lottie 动画资源 将友盟分享 QQ 和微信的依赖换成本地仓库 加入并配置多 buildType 图标 Gradle 插件 优化项目混淆规则 优化友盟回调逻辑 优化单选和多选对话框监听器 优化 Activity 动画效果设置方式 优化 PlayView 播放出错回调处理 优化 PasswordEditText 输入类型 优化 MenuDialog 最大高度限制 优化关于我们界面的富文本显示的写法 优化 PlayerView 省电策略(播放状态不息屏,反之会息屏) 优化网络安全策略 使得支持抓包软件在 debug 模式直接进行抓包 优化选择图片和选择视频页面的 onRestart 方法执行性能 优化在非主进程下的 Application 初始化的耗时时间 优化 HandlerAction removeCallbacks 方法调用时机 优化封装微信回调 WXEntryActivity 类的清单文件配置方式 优化在 BrowserActivity 首次加载出现拒绝 SSL 异常时点击返回没有回退界面的问题 优化 WebView 在重定向时会调用多次 onPageFinished 方法的问题 优化 Android 8.0 透明主题会导致固定方向 Activity 崩溃的问题 新增用户协议和隐私政策弹窗 新增获取进程名称和判断主进程的方法 新增支持在 WebView 的界面上面支持全屏播放视频 新增支持在 WebView 的界面上申请摄像头或者相机权限 新增监听网页控制台打印的日志并同步打印到 Logcat 中 新增 FragmentPagerAdapter 支持删除 Fragment 新增 BaseFragment.onFragmentPause 回调方法 新增 BaseFragment.onActivityPause 回调方法 新增 CountdownView 支持判断当前是否处于倒计时 新增 DialogManager 类以便支持设置弹窗显示的优先级 新增 BaseViewHolder 的 onAttached、onDetached、onRecycled 方法 新增 MessageDialog 对话框文本高度限制并且设置支持滚动 新增支持 ActivityManager 类存取 Activity 是有序的 新增 BasePopupWindow 类支持 Lifecycle 特性 新增在 BrowserViewClient、BrowserChromeClient 回调中打印日志(方便追踪问题) 新增细化 WebViewClient.onReceivedSslError 方法中的错误提示 修复 WrapRecyclerView 位置不正确的问题 修复 PasswordEditText 能够输入中文的问题 修复图片选择功能没有过滤掉破损的图片的问题 修复网页底部有输入框会被系统输入法遮挡的问题 修复视频播放界面的调节亮度功能在小米手机上异常的问题 修复 GridSpaceDecoration 分割线间距计算不正确的问题 修复 TabAdapter 在 Tab 过多的情况下选中 Tab 没有自动滚动的问题 修复日期选择器无法选中当年的最后一天的日期的问题 修复 HttpListData.isLastPage 方法可能会出现除 0 异常的问题 修复 AddressDialog 类因为 ViewPager2 高灵敏度导致错判滑动方向 修复 BaseDialog 和 BasePopupWindow 调用多次 postDelayed 只执行一次的问题 删除权限 AOP 注解 删除 PhotoViewPager 类 删除 RecyclerPagerAdapter 类 删除 RatioFrameLayout 自定义控件 删除 BaseFragment.getContext 方法 关闭上拉刷新下拉加载框架的彩蛋 统一登录密码输入的最大长度 修改查看大图界面的 ViewPager 换成 ViewPager2 将权限拦截器从全局设置修改成局部设置
1 parent d5c9fda commit a8734f1

378 files changed

Lines changed: 7754 additions & 5227 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/FUNDING.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: https://raw.githubusercontent.com/getActivity/Donate/master/picture/pay_ali.png

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false
Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
name: 提交 Bug
2+
description: 请告诉我框架存在的问题,我会协助你解决此问题!
3+
title: "[Bug]:"
4+
labels: ["bug"]
5+
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
## [【警告:请务必按照 issue 模板填写,不要抱有侥幸心理,一旦发现 issue 没有按照模板认真填写,一律直接关闭】](https://github.com/getActivity/IssueTemplateGuide)
11+
- type: input
12+
id: input_id_1
13+
attributes:
14+
label: 框架版本【必填】
15+
description: 请输入你使用的框架版本
16+
validations:
17+
required: true
18+
- type: textarea
19+
id: input_id_2
20+
attributes:
21+
label: 问题描述【必填】
22+
description: 请输入你对这个问题的描述
23+
validations:
24+
required: true
25+
- type: textarea
26+
id: input_id_3
27+
attributes:
28+
label: 复现步骤【必填】
29+
description: 请输入问题的复现步骤
30+
validations:
31+
required: true
32+
- type: dropdown
33+
id: input_id_4
34+
attributes:
35+
label: 是否必现【必填】
36+
multiple: false
37+
options:
38+
- 未选择
39+
-
40+
-
41+
validations:
42+
required: true
43+
- type: input
44+
id: input_id_5
45+
attributes:
46+
label: 项目 targetSdkVersion【必填】
47+
validations:
48+
required: true
49+
- type: input
50+
id: input_id_6
51+
attributes:
52+
label: 出现问题的手机信息【必填】
53+
description: 请填写出现问题的品牌和机型
54+
validations:
55+
required: true
56+
- type: input
57+
id: input_id_7
58+
attributes:
59+
label: 出现问题的安卓版本【必填】
60+
description: 请填写出现问题的 Android 版本
61+
validations:
62+
required: true
63+
- type: dropdown
64+
id: input_id_8
65+
attributes:
66+
label: 问题信息的来源渠道【必填】
67+
multiple: true
68+
options:
69+
- 自己遇到的
70+
- Bugly 看到的
71+
- 用户反馈
72+
- 其他渠道
73+
- type: input
74+
id: input_id_9
75+
attributes:
76+
label: 是部分机型还是所有机型都会出现【必答】
77+
description: 部分/全部(例如:某为,某 Android 版本会出现)
78+
validations:
79+
required: true
80+
- type: dropdown
81+
id: input_id_10
82+
attributes:
83+
label: 框架最新的版本是否存在这个问题【必答】
84+
description: 如果用的是旧版本的话,建议升级看问题是否还存在
85+
multiple: false
86+
options:
87+
- 未选择
88+
-
89+
-
90+
validations:
91+
required: true
92+
- type: dropdown
93+
id: input_id_11
94+
attributes:
95+
label: 框架文档是否提及了该问题【必答】
96+
description: 文档会提供最常见的问题解答,可以先看看是否有自己想要的
97+
multiple: false
98+
options:
99+
- 未选择
100+
-
101+
-
102+
validations:
103+
required: true
104+
- type: dropdown
105+
id: input_id_12
106+
attributes:
107+
label: 是否已经查阅框架文档但还未能解决的【必答】
108+
description: 如果查阅了文档但还是没有解决的话,可以选择是
109+
multiple: false
110+
options:
111+
- 未选择
112+
-
113+
-
114+
validations:
115+
required: true
116+
- type: dropdown
117+
id: input_id_13
118+
attributes:
119+
label: issue 列表中是否有人曾提过类似的问题【必答】
120+
description: 可以在 issue 列表在搜索问题关键字,参考一下别人的解决方案
121+
multiple: false
122+
options:
123+
- 未选择
124+
-
125+
-
126+
validations:
127+
required: true
128+
- type: dropdown
129+
id: input_id_14
130+
attributes:
131+
label: 是否已经搜索过了 issue 列表但还未能解决的【必答】
132+
description: 如果搜索过了 issue 列表但是问题没有解决的话,可以选择是
133+
multiple: false
134+
options:
135+
- 未选择
136+
-
137+
-
138+
validations:
139+
required: true
140+
- type: dropdown
141+
id: input_id_15
142+
attributes:
143+
label: 是否可以通过 Demo 来复现该问题【必答】
144+
description: 排查一下是不是自己的项目代码写得有问题导致的
145+
multiple: false
146+
options:
147+
- 未选择
148+
-
149+
-
150+
validations:
151+
required: true
152+
- type: textarea
153+
id: input_id_16
154+
attributes:
155+
label: 提供报错堆栈
156+
description: 如果有报错的话必填,注意不要拿被混淆过的代码堆栈上来
157+
render: text
158+
validations:
159+
required: false
160+
- type: textarea
161+
id: input_id_17
162+
attributes:
163+
label: 提供截图或视频
164+
description: 根据需要提供,此项不强制
165+
validations:
166+
required: false
167+
- type: textarea
168+
id: input_id_18
169+
attributes:
170+
label: 提供解决方案
171+
description: 如果已经解决了的话,此项不强制
172+
validations:
173+
required: false
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: 提出疑问
2+
description: 提出你的困惑,我会给你解答
3+
title: "[疑惑]:"
4+
labels: ["question"]
5+
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
## [【警告:请务必按照 issue 模板填写,不要抱有侥幸心理,一旦发现 issue 没有按照模板认真填写,一律直接关闭】](https://github.com/getActivity/IssueTemplateGuide)
11+
- type: textarea
12+
id: input_id_1
13+
attributes:
14+
label: 问题描述【必填】
15+
description: 请描述一下你的问题(注意:如果确定是框架 bug 请不要在这里提,否则一概不受理)
16+
validations:
17+
required: true
18+
- type: dropdown
19+
id: input_id_2
20+
attributes:
21+
label: 框架文档是否提及了该问题【必答】
22+
description: 文档会提供最常见的问题解答,可以先看看是否有自己想要的
23+
multiple: false
24+
options:
25+
- 未选择
26+
-
27+
-
28+
validations:
29+
required: true
30+
- type: dropdown
31+
id: input_id_3
32+
attributes:
33+
label: 是否已经查阅框架文档但还未能解决的【必答】
34+
description: 如果查阅了文档但还是没有解决的话,可以选择是
35+
multiple: false
36+
options:
37+
- 未选择
38+
-
39+
-
40+
validations:
41+
required: true
42+
- type: dropdown
43+
id: input_id_4
44+
attributes:
45+
label: issue 列表中是否有人曾提过类似的问题【必答】
46+
description: 可以在 issue 列表在搜索问题关键字,参考一下别人的解决方案
47+
multiple: false
48+
options:
49+
- 未选择
50+
-
51+
-
52+
validations:
53+
required: true
54+
- type: dropdown
55+
id: input_id_5
56+
attributes:
57+
label: 是否已经搜索过了 issue 列表但还未能解决的【必答】
58+
description: 如果搜索过了 issue 列表但是问题没有解决的话,可以选择是
59+
multiple: false
60+
options:
61+
- 未选择
62+
-
63+
-
64+
validations:
65+
required: true
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: 提交建议
2+
description: 请告诉我框架的不足之处,让我做得更好!
3+
title: "[建议]:"
4+
labels: ["help wanted"]
5+
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
## [【警告:请务必按照 issue 模板填写,不要抱有侥幸心理,一旦发现 issue 没有按照模板认真填写,一律直接关闭】](https://github.com/getActivity/IssueTemplateGuide)
11+
- type: textarea
12+
id: input_id_1
13+
attributes:
14+
label: 你觉得框架有什么不足之处?【必答】
15+
description: 你可以描述框架有什么令你不满意的地方
16+
validations:
17+
required: true
18+
- type: dropdown
19+
id: input_id_2
20+
attributes:
21+
label: issue 是否有人曾提过类似的建议?【必答】
22+
description: 一旦出现重复提问我将不会再次解答
23+
multiple: false
24+
options:
25+
- 未选择
26+
-
27+
-
28+
validations:
29+
required: true
30+
- type: dropdown
31+
id: input_id_3
32+
attributes:
33+
label: 框架文档是否提及了该问题【必答】
34+
description: 文档会提供最常见的问题解答,可以先看看是否有自己想要的
35+
multiple: false
36+
options:
37+
- 未选择
38+
-
39+
-
40+
validations:
41+
required: true
42+
- type: dropdown
43+
id: input_id_4
44+
attributes:
45+
label: 是否已经查阅框架文档但还未能解决的【必答】
46+
description: 如果查阅了文档但还是没有解决的话,可以选择是
47+
multiple: false
48+
options:
49+
- 未选择
50+
-
51+
-
52+
validations:
53+
required: true
54+
- type: textarea
55+
id: input_id_5
56+
attributes:
57+
label: 你觉得该怎么去完善会比较好?【非必答】
58+
description: 你可以提供一下自己的想法或者做法供作者参考
59+
validations:
60+
required: false

.github/workflows/android.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Android CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: set up JDK 1.8
13+
uses: actions/setup-java@v1
14+
with:
15+
java-version: 1.8

AndroidProject.apk

-7.38 MB
Binary file not shown.

0 commit comments

Comments
 (0)