Compare commits

..

182 Commits

Author SHA1 Message Date
18401019693
66849632e0 pdlive6.6.6版本改动合并 2024-04-12 14:13:13 +08:00
18401019693
06fa241af6 pdlive6.6.6版本改动合并 2024-04-11 16:43:01 +08:00
18401019693
b31ec9cddf pdlive6.6.6版本改动合并 2024-04-11 13:11:32 +08:00
80d89c8c0b 更新 版本号 2024-04-08 17:19:39 +08:00
99d92b8137 修复 更新问题
修复 删除聊天内容会恢复问题
2024-04-08 16:34:26 +08:00
dbebb942e3 修复 更新问题
修复 删除聊天内容会恢复问题
2024-04-08 16:34:14 +08:00
ed20df63eb 修复 2024-04-07 18:25:50 +08:00
67cca1b4fb 修复 2024-04-07 17:50:10 +08:00
hch
1e91f4c716 fix [修复] 2024-04-07 17:29:08 +08:00
7072aadcb6 修复 2024-04-07 15:22:21 +08:00
269ad6e808 修复 2024-04-07 14:46:08 +08:00
hch
954a14662b fix [修复-关注状态问题、动态必填信息问题] 2024-04-03 18:25:27 +08:00
35e0d3dc3e 修复 [通讯录搜索问题] 2024-04-03 18:02:36 +08:00
26af3fbbdd 修复 [反馈问题] 2024-04-03 17:46:51 +08:00
75da607022 修复 [分享密码房打不开的问题] 2024-04-03 17:08:23 +08:00
98c17b91fc 修复 [反餽問題] 2024-04-03 16:14:04 +08:00
0cb2918561 Merge remote-tracking branch 'origin/dev_改版主分支-升级融云SDK&AGP8' into dev_改版主分支-升级融云SDK&AGP8 2024-04-03 16:13:16 +08:00
hch
538fcc4331 fix [修改-短剧返回按钮] 2024-04-03 16:12:50 +08:00
088868201d 修复 [反餽問題] 2024-04-03 16:11:57 +08:00
fb81ca8c54 修复 [主播账号,更改为在线状态后,确定后重新进入,仍然显示离线] 2024-04-03 15:37:44 +08:00
703e3c16d1 Merge remote-tracking branch 'origin/dev_改版主分支-升级融云SDK&AGP8' into dev_改版主分支-升级融云SDK&AGP8 2024-04-03 15:23:21 +08:00
d06f4599fa 修复 [在直播间中,点击推送弹窗,进入聊天详情界面,点击聊天记录中的直播间【站内分享】,无法进入直播间] 2024-04-03 15:23:08 +08:00
b285512914 修复 [在直播间中,只有普通消息才能收到推送弹窗] 2024-04-03 15:06:00 +08:00
44fc3c651a Login.getCode加字段 2024-04-03 14:22:17 +08:00
7eb9aafd87 调整通讯录图片 2024-04-03 14:14:01 +08:00
ceaec086ad 调整push弹框内容 2024-04-03 14:07:47 +08:00
hch
7ab38b12d9 fix [修复-未上传成功,url清空] 2024-04-03 13:46:45 +08:00
47a3ba6b78 Merge remote-tracking branch 'origin/dev_改版主分支-升级融云SDK&AGP8' into dev_改版主分支-升级融云SDK&AGP8 2024-04-03 13:45:28 +08:00
260a6b91f3 fix [反馈内容] 2024-04-03 13:44:27 +08:00
hch
04bc9af501 fix [修复-bug] 2024-04-03 13:11:10 +08:00
0f9f53a080 fix [进入竖屏视频,点击头像,返回,视频变成横屏] 2024-04-03 10:13:34 +08:00
9652bcaf9a fix [英文版【连麦中,退出将断开语音连麦!】未翻译] 2024-04-02 18:16:32 +08:00
5c10820e98 fix [英文版【连麦中,退出将断开语音连麦!】未翻译] 2024-04-02 18:14:08 +08:00
dc65e2bdd3 fix [调整完善信息UI]
fix [站内分享 列表下标问题]
2024-04-02 17:54:01 +08:00
4685b7979b fix [头像問題] 2024-04-02 16:49:02 +08:00
d44df09e5c fix [爱好会遮挡] 2024-04-02 16:10:04 +08:00
hch
4c760e60b1 fix [修复-修復上傳視頻發佈提示問題] 2024-04-02 15:42:12 +08:00
4de32ec4e0 fix [调整is_chat开关] 2024-04-02 15:09:12 +08:00
hch
c35832487d fix [修复-去掉视频封面] 2024-04-02 13:20:15 +08:00
b52e1cea66 fix [找回密码无法登陆问题] 2024-04-02 13:19:29 +08:00
41874a5073 fix [找回密码无法登陆问题] 2024-04-02 13:19:23 +08:00
1f21d447e7 Merge remote-tracking branch 'origin/dev_改版主分支-升级融云SDK&AGP8' into dev_改版主分支-升级融云SDK&AGP8 2024-04-02 10:03:26 +08:00
hch
ddaed22630 fix [修复-视频播放问题] 2024-04-02 10:02:32 +08:00
hch
97c692d41d fix [修复-修改视频框架] 2024-04-01 18:20:10 +08:00
79f0237849 remove [移除已读未读标记] 2024-04-01 16:03:57 +08:00
6945414be3 fix [聊天时直播状态不正确] 2024-04-01 16:02:49 +08:00
5ed273f99b add 找回密码新增语言标记 2024-04-01 14:03:02 +08:00
f80e8016b5 add 登录新增语言标记 2024-04-01 13:26:43 +08:00
1dcd0c7882 add 客服页面都需要在链接后加一个中英文的isZh 2024-04-01 10:58:37 +08:00
962a07d6d1 Merge remote-tracking branch 'origin/dev_改版主分支-升级融云SDK&AGP8' into dev_改版主分支-升级融云SDK&AGP8 2024-04-01 10:47:27 +08:00
51ab918327 fix [换设备已读聊天信息依旧推送问题] 2024-04-01 10:47:13 +08:00
hch
10ea7d9735 fix [修复-视频问题] 2024-04-01 10:46:33 +08:00
91217e6bda Merge remote-tracking branch 'origin/dev_改版主分支-升级融云SDK&AGP8' into dev_改版主分支-升级融云SDK&AGP8 2024-03-29 14:52:03 +08:00
081a2ee350 fix [PDL不能展示战令的弹窗] 2024-03-29 14:51:53 +08:00
6172b5ea9a fix [调整翻译] 2024-03-29 14:51:36 +08:00
3b7f273a6e fix [调整翻译] 2024-03-29 14:29:15 +08:00
bc412a0fb5 fix [Banner错误展示] 2024-03-29 14:25:53 +08:00
hch
326e376323 fix [修复-翻译--删除成功,回复] 2024-03-29 14:11:53 +08:00
3f717131cc Merge remote-tracking branch 'origin/dev_改版主分支-升级融云SDK&AGP8' into dev_改版主分支-升级融云SDK&AGP8 2024-03-29 13:05:10 +08:00
hch
7f40b899a9 fix [修复-] 2024-03-29 11:24:52 +08:00
2a4ce7740b fix [消息推送的头像变形] 2024-03-29 10:57:00 +08:00
4725e67c75 Merge remote-tracking branch 'origin/dev_改版主分支-升级融云SDK&AGP8' into dev_改版主分支-升级融云SDK&AGP8 2024-03-28 16:29:19 +08:00
hch
f31c20f49a fix [修复-视频-不感兴趣还是中文] 2024-03-28 15:53:34 +08:00
hch
b975e5864f fix [修复-个人主页-动态无法删除问题] 2024-03-28 15:49:11 +08:00
df996435ec fix [卡片内的头像需要加直播状态&直播状态点击直播间] 2024-03-28 15:48:29 +08:00
c4117b80ee fix [出现中英文混搭的情况(偶现)] 2024-03-28 15:37:53 +08:00
hch
1d9930ed26 fix [修复-个人主页-标签颜色问题,视频点赞数量+1问题] 2024-03-28 15:23:43 +08:00
ab4a5cb077 fix [文案顺序问题] 2024-03-28 15:04:30 +08:00
8a480b51dd fix [性别问题] 2024-03-28 14:57:34 +08:00
01e4afe9c0 fix [英文文案需要左右换下 互动对应的是 Chats ] 2024-03-28 14:56:01 +08:00
462d7177c2 fix [性别显示问题] 2024-03-28 14:54:07 +08:00
2ab97cb0f6 fix [头像问题] 2024-03-28 14:47:50 +08:00
d8e002a8bd fix [英文版-用户-选择多个爱好后,内容与标签名隔开下;保存成功提示语还是中文;保存成功后,选择的内容项也是中文显示,参考右图] 2024-03-28 14:13:06 +08:00
dcf7cfa889 fix [注册界面-按钮与输入重叠] 2024-03-28 14:01:52 +08:00
6a5272d39f fix [注册界面-按钮与输入重叠] 2024-03-28 14:01:39 +08:00
6e6acd8871 fix [上滑无法关闭名片] 2024-03-28 13:48:20 +08:00
hch
4f590a78a8 fix [修复-个人主页-自己个人主页的三个点要去掉] 2024-03-28 13:40:28 +08:00
hch
ff57432814 fix [修复-个人主页-动态头像变形问题] 2024-03-28 13:37:55 +08:00
hch
2e9d1cb3dd fix [修复-个人主页-点击视频-无法跳转问题] 2024-03-28 13:36:20 +08:00
hch
54c97251b8 Revert "fix [修复-精彩直播显示位置]"
This reverts commit 415a532351.
2024-03-28 13:07:17 +08:00
hch
0481db2570 fix [修复-精彩直播显示位置] 2024-03-28 13:06:44 +08:00
hch
415a532351 fix [修复-精彩直播显示位置] 2024-03-28 13:06:19 +08:00
72a18a0500 fix [热门-分享-站内好友-列表缺好友的头像] 2024-03-28 10:28:26 +08:00
hch
6b616a4ff8 fix [关注按钮修复,直播状态跳转直播间,首页精彩直播位置展示问题,社区图片5张图片展示问题] 2024-03-27 16:58:01 +08:00
79c691f5b2 Merge remote-tracking branch 'origin/dev_改版主分支-升级融云SDK&AGP8' into dev_改版主分支-升级融云SDK&AGP8 2024-03-27 16:13:49 +08:00
2c41e9418d fix [打招呼的弹窗出现时,只会闪一下就自动消失] 2024-03-27 16:09:33 +08:00
e256b61238 fix [上滑无法关闭名片]
fix [聊天界面-聊天内容输入可超过300字符]
2024-03-27 15:52:16 +08:00
be214df23b fix [直播分类里的字体颜色需修改为之前潘多拉的颜色,参考截图] 2024-03-27 15:00:59 +08:00
4451403f46 fix [消息页面按钮与ui不一致] 2024-03-27 14:10:54 +08:00
hch
b0a9ebe0f3 add [个人主页-页面跳转] 2024-03-27 13:08:16 +08:00
b3aed71dd6 Merge remote-tracking branch 'origin/dev_改版主分支-升级融云SDK&AGP8' into dev_改版主分支-升级融云SDK&AGP8 2024-03-27 10:32:12 +08:00
hch
d2f4bb3d4f fix [修改-自己的动态-不能拉黑,不感兴趣] 2024-03-27 10:17:53 +08:00
863aef9a20 Merge remote-tracking branch 'origin/dev_改版主分支-升级融云SDK&AGP8' into dev_改版主分支-升级融云SDK&AGP8 2024-03-27 10:11:21 +08:00
25fbf11fbc fix [分享列表为空的时候设置背景图] 2024-03-26 18:28:18 +08:00
hch
9bb4ed1393 add [新增-个人主页-动态删除] 2024-03-26 18:20:48 +08:00
hch
e69be60d43 add [新增-个人主页-点击图片展示1] 2024-03-26 17:53:10 +08:00
hch
e352e5692c Merge remote-tracking branch 'origin/dev_改版主分支-升级融云SDK&AGP8' into dev_改版主分支-升级融云SDK&AGP8 2024-03-26 17:51:47 +08:00
hch
c7a4c9f501 add [新增-个人主页-点击图片展示] 2024-03-26 17:51:23 +08:00
f2d7617ebe fix [修复直播数量不足且战令关闭情况下,显示角标Banner白屏问题]
update [替换战令角标]
add [从首页Banner进入战令入口]
add [从弹窗进入战令入口]
2024-03-26 17:47:19 +08:00
210d3a5184 Merge remote-tracking branch 'origin/dev_改版主分支-升级融云SDK&AGP8' into dev_改版主分支-升级融云SDK&AGP8 2024-03-26 17:39:10 +08:00
hch
fe2af299cb fix [修复-没有背景墙图片展示问题] 2024-03-26 17:31:45 +08:00
698b875a93 fix [打招呼弹窗被隐藏问题] 2024-03-26 16:52:31 +08:00
b3fe537b2c fix [身高未设置时,个人主页和名片 标签需要显示为空] 2024-03-26 16:51:30 +08:00
hch
453de855b9 fix [修复-个人主页-标签-身高cm] 2024-03-26 16:50:18 +08:00
hch
e386fbfdbb fix [修复动态发布,时间选择问题] 2024-03-26 16:48:37 +08:00
1d0500128b fix [个人主页身高标签,身高有误] 2024-03-26 16:46:24 +08:00
99bbffed21 fix [跨设备已读消息依旧推送问题] 2024-03-26 16:43:34 +08:00
7c669b338f fix [获取指导员备注信息 为空时的闪退问题] 2024-03-26 16:31:15 +08:00
7e6a296722 update 混淆配置 2024-03-26 16:30:48 +08:00
hch
80fd2a1bbc 三星SDK升级 2024-03-26 16:20:24 +08:00
9d528524be update 三星包 2024-03-26 15:25:23 +08:00
bb4621ee13 fix [从推送点击-回复-进入列表页面-头像没有显示,退出聊天页面重进头像正常显示] 2024-03-26 14:24:07 +08:00
631be1bd89 fix [跨设备已读消息依旧推送问题] 2024-03-26 14:23:50 +08:00
218b223320 Merge branch 'dev_改版主分支' into dev_改版主分支-升级融云SDK&AGP8 2024-03-26 13:46:38 +08:00
8c0398190e Merge remote-tracking branch 'origin/dev_改版主分支' into dev_改版主分支 2024-03-26 13:46:18 +08:00
460dfa87b3 升级融云sdk版本和APG版本 2024-03-26 13:43:13 +08:00
hch
b90d86d90f 修复bug 2024-03-26 10:43:02 +08:00
4337f0bdd6 升级融云sdk版本暂存 2024-03-26 10:35:53 +08:00
f391d1bee7 fix [关注状态有误] 2024-03-26 10:25:03 +08:00
33b1f6101f Merge remote-tracking branch 'origin/dev_改版主分支' into dev_改版主分支 2024-03-26 09:37:13 +08:00
hch
0324b638fa 修复bug 2024-03-26 09:36:41 +08:00
7cffce8760 update 补充翻译 2024-03-25 18:09:02 +08:00
be4d05da79 fix [通讯录点击不该跳转到聊天页面] 2024-03-25 18:06:17 +08:00
f8c5b072af fix [分享直播和动态改成叫【站内分享】] 2024-03-25 18:05:59 +08:00
a497d70599 fix [注册默认不需要选择性别v2] 2024-03-25 17:12:20 +08:00
84520a4f2f fix [消息列表时间格式v2] 2024-03-25 16:50:38 +08:00
9a7054ce76 fix [一直存在草稿的问题]
fix [聊天通知改为可点击]
2024-03-25 16:38:47 +08:00
57333cdae8 update 气泡.9图格式 2024-03-25 13:51:25 +08:00
e50b00152d fix [消息列表时间格式] 2024-03-25 13:51:10 +08:00
253fe38067 Merge remote-tracking branch 'origin/dev_改版主分支' into dev_改版主分支 2024-03-25 13:07:34 +08:00
hch
28f00f1c8a 修复bug 2024-03-25 13:07:15 +08:00
511a354155 fix [消息设置-图片-选择图片-点击裁剪左边的×,回到消息设置页面后卡住] 2024-03-25 10:09:44 +08:00
463e7b9040 fix [消息设置,删除已经上传的图片之后,×依然存在] 2024-03-25 10:09:28 +08:00
dd582c10c7 update 補充翻譯 2024-03-23 17:50:11 +08:00
bd6ddf7153 fix [更新氣泡] 2024-03-23 17:49:59 +08:00
c20708d633 fix [私聊消息-直播中无正在直播标识] 2024-03-23 16:49:47 +08:00
d08861a082 fix [注册默认不需要选择性别] 2024-03-23 15:19:25 +08:00
12989e12ce fix [消息标题翻译] 2024-03-23 15:09:40 +08:00
77530340d0 fix [英文版年龄显示不正常] 2024-03-23 15:09:40 +08:00
a387b30893 fix [分享站内好友成功的弹窗位置与ui不一致] 2024-03-23 15:09:40 +08:00
889f8dcfe8 fix [发送按钮大小写问题] 2024-03-23 15:09:40 +08:00
88e822004f fix [私聊消息聊天界面消息时间未按规定设置] 2024-03-23 15:09:40 +08:00
b954e9d451 fix [分享直播和动态改成叫【站内分享】] 2024-03-23 15:09:40 +08:00
578de1f101 fix [分享飞机票底部提示需去除] 2024-03-23 15:09:40 +08:00
62419c86cf fix [通讯录点击头像正常应该无法进入聊天界面] 2024-03-23 15:09:40 +08:00
434486387d fix [聊天界面-未关注的用户无关注按钮] 2024-03-23 15:09:40 +08:00
7cf7c1e993 fix [动态发布进入选择时间,默认时间应该是当前时间] 2024-03-23 10:23:10 +08:00
hch
9427fb8aaa 修復圖片刪除不了 2024-03-22 17:55:50 +08:00
hch
4d4d3d1bae 文字1 2024-03-22 17:47:12 +08:00
2cc58b920f update 調整定時器參數 2024-03-22 17:31:27 +08:00
3b4ffe8c51 update 補充翻譯 2024-03-22 16:53:36 +08:00
cd3a86c6b7 update 调整聊天页面UI
update 调整直播中英文
2024-03-22 15:27:35 +08:00
82c4edf7e4 update 屏蔽注册后指导员引导弹窗 2024-03-22 14:27:57 +08:00
bd598176c1 update 调整隐藏性别
update 调整完善资料报错提醒
2024-03-22 14:08:44 +08:00
hch
02bc604685 发布动态限制 2024-03-22 13:53:32 +08:00
hch
5ebb97cd3c Merge remote-tracking branch 'origin/dev_改版主分支' into dev_改版主分支 2024-03-22 10:14:07 +08:00
hch
e9a3e8aa2f 文字11 2024-03-22 10:13:53 +08:00
61dcf0916d update 补充状态 2024-03-22 10:12:28 +08:00
7167ad8e97 update 補充翻譯 2024-03-22 09:53:39 +08:00
9992dec28e Merge remote-tracking branch 'origin/dev_改版主分支' into dev_改版主分支 2024-03-22 09:47:07 +08:00
04980cbb2f update 補充翻譯 2024-03-22 09:46:41 +08:00
hch
f2b2c39168 文字 2024-03-22 09:28:11 +08:00
d39facbcc7 update 修正聊天页在线离线状态
update 聊天页长按删除功能
2024-03-21 18:02:47 +08:00
hch
c3ca76df07 文字 2024-03-21 17:33:49 +08:00
34dae7d981 update 调整文案 2024-03-21 17:00:40 +08:00
ce568c6d87 Merge remote-tracking branch 'origin/dev_改版主分支' into dev_改版主分支 2024-03-21 16:39:49 +08:00
c7ba98acb4 add 屏蔽push列表
update 修改搜索文案
2024-03-21 16:17:17 +08:00
hch
f8cb1d0a4b 修复举报点不动 2024-03-21 16:14:05 +08:00
hch
94d05a3929 修复跳转 2024-03-21 16:02:31 +08:00
1c74689e90 update 限制游戏列表内容行数 2024-03-21 15:16:01 +08:00
a5acbb0146 update 屏蔽看视频页面打招呼弹框 2024-03-21 15:11:48 +08:00
457e47e885 update 年齡標籤+歲 2024-03-21 15:09:11 +08:00
1442d05262 update 分享搜索功能 2024-03-21 15:04:08 +08:00
9e80e77297 update 补充角标 2024-03-21 14:54:36 +08:00
ab6d871b38 update 动态&视频分享功能 2024-03-21 14:48:10 +08:00
hch
0e83f4fbaf 視頻跳轉 2024-03-20 18:23:39 +08:00
hch
434474bd98 迁移 2024-03-20 17:37:47 +08:00
f3d19e37bb Merge remote-tracking branch 'origin/dev_改版主分支' into dev_改版主分支 2024-03-20 16:39:47 +08:00
hch
f662ec4259 7 2024-03-20 16:35:04 +08:00
bfa4a52dd4 Merge branch 'dev_聊天' into dev_改版主分支
# Conflicts:
#	common/src/main/java/com/yunbao/common/http/PDLiveApi.java
#	common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java
2024-03-20 16:21:24 +08:00
hch
307ded37fc Merge branch 'pandorapan_社区相关' into dev_改版主分支 2024-03-20 16:17:32 +08:00
hch
04d3faa0cb 6- 2024-03-20 16:11:35 +08:00
498 changed files with 18729 additions and 4253 deletions

1
.gitignore vendored
View File

@ -14,3 +14,4 @@ local.properties
/live/build/
/main/build/
/video/build/
/tmp/full-r8-config.txt

View File

@ -1,12 +1,18 @@
apply plugin: 'com.android.library'
apply plugin: 'img-optimizer'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
//apply plugin: 'com.android.library'
//apply plugin: 'img-optimizer'
//apply plugin: 'kotlin-android'
//apply plugin: 'kotlin-android-extensions'
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-parcelize'
id 'img-optimizer'
}
android {
compileSdkVersion rootProject.ext.android.compileSdkVersion
buildToolsVersion rootProject.ext.android.buildToolsVersion
namespace "com.yunbao.faceunity"
compileSdk rootProject.ext.android.compileSdkVersion
packagingOptions {
pickFirst "lib/armeabi/libyuvutils.so"
pickFirst "lib/arm64-v8a/libyuvutils.so"
@ -48,8 +54,11 @@ android {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_18
targetCompatibility JavaVersion.VERSION_18
}
buildFeatures {
buildConfig = true
}
}
repositories {

View File

@ -1,6 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.yunbao.faceunity"
>
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
@ -11,7 +10,9 @@
<application
android:icon="@mipmap/ico_home_animoji"
android:allowBackup="true">
android:allowBackup="true"
tools:replace="allowBackup"
>
</application>

View File

@ -1,15 +1,15 @@
apply plugin: 'com.android.library'
android {
compileSdkVersion rootProject.ext.android.compileSdkVersion
buildToolsVersion rootProject.ext.android.buildToolsVersion
namespace "com.samsung.android.sdk.iap.lib"
compileSdk rootProject.ext.android.compileSdkVersion
defaultConfig {
minSdkVersion minSdkVersion
minSdkVersion rootProject.ext.android.minSdkVersion
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
versionCode versionCode
versionName versionName
targetSdkVersion targetSdkVersion
versionCode rootProject.ext.android.versionCode
versionName rootProject.ext.android.versionName
targetSdkVersion rootProject.ext.android.targetSdkVersion
}
buildTypes {
@ -18,7 +18,15 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
buildFeatures {
buildConfig = true
}
}
repositories {
flatDir {
dirs 'libs', '../libs'
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
}

Binary file not shown.

View File

@ -1,30 +1,31 @@
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.samsung.android.sdk.iap.lib"
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:versionCode="601000004"
android:versionName="6.1.0">
<!-- version code [Major/Minor/Bug fix release/Build number ] : x xx xxx xxx -->
<application>
<application
android:allowBackup="true"
tools:replace="allowBackup">
<!-- IAP 라이브러리 내 Activity 선언 시작-->
<activity
android:name="com.samsung.android.sdk.iap.lib.activity.DialogActivity"
android:name="com.samsung.android.sdk.iap.lib2.activity.DialogActivity"
android:theme="@style/Theme.Empty"
android:configChanges="orientation|screenSize"/>
<activity
android:name="com.samsung.android.sdk.iap.lib.activity.CheckPackageActivity"
android:name="com.samsung.android.sdk.iap.lib2.activity.CheckPackageActivity"
android:theme="@style/Theme.Empty"
android:configChanges="orientation|screenSize"/>
<activity
android:name="com.samsung.android.sdk.iap.lib.activity.AccountActivity"
android:name="com.samsung.android.sdk.iap.lib2.activity.AccountActivity"
android:theme="@style/Theme.Transparent"
android:configChanges="orientation|screenSize"/>
<activity
android:name="com.samsung.android.sdk.iap.lib.activity.PaymentActivity"
android:name="com.samsung.android.sdk.iap.lib2.activity.PaymentActivity"
android:theme="@style/Theme.Empty"
android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|keyboard|keyboardHidden|locale|uiMode|fontScale|density"/>

View File

@ -1,20 +0,0 @@
package com.samsung.android.sdk.iap.lib.listener;
import com.samsung.android.sdk.iap.lib.helper.task.GetOwnedListTask;
import com.samsung.android.sdk.iap.lib.vo.ErrorVo;
import com.samsung.android.sdk.iap.lib.vo.OwnedProductVo;
import java.util.ArrayList;
/**
* Callback Interface used with {@link GetOwnedListTask}
*/
public interface OnGetOwnedListListener {
/**
* Callback method to be invoked when {@link GetOwnedListTask} has been finished.
*
* @param _errorVO
* @param _ownedList
*/
void onGetOwnedProducts(ErrorVo _errorVO, ArrayList<OwnedProductVo> _ownedList);
}

View File

@ -1,20 +0,0 @@
package com.samsung.android.sdk.iap.lib.listener;
import com.samsung.android.sdk.iap.lib.helper.task.GetProductsDetailsTask;
import com.samsung.android.sdk.iap.lib.vo.ErrorVo;
import com.samsung.android.sdk.iap.lib.vo.ProductVo;
import java.util.ArrayList;
/**
* Callback Interface used with {@link GetProductsDetailsTask}
*/
public interface OnGetProductsDetailsListener {
/**
* Callback method to be invoked when {@link GetProductsDetailsTask} has been finished.
*
* @param _errorVO
* @param _productList
*/
void onGetProducts(ErrorVo _errorVO, ArrayList<ProductVo> _productList);
}

View File

@ -1,13 +1,13 @@
package com.samsung.android.sdk.iap.lib.activity;
package com.samsung.android.sdk.iap.lib2.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import com.samsung.android.sdk.iap.lib.helper.HelperDefine;
import com.samsung.android.sdk.iap.lib.helper.HelperUtil;
import com.samsung.android.sdk.iap.lib.helper.IapHelper;
import com.samsung.android.sdk.iap.lib2.helper.HelperDefine;
import com.samsung.android.sdk.iap.lib2.helper.HelperUtil;
import com.samsung.android.sdk.iap.lib2.helper.IapHelper;
/**
* Created by sangbum7.kim on 2018-03-06.
@ -16,12 +16,11 @@ import com.samsung.android.sdk.iap.lib.helper.IapHelper;
public class AccountActivity extends Activity {
private static final String TAG = AccountActivity.class.getSimpleName();
IapHelper mIapHelper = null;
com.samsung.android.sdk.iap.lib2.helper.IapHelper mIapHelper = null;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mIapHelper = IapHelper.getInstance(this);
// ====================================================================
// 1. If IAP package is installed and valid, start SamsungAccount

View File

@ -1,4 +1,4 @@
package com.samsung.android.sdk.iap.lib.activity;
package com.samsung.android.sdk.iap.lib2.activity;
import android.app.Activity;
import android.app.Dialog;
@ -8,25 +8,25 @@ import android.util.Log;
import android.widget.Toast;
import com.samsung.android.sdk.iap.lib.R;
import com.samsung.android.sdk.iap.lib.dialog.BaseDialogFragment;
import com.samsung.android.sdk.iap.lib.helper.HelperDefine;
import com.samsung.android.sdk.iap.lib.helper.HelperUtil;
import com.samsung.android.sdk.iap.lib.helper.IapHelper;
import com.samsung.android.sdk.iap.lib.vo.ErrorVo;
import com.samsung.android.sdk.iap.lib.vo.PurchaseVo;
import com.samsung.android.sdk.iap.lib2.helper.HelperDefine;
import com.samsung.android.sdk.iap.lib2.dialog.BaseDialogFragment;
import com.samsung.android.sdk.iap.lib2.helper.HelperUtil;
import com.samsung.android.sdk.iap.lib2.helper.IapHelper;
import com.samsung.android.sdk.iap.lib2.vo.ErrorVo;
import com.samsung.android.sdk.iap.lib2.vo.PurchaseVo;
public abstract class BaseActivity extends Activity {
private static final String TAG = BaseActivity.class.getSimpleName();
protected ErrorVo mErrorVo = new ErrorVo();
protected com.samsung.android.sdk.iap.lib2.vo.ErrorVo mErrorVo = new com.samsung.android.sdk.iap.lib2.vo.ErrorVo();
private Dialog mProgressDialog = null;
protected PurchaseVo mPurchaseVo = null;
protected com.samsung.android.sdk.iap.lib2.vo.PurchaseVo mPurchaseVo = null;
/**
* Helper Class between IAPService and 3rd Party Application
*/
IapHelper mIapHelper = null;
com.samsung.android.sdk.iap.lib2.helper.IapHelper mIapHelper = null;
/**
* Flag value to show successful pop-up. Error pop-up appears whenever it fails or not.
@ -64,15 +64,15 @@ public abstract class BaseActivity extends Activity {
public boolean checkAppsPackage(Activity _activity) {
// 1. If Galaxy Store is installed
// ====================================================================
if (HelperUtil.isInstalledAppsPackage(this)) {
if (com.samsung.android.sdk.iap.lib2.helper.HelperUtil.isInstalledAppsPackage(this)) {
// 1) If Galaxy Store is enabled
// ================================================================
if (!HelperUtil.isEnabledAppsPackage(this)) {
HelperUtil.showEnableGalaxyStoreDialog(_activity);
if (!com.samsung.android.sdk.iap.lib2.helper.HelperUtil.isEnabledAppsPackage(this)) {
com.samsung.android.sdk.iap.lib2.helper.HelperUtil.showEnableGalaxyStoreDialog(_activity);
// ================================================================
// 2) If Galaxy Store is valid
// ================================================================
} else if (HelperUtil.isValidAppsPackage(this)) {
} else if (com.samsung.android.sdk.iap.lib2.helper.HelperUtil.isValidAppsPackage(this)) {
return true;
} else {
// Set error to notify result to third-party application
@ -84,7 +84,7 @@ public abstract class BaseActivity extends Activity {
R.string.dream_ph_body_contact_p1sscustomer_servicep2ss_for_more_information_n_nerror_code_c_p3ss),
"", "", ERROR_ISSUER_IAP_CLIENT + ERROR_CODE_INVALID_GALAXY_STORE);
mErrorVo.setError(HelperDefine.IAP_PAYMENT_IS_CANCELED, errorString);
HelperUtil.showInvalidGalaxyStoreDialog(this);
com.samsung.android.sdk.iap.lib2.helper.HelperUtil.showInvalidGalaxyStoreDialog(this);
}
// ================================================================
@ -92,7 +92,7 @@ public abstract class BaseActivity extends Activity {
// 2. If Galaxy Store is not installed
// ====================================================================
} else {
HelperUtil.installAppsPackage(this);
com.samsung.android.sdk.iap.lib2.helper.HelperUtil.installAppsPackage(this);
}
// ====================================================================
return false;
@ -161,12 +161,12 @@ public abstract class BaseActivity extends Activity {
else {
Log.e(TAG, "finishPurchase: " + mErrorVo.dump());
if (mShowErrorDialog) {
HelperUtil.showIapErrorDialog(
com.samsung.android.sdk.iap.lib2.helper.HelperUtil.showIapErrorDialog(
this,
getString(R.string.dream_ph_pheader_couldnt_complete_purchase),
mErrorVo.getErrorString(),
mErrorVo.getErrorDetailsString(),
new BaseDialogFragment.OnClickListener() {
new com.samsung.android.sdk.iap.lib2.dialog.BaseDialogFragment.OnClickListener() {
@Override
public void onClick() {
finish();

View File

@ -1,12 +1,12 @@
package com.samsung.android.sdk.iap.lib.activity;
package com.samsung.android.sdk.iap.lib2.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import com.samsung.android.sdk.iap.lib.helper.HelperDefine;
import com.samsung.android.sdk.iap.lib.helper.HelperUtil;
import com.samsung.android.sdk.iap.lib.helper.IapHelper;
import com.samsung.android.sdk.iap.lib2.helper.HelperDefine;
import com.samsung.android.sdk.iap.lib2.helper.HelperUtil;
import com.samsung.android.sdk.iap.lib2.helper.IapHelper;
/**
* Created by sangbum7.kim on 2018-03-07.
@ -27,12 +27,12 @@ public class CheckPackageActivity extends Activity {
int DialogType = extras.getInt("DialogType");
switch (DialogType) {
case HelperDefine.DIALOG_TYPE_INVALID_PACKAGE: {
HelperUtil.showInvalidGalaxyStoreDialog(this);
com.samsung.android.sdk.iap.lib2.helper.HelperUtil.showInvalidGalaxyStoreDialog(this);
mFinishFlag = false;
}
break;
case HelperDefine.DIALOG_TYPE_DISABLE_APPLICATION: {
HelperUtil.showEnableGalaxyStoreDialog(this);
com.samsung.android.sdk.iap.lib2.helper.HelperUtil.showEnableGalaxyStoreDialog(this);
mFinishFlag = false;
}
break;

View File

@ -1,16 +1,12 @@
package com.samsung.android.sdk.iap.lib.activity;
package com.samsung.android.sdk.iap.lib2.activity;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import com.samsung.android.sdk.iap.lib.R;
import com.samsung.android.sdk.iap.lib.dialog.BaseDialogFragment;
import com.samsung.android.sdk.iap.lib.helper.HelperDefine;
import com.samsung.android.sdk.iap.lib.helper.HelperUtil;
import com.samsung.android.sdk.iap.lib2.helper.HelperDefine;
import com.samsung.android.sdk.iap.lib2.dialog.BaseDialogFragment;
import com.samsung.android.sdk.iap.lib2.helper.HelperUtil;
/**
* Created by sangbum7.kim on 2018-03-05.

View File

@ -1,4 +1,4 @@
package com.samsung.android.sdk.iap.lib.activity;
package com.samsung.android.sdk.iap.lib2.activity;
import android.content.ComponentName;
import android.content.Context;
@ -9,9 +9,9 @@ import android.util.Log;
import android.widget.Toast;
import com.samsung.android.sdk.iap.lib.R;
import com.samsung.android.sdk.iap.lib.helper.HelperDefine;
import com.samsung.android.sdk.iap.lib.helper.HelperListenerManager;
import com.samsung.android.sdk.iap.lib.listener.OnPaymentListener;
import com.samsung.android.sdk.iap.lib2.helper.HelperDefine;
import com.samsung.android.sdk.iap.lib2.helper.HelperListenerManager;
import com.samsung.android.sdk.iap.lib2.listener.OnPaymentListener;
public class PaymentActivity extends BaseActivity {
private static final String TAG = PaymentActivity.class.getSimpleName();
@ -56,7 +56,7 @@ public class PaymentActivity extends BaseActivity {
super.preDestory();
if (isFinishing()) {
OnPaymentListener onPaymentListener =
HelperListenerManager.getInstance().getOnPaymentListener();
com.samsung.android.sdk.iap.lib2.helper.HelperListenerManager.getInstance().getOnPaymentListener();
HelperListenerManager.getInstance().setOnPaymentListener(null);
if (null != onPaymentListener) {
onPaymentListener.onPayment(mErrorVo, mPurchaseVo);

View File

@ -1,4 +1,4 @@
package com.samsung.android.sdk.iap.lib.dialog;
package com.samsung.android.sdk.iap.lib2.dialog;
import android.app.ActionBar;
import android.app.Dialog;
@ -8,7 +8,6 @@ import android.os.Build;
import android.os.Bundle;
import android.text.TextUtils;
import android.text.method.LinkMovementMethod;
import android.util.Log;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.View;

View File

@ -1,4 +1,4 @@
package com.samsung.android.sdk.iap.lib.helper;
package com.samsung.android.sdk.iap.lib2.helper;
/**
* Created by sangbum7.kim on 2017-07-17.

View File

@ -1,12 +1,12 @@
package com.samsung.android.sdk.iap.lib.helper;
package com.samsung.android.sdk.iap.lib2.helper;
import com.samsung.android.sdk.iap.lib.helper.task.ConsumePurchasedItemsTask;
import com.samsung.android.sdk.iap.lib.helper.task.GetOwnedListTask;
import com.samsung.android.sdk.iap.lib.helper.task.GetProductsDetailsTask;
import com.samsung.android.sdk.iap.lib.listener.OnConsumePurchasedItemsListener;
import com.samsung.android.sdk.iap.lib.listener.OnGetOwnedListListener;
import com.samsung.android.sdk.iap.lib.listener.OnGetProductsDetailsListener;
import com.samsung.android.sdk.iap.lib.listener.OnPaymentListener;
import com.samsung.android.sdk.iap.lib2.listener.OnConsumePurchasedItemsListener;
import com.samsung.android.sdk.iap.lib2.listener.OnGetOwnedListListener;
import com.samsung.android.sdk.iap.lib2.listener.OnGetProductsDetailsListener;
import com.samsung.android.sdk.iap.lib2.listener.OnPaymentListener;
import com.samsung.android.sdk.iap.lib2.helper.task.ConsumePurchasedItemsTask;
import com.samsung.android.sdk.iap.lib2.helper.task.GetOwnedListTask;
import com.samsung.android.sdk.iap.lib2.helper.task.GetProductsDetailsTask;
/**
* Created by sangbum7.kim on 2017-08-29.

View File

@ -1,4 +1,4 @@
package com.samsung.android.sdk.iap.lib.helper;
package com.samsung.android.sdk.iap.lib2.helper;
import android.app.Activity;
import android.content.ComponentName;
@ -14,9 +14,9 @@ import android.text.Html;
import android.util.Log;
import com.samsung.android.sdk.iap.lib.R;
import com.samsung.android.sdk.iap.lib.activity.BaseActivity;
import com.samsung.android.sdk.iap.lib.dialog.BaseDialogFragment;
import com.samsung.android.sdk.iap.lib.vo.ErrorVo;
import com.samsung.android.sdk.iap.lib2.activity.BaseActivity;
import com.samsung.android.sdk.iap.lib2.dialog.BaseDialogFragment;
import com.samsung.android.sdk.iap.lib2.vo.ErrorVo;
/**
* Created by sangbum7.kim on 2017-08-17.

View File

@ -1,4 +1,4 @@
package com.samsung.android.sdk.iap.lib.helper;
package com.samsung.android.sdk.iap.lib2.helper;
import android.content.ComponentName;
import android.content.Context;
@ -12,20 +12,20 @@ import android.util.Log;
import com.samsung.android.iap.IAPConnector;
import com.samsung.android.sdk.iap.lib.R;
import com.samsung.android.sdk.iap.lib.activity.CheckPackageActivity;
import com.samsung.android.sdk.iap.lib.activity.PaymentActivity;
import com.samsung.android.sdk.iap.lib.helper.task.ConsumePurchasedItemsTask;
import com.samsung.android.sdk.iap.lib.helper.task.GetOwnedListTask;
import com.samsung.android.sdk.iap.lib.helper.task.GetProductsDetailsTask;
import com.samsung.android.sdk.iap.lib.listener.OnConsumePurchasedItemsListener;
import com.samsung.android.sdk.iap.lib.listener.OnGetOwnedListListener;
import com.samsung.android.sdk.iap.lib.listener.OnGetProductsDetailsListener;
import com.samsung.android.sdk.iap.lib.listener.OnPaymentListener;
import com.samsung.android.sdk.iap.lib.service.BaseService;
import com.samsung.android.sdk.iap.lib.service.ConsumePurchasedItems;
import com.samsung.android.sdk.iap.lib.service.OwnedProduct;
import com.samsung.android.sdk.iap.lib.service.ProductsDetails;
import com.samsung.android.sdk.iap.lib.vo.ErrorVo;
import com.samsung.android.sdk.iap.lib2.activity.CheckPackageActivity;
import com.samsung.android.sdk.iap.lib2.activity.PaymentActivity;
import com.samsung.android.sdk.iap.lib2.listener.OnConsumePurchasedItemsListener;
import com.samsung.android.sdk.iap.lib2.listener.OnGetOwnedListListener;
import com.samsung.android.sdk.iap.lib2.listener.OnGetProductsDetailsListener;
import com.samsung.android.sdk.iap.lib2.listener.OnPaymentListener;
import com.samsung.android.sdk.iap.lib2.service.BaseService;
import com.samsung.android.sdk.iap.lib2.service.ConsumePurchasedItems;
import com.samsung.android.sdk.iap.lib2.service.OwnedProduct;
import com.samsung.android.sdk.iap.lib2.service.ProductsDetails;
import com.samsung.android.sdk.iap.lib2.vo.ErrorVo;
import com.samsung.android.sdk.iap.lib2.helper.task.ConsumePurchasedItemsTask;
import com.samsung.android.sdk.iap.lib2.helper.task.GetOwnedListTask;
import com.samsung.android.sdk.iap.lib2.helper.task.GetProductsDetailsTask;
import java.util.ArrayList;
@ -46,9 +46,9 @@ public class IapHelper extends HelperDefine {
// AsyncTask for API
// ========================================================================
private GetProductsDetailsTask mGetProductsDetailsTask = null;
private GetOwnedListTask mGetOwnedListTask = null;
private ConsumePurchasedItemsTask mConsumePurchasedItemsTask = null;
private com.samsung.android.sdk.iap.lib2.helper.task.GetProductsDetailsTask mGetProductsDetailsTask = null;
private com.samsung.android.sdk.iap.lib2.helper.task.GetOwnedListTask mGetOwnedListTask = null;
private com.samsung.android.sdk.iap.lib2.helper.task.ConsumePurchasedItemsTask mConsumePurchasedItemsTask = null;
// ========================================================================
private ArrayList<BaseService> mServiceQueue = new ArrayList<BaseService>();
@ -267,7 +267,7 @@ public class IapHelper extends HelperDefine {
if (mIapConnector == null || mContext == null) {
return false;
} else {
mGetProductsDetailsTask = new GetProductsDetailsTask(_baseService,
mGetProductsDetailsTask = new com.samsung.android.sdk.iap.lib2.helper.task.GetProductsDetailsTask(_baseService,
mIapConnector,
mContext,
_productIDs,
@ -344,7 +344,7 @@ public class IapHelper extends HelperDefine {
if (mIapConnector == null || mContext == null) {
return false;
} else {
mGetOwnedListTask = new GetOwnedListTask(_baseService,
mGetOwnedListTask = new com.samsung.android.sdk.iap.lib2.helper.task.GetOwnedListTask(_baseService,
mIapConnector,
mContext,
_productType,
@ -417,7 +417,7 @@ public class IapHelper extends HelperDefine {
mConsumePurchasedItemsTask.cancel(true);
}
mConsumePurchasedItemsTask = new ConsumePurchasedItemsTask(_baseService,
mConsumePurchasedItemsTask = new com.samsung.android.sdk.iap.lib2.helper.task.ConsumePurchasedItemsTask(_baseService,
mIapConnector,
mContext,
_purchaseIds,

View File

@ -1,4 +1,4 @@
package com.samsung.android.sdk.iap.lib.helper.task;
package com.samsung.android.sdk.iap.lib2.helper.task;
import android.content.Context;
import android.os.AsyncTask;
@ -6,9 +6,8 @@ import android.util.Log;
import com.samsung.android.iap.IAPConnector;
import com.samsung.android.sdk.iap.lib.R;
import com.samsung.android.sdk.iap.lib.helper.HelperDefine;
import com.samsung.android.sdk.iap.lib.service.BaseService;
import com.samsung.android.sdk.iap.lib.vo.ErrorVo;
import com.samsung.android.sdk.iap.lib2.service.BaseService;
import com.samsung.android.sdk.iap.lib2.vo.ErrorVo;
/**
* Created by sangbum7.kim on 2017-09-01.

View File

@ -1,4 +1,4 @@
package com.samsung.android.sdk.iap.lib.helper.task;
package com.samsung.android.sdk.iap.lib2.helper.task;
import android.content.Context;
import android.os.Bundle;
@ -6,9 +6,9 @@ import android.util.Log;
import com.samsung.android.iap.IAPConnector;
import com.samsung.android.sdk.iap.lib.R;
import com.samsung.android.sdk.iap.lib.helper.HelperDefine;
import com.samsung.android.sdk.iap.lib.service.ConsumePurchasedItems;
import com.samsung.android.sdk.iap.lib.vo.ConsumeVo;
import com.samsung.android.sdk.iap.lib2.helper.HelperDefine;
import com.samsung.android.sdk.iap.lib2.service.ConsumePurchasedItems;
import com.samsung.android.sdk.iap.lib2.vo.ConsumeVo;
import java.util.ArrayList;

View File

@ -1,4 +1,4 @@
package com.samsung.android.sdk.iap.lib.helper.task;
package com.samsung.android.sdk.iap.lib2.helper.task;
import android.content.Context;
import android.os.Bundle;
@ -6,9 +6,9 @@ import android.util.Log;
import com.samsung.android.iap.IAPConnector;
import com.samsung.android.sdk.iap.lib.R;
import com.samsung.android.sdk.iap.lib.helper.HelperDefine;
import com.samsung.android.sdk.iap.lib.service.OwnedProduct;
import com.samsung.android.sdk.iap.lib.vo.OwnedProductVo;
import com.samsung.android.sdk.iap.lib2.helper.HelperDefine;
import com.samsung.android.sdk.iap.lib2.service.OwnedProduct;
import com.samsung.android.sdk.iap.lib2.vo.OwnedProductVo;
import java.util.ArrayList;

View File

@ -1,4 +1,4 @@
package com.samsung.android.sdk.iap.lib.helper.task;
package com.samsung.android.sdk.iap.lib2.helper.task;
import android.content.Context;
import android.os.Bundle;
@ -6,9 +6,9 @@ import android.util.Log;
import com.samsung.android.iap.IAPConnector;
import com.samsung.android.sdk.iap.lib.R;
import com.samsung.android.sdk.iap.lib.helper.HelperDefine;
import com.samsung.android.sdk.iap.lib.service.ProductsDetails;
import com.samsung.android.sdk.iap.lib.vo.ProductVo;
import com.samsung.android.sdk.iap.lib2.helper.HelperDefine;
import com.samsung.android.sdk.iap.lib2.service.ProductsDetails;
import com.samsung.android.sdk.iap.lib2.vo.ProductVo;
import java.util.ArrayList;

View File

@ -1,13 +1,13 @@
package com.samsung.android.sdk.iap.lib.listener;
package com.samsung.android.sdk.iap.lib2.listener;
import com.samsung.android.sdk.iap.lib.helper.task.GetOwnedListTask;
import com.samsung.android.sdk.iap.lib.vo.ConsumeVo;
import com.samsung.android.sdk.iap.lib.vo.ErrorVo;
import com.samsung.android.sdk.iap.lib2.helper.task.GetOwnedListTask;
import com.samsung.android.sdk.iap.lib2.vo.ConsumeVo;
import com.samsung.android.sdk.iap.lib2.vo.ErrorVo;
import java.util.ArrayList;
/**
* Callback Interface used with {@link GetOwnedListTask}
* Callback Interface used with {@link com.samsung.android.sdk.iap.lib2.helper.task.GetOwnedListTask}
*/
public interface OnConsumePurchasedItemsListener {
/**

View File

@ -0,0 +1,20 @@
package com.samsung.android.sdk.iap.lib2.listener;
import com.samsung.android.sdk.iap.lib2.helper.task.GetOwnedListTask;
import com.samsung.android.sdk.iap.lib2.vo.ErrorVo;
import com.samsung.android.sdk.iap.lib2.vo.OwnedProductVo;
import java.util.ArrayList;
/**
* Callback Interface used with {@link com.samsung.android.sdk.iap.lib2.helper.task.GetOwnedListTask}
*/
public interface OnGetOwnedListListener {
/**
* Callback method to be invoked when {@link GetOwnedListTask} has been finished.
*
* @param _errorVO
* @param _ownedList
*/
void onGetOwnedProducts(ErrorVo _errorVO, ArrayList<OwnedProductVo> _ownedList);
}

View File

@ -0,0 +1,20 @@
package com.samsung.android.sdk.iap.lib2.listener;
import com.samsung.android.sdk.iap.lib2.helper.task.GetProductsDetailsTask;
import com.samsung.android.sdk.iap.lib2.vo.ErrorVo;
import com.samsung.android.sdk.iap.lib2.vo.ProductVo;
import java.util.ArrayList;
/**
* Callback Interface used with {@link com.samsung.android.sdk.iap.lib2.helper.task.GetProductsDetailsTask}
*/
public interface OnGetProductsDetailsListener {
/**
* Callback method to be invoked when {@link GetProductsDetailsTask} has been finished.
*
* @param _errorVO
* @param _productList
*/
void onGetProducts(ErrorVo _errorVO, ArrayList<ProductVo> _productList);
}

View File

@ -1,4 +1,4 @@
package com.samsung.android.sdk.iap.lib.listener;
package com.samsung.android.sdk.iap.lib2.listener;
/**
* Callback Interface to be invoked when bind to IAPService has been finished.

View File

@ -1,7 +1,7 @@
package com.samsung.android.sdk.iap.lib.listener;
package com.samsung.android.sdk.iap.lib2.listener;
import com.samsung.android.sdk.iap.lib.vo.ErrorVo;
import com.samsung.android.sdk.iap.lib.vo.PurchaseVo;
import com.samsung.android.sdk.iap.lib2.vo.ErrorVo;
import com.samsung.android.sdk.iap.lib2.vo.PurchaseVo;
/**
* Callback Interface to be invoked when payment has been finished.

View File

@ -1,4 +1,4 @@
package com.samsung.android.sdk.iap.lib.listener;
package com.samsung.android.sdk.iap.lib2.listener;
/**
* Created by sangbum7.kim on 2018-02-28.

View File

@ -1,15 +1,15 @@
package com.samsung.android.sdk.iap.lib.service;
package com.samsung.android.sdk.iap.lib2.service;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import com.samsung.android.sdk.iap.lib.R;
import com.samsung.android.sdk.iap.lib.activity.AccountActivity;
import com.samsung.android.sdk.iap.lib.activity.DialogActivity;
import com.samsung.android.sdk.iap.lib.helper.HelperDefine;
import com.samsung.android.sdk.iap.lib.helper.IapHelper;
import com.samsung.android.sdk.iap.lib.vo.ErrorVo;
import com.samsung.android.sdk.iap.lib2.helper.HelperDefine;
import com.samsung.android.sdk.iap.lib2.activity.AccountActivity;
import com.samsung.android.sdk.iap.lib2.activity.DialogActivity;
import com.samsung.android.sdk.iap.lib2.helper.IapHelper;
import com.samsung.android.sdk.iap.lib2.vo.ErrorVo;
/**
* Created by sangbum7.kim on 2018-02-28.
@ -18,8 +18,8 @@ import com.samsung.android.sdk.iap.lib.vo.ErrorVo;
public abstract class BaseService {
private static final String TAG = BaseService.class.getSimpleName();
protected ErrorVo mErrorVo = new ErrorVo();
protected IapHelper mIapHelper = null;
protected com.samsung.android.sdk.iap.lib2.vo.ErrorVo mErrorVo = new com.samsung.android.sdk.iap.lib2.vo.ErrorVo();
protected com.samsung.android.sdk.iap.lib2.helper.IapHelper mIapHelper = null;
protected Context mContext = null;
public BaseService(IapHelper _iapHelper, Context _context) {
@ -28,7 +28,7 @@ public abstract class BaseService {
mErrorVo.setError(HelperDefine.IAP_ERROR_INITIALIZATION, mContext.getString(R.string.mids_sapps_pop_unknown_error_occurred));
}
public ErrorVo getErrorVo() {
public com.samsung.android.sdk.iap.lib2.vo.ErrorVo getErrorVo() {
return mErrorVo;
}

View File

@ -1,13 +1,13 @@
package com.samsung.android.sdk.iap.lib.service;
package com.samsung.android.sdk.iap.lib2.service;
import android.content.Context;
import android.util.Log;
import com.samsung.android.sdk.iap.lib.R;
import com.samsung.android.sdk.iap.lib.helper.HelperDefine;
import com.samsung.android.sdk.iap.lib.helper.IapHelper;
import com.samsung.android.sdk.iap.lib.listener.OnConsumePurchasedItemsListener;
import com.samsung.android.sdk.iap.lib.vo.ConsumeVo;
import com.samsung.android.sdk.iap.lib2.helper.HelperDefine;
import com.samsung.android.sdk.iap.lib2.helper.IapHelper;
import com.samsung.android.sdk.iap.lib2.listener.OnConsumePurchasedItemsListener;
import com.samsung.android.sdk.iap.lib2.vo.ConsumeVo;
import java.util.ArrayList;
@ -18,9 +18,9 @@ import java.util.ArrayList;
public class ConsumePurchasedItems extends BaseService {
private static final String TAG = ConsumePurchasedItems.class.getSimpleName();
private OnConsumePurchasedItemsListener mOnConsumePurchasedItemsListener = null;
private com.samsung.android.sdk.iap.lib2.listener.OnConsumePurchasedItemsListener mOnConsumePurchasedItemsListener = null;
private static String mPurchaseIds = "";
protected ArrayList<ConsumeVo> mConsumeList = null;
protected ArrayList<com.samsung.android.sdk.iap.lib2.vo.ConsumeVo> mConsumeList = null;
public ConsumePurchasedItems(IapHelper _iapHelper, Context _context, OnConsumePurchasedItemsListener _onConsumePurchasedItemsListener) {
super(_iapHelper, _context);

View File

@ -1,13 +1,13 @@
package com.samsung.android.sdk.iap.lib.service;
package com.samsung.android.sdk.iap.lib2.service;
import android.content.Context;
import android.util.Log;
import com.samsung.android.sdk.iap.lib.R;
import com.samsung.android.sdk.iap.lib.helper.HelperDefine;
import com.samsung.android.sdk.iap.lib.helper.IapHelper;
import com.samsung.android.sdk.iap.lib.listener.OnGetOwnedListListener;
import com.samsung.android.sdk.iap.lib.vo.OwnedProductVo;
import com.samsung.android.sdk.iap.lib2.helper.HelperDefine;
import com.samsung.android.sdk.iap.lib2.helper.IapHelper;
import com.samsung.android.sdk.iap.lib2.listener.OnGetOwnedListListener;
import com.samsung.android.sdk.iap.lib2.vo.OwnedProductVo;
import java.util.ArrayList;
@ -18,9 +18,9 @@ import java.util.ArrayList;
public class OwnedProduct extends BaseService {
private static final String TAG = OwnedProduct.class.getSimpleName();
private OnGetOwnedListListener mOnGetOwnedListListener = null;
private com.samsung.android.sdk.iap.lib2.listener.OnGetOwnedListListener mOnGetOwnedListListener = null;
private static String mProductType = "";
protected ArrayList<OwnedProductVo> mOwnedList = null;
protected ArrayList<com.samsung.android.sdk.iap.lib2.vo.OwnedProductVo> mOwnedList = null;
public OwnedProduct(IapHelper _iapHelper, Context _context, OnGetOwnedListListener _onGetOwnedListListener) {
super(_iapHelper, _context);

View File

@ -1,13 +1,13 @@
package com.samsung.android.sdk.iap.lib.service;
package com.samsung.android.sdk.iap.lib2.service;
import android.content.Context;
import android.util.Log;
import com.samsung.android.sdk.iap.lib.R;
import com.samsung.android.sdk.iap.lib.helper.HelperDefine;
import com.samsung.android.sdk.iap.lib.helper.IapHelper;
import com.samsung.android.sdk.iap.lib.listener.OnGetProductsDetailsListener;
import com.samsung.android.sdk.iap.lib.vo.ProductVo;
import com.samsung.android.sdk.iap.lib2.helper.HelperDefine;
import com.samsung.android.sdk.iap.lib2.helper.IapHelper;
import com.samsung.android.sdk.iap.lib2.listener.OnGetProductsDetailsListener;
import com.samsung.android.sdk.iap.lib2.vo.ProductVo;
import java.util.ArrayList;
@ -18,9 +18,9 @@ import java.util.ArrayList;
public class ProductsDetails extends BaseService {
private static final String TAG = ProductsDetails.class.getSimpleName();
private OnGetProductsDetailsListener mOnGetProductsDetailsListener = null;
private com.samsung.android.sdk.iap.lib2.listener.OnGetProductsDetailsListener mOnGetProductsDetailsListener = null;
private static String mProductIds = "";
protected ArrayList<ProductVo> mProductsDetails = null;
protected ArrayList<com.samsung.android.sdk.iap.lib2.vo.ProductVo> mProductsDetails = null;
public ProductsDetails(IapHelper _iapHelper, Context _context, OnGetProductsDetailsListener _onGetProductsDetailsListener) {
super(_iapHelper, _context);

View File

@ -1,4 +1,4 @@
package com.samsung.android.sdk.iap.lib.vo;
package com.samsung.android.sdk.iap.lib2.vo;
import android.text.format.DateFormat;

View File

@ -1,4 +1,4 @@
package com.samsung.android.sdk.iap.lib.vo;
package com.samsung.android.sdk.iap.lib2.vo;
import android.util.Log;

View File

@ -1,6 +1,6 @@
package com.samsung.android.sdk.iap.lib.vo;
package com.samsung.android.sdk.iap.lib2.vo;
import com.samsung.android.sdk.iap.lib.helper.HelperDefine;
import com.samsung.android.sdk.iap.lib2.helper.HelperDefine;
public class ErrorVo {
private int mErrorCode = HelperDefine.IAP_PAYMENT_IS_CANCELED;

View File

@ -1,4 +1,4 @@
package com.samsung.android.sdk.iap.lib.vo;
package com.samsung.android.sdk.iap.lib2.vo;
import android.util.Base64;

View File

@ -1,4 +1,4 @@
package com.samsung.android.sdk.iap.lib.vo;
package com.samsung.android.sdk.iap.lib2.vo;
import org.json.JSONException;
import org.json.JSONObject;

View File

@ -1,4 +1,4 @@
package com.samsung.android.sdk.iap.lib.vo;
package com.samsung.android.sdk.iap.lib2.vo;
import android.util.Base64;

View File

@ -1,12 +1,18 @@
apply plugin: 'com.android.library'
apply plugin: 'img-optimizer'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
//apply plugin: 'com.android.library'
//apply plugin: 'img-optimizer'
//apply plugin: 'kotlin-android'
//apply plugin: 'kotlin-android-extensions'
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-parcelize'
id 'img-optimizer'
}
android {
compileSdkVersion rootProject.ext.android.compileSdkVersion
buildToolsVersion rootProject.ext.android.buildToolsVersion
namespace "com.pdlive.shayu"
compileSdk rootProject.ext.android.compileSdkVersion
packagingOptions {
pickFirst "lib/armeabi/libyuvutils.so"
pickFirst "lib/arm64-v8a/libyuvutils.so"
@ -48,8 +54,11 @@ android {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_18
targetCompatibility JavaVersion.VERSION_18
}
buildFeatures {
buildConfig = true
}
}
repositories {

View File

@ -1,7 +1,7 @@
<?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.pdlive.shayu">
>
<queries>
<package android:name="com.pandoralive.shayu"/>
@ -19,7 +19,7 @@
tools:ignore="ExportedContentProvider" />
</queries>
<application android:allowBackup="true">
<application>
<activity
android:name="com.facebook.FacebookActivity"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"

View File

@ -1,9 +1,11 @@
package com.yunbao.share.adapters;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CompoundButton;
import android.widget.ImageView;
import android.widget.RadioButton;
import android.widget.TextView;
@ -12,6 +14,7 @@ import androidx.recyclerview.widget.RecyclerView;
import com.pdlive.shayu.R;
import com.yunbao.common.glide.ImgLoader;
import com.yunbao.common.utils.ViewUtils;
import com.yunbao.common.views.weight.ClipPathCircleImage;
import java.util.ArrayList;
@ -23,18 +26,36 @@ import io.rong.imlib.model.Conversation;
public class InternalShareAdapter extends RecyclerView.Adapter<InternalShareAdapter.ViewHolder> {
List<SingleConversation> listData = new ArrayList<>();
int selectPosition = -1;
private int isEmpty = -233;
private Context mContext;
public InternalShareAdapter(Context mContext) {
this.mContext = mContext;
}
@NonNull
@Override
public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
if (viewType == isEmpty) {
return new EmptyViewHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.view_layout_msg, parent, false));
}
return new ViewHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.item_internal_user, parent, false));
}
@Override
public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
if (getItemViewType(position) == isEmpty) return;
holder.bind(listData.get(position), position);
}
@Override
public int getItemViewType(int position) {
if (listData.get(position).mCore.getTargetId().equals("isEmpty_-233-pdl-5YK76YC8")) {
return isEmpty;
}
return super.getItemViewType(position);
}
@Override
public int getItemCount() {
return listData.size();
@ -44,6 +65,11 @@ public class InternalShareAdapter extends RecyclerView.Adapter<InternalShareAdap
if (listData == null) {
listData = new ArrayList<>();
}
if (listData.isEmpty()) {
Conversation conversation = new Conversation();
conversation.setTargetId("isEmpty_-233-pdl-5YK76YC8");
listData.add(new SingleConversation(mContext, conversation));
}
this.listData = listData;
notifyDataSetChanged();
@ -53,6 +79,19 @@ public class InternalShareAdapter extends RecyclerView.Adapter<InternalShareAdap
return selectPosition;
}
public List<SingleConversation> getListData() {
return listData;
}
public class EmptyViewHolder extends ViewHolder {
public EmptyViewHolder(@NonNull View itemView) {
super(itemView);
ViewUtils.findViewById(itemView, R.id.imageView, ImageView.class).setImageResource(R.mipmap.ic_addressbook_not_search);
ViewUtils.findViewById(itemView, R.id.textView, TextView.class).setText(R.string.not_data_message_address_book_list);
}
}
public class ViewHolder extends RecyclerView.ViewHolder {
ClipPathCircleImage mAvatar;
TextView userName;

View File

@ -31,6 +31,16 @@ public class ShareAppAdapter extends RecyclerView.Adapter<ShareAppAdapter.AppVie
private List<ShareBean> list;
ShareCallback shareCallback;
private onShareListener onShareListener;
public ShareAppAdapter.onShareListener getOnShareListener() {
return onShareListener;
}
public void setOnShareListener(ShareAppAdapter.onShareListener onShareListener) {
this.onShareListener = onShareListener;
}
public ShareAppAdapter(Context mContext) {
list = new ArrayList<>();
this.mContext = mContext;
@ -50,7 +60,7 @@ public class ShareAppAdapter extends RecyclerView.Adapter<ShareAppAdapter.AppVie
@Override
public void onBindViewHolder(@NonNull AppViewHolder holder, int position) {
ShareBean builder = list.get(position);
System.out.println("------type------>"+builder.getType());
System.out.println("------type------>" + builder.getType());
switch (builder.getType()) {
case ShareBean.APP_FACEBOOK:
holder.setData(builder, R.mipmap.icon_share_facebook, R.string.dialog_share_app_facebook);
@ -125,11 +135,17 @@ public class ShareAppAdapter extends RecyclerView.Adapter<ShareAppAdapter.AppVie
new Internal(itemView.getContext()).share(bean, shareCallback);
break;
}
if (onShareListener != null) {
onShareListener.onAddShareCount();
}
});
}
}
public interface onShareListener {
void onAddShareCount();
}
public static class ShareCallback implements ICallback {
@Override

View File

@ -29,6 +29,7 @@ public class ShareBean {
private int shareType;
private String cover;
private String title;
private String extraData;
public static String createLiveShareLink(String shareUid, String anchorId, String anchorName, String anchorAvatar) {
@ -119,6 +120,14 @@ public class ShareBean {
this.anchorAvatar = anchorAvatar;
}
public String getExtraData() {
return extraData;
}
public void setExtraData(String extraData) {
this.extraData = extraData;
}
public ShareBean setText(String text) {
this.text = text;
return this;
@ -163,32 +172,33 @@ public class ShareBean {
}
/**
* private String text;
* private String link;
* private File file;
* private int type;
* private String uid;
* private String anchorId;
* private String anchorName;
* private String anchorAvatar;
* private int shareType;
* private String cover;
* private String title;
* private String text;
* private String link;
* private File file;
* private int type;
* private String uid;
* private String anchorId;
* private String anchorName;
* private String anchorAvatar;
* private int shareType;
* private String cover;
* private String title;
*/
@NonNull
@Override
public ShareBean clone(){
ShareBean bean=new ShareBean(type);
bean.anchorId=anchorId;
bean.anchorName=anchorName;
bean.anchorAvatar=anchorAvatar;
bean.text=text;
bean.link=link;
bean.file=file;
bean.uid=uid;
bean.shareType=shareType;
bean.cover=cover;
bean.title=title;
public ShareBean clone() {
ShareBean bean = new ShareBean(type);
bean.anchorId = anchorId;
bean.anchorName = anchorName;
bean.anchorAvatar = anchorAvatar;
bean.text = text;
bean.link = link;
bean.file = file;
bean.uid = uid;
bean.shareType = shareType;
bean.cover = cover;
bean.title = title;
bean.extraData = extraData;
return bean;
}
@ -248,6 +258,12 @@ public class ShareBean {
bean.setFile(file);
return this;
}
public ShareBuilder setExtraData(String extraData) {
bean.setExtraData(extraData);
return this;
}
public ShareBean build() {
return bean;
}

View File

@ -9,6 +9,7 @@ import com.yunbao.share.AbsShareInterface;
import com.yunbao.share.ICallback;
import com.yunbao.share.bean.ShareBean;
import com.yunbao.share.ui.AppInternalShareDialog;
import com.yunbao.share.ui.SharePopDialog;
import com.yunbao.share.ui.ShareSuccessNotifyDialog;
import io.rong.imlib.model.Conversation;
@ -46,7 +47,7 @@ public class Internal extends AbsShareInterface {
builder.getAnchorName(),
builder.getAnchorId(),
builder.getShareType() + "",
builder.getAnchorId()
builder.getExtraData()
),
new OnSendMessageListener<Object>() {
@Override

View File

@ -1,22 +1,38 @@
package com.yunbao.share.ui;
import android.content.Context;
import android.net.Uri;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.util.Log;
import android.widget.EditText;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.lxj.xpopup.XPopup;
import com.pdlive.shayu.R;
import com.yunbao.common.bean.UserBean;
import com.yunbao.common.dialog.AbsDialogFullScreenPopupWindow;
import com.yunbao.common.dialog.DebugDialog;
import com.yunbao.common.http.CommonHttpUtil;
import com.yunbao.common.http.HttpCallback;
import com.yunbao.common.interfaces.OnItemClickListener;
import com.yunbao.common.manager.InstructorRemarkManager;
import com.yunbao.common.utils.AppManager;
import com.yunbao.common.utils.StringUtil;
import com.yunbao.common.utils.ToastUtil;
import com.yunbao.share.adapters.InternalShareAdapter;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import io.rong.imkit.conversationlist.model.SingleConversation;
import io.rong.imkit.userinfo.RongUserInfoManager;
import io.rong.imkit.widget.refresh.SmartRefreshLayout;
import io.rong.imkit.widget.refresh.api.RefreshLayout;
import io.rong.imkit.widget.refresh.listener.OnLoadMoreListener;
@ -26,6 +42,7 @@ import io.rong.imlib.IRongCoreCallback;
import io.rong.imlib.IRongCoreEnum;
import io.rong.imlib.RongCoreClient;
import io.rong.imlib.model.Conversation;
import io.rong.imlib.model.UserInfo;
public class AppInternalShareDialog extends AbsDialogFullScreenPopupWindow {
EditText search;
@ -65,23 +82,54 @@ public class AppInternalShareDialog extends AbsDialogFullScreenPopupWindow {
dismiss();
});
findViewById(R.id.btn_share).setOnClickListener(view -> {
if(adapter.getSelectPosition()==-1){
if (adapter.getSelectPosition() == -1) {
ToastUtil.show(R.string.dialog_share_failure_not_select);
return;
}
if (onItemClickListener != null) {
onItemClickListener.onItemClick(listData.get(adapter.getSelectPosition()).mCore.getTargetId(), adapter.getSelectPosition());
onItemClickListener.onItemClick(adapter.getListData().get(adapter.getSelectPosition()).mCore.getTargetId(), adapter.getSelectPosition());
}
dismiss();
});
search = findViewById(R.id.search);
mList = findViewById(R.id.recyclerView);
mRefreshLayout = findViewById(R.id.rc_refresh);
adapter = new InternalShareAdapter();
adapter = new InternalShareAdapter(mContext);
mList.setAdapter(adapter);
initRefreshView();
refreshData();
search.addTextChangedListener(new TextWatcher() {
List<SingleConversation> searchList = new ArrayList<>();
@Override
public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {
}
@Override
public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
}
@Override
public void afterTextChanged(Editable editable) {
String key = editable.toString();
searchList.clear();
if (StringUtil.isEmpty(key)) {
adapter.setList(listData);
return;
}
for (SingleConversation datum : listData) {
if (datum.mCore.getConversationTitle().contains(key)) {
searchList.add(datum);
}
}
adapter.setList(searchList);
}
});
}
@ -106,6 +154,7 @@ public class AppInternalShareDialog extends AbsDialogFullScreenPopupWindow {
}
private void onConversationListRefresh(RefreshLayout refreshLayout) {
search.setText("");
listData.clear();
startTime = 0;
refreshData();
@ -113,22 +162,72 @@ public class AppInternalShareDialog extends AbsDialogFullScreenPopupWindow {
private void refreshData() {
RongCoreClient.getInstance().getConversationListByPage(new IRongCoreCallback.ResultCallback<List<Conversation>>() {
boolean isNeedData = false;
List<String> needUidList = new ArrayList<>();
@Override
public void onSuccess(List<Conversation> conversations) {
isNeedData = false;
needUidList.clear();
if (conversations.isEmpty()) {
mRefreshLayout.finishLoadMoreWithNoMoreData();
return;
}
List<SingleConversation> tmp = new ArrayList<>();
for (Conversation conversation : conversations) {
if(conversation.getTargetId().contains("__system__")){
continue;
}
if (StringUtil.isEmpty(conversation.getPortraitUrl())) {
isNeedData = true;
needUidList.add(conversation.getTargetId());
continue;
}
tmp.add(new SingleConversation(getContext(), conversation));
}
if (isNeedData) {
checkUserData();
return;
}
startTime = conversations.get(conversations.size() - 1).getSentTime();
listData.addAll(tmp);
adapter.setList(listData);
mRefreshLayout.finishRefresh(true);
}
private void checkUserData() {
Iterator<String> iterator = needUidList.iterator();
while (iterator.hasNext()) {
String userId = iterator.next();
CommonHttpUtil.getUserBaseinfo(userId, new HttpCallback() {
@Override
public void onSuccess(int code, String msg, String[] info) {
if (code == 0 && info.length > 0 && !TextUtils.equals("__system__", userId)) {
JSONObject obj = JSON.parseObject(info[0]);
UserBean userBean = JSON.toJavaObject(obj, UserBean.class);
needUidList.remove(userBean.getId());
UserInfo userInfo = new UserInfo(userBean.getId(), userBean.getUserNiceName(), Uri.parse(userBean.getAvatar()));
userInfo.setExtra(obj.toString());
RongUserInfoManager.getInstance().refreshUserInfoCache(userInfo);
Conversation conversation=new Conversation();
conversation.setTargetId(userBean.getId());
conversation.setConversationTitle(userBean.getUserNiceName());
conversation.setPortraitUrl(userBean.getAvatar());
SingleConversation singleConversation = new SingleConversation(getContext(), conversation);
listData.add(singleConversation);
if (needUidList.isEmpty()) {
adapter.setList(listData);
mRefreshLayout.finishRefresh(true);
}
} else {
Log.i("刷新用户", "3>" + code + "|" + msg + "|" + info.length);
}
}
});
}
}
@Override
public void onError(IRongCoreEnum.CoreErrorCode e) {
ToastUtil.show("出错了:" + e.getMessage());

View File

@ -29,6 +29,7 @@ import java.util.List;
public class SharePopDialog extends AbsDialogPopupWindow {
public static final int TYPE_LIVE = 1;
public static final int TYPE_DYNAMIC = 0;
public static final int TYPE_VIDEO = 2;
private ShareAppAdapter adapter;
private RecyclerView list;
private RoundedImageView avatar;
@ -39,21 +40,26 @@ public class SharePopDialog extends AbsDialogPopupWindow {
private String shareLink;
private int type;
private ShareBean bean;
public onShareListener onShareListener;
public void setOnShareListener(SharePopDialog.onShareListener onShareListener) {
this.onShareListener = onShareListener;
}
public SharePopDialog(@NonNull Context context) {
super(context);
}
public SharePopDialog setShareType(int type) {
this.type = type;
return this;
}
public SharePopDialog setShareData(ShareBean build) {
this.bean=build;
this.bean = build;
return this;
}
public SharePopDialog setShareLink(String link) {
this.shareLink = link + "&isZh=" + (WordUtil.isNewZh() ? "1" : 0);
return this;
@ -86,6 +92,14 @@ public class SharePopDialog extends AbsDialogPopupWindow {
dismiss();
}
});
adapter.setOnShareListener(new ShareAppAdapter.onShareListener() {
@Override
public void onAddShareCount() {
if (onShareListener != null) {
onShareListener.onShareAddCount();
}
}
});
list.setLayoutManager(new GridLayoutManager(getContext(), 3));
list.setAdapter(adapter);
initData();
@ -113,7 +127,7 @@ public class SharePopDialog extends AbsDialogPopupWindow {
url = url + "&isZh=" + (WordUtil.isNewZh() ? "1" : 0);
link.setText(url);
info.setText(String.format(getContext().getString(R.string.dialog_share_info), StringUtil.isEmpty(bean.getAnchorName()) ? "" : bean.getAnchorName()));
ImgLoader.display(getContext(), bean.getAnchorAvatar(), avatar);
ImgLoader.display(getContext(), bean.getAnchorAvatar(), avatar);
}
private ShareBean builder(int type) {
@ -136,4 +150,8 @@ public class SharePopDialog extends AbsDialogPopupWindow {
ToastUtil.show(getContext().getString(com.yunbao.common.R.string.copy_success));
}
public interface onShareListener {
void onShareAddCount();
}
}

View File

@ -12,6 +12,7 @@ import com.lxj.xpopup.XPopup;
import com.lxj.xpopup.enums.PopupAnimation;
import com.pdlive.shayu.R;
import com.yunbao.common.custom.RatioRoundImageView;
import com.yunbao.common.dialog.AbsDialogCenterPopupWindow;
import com.yunbao.common.dialog.AbsDialogPositionPopupWindow;
import com.yunbao.common.utils.DpUtil;
import com.yunbao.share.bean.ShareBean;
@ -19,7 +20,7 @@ import com.yunbao.share.bean.ShareBean;
import io.rong.imkit.utils.RouteUtils;
import io.rong.imlib.model.Conversation;
public class ShareSuccessNotifyDialog extends AbsDialogPositionPopupWindow {
public class ShareSuccessNotifyDialog extends AbsDialogCenterPopupWindow {
private ShareBean bean;
private DialogInterface.OnDismissListener onDismissListener;

View File

@ -95,7 +95,7 @@
android:layout_width="168dp"
android:layout_height="54dp"
android:layout_marginBottom="20dp"
android:background="@drawable/bg_msg_address_book_user_btn_fan"
android:background="@drawable/bg_msg_address_book_user_btn_fan_cuia"
android:gravity="center"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"

View File

@ -5,12 +5,12 @@
<string name="dialog_invite_title">Invite Friends</string>
<string name="dialog_invite_info">Come to PDLIVE to discover more and better live streams.</string>
<string name="dialog_share_copy">Copy</string>
<string name="dialog_share_app_internal">Friend</string>
<string name="dialog_share_app_internal">Site friends</string>
<string name="dialog_share_internal_title">Share To</string>
<string name="dialog_share_internal_cancel">cancel</string>
<string name="dialog_share_internal_search">Search</string>
<string name="dialog_share_internal_list_btn">Share</string>
<string name="dialog_share_success">Success</string>
<string name="dialog_share_success_btn">Chat</string>
<string name="dialog_share_internal_search">Search nickname</string>
<string name="dialog_share_internal_list_btn">Send</string>
<string name="dialog_share_success">Share success</string>
<string name="dialog_share_success_btn">Go chat</string>
<string name="dialog_share_failure_not_select">Please select friends</string>
</resources>

View File

@ -4,11 +4,9 @@ apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
apply plugin: 'com.alibaba.arouter'
android {
namespace "com.pandoralive.shayu"
dexOptions {
jumboMode = true
}
project.tasks.getByName("tasks").doFirst {
}
/* applicationVariants.all { variant ->
variant.mergeAssetsProvider.configure {
@ -33,9 +31,7 @@ android {
}
}
}*/
compileSdkVersion rootProject.ext.android.compileSdkVersion
buildToolsVersion rootProject.ext.android.buildToolsVersion
compileSdk rootProject.ext.android.compileSdkVersion
packagingOptions {
pickFirst "lib/armeabi/libyuvutils.so"
pickFirst "lib/arm64-v8a/libyuvutils.so"
@ -105,8 +101,11 @@ android {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_18
targetCompatibility JavaVersion.VERSION_18
}
buildFeatures {
buildConfig = true
}
applicationVariants.all { variant ->
println "清空build文件夹";

View File

@ -194,9 +194,12 @@ rx.internal.util.atomic.LinkedQueueNode* consumerNode;
-keep public class com.alibaba.android.arouter.facade.**{*;}
-keep class * implements com.alibaba.android.arouter.facade.template.ISyringe{*;}
# If you use the byType method to obtain Service, add the following rules to protect the interface:
# 如果使用了 byType 的方式获取 Service,需添加下面规则,保护接口
-keep interface * implements com.alibaba.android.arouter.facade.template.IProvider
# 如果使用了 单类注入,即不定义接口实现 IProvider,需添加下面规则,保护实现
-keep class * implements com.alibaba.android.arouter.facade.template.IProvider
# If single-type injection is used, that is, no interface is defined to implement IProvider, the following rules need to be added to protect the implementation
# -keep class * implements com.alibaba.android.arouter.facade.template.IProvider
@ -292,3 +295,7 @@ rx.internal.util.atomic.LinkedQueueNode* consumerNode;
-keep class com.shayu.lib_google.**{*;}
-keep class com.shayu.lib_huawei.**{*;}
-keep class com.qiniu.**{*;}
-keep class com.qiniu.**{public <init>();}
-ignorewarnings

View File

@ -1,8 +1,8 @@
<?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="myname.pdlive.shayu">
>
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
<uses-permission
android:name="android.permission.CALL_PHONE"
tools:node="remove" />

View File

@ -4,6 +4,7 @@ import static com.yunbao.live.socket.SocketClient.mSocketHandler;
import android.app.Activity;
import android.app.ActivityManager;
import android.app.LauncherActivity;
import android.content.Context;
import android.net.http.HttpResponseCache;
import android.os.Build;
@ -25,6 +26,7 @@ import com.blankj.utilcode.util.Utils;
import com.facebook.appevents.AppEventsLogger;
import com.fm.openinstall.OpenInstall;
import com.google.gson.Gson;
import com.pandoralive.shayu.R;
import com.shayu.phonelive.utils.LogUtils;
import com.tencent.imsdk.v2.V2TIMGroupMemberInfo;
import com.tencent.imsdk.v2.V2TIMManager;
@ -32,6 +34,7 @@ import com.tencent.imsdk.v2.V2TIMSimpleMsgListener;
import com.tencent.imsdk.v2.V2TIMUserInfo;
import com.umeng.analytics.MobclickAgent;
import com.umeng.commonsdk.UMConfigure;
import com.yalantis.ucrop.UCropActivity;
import com.yunbao.common.BuildConfig;
import com.yunbao.common.CommonAppConfig;
import com.yunbao.common.CommonAppContext;
@ -55,6 +58,7 @@ import com.yunbao.common.utils.L;
import com.yunbao.common.utils.MessageChatNotifyManager;
import com.yunbao.common.utils.MessageSayHiNotifyManager;
import com.yunbao.common.utils.SpUtil;
import com.yunbao.common.utils.WordUtil;
import com.yunbao.live.activity.LiveActivity;
import com.yunbao.live.activity.SudGameActivity;
import com.yunbao.live.socket.SocketReceiveBean;
@ -63,10 +67,14 @@ import com.yunbao.live.utils.LiveImDeletUtil;
import com.yunbao.live.views.PortraitLiveManager;
import com.yunbao.live.views.RecommendLiveRoomProvider;
import com.yunbao.main.activity.CompleteUserInfoActivity;
import com.yunbao.main.activity.EntryActivity;
import com.yunbao.main.activity.LoginActivity;
import com.yunbao.main.activity.MainActivity;
import com.yunbao.main.activity.MainHomeCommunityActivity;
import com.yunbao.main.activity.MsgSettActivity;
import com.yunbao.main.activity.PDLiveConversationActivity;
import com.yunbao.main.activity.RegisterActivity;
import com.yunbao.video.activity.VideoPlayActivity;
import org.greenrobot.eventbus.EventBus;
@ -81,6 +89,9 @@ import io.rong.imkit.config.RongConfigCenter;
import io.rong.imlib.RongIMClient;
import io.rong.imlib.model.Conversation;
import io.rong.imlib.model.MessageContent;
import io.rong.message.HQVoiceMessage;
import io.rong.message.ImageMessage;
import io.rong.message.SightMessage;
import io.rong.message.TextMessage;
//import cn.tillusory.sdk.TiSDK;
@ -103,6 +114,7 @@ public class AppContext extends CommonAppContext {
@Override
public void onActivityResumed(Activity activity) {
Log.e("打招呼定时器", "onActivityResumed: " + activity);
MessageChatNotifyManager.getInstance().restart(activity);
if (activity instanceof LiveActivity) {
MessageSayHiNotifyManager.getInstance().stop();
return;
@ -126,6 +138,22 @@ public class AppContext extends CommonAppContext {
MessageSayHiNotifyManager.getInstance().stop();
return;
}
if (activity instanceof VideoPlayActivity) {
MessageSayHiNotifyManager.getInstance().stop();
return;
}
if (activity instanceof LoginActivity) {
MessageSayHiNotifyManager.getInstance().stop();
return;
}
if (activity instanceof EntryActivity) {
MessageSayHiNotifyManager.getInstance().stop();
return;
}
if (activity instanceof UCropActivity) {
MessageSayHiNotifyManager.getInstance().stop();
return;
}
MessageSayHiNotifyManager.getInstance().reload();
}
@ -236,6 +264,16 @@ public class AppContext extends CommonAppContext {
RongConfigCenter.conversationConfig().addMessageProvider(new MessageChatTipsItemProvider(getApplicationContext()));
RongConfigCenter.conversationConfig().addMessageProvider(new MessageChatCardItemProvider(getApplicationContext()));
//注册屏蔽push弹窗的类
MessageChatNotifyManager.getInstance().addShieldClass(CompleteUserInfoActivity.class);
MessageChatNotifyManager.getInstance().addShieldClass(PDLiveConversationActivity.class);
MessageChatNotifyManager.getInstance().addShieldClass(LauncherActivity.class);
MessageChatNotifyManager.getInstance().addShieldClass(EntryActivity.class);
MessageChatNotifyManager.getInstance().addShieldClass(LoginActivity.class);
MessageChatNotifyManager.getInstance().addShieldClass(RegisterActivity.class);
MessageChatNotifyManager.getInstance().addShieldClass(UCropActivity.class);
RongcloudIMManager.addRongcloudIMOnReceiveMessageListener(new RongIMClient.OnReceiveMessageWrapperListener() {
@Override
public boolean onReceived(io.rong.imlib.model.Message message, int i, boolean b, boolean b1) {
@ -246,7 +284,21 @@ public class AppContext extends CommonAppContext {
msg.what = Constants.SOCKET_WHAT_BROADCAST;
try {
if (!"".equals(message.getContent()) && message.getContent() != null) {
TextMessage content = (TextMessage) message.getContent();
TextMessage content;
if (message.getContent() instanceof MessageChatCardContent) {
content = new TextMessage(WordUtil.getNewString(R.string.activity_msg_chat_list_card));
} else if (message.getContent() instanceof TextMessage) {
content = (TextMessage) message.getContent();
}else if(message.getContent() instanceof ImageMessage){
content = new TextMessage(WordUtil.getNewString(R.string.rc_conversation_summary_content_image));
}else if(message.getContent() instanceof SightMessage){
content = new TextMessage(WordUtil.getNewString(R.string.rc_conversation_summary_content_sight));
}else if(message.getContent() instanceof HQVoiceMessage){
content = new TextMessage(WordUtil.getNewString(R.string.rc_conversation_summary_content_voice));
}else {
System.out.println("未知消息类型:"+message.getContent().getClass().getSimpleName()+"|"+message.getContent());
return false;
}
if (content.getContent().contains("_method_")) {
msg.obj = content.getContent();
//观众页面
@ -269,14 +321,33 @@ public class AppContext extends CommonAppContext {
} else if (message.getConversationType() == Conversation.ConversationType.PRIVATE) {//私聊信息
EventBus.getDefault().post(message);
MessageIMManager.get(sInstance).resetImUnReadMessageCount(sInstance);
if (AppManager.getInstance().getLastActivity() instanceof CompleteUserInfoActivity) {
return false;
}
MessageChatNotifyManager.getInstance().setShieldClass(CompleteUserInfoActivity.class);
MessageChatNotifyManager.getInstance().push(AppManager.getInstance().getLastActivity()
, message.getTargetId(),
content.getContent()
);
Log.i("聊天推送", message.getTargetId() + "是否已读:" + message.getReceivedStatus().isRead());
if (message.getReceivedStatus().isRead()) {
return false;
}
RongIMClient.getInstance().getUnreadCount(Conversation.ConversationType.PRIVATE, message.getTargetId(), new RongIMClient.ResultCallback<Integer>() {
@Override
public void onSuccess(Integer integer) {
if (integer > 0) {
Log.i("聊天推送", message.getTargetId() + "是否已读:" + message.getReceivedStatus().isRead() + "|未读数" + integer);
MessageChatNotifyManager.getInstance().push(AppManager.getInstance().getLastActivity()
, message.getTargetId(),
content.getContent()
);
}
}
@Override
public void onError(RongIMClient.ErrorCode e) {
}
});
}
}
} catch (Exception e) {

View File

@ -29,6 +29,7 @@ import androidx.core.app.NotificationManagerCompat;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.pandoralive.shayu.R;
import com.shayu.phonelive.AppContext;
import com.tencent.rtmp.ITXLivePlayListener;
import com.tencent.rtmp.TXLiveBase;
@ -72,7 +73,6 @@ import java.io.File;
import java.util.ArrayList;
import java.util.List;
import myname.pdlive.shayu.R;
/**
* Created by cxf on 2018/9/17.

View File

@ -35,6 +35,7 @@ import com.bumptech.glide.request.target.SimpleTarget;
import com.bumptech.glide.request.target.Target;
import com.bumptech.glide.request.transition.Transition;
import com.makeramen.roundedimageview.RoundedImageView;
import com.pandoralive.shayu.R;
import com.shayu.phonelive.AppContext;
import com.shayu.phonelive.activity.LauncherActivity;
import com.yunbao.common.bean.NotificationMsgBean;
@ -51,7 +52,6 @@ import io.rong.imlib.ConnectChangeReceiver;
import io.rong.push.PushType;
import io.rong.push.notification.PushMessageReceiver;
import io.rong.push.notification.PushNotificationMessage;
import myname.pdlive.shayu.R;
public class CustomMessageReceiver extends PushMessageReceiver {

File diff suppressed because it is too large Load Diff

View File

@ -3,8 +3,8 @@ apply plugin: 'img-optimizer'
android {
compileSdkVersion rootProject.ext.android.compileSdkVersion
buildToolsVersion rootProject.ext.android.buildToolsVersion
compileSdk rootProject.ext.android.compileSdkVersion
targetSdk rootProject.ext.android.buildToolsVersion
packagingOptions {
pickFirst "lib/armeabi/libyuvutils.so"
pickFirst "lib/arm64-v8a/libyuvutils.so"
@ -42,8 +42,8 @@ android {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_18
targetCompatibility JavaVersion.VERSION_18
}
}
repositories {

View File

@ -1,5 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.yunbao.baidu"
/>

View File

@ -3,8 +3,8 @@ apply plugin: 'img-optimizer'
android {
compileSdkVersion rootProject.ext.android.compileSdkVersion
buildToolsVersion rootProject.ext.android.buildToolsVersion
compileSdk rootProject.ext.android.compileSdkVersion
targetSdk rootProject.ext.android.buildToolsVersion
packagingOptions {
pickFirst "lib/armeabi/libyuvutils.so"
pickFirst "lib/arm64-v8a/libyuvutils.so"
@ -45,8 +45,8 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_18
targetCompatibility JavaVersion.VERSION_18
}
}
repositories {

View File

@ -1,2 +1,2 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.yunbao.beauty"/>
/>

View File

@ -4,27 +4,28 @@ apply from: "dependencies.gradle"
buildscript {
ext.kotlin_version = '1.6.20'
ext.kotlin_version = '1.8.22'
repositories {
maven { url "https://mvn.mob.com/android" }
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.fabric.io/public' }
maven { url 'http://maven.faceunity.com/repository/maven-public/' }//
maven { url 'https://maven.faceunity.com/repository/maven-public/' }//
maven { url 'https://repo1.maven.org/maven2/' }//
maven {url 'https://developer.huawei.com/repo/'}
maven { url "https://jitpack.io" }
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.2'
classpath 'com.android.tools.build:gradle:8.3.1'
//png工具
classpath 'com.chenenyu:img-optimizer:1.3.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.20"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.3'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.2'
classpath "com.alibaba:arouter-register:1.0.2"
classpath "com.github.jadepeakpoet.ARouter:arouter-register:1.0.3"
classpath 'com.huawei.agconnect:agcp:1.5.2.300'
}
@ -40,9 +41,9 @@ allprojects {
maven { url "https://mvn.mob.com/android" }
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'http://developer.huawei.com/repo'}//
maven { url 'https://developer.huawei.com/repo'}//
maven { url 'https://maven.fabric.io/public' }
maven { url 'http://maven.faceunity.com/repository/maven-public/' }//
maven { url 'https://maven.faceunity.com/repository/maven-public/' }//
maven { url "https://jitpack.io" }
maven { url 'https://repo1.maven.org/maven2/' }//
google() // Google's Maven repository

View File

@ -3,8 +3,8 @@ apply plugin: 'img-optimizer'
android {
compileSdkVersion rootProject.ext.android.compileSdkVersion
buildToolsVersion rootProject.ext.android.buildToolsVersion
namespace "com.yunbao.common"
compileSdk rootProject.ext.android.compileSdkVersion
defaultConfig {
minSdkVersion rootProject.ext.android.minSdkVersion
@ -15,6 +15,12 @@ android {
ndk {
abiFilters "armeabi-v7a", "arm64-v8a"
}
javaCompileOptions {
annotationProcessorOptions {
arguments = [AROUTER_MODULE_NAME: project.getName()]
}
}
}
packagingOptions {
@ -53,8 +59,11 @@ android {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_18
targetCompatibility JavaVersion.VERSION_18
}
buildFeatures {
buildConfig = true
}
}
repositories {
@ -64,7 +73,9 @@ repositories {
}
dependencies {
annotationProcessor rootProject.ext.dependencies["arouter-compiler"]
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
api files('libs/jcc-bate-0.7.3.jar')
compileOnly fileTree(dir: '../libs', include: ['*.aar'])
@ -158,14 +169,14 @@ dependencies {
//im
api 'com.tencent.imsdk:imsdk-plus:5.4.666'
api 'com.google.code.gson:gson:2.8.8'
api 'cn.rongcloud.sdk:rtc_lib:5.2.0' //
api 'cn.rongcloud.sdk:rtc_lib:5.6.9' //
// 5.1.2
api 'cn.rongcloud.sdk:im_lib:5.2.0.2'
api 'cn.rongcloud.sdk:im_lib:5.6.10'
// 5.1.2
api 'cn.rongcloud.sdk:im_kit:5.2.5.4' // UI
api 'cn.rongcloud.sdk:im_kit:5.6.10' // UI
//
api 'cn.rongcloud.sdk:sight:5.2.5.4'
api 'cn.rongcloud.sdk:sight:5.6.10'
api 'com.facebook.android:facebook-android-sdk:15.2.0'
implementation 'com.facebook.android:facebook-android-sdk:15.2.0'
@ -219,7 +230,7 @@ dependencies {
api project(':lib_google')
//samsung插件包
api project(':IAP6Helper')
//api project(':IAP6Helper')
//
api 'com.contrarywind:Android-PickerView:4.1.9'
@ -232,4 +243,13 @@ dependencies {
api 'com.github.xuexiangjys:XUI:1.1.6'
api 'com.github.xuexiangjys.XUtil:xutil-core:2.0.0'
//ExoPlayer,
api 'com.google.android.exoplayer:exoplayer:2.18.2'
api 'com.google.android.exoplayer:exoplayer-core:2.18.2@aar'
//
api 'com.github.FlyJingFish:GradientTextView:1.2.4'
//
api 'com.github.xiaohaibin:XBanner:androidx_v1.2.6'
}

Binary file not shown.

View File

@ -23,3 +23,6 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-keep class com.qiniu.**{*;}
-keep class com.qiniu.**{public <init>();}
-ignorewarnings

View File

@ -1,11 +1,13 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.yunbao.common">
xmlns:tools="http://schemas.android.com/tools">
<!-- <uses-permission android:name="android.permission.READ_PHONE_STATE" />-->
<!-- <uses-permission android:name="android.permission.INTERNET" />-->
<!-- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />-->
<application android:allowBackup="true">
<application
android:allowBackup="true"
tools:replace="allowBackup">
<!-- <meta-data-->
<!-- android:name="com.google.ar.core"-->
@ -66,16 +68,7 @@
android:screenOrientation="portrait" />
<activity
android:name=".activity.CommunitySendActivity"
android:screenOrientation="portrait" />
<activity
android:name=".activity.CommunityDetailsActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustResize" />
<activity
android:name=".activity.UserHomeActivity"
android:name="com.yunbao.common.activity.VideoPlayActivity"
android:screenOrientation="portrait" />
</application>

View File

@ -1,5 +1,6 @@
package com.yunbao.common;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
@ -12,6 +13,7 @@ import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.yunbao.common.bean.ConfigBean;
import com.yunbao.common.bean.FansMedalBean;
import com.yunbao.common.bean.NewCommunityType;
import com.yunbao.common.bean.UserBean;
import com.yunbao.common.bean.UserItemBean;
import com.yunbao.common.http.CommonHttpUtil;
@ -117,10 +119,46 @@ public class CommonAppConfig {
private String mAppName;
private Boolean mTiBeautyEnable;//是否使用萌颜 true使用萌颜 false 使用基础美颜
public static List<NewCommunityType> getCommunityTypeList(boolean isHome, Context mContext) {
List<NewCommunityType> newCommunityTypeList = new ArrayList<>();
if (isHome) {
NewCommunityType type0 = new NewCommunityType();
type0.setId(0);
type0.setTalk_name(mContext.getString(R.string.recomment));
newCommunityTypeList.add(type0);
}
NewCommunityType type17 = new NewCommunityType();
type17.setId(5);
type17.setTalk_name(mContext.getResources().getString(R.string.main_active_type_01));
NewCommunityType type16 = new NewCommunityType();
type16.setId(4);
type16.setTalk_name(mContext.getResources().getString(R.string.main_active_type_02));
NewCommunityType type15 = new NewCommunityType();
type15.setId(3);
type15.setTalk_name(mContext.getResources().getString(R.string.main_active_type_03));
NewCommunityType type14 = new NewCommunityType();
type14.setId(2);
type14.setTalk_name(mContext.getResources().getString(R.string.main_active_type_04));
NewCommunityType type13 = new NewCommunityType();
type13.setId(1);
type13.setTalk_name(mContext.getResources().getString(R.string.main_active_type_05));
newCommunityTypeList.add(type17);
newCommunityTypeList.add(type16);
newCommunityTypeList.add(type15);
newCommunityTypeList.add(type14);
newCommunityTypeList.add(type13);
return newCommunityTypeList;
}
public String getUid() {
if (TextUtils.isEmpty(mUid)) {
String[] uidAndToken = SpUtil.getInstance()
.getMultiStringValue(new String[]{SpUtil.UID, SpUtil.TOKEN});
String[] uidAndToken = SpUtil.getInstance().getMultiStringValue(new String[]{SpUtil.UID, SpUtil.TOKEN});
if (uidAndToken != null) {
if (!TextUtils.isEmpty(uidAndToken[0]) && !TextUtils.isEmpty(uidAndToken[1])) {
mUid = uidAndToken[0];
@ -311,9 +349,7 @@ public class CommonAppConfig {
mUid = null;
mToken = null;
mLoginIM = false;
SpUtil.getInstance().removeValue(
SpUtil.UID, SpUtil.TOKEN, SpUtil.USER_INFO, SpUtil.IM_LOGIN
);
SpUtil.getInstance().removeValue(SpUtil.UID, SpUtil.TOKEN, SpUtil.USER_INFO, SpUtil.IM_LOGIN);
}
@ -349,12 +385,7 @@ public class CommonAppConfig {
mProvince = null;
mCity = null;
mDistrict = null;
SpUtil.getInstance().removeValue(
SpUtil.LOCATION_LNG,
SpUtil.LOCATION_LAT,
SpUtil.LOCATION_PROVINCE,
SpUtil.LOCATION_CITY,
SpUtil.LOCATION_DISTRICT);
SpUtil.getInstance().removeValue(SpUtil.LOCATION_LNG, SpUtil.LOCATION_LAT, SpUtil.LOCATION_PROVINCE, SpUtil.LOCATION_CITY, SpUtil.LOCATION_DISTRICT);
}

View File

@ -240,6 +240,8 @@ public class Constants {
public static final String VIDEO_ID = "videoId";
public static final String VIDEO_COMMENT_BEAN = "videoCommnetBean";
public static final String VIDEO_FACE_OPEN = "videoOpenFace";
public static final String VIDEO_IS_COMMENT = "videoIsComment";
public static final String VIDEO_REPLY_ID = "VIDEO_REPLY_ID";
public static final String VIDEO_FACE_HEIGHT = "videoFaceHeight";
public static final String VIDEO_DURATION = "videoDuration";
public static final String VIDEO_PATH = "videoPath";
@ -306,5 +308,6 @@ public class Constants {
public static String isSetRemarkText = "";//修改的备注信息
public static boolean isShowLiveDialog = false;//是否在直播间打开单聊
public static int firstInto = 0;//
public static final String TO_COMMUNITY_ID = "to_id";
}

View File

@ -1,387 +0,0 @@
package com.yunbao.common.activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.Outline;
import android.view.View;
import android.view.ViewOutlineProvider;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import androidx.viewpager.widget.ViewPager;
import com.alibaba.fastjson.JSONArray;
import com.makeramen.roundedimageview.RoundedImageView;
import com.ms.banner.Banner;
import com.ms.banner.listener.OnBannerClickListener;
import com.xuexiang.xui.widget.flowlayout.FlowTagLayout;
import com.yunbao.common.CommonAppConfig;
import com.yunbao.common.Constants;
import com.yunbao.common.R;
import com.yunbao.common.adapter.LabelTagAdapter;
import com.yunbao.common.adapter.UserCommunityAdapter;
import com.yunbao.common.adapter.UserHomeImgAdapter;
import com.yunbao.common.bean.ActiveOtherBean;
import com.yunbao.common.bean.HomeUserExhibitInfoBean;
import com.yunbao.common.bean.HomeUserInfoBean;
import com.yunbao.common.bean.IMLoginModel;
import com.yunbao.common.bean.LabelBean;
import com.yunbao.common.bean.MessageUserInfoBean;
import com.yunbao.common.bean.UserHomeImgBean;
import com.yunbao.common.glide.ImgLoader;
import com.yunbao.common.http.CommonHttpUtil;
import com.yunbao.common.http.base.HttpCallback;
import com.yunbao.common.http.live.LiveNetManager;
import com.yunbao.common.interfaces.CommonCallback;
import com.yunbao.common.utils.StringUtil;
import com.yunbao.common.utils.ToastUtil;
import com.yunbao.common.views.UserHomeImgsViewHolder;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class UserHomeActivity extends AbsActivity {
private String uid;
private Banner mBanner;
private RecyclerView imgsRecyclerView;
private UserHomeImgAdapter userHomeImgAdapter;
private List<String> bannerImgList = new ArrayList<>();
private List<UserHomeImgBean> tempList;
private RoundedImageView avatar;
private TextView userName;
private TextView fansCount;
private TextView likeCount;
private LinearLayout followLayout;
private ImageView followIcon;
private TextView followName;
private TextView userId;
private TextView userStatus;
private ImageView userStatusIcon;
private ImageView user_sex;
private ImageView authorIcon;
private TextView level;
private ImageView levelIcon;
private TextView vipLevel;
private LinearLayout authenticationLayout;
private TextView signature;
private LinearLayout moreLayout;
private TextView moreText;
private ImageView moreIcon;
private HomeUserInfoBean userInfo;
RecyclerView communityRecyclerView;
private LinearLayout itemLayout01;
private LinearLayout itemLayout02;
private LinearLayout itemLayout03;
private LinearLayout itemLayout04;
FlowTagLayout myFlowTag; //我的标签
LabelTagAdapter myAdapter;
private boolean isShowcase;
private boolean isAnchor;
private RelativeLayout userPresidentLayout;
private TextView userPresidentName;
private RelativeLayout authorLayout;
private RelativeLayout levelLayout;
private RoundedImageView fansImg1;
private RoundedImageView fansImg2;
private RoundedImageView fansImg3;
private List<RoundedImageView> fansImgViewList = new ArrayList<>();
public static void forwardUserHomeActivity(Context content, String uid) {
Intent intent = new Intent(content, UserHomeActivity.class);
intent.putExtra(Constants.TO_UID, uid);
content.startActivity(intent);
}
@Override
protected int getLayoutId() {
return R.layout.activity_user_home;
}
@Override
protected void create() {
super.create();
}
@Override
protected void main() {
uid = getIntent().getStringExtra(Constants.TO_UID);
if (StringUtil.isEmpty(uid)) {
ToastUtil.show("用户不存在");
finish();
return;
}
initView();
getUseData();
getCommunityList();
}
private void getCommunityList() {
CommonHttpUtil.getOtherDynamicList(uid, new com.yunbao.common.http.HttpCallback() {
@Override
public void onSuccess(int code, String msg, String[] info) {
List<ActiveOtherBean> beanList = JSONArray.parseArray(Arrays.toString(info), ActiveOtherBean.class);
UserCommunityAdapter userCommunityAdapter = new UserCommunityAdapter(mContext, beanList);
communityRecyclerView.setAdapter(userCommunityAdapter);
}
});
}
private void initData(HomeUserInfoBean userInfoBean) {
userInfo = userInfoBean;
if (!userInfo.getCheckBlack().get(0).getU2t().equals("0")) {
ToastUtil.show("已拉黑,无法查看");
finish();
return;
}
if (!StringUtil.isEmpty(userInfo.getUserHomeTopInfo().getUser_president_name())) {
userPresidentLayout.setVisibility(View.VISIBLE);
userPresidentName.setText(userInfo.getUserHomeTopInfo().getUser_president_name());
}
isAnchor = userInfo.getUserHomeTopInfo().getIs_anchor() == 1;
ImgLoader.display(UserHomeActivity.this, userInfo.getUserHomeTopInfo().getUser_avatar(), avatar);
userName.setText(userInfo.getUserHomeTopInfo().getUser_name());//用户名称
fansCount.setText(String.valueOf(userInfo.getUserHomeTopInfo().getUser_fans_num()));//粉丝数量
likeCount.setText(String.valueOf(userInfo.getUserHomeTopInfo().getUser_love_num()));//关注数量
userId.setText("ID:" + userInfo.getUserHomeTopInfo().getUser_id());//用户ID
userStatus.setText("");//认证状态
ImgLoader.display(UserHomeActivity.this, Integer.parseInt(String.valueOf(userInfo.getUserHomeTopInfo().getUser_sex())) == 0 ? R.mipmap.icon_man_new : R.mipmap.icon_wumen, user_sex);
ImgLoader.display(UserHomeActivity.this, CommonAppConfig.HOST + userInfo.getUserHomeTopInfo().getUser_level_anchor_img(), authorIcon);
ImgLoader.display(UserHomeActivity.this, userInfo.getUserHomeTopInfo().getUser_level_img(), levelIcon);
if (isAnchor) {//是否是主播
authorLayout.setVisibility(View.VISIBLE);
levelLayout.setVisibility(View.VISIBLE);
authenticationLayout.setVisibility(View.VISIBLE);
itemLayout01.setVisibility(View.VISIBLE);
itemLayout02.setVisibility(View.VISIBLE);
itemLayout03.setVisibility(View.VISIBLE);
itemLayout04.setVisibility(View.VISIBLE);
} else {
authorLayout.setVisibility(View.GONE);
authenticationLayout.setVisibility(View.GONE);
itemLayout03.setVisibility(View.VISIBLE);
itemLayout04.setVisibility(View.VISIBLE);
}
signature.setText(userInfo.getUserHomeTopInfo().getUser_signature());//个性签名
//标签
myAdapter = new LabelTagAdapter(mContext, new LabelTagAdapter.OnSureOnClickListener() {
@Override
public void sure(LabelBean.Children labelBean) {
}
});
if (userInfo.getUserHomeTopInfo().getCn_label() != null) {
if (userInfo.getUserHomeTopInfo().getCn_label().size() > 0) {
myFlowTag.setAdapter(myAdapter);
myFlowTag.setTagCheckedMode(FlowTagLayout.FLOW_TAG_CHECKED_NONE);
myAdapter.setData(userInfo.getUserHomeTopInfo().getCn_label());
}
}
mBanner.setOutlineProvider(new ViewOutlineProvider() {
@Override
public void getOutline(View view, Outline outline) {
outline.setRoundRect(0, 0, 0, 0, 0);
}
});
mBanner.setOnPageChangeListener(new ViewPager.OnPageChangeListener() {
@Override
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
}
@Override
public void onPageSelected(int position) {
}
@Override
public void onPageScrollStateChanged(int state) {
}
});
bannerImgList = userInfo.getUserHomeTopInfo().getUser_home_banner();
tempList = new ArrayList<>();
for (int i = 0; i < bannerImgList.size(); i++) {
tempList.add(new UserHomeImgBean(bannerImgList.get(i)));
}
tempList.get(0).setShow(true);
userHomeImgAdapter = new UserHomeImgAdapter(UserHomeActivity.this, tempList);
imgsRecyclerView.setLayoutManager(new LinearLayoutManager(mContext, LinearLayoutManager.HORIZONTAL, false));
imgsRecyclerView.setAdapter(userHomeImgAdapter);
userHomeImgAdapter.setOnItemClickListener(new UserHomeImgAdapter.onItemClickListener() {
@Override
public void onImgItem(UserHomeImgBean activeBean, int position) {
mBanner.onPageSelected(position);
mBanner.setCurrentPage(position);
for (int i = 0; i < tempList.size(); i++) {
if (i == position) {
tempList.get(i).setShow(true);
} else {
tempList.get(i).setShow(false);
}
}
userHomeImgAdapter.setCommentBeanList(tempList);
}
});
mBanner.setAutoPlay(false).setPages(bannerImgList, new UserHomeImgsViewHolder()).setOnBannerClickListener(new OnBannerClickListener() {
@Override
public void onBannerClick(List datas, int position) {
}
}).start();
}
private void initView() {
fansImg1 = findViewById(R.id.fansImg1);
fansImg2 = findViewById(R.id.fansImg2);
fansImg3 = findViewById(R.id.fansImg3);
fansImgViewList = new ArrayList<>();
fansImgViewList.add(fansImg1);
fansImgViewList.add(fansImg2);
fansImgViewList.add(fansImg3);
authorLayout = findViewById(R.id.authorLayout);
levelLayout = findViewById(R.id.levelLayout);
userPresidentLayout = findViewById(R.id.userPresidentLayout);
userPresidentName = findViewById(R.id.userPresidentName);
itemLayout01 = findViewById(R.id.itemLayout01);
itemLayout02 = findViewById(R.id.itemLayout02);
itemLayout03 = findViewById(R.id.itemLayout03);
itemLayout04 = findViewById(R.id.itemLayout04);
communityRecyclerView = findViewById(R.id.communityRecyclerView);
myFlowTag = findViewById(R.id.myFlowTag);
avatar = findViewById(R.id.avatar);
userName = findViewById(R.id.name);
fansCount = findViewById(R.id.fansCount);
likeCount = findViewById(R.id.likeCount);
followLayout = findViewById(R.id.followLayout);
followName = findViewById(R.id.followName);
followIcon = findViewById(R.id.followIcon);
userId = findViewById(R.id.userId);
userStatus = findViewById(R.id.userStatus);
userStatusIcon = findViewById(R.id.userStatusIcon);
user_sex = findViewById(R.id.user_sex);
levelIcon = findViewById(R.id.levelIcon);
level = findViewById(R.id.level);
authorIcon = findViewById(R.id.authorlIcon);
authenticationLayout = findViewById(R.id.authenticationLayout);
signature = findViewById(R.id.signature);
moreLayout = findViewById(R.id.moreLayout);
moreText = findViewById(R.id.moreText);
moreIcon = findViewById(R.id.moreIcon);
mBanner = findViewById(R.id.banner);
imgsRecyclerView = findViewById(R.id.imgsRecyclerView);
communityRecyclerView = findViewById(R.id.communityRecyclerView);
communityRecyclerView.setLayoutManager(new LinearLayoutManager(mContext, LinearLayoutManager.VERTICAL, false));
communityRecyclerView.setOverScrollMode(View.OVER_SCROLL_NEVER);
findViewById(R.id.back).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
followLayout.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
CommonHttpUtil.setAttention(String.valueOf(userInfo.getUserHomeTopInfo().getUser_id()), new CommonCallback<Integer>() {
@Override
public void callback(Integer isAttention) {
if (isAttention == 1) {
ImgLoader.display(UserHomeActivity.this, R.mipmap.icon_like_followed, followIcon);
followName.setText("已关注");
followName.setTextColor(Color.parseColor("#777777"));
followLayout.setBackground(getResources().getDrawable(R.drawable.bg_main_com_type_1));
} else {
ImgLoader.display(UserHomeActivity.this, R.mipmap.icon_like_follow, followIcon);
followName.setText("关注");
followName.setTextColor(getResources().getColor(R.color.white));
followLayout.setBackground(getResources().getDrawable(R.drawable.bg_main_com_type));
}
}
});
}
});
moreLayout.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (isShowcase) {
if (isAnchor) {
itemLayout01.setVisibility(View.GONE);
itemLayout02.setVisibility(View.GONE);
itemLayout03.setVisibility(View.GONE);
itemLayout04.setVisibility(View.GONE);
} else {
itemLayout03.setVisibility(View.GONE);
itemLayout04.setVisibility(View.GONE);
}
moreText.setText("查看更多");
ImgLoader.display(mContext, R.mipmap.icon_down, moreIcon);
} else {
if (isAnchor) {
itemLayout01.setVisibility(View.VISIBLE);
itemLayout02.setVisibility(View.VISIBLE);
itemLayout03.setVisibility(View.VISIBLE);
itemLayout04.setVisibility(View.VISIBLE);
} else {
itemLayout01.setVisibility(View.GONE);
itemLayout02.setVisibility(View.GONE);
}
moreText.setText("收起");
ImgLoader.display(mContext, R.mipmap.icon_up, moreIcon);
}
isShowcase = !isShowcase;
}
});
findViewById(R.id.back).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
}
private void getUseData() {
LiveNetManager.get(mContext).getUserHomeInfo(uid, new HttpCallback<HomeUserInfoBean>() {
@Override
public void onSuccess(HomeUserInfoBean data) {
initData(data);
}
@Override
public void onError(String error) {
}
});
LiveNetManager.get(mContext).getUserExhibitInfoInfo(uid, new HttpCallback<HomeUserExhibitInfoBean>() {
@Override
public void onSuccess(HomeUserExhibitInfoBean data) {
if (data.getUserHomeTopInfo().getFans().getList() != null) {
for (int i = 0; i < data.getUserHomeTopInfo().getFans().getList().size(); i++) {
ImgLoader.display(mContext, data.getUserHomeTopInfo().getFans().getList().get(i).getAvatar(), fansImgViewList.get(i));
}
}
}
@Override
public void onError(String error) {
}
});
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent intent) {
super.onActivityResult(requestCode, resultCode, intent);
}
}

View File

@ -0,0 +1,40 @@
package com.yunbao.common.activity;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.VideoView;
import androidx.annotation.Nullable;
import com.yunbao.common.R;
public class VideoPlayActivity extends AbsActivity {
private VideoView videoPlay;
@Override
protected int getLayoutId() {
return R.layout.activity_google_play;
}
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
Uri url = getIntent().getParcelableExtra("videoUri");
super.onCreate(savedInstanceState);
videoPlay = findViewById(R.id.videoPlay);
videoPlay.setVideoURI(url);
videoPlay.start();
findViewById(R.id.back).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
}
@Override
protected void onDestroy() {
super.onDestroy();
}
}

View File

@ -103,6 +103,15 @@ public class CommentAdapter extends RecyclerView.Adapter {
}
}
});
report1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (onItemClickListener != null) {
CommentBean.ReplyComment bean = (CommentBean.ReplyComment) v.getTag();
onItemClickListener.onReport(bean);
}
}
});
replyTextView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
@ -117,7 +126,16 @@ public class CommentAdapter extends RecyclerView.Adapter {
public void onClick(View v) {
if (onItemClickListener != null) {
CommentBean bean = (CommentBean) v.getTag();
onItemClickListener.onDel(bean, 0);
onItemClickListener.onDel(bean);
}
}
});
del1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (onItemClickListener != null) {
CommentBean.ReplyComment bean = (CommentBean.ReplyComment) v.getTag();
onItemClickListener.onDel(bean);
}
}
});
@ -125,6 +143,8 @@ public class CommentAdapter extends RecyclerView.Adapter {
@SuppressLint("SetTextI18n")
public void setData(CommentBean bean) {
del.setTag(bean);
del1.setTag(bean);
report.setTag(bean);
replyTextView.setTag(bean);
ImgLoader.display(itemView.getContext(), bean.getUser_avatar(), mAvatar);
@ -141,8 +161,10 @@ public class CommentAdapter extends RecyclerView.Adapter {
del.setVisibility(View.GONE);
}
if (bean.getReplyCommentList() != null) {
replyCount.setText("" + bean.getReplyCommentList().size() + "条回复>");
replyCount.setText(String.format(mContext.getResources().getString(R.string.active_count), String.valueOf(bean.getReplyCommentList().size())));
if (bean.getReplyCommentList().size() > 0) {
report1.setTag(bean.getReplyCommentList().get(0));
del1.setTag(bean.getReplyCommentList().get(0));
replyContent.setText(bean.getReplyCommentList().get(0).getContent());
ImgLoader.display(itemView.getContext(), bean.getReplyCommentList().get(0).getUser_avatar(), mAvatar01);
firstName.setText(bean.getReplyCommentList().get(0).getUser_name());
@ -152,10 +174,10 @@ public class CommentAdapter extends RecyclerView.Adapter {
} else {
isAuth.setVisibility(View.GONE);
}
if (bean.getUser_id().equals(myUid)) {
del.setVisibility(View.VISIBLE);
if (bean.getReplyCommentList().get(0).getUser_id().equals(myUid)) {
del1.setVisibility(View.VISIBLE);
} else {
del.setVisibility(View.GONE);
del1.setVisibility(View.GONE);
}
} else {
replyLayout.setVisibility(View.GONE);
@ -192,10 +214,11 @@ public class CommentAdapter extends RecyclerView.Adapter {
public void onClick(View v) {
if (!bean.isShow()) {
recyclerView.setVisibility(View.VISIBLE);
replyCount.setText("收起");
replyCount.setText(mContext.getResources().getString(R.string.close));
} else {
recyclerView.setVisibility(View.GONE);
replyCount.setText("" + bean.getReplyCommentList().size() + "条回复>");
replyCount.setText(String.format(mContext.getResources().getString(R.string.active_count), String.valueOf(bean.getReplyCommentList().size())))
;
}
bean.setShow(!bean.isShow());
}
@ -210,10 +233,10 @@ public class CommentAdapter extends RecyclerView.Adapter {
void onReport(CommentBean activeBean);
void onDel(CommentBean activeBean, int position);
void onReport(CommentBean.ReplyComment activeBean);
void onDel(CommentBean activeBean);
void onDel(CommentBean.ReplyComment activeBean);
}

View File

@ -0,0 +1,242 @@
package com.yunbao.common.adapter;
import android.annotation.SuppressLint;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.makeramen.roundedimageview.RoundedImageView;
import com.yunbao.common.CommonAppConfig;
import com.yunbao.common.R;
import com.yunbao.common.bean.CommentBean;
import com.yunbao.common.glide.ImgLoader;
import com.yunbao.common.views.TopGradual;
import java.util.ArrayList;
import java.util.List;
public class CommentVideoAdapter extends RefreshAdapter<CommentBean> {
private Context mContext;
private String authorId;
private String myUid;
private onItemClickListener onItemClickListener;
public void setOnItemClickListener(CommentVideoAdapter.onItemClickListener onItemClickListener) {
this.onItemClickListener = onItemClickListener;
}
public CommentVideoAdapter(Context content, String authorId, CommentVideoAdapter.onItemClickListener onItemClickListener) {
super(content);
this.onItemClickListener = onItemClickListener;
this.mContext = content;
this.authorId = authorId;
myUid = CommonAppConfig.getInstance().getUid();
}
@NonNull
@Override
public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_comment_video_view, parent, false);
return new CommentViewHolder(view);
}
@Override
public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position) {
CommentViewHolder commentViewHolder = (CommentViewHolder) holder;
commentViewHolder.setData(mList.get(position));
}
@Override
public int getItemCount() {
return mList.size();
}
class CommentViewHolder extends RecyclerView.ViewHolder {
private RoundedImageView mAvatar;
private TextView name;
private TextView content;
private TextView report;
private TextView replyTextView;
private RoundedImageView mAvatar01;
private TextView replyContent;
private TextView replyCount;
private RecyclerView recyclerView;
private LinearLayout replyLayout;
private TextView firstName;
private TextView isAuth;
private TextView del;
private TextView author;
private TextView del1;
private TextView report1;
public CommentViewHolder(@NonNull View itemView) {
super(itemView);
firstName = itemView.findViewById(R.id.firstName);
mAvatar = itemView.findViewById(R.id.avatar);
name = itemView.findViewById(R.id.name);
content = itemView.findViewById(R.id.content);
replyTextView = itemView.findViewById(R.id.replyTextView);
report = itemView.findViewById(R.id.report);
mAvatar01 = itemView.findViewById(R.id.avatar01);
isAuth = itemView.findViewById(R.id.isAuth);
replyContent = itemView.findViewById(R.id.replyContent);
replyCount = itemView.findViewById(R.id.expand);
replyLayout = itemView.findViewById(R.id.replyLayout);
recyclerView = itemView.findViewById(R.id.recyclerView);
del = itemView.findViewById(R.id.del);
author = itemView.findViewById(R.id.author);
del1 = itemView.findViewById(R.id.del1);
report1 = itemView.findViewById(R.id.report1);
report1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (onItemClickListener != null) {
CommentBean.ReplyComment bean = (CommentBean.ReplyComment) v.getTag();
onItemClickListener.onReport(bean);
}
}
});
report.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (onItemClickListener != null) {
CommentBean bean = (CommentBean) v.getTag();
onItemClickListener.onReport(bean);
}
}
});
replyTextView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (onItemClickListener != null) {
CommentBean bean = (CommentBean) v.getTag();
onItemClickListener.onReply(bean);
}
}
});
del.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (onItemClickListener != null) {
CommentBean bean = (CommentBean) v.getTag();
onItemClickListener.onDel(bean);
}
}
});
del1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (onItemClickListener != null) {
CommentBean.ReplyComment bean = (CommentBean.ReplyComment) v.getTag();
onItemClickListener.onDel(bean);
}
}
});
}
@SuppressLint("SetTextI18n")
public void setData(CommentBean bean) {
del.setTag(bean);
report1.setTag(bean);
report.setTag(bean);
replyTextView.setTag(bean);
del1.setTag(bean);
ImgLoader.displayAvatar(itemView.getContext(), bean.getUser_avatar(), mAvatar);
name.setText(bean.getUser_name());
content.setText(bean.getContent());
if (bean.getUser_id().equals(authorId)) {
author.setVisibility(View.VISIBLE);
} else {
author.setVisibility(View.GONE);
}
if (bean.getUser_id().equals(myUid)) {
del.setVisibility(View.VISIBLE);
} else {
del.setVisibility(View.GONE);
}
if (bean.getReplyCommentList() != null) {
replyCount.setText( String.format(mContext.getResources().getString(R.string.active_count), String.valueOf(bean.getReplyCommentList().size())));
if (bean.getReplyCommentList().size() > 0) {
del1.setTag(bean.getReplyCommentList().get(0));
replyContent.setText(bean.getReplyCommentList().get(0).getContent());
ImgLoader.display(itemView.getContext(), bean.getReplyCommentList().get(0).getUser_avatar(), mAvatar01);
firstName.setText(bean.getReplyCommentList().get(0).getUser_name());
replyLayout.setVisibility(View.VISIBLE);
if (bean.getReplyCommentList().get(0).getUser_id().equals(authorId)) {
isAuth.setVisibility(View.VISIBLE);
} else {
isAuth.setVisibility(View.GONE);
}
if (bean.getReplyCommentList().get(0).getUser_id().equals(myUid)) {
del1.setVisibility(View.VISIBLE);
} else {
del1.setVisibility(View.GONE);
}
} else {
replyLayout.setVisibility(View.GONE);
replyCount.setVisibility(View.GONE);
}
if (bean.getReplyCommentList().size() > 1) {
replyCount.setVisibility(View.VISIBLE);
replyLayout.setVisibility(View.VISIBLE);
recyclerView.setLayoutManager(new LinearLayoutManager(mContext, LinearLayoutManager.VERTICAL, false));
recyclerView.addItemDecoration(new TopGradual());
List<CommentBean.ReplyComment> tempList = new ArrayList<>();
tempList.addAll(bean.getReplyCommentList());
tempList.remove(0);
CommentReplyAdapter commentReplyAdapter = new CommentReplyAdapter(mContext, tempList, authorId);
commentReplyAdapter.setOnItemClickListener(new CommentReplyAdapter.onItemClickListener() {
@Override
public void onReport(CommentBean.ReplyComment activeBean) {
if (onItemClickListener != null) {
onItemClickListener.onReport(activeBean);
}
}
@Override
public void onDel(CommentBean.ReplyComment activeBean) {
if (onItemClickListener != null) {
onItemClickListener.onDel(activeBean);
}
}
});
recyclerView.setAdapter(commentReplyAdapter);
recyclerView.setOverScrollMode(View.OVER_SCROLL_NEVER);
replyCount.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (!bean.isShow()) {
recyclerView.setVisibility(View.VISIBLE);
replyCount.setText(mContext.getResources().getString(R.string.close));
} else {
recyclerView.setVisibility(View.GONE);
replyCount.setText( String.format(mContext.getResources().getString(R.string.active_count), String.valueOf(bean.getReplyCommentList().size())));
}
bean.setShow(!bean.isShow());
}
});
}
}
}
}
public interface onItemClickListener {
void onReply(CommentBean activeBean);
void onReport(CommentBean activeBean);
void onReport(CommentBean.ReplyComment activeBean);
void onDel(CommentBean activeBean);
void onDel(CommentBean.ReplyComment activeBean);
}
}

View File

@ -0,0 +1,59 @@
package com.yunbao.common.adapter;
import android.content.Context;
import android.graphics.Color;
import android.view.TextureView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
public class DebugDialogAdapter extends RecyclerView.Adapter<DebugDialogAdapter.DebugViewHolder> {
TreeMap<String, String> paramMap = new TreeMap<>();
private Context mContext;
public DebugDialogAdapter(Context mContext) {
this.mContext = mContext;
}
public void setParamMap(TreeMap<String, String> paramMap) {
this.paramMap = paramMap;
notifyDataSetChanged();
}
@NonNull
@Override
public DebugViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
return new DebugViewHolder(new TextView(mContext));
}
@Override
public void onBindViewHolder(@NonNull DebugViewHolder holder, int position) {
List<String> list = new ArrayList<>(paramMap.keySet());
holder.setData(list.get(position), paramMap.get(list.get(position)));
}
@Override
public int getItemCount() {
return paramMap.size();
}
public class DebugViewHolder extends RecyclerView.ViewHolder {
public DebugViewHolder(@NonNull View itemView) {
super(itemView);
}
public void setData(String tag, String msg) {
((TextView) itemView).setText(tag + ":" + msg);
((TextView) itemView).setTextColor(Color.BLACK);
}
}
}

View File

@ -0,0 +1,93 @@
package com.yunbao.common.adapter;
import android.os.CountDownTimer;
import android.util.SparseArray;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.yunbao.common.R;
import com.yunbao.common.bean.sendMoneyLongListModel;
import com.yunbao.common.views.DragonSendMoneyListViewHolder;
import java.util.ArrayList;
import java.util.List;
public class DragonSendMoneyListAdapter extends RecyclerView.Adapter {
RecyclerView send_money_list;
boolean isAnchor;
SparseArray<CountDownTimer> countDownMap;
boolean isAttention;
public DragonSendMoneyListAdapter setAnchor(boolean anchor) {
isAnchor = anchor;
return this;
}
public DragonSendMoneyListAdapter setAttention(boolean attention) {
isAttention = attention;
return this;
}
public List<sendMoneyLongListModel> getMoneyLongListModels() {
return moneyLongListModels;
}
public DragonSendMoneyListAdapter(RecyclerView send_money_list) {
this.send_money_list = send_money_list;
countDownMap = new SparseArray<>();
}
List<sendMoneyLongListModel> moneyLongListModels = new ArrayList<>();
DragonSendMoneyListViewHolder.DragonSendMoneyListClicksCallBack callBack;
public void setCallBack(DragonSendMoneyListViewHolder.DragonSendMoneyListClicksCallBack callBack) {
this.callBack = callBack;
}
public void setMoneyLongListModels(List<sendMoneyLongListModel> models) {
moneyLongListModels.clear();
moneyLongListModels.addAll(models);
notifyDataSetChanged();
}
@NonNull
@Override
public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
View goodGiftsView = LayoutInflater.from(parent.getContext()).inflate(R.layout.view_dragon_send_money_list, parent, false);
return new DragonSendMoneyListViewHolder(goodGiftsView);
}
@Override
public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position) {
DragonSendMoneyListViewHolder sendMoneyListViewHolder = (DragonSendMoneyListViewHolder) holder;
// sendMoneyLongListModel model = moneyLongListModels.get(position);
// long mPkTimeCount2 = Long.parseLong(model.getCountdown());
// long time = mPkTimeCount2 * 1000;
// if (sendMoneyListViewHolder.countDownTimer != null) {
// sendMoneyListViewHolder.countDownTimer.cancel();
// }
// if (time > 0) {
//
// }
sendMoneyListViewHolder.setData(moneyLongListModels.get(position), callBack, isAnchor,isAttention);
}
@Override
public int getItemCount() {
return moneyLongListModels.size();
}
@Override
public int getItemViewType(int position) {
return super.getItemViewType(position);
}
}

View File

@ -36,8 +36,7 @@ public class LabelTagAdapter extends BaseTagAdapter<String, TextView> {
@Override
protected void convert(TextView textView, String item, int position) {
textView.setText(item);
textView.setTextColor(mContext.getResources().getColor(R.color.black2));
textView.setText("#"+item);
}
public interface OnSureOnClickListener {

View File

@ -0,0 +1,46 @@
package com.yunbao.common.adapter;
import android.content.Context;
import android.view.View;
import android.widget.TextView;
import com.xuexiang.xui.widget.flowlayout.BaseTagAdapter;
import com.yunbao.common.R;
import com.yunbao.common.bean.LabelBean;
public class LabelVideoTagAdapter extends BaseTagAdapter<String, TextView> {
OnSureOnClickListener onSureOnClickListener;
Context mContext;
public LabelVideoTagAdapter(Context context, OnSureOnClickListener onSureOnClickListener) {
super(context);
this.onSureOnClickListener = onSureOnClickListener;
this.mContext = context;
}
public LabelVideoTagAdapter(Context context) {
super(context);
}
@Override
protected TextView newViewHolder(View convertView) {
return (TextView) convertView.findViewById(R.id.tv_tag);
}
@Override
protected int getLayoutId() {
return R.layout.adapter_video_tag;
}
@Override
protected void convert(TextView textView, String item, int position) {
textView.setText(item);
}
public interface OnSureOnClickListener {
void sure(LabelBean.Children labelBean);
}
}

View File

@ -0,0 +1,46 @@
package com.yunbao.common.adapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.yunbao.common.R;
import com.yunbao.common.views.LiveBuyGuardPrivilegeViewHolder;
import java.util.ArrayList;
import java.util.List;
public class LiveBuyGuardPrivilegeAdapter extends RecyclerView.Adapter {
List<String> guardPrivilege = new ArrayList<>();
public void setGuardPrivilege(List<String> privilege) {
guardPrivilege.clear();
guardPrivilege.addAll(privilege);
notifyDataSetChanged();
}
public LiveBuyGuardPrivilegeAdapter(List<String> guardPrivilege) {
this.guardPrivilege = guardPrivilege;
}
@NonNull
@Override
public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
View herdView = LayoutInflater.from(parent.getContext()).inflate(R.layout.view_live_buy_guard_privilege_item, parent, false);
return new LiveBuyGuardPrivilegeViewHolder(herdView);
}
@Override
public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position) {
LiveBuyGuardPrivilegeViewHolder buyGuardSelectViewHolder = (LiveBuyGuardPrivilegeViewHolder) holder;
buyGuardSelectViewHolder.setData(guardPrivilege.get(position));
}
@Override
public int getItemCount() {
return guardPrivilege.size();
}
}

View File

@ -0,0 +1,50 @@
package com.yunbao.common.adapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.yunbao.common.R;
import com.yunbao.common.bean.GuardPriceModel;
import com.yunbao.common.views.LiveBuyGuardSelectViewHolder;
import java.util.ArrayList;
import java.util.List;
public class LiveBuyGuardSelectAdapter extends RecyclerView.Adapter {
List<GuardPriceModel> price = new ArrayList<>();
GuardPriceModel model;
public LiveBuyGuardSelectAdapter(List<GuardPriceModel> price, GuardPriceModel mModel) {
this.price = price;
model = mModel;
}
@NonNull
@Override
public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
View herdView = LayoutInflater.from(parent.getContext()).inflate(R.layout.view_live_buy_guard_slelect_item, parent, false);
return new LiveBuyGuardSelectViewHolder(herdView);
}
@Override
public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position) {
LiveBuyGuardSelectViewHolder buyGuardSelectViewHolder = (LiveBuyGuardSelectViewHolder) holder;
buyGuardSelectViewHolder.setData(price.get(position), liveBuyGuardSelectClickListener,model);
}
@Override
public int getItemCount() {
return price.size();
}
private LiveBuyGuardSelectViewHolder.LiveBuyGuardSelectClickListener liveBuyGuardSelectClickListener;
public LiveBuyGuardSelectAdapter setLiveBuyGuardSelectClickListener(LiveBuyGuardSelectViewHolder.LiveBuyGuardSelectClickListener liveBuyGuardSelectClickListener) {
this.liveBuyGuardSelectClickListener = liveBuyGuardSelectClickListener;
return this;
}
}

View File

@ -45,7 +45,6 @@ public class SudTitleSelectAdapter extends RecyclerView.Adapter {
}
}
});
}
@Override

View File

@ -16,7 +16,10 @@ import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.makeramen.roundedimageview.RoundedImageView;
import com.yunbao.common.R;
import com.yunbao.common.activity.AbsActivity;
import com.yunbao.common.bean.ActiveBean;
import com.yunbao.common.bean.ActiveOtherBean;
import com.yunbao.common.dialog.ImagePreviewDialog;
import com.yunbao.common.glide.ImgLoader;
import com.yunbao.common.utils.StringUtil;
import com.yunbao.common.views.NineGridLayout;
@ -25,17 +28,19 @@ import java.util.ArrayList;
import java.util.List;
public class UserCommunityAdapter extends RecyclerView.Adapter {
private List<ActiveOtherBean> commentBeanList;
private List<ActiveBean> commentBeanList;
private Context mContext;
private onItemClickListener onItemClickListener;
private boolean isMe;
public void setOnItemClickListener(UserCommunityAdapter.onItemClickListener onItemClickListener) {
this.onItemClickListener = onItemClickListener;
}
public UserCommunityAdapter(Context content, List<ActiveOtherBean> commentBeanList) {
public UserCommunityAdapter(Context content, List<ActiveBean> commentBeanList, boolean isMe) {
this.mContext = content;
this.commentBeanList = commentBeanList;
this.isMe = isMe;
}
@NonNull
@ -67,6 +72,7 @@ public class UserCommunityAdapter extends RecyclerView.Adapter {
private TextView likeCount;
private TextView comCount;
private TextView shareCount;
private ImageView more_del;
public CommentViewHolder(@NonNull View itemView) {
super(itemView);
@ -80,18 +86,40 @@ public class UserCommunityAdapter extends RecyclerView.Adapter {
likeCount = itemView.findViewById(R.id.likeCount);
comCount = itemView.findViewById(R.id.comCount);
shareCount = itemView.findViewById(R.id.shareCount);
mAvatar.setOnClickListener(new View.OnClickListener() {
more_del = itemView.findViewById(R.id.more_del);
more_del.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
onItemClickListener.onImgItem((String) v.getTag(), getPosition());
if (onItemClickListener != null) {
onItemClickListener.onItemMore((ActiveBean) v.getTag(), getPosition());
}
}
});
itemView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (onItemClickListener != null) {
ActiveBean activeOtherBean = (ActiveBean) v.getTag();
if (activeOtherBean.getImg_or_video().equals("1")) {
onItemClickListener.onImgItem(activeOtherBean, getPosition());
} else {
onItemClickListener.onItemVideo(activeOtherBean, getPosition());
}
}
}
});
}
@SuppressLint("SetTextI18n")
public void setData(ActiveOtherBean bean) {
public void setData(ActiveBean bean) {
itemView.setTag(bean);
mAvatar.setTag(bean);
more_del.setTag(bean);
if (isMe) {
more_del.setVisibility(View.VISIBLE);
} else {
more_del.setVisibility(View.INVISIBLE);
}
ImgLoader.display(mContext, bean.getUser_avatar(), mAvatar);
userName.setText(bean.getUser_name());
time.setText(bean.getCreate_time());
@ -104,7 +132,19 @@ public class UserCommunityAdapter extends RecyclerView.Adapter {
nineGridLayout.setActionListener(new NineGridLayout.ActionListener() {
@Override
public void onItemClick(List<?> dataList, int position) {
ImagePreviewDialog dialog = new ImagePreviewDialog();
dialog.setImageInfo(dataList.size(), position, false, new ImagePreviewDialog.ActionListener() {
@Override
public void loadImage(ImageView imageView, int position) {
ImgLoader.display(mContext, (String) (dataList.get(position)), imageView);
}
@Override
public void onDeleteClick(int position) {
}
});
dialog.show(((AbsActivity) mContext).getSupportFragmentManager(), "ImagePreviewDialog");
}
@Override
@ -119,14 +159,20 @@ public class UserCommunityAdapter extends RecyclerView.Adapter {
tempList.add(String.valueOf(jsonArray.get(i)));
}
nineGridLayout.setData(tempList);
videoLayout.setVisibility(View.GONE);
} else {
ImgLoader.display(mContext, bean.getUser_avatar(), videoImage);
videoLayout.setVisibility(View.VISIBLE);
ImgLoader.display(mContext, bean.getVideo() + "?vframe/jpg/offset/0", videoImage);
}
}
}
public interface onItemClickListener {
void onImgItem(String activeBean, int position);
void onImgItem(ActiveBean activeBean, int position);
void onItemMore(ActiveBean activeBean, int position);
void onItemVideo(ActiveBean activeBean, int position);
}
}

View File

@ -6,7 +6,6 @@ import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
@ -22,17 +21,15 @@ public class UserHomeImgAdapter extends RecyclerView.Adapter {
private List<UserHomeImgBean> commentBeanList;
private Context mContext;
private onItemClickListener onItemClickListener;
private boolean isMe;
public void setOnItemClickListener(UserHomeImgAdapter.onItemClickListener onItemClickListener) {
this.onItemClickListener = onItemClickListener;
}
public List<UserHomeImgBean> getCommentBeanList() {
return commentBeanList;
}
public UserHomeImgAdapter(Context content, List<UserHomeImgBean> commentBeanList) {
public UserHomeImgAdapter(Context content, List<UserHomeImgBean> commentBeanList, boolean isMe) {
this.mContext = content;
this.isMe = isMe;
this.commentBeanList = commentBeanList;
}
@ -61,11 +58,13 @@ public class UserHomeImgAdapter extends RecyclerView.Adapter {
class CommentViewHolder extends RecyclerView.ViewHolder {
RoundedImageView mAvatar01;
RoundedImageView mAvatar02;
ImageView del;
public CommentViewHolder(@NonNull View itemView) {
super(itemView);
mAvatar01 = itemView.findViewById(R.id.avatar01);
mAvatar02 = itemView.findViewById(R.id.avatar02);
del = itemView.findViewById(R.id.del);
}
@SuppressLint("SetTextI18n")
@ -74,15 +73,29 @@ public class UserHomeImgAdapter extends RecyclerView.Adapter {
mAvatar01.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
onItemClickListener.onImgItem((UserHomeImgBean) v.getTag(), position);
if (onItemClickListener != null) {
onItemClickListener.onImgItem((UserHomeImgBean) v.getTag(), position);
}
}
});
del.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (onItemClickListener != null) {
onItemClickListener.onImgDel((UserHomeImgBean) v.getTag(), position);
}
}
});
ImgLoader.display(mContext, bean.getImgurl(), mAvatar01);
ImgLoader.display(mContext, bean.getImgurl(), mAvatar02);
if (bean.isShow()) {
if (isMe) {
del.setVisibility(View.VISIBLE);
}
mAvatar01.setVisibility(View.GONE);
mAvatar02.setVisibility(View.VISIBLE);
} else {
del.setVisibility(View.GONE);
mAvatar01.setVisibility(View.VISIBLE);
mAvatar02.setVisibility(View.GONE);
}
@ -91,5 +104,7 @@ public class UserHomeImgAdapter extends RecyclerView.Adapter {
public interface onItemClickListener {
void onImgItem(UserHomeImgBean activeBean, int position);
void onImgDel(UserHomeImgBean activeBean, int position);
}
}

View File

@ -0,0 +1,48 @@
package com.yunbao.common.bean;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class CheckUpgradesModel extends BaseModel {
/**
* {
* "level": 33, // 等级
* "rewards": [ // 奖励信息
* {
* "id": 1,
* "reward_name": "星之守護等級牌", // 奖励名称
* "image_path": "https://ceshi.yaoulive.com/data/upload/20240304/tequan_1.png" // 图片链接
* },
* {
* "id": 2,
* "reward_name": "人氣票",
* "image_path": "https://ceshi.yaoulive.com/data/upload/20240304/tequan_1.png"
* }
* ]
* }
* }
*/
@SerializedName("level")
private String level;
@SerializedName("rewards")
private List<RewardsModel> rewards;
public String getLevel() {
return level;
}
public CheckUpgradesModel setLevel(String level) {
this.level = level;
return this;
}
public List<RewardsModel> getRewards() {
return rewards;
}
public CheckUpgradesModel setRewards(List<RewardsModel> rewards) {
this.rewards = rewards;
return this;
}
}

View File

@ -1,11 +1,16 @@
package com.yunbao.common.bean;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import java.util.List;
/**
* 社區动态
*/
public class CommentBean extends BaseModel {
public class CommentBean extends BaseModel implements Parcelable {
private String id;
private String dynamic_id;
private String uid;
@ -17,8 +22,40 @@ public class CommentBean extends BaseModel {
private String user_name;
private String user_id;
private String user_avatar;
private boolean mParentNode;//是否是父元素
private List<ReplyComment> child;
public CommentBean() {
}
public CommentBean(Parcel in) {
id = in.readString();
dynamic_id = in.readString();
uid = in.readString();
to_comment_id = in.readString();
content = in.readString();
create_time = in.readString();
status = in.readString();
is_dynamic_user = in.readString();
user_name = in.readString();
user_id = in.readString();
user_avatar = in.readString();
mParentNode = in.readByte() != 0;
isShow = in.readByte() != 0;
}
public static final Creator<CommentBean> CREATOR = new Creator<CommentBean>() {
@Override
public CommentBean createFromParcel(Parcel in) {
return new CommentBean(in);
}
@Override
public CommentBean[] newArray(int size) {
return new CommentBean[size];
}
};
public List<ReplyComment> getChild() {
return child;
}
@ -27,6 +64,14 @@ public class CommentBean extends BaseModel {
this.child = child;
}
public boolean ismParentNode() {
return mParentNode;
}
public void setParentNode(boolean mParentNode) {
this.mParentNode = mParentNode;
}
private boolean isShow;
public String getId() {
@ -133,6 +178,28 @@ public class CommentBean extends BaseModel {
isShow = show;
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(@NonNull Parcel dest, int flags) {
dest.writeString(id);
dest.writeString(dynamic_id);
dest.writeString(uid);
dest.writeString(to_comment_id);
dest.writeString(content);
dest.writeString(create_time);
dest.writeString(status);
dest.writeString(is_dynamic_user);
dest.writeString(user_name);
dest.writeString(user_id);
dest.writeString(user_avatar);
dest.writeByte((byte) (mParentNode ? 1 : 0));
dest.writeByte((byte) (isShow ? 1 : 0));
}
public static class ReplyComment {
private String id;
private String dynamic_id;

View File

@ -43,6 +43,17 @@ public class EnterRoomNewModel extends BaseModel {
private int quickGiftRemainingQuantity;//剩余的小PD礼物数量
@SerializedName("if_viewing_duration_complete")
private int ifViewingDurationComplete;//通过观看时间获取小PD礼物的次数
@SerializedName("sendMoneyLongStatus")
private SendMoneyLongStatusModel model;
public SendMoneyLongStatusModel getModel() {
return model;
}
public EnterRoomNewModel setModel(SendMoneyLongStatusModel model) {
this.model = model;
return this;
}
public int getQuickGiftRemainingQuantity() {
return quickGiftRemainingQuantity;

View File

@ -4,7 +4,7 @@ import com.google.gson.annotations.SerializedName;
public class FirstLoginBean extends BaseModel{
@SerializedName("status")
int status;//0是第一次登陸1是已經登錄過的
int status=-1;//0是第一次登陸1是已經登錄過的
public int getStatus() {
return status;

View File

@ -0,0 +1,142 @@
package com.yunbao.common.bean;
import android.text.TextUtils;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class GuardDataTipModel extends BaseModel {
/**
* {
* "guard_name": "星之守護", // 守护名称
* "guard_type": 1, // 守护类型
* "close_img": "https://ceshi.yaoulive.com/data/upload/20240304/guard_xing_close.png", // 未开通图标
* "open_img": "https://ceshi.yaoulive.com/data/upload/20240304/guard_xing_open.png", // 已开通图标
* "is_open": true, // 是否开通 .true .false
* "price": { // 价格
* {
* "opening_time": "1個月", // 开通时长
* "original_price": "188000", // 原价
* "discount_price": "", // 折扣价
* "discount": "", // 折扣
* "price_key": 1
* },
* {
* "opening_time": "3個月",
* "original_price": "564000",
* "discount_price": "398000",
* "discount": "7.1折",
* "price_key": 3
* },
* {
* "opening_time": "6個月",
* "original_price": "1128000",
* "discount_price": "738000",
* "discount": "6.5折",
* "price_key": 6
* },
* {
* "opening_time": "12個月",
* "original_price": "2256000",
* "discount_price": "1314000",
* "discount": "5.8折",
* "price_key": 12
* }
* ],
* "guard_privilege": [
* "https://ceshi.yaoulive.com/data/upload/20240304/tequan_1.png",
* "https://ceshi.yaoulive.com/data/upload/20240304/tequan_2.png",
* "https://ceshi.yaoulive.com/data/upload/20240304/tequan_3.png",
* "https://ceshi.yaoulive.com/data/upload/20240304/tequan_1.png",
* "https://ceshi.yaoulive.com/data/upload/20240304/tequan_2.png",
* "https://ceshi.yaoulive.com/data/upload/20240304/tequan_3.png",
* "https://ceshi.yaoulive.com/data/upload/20240304/tequan_1.png",
* "https://ceshi.yaoulive.com/data/upload/20240304/tequan_1.png",
* "https://ceshi.yaoulive.com/data/upload/20240304/tequan_2.png",
* "https://ceshi.yaoulive.com/data/upload/20240304/tequan_3.png"
* ]
* }
*/
@SerializedName("guard_name")
private String guardName;
@SerializedName("guard_type")
private int guardType;
@SerializedName("close_img")
private String closeImg;
@SerializedName("open_img")
private String openImg;
@SerializedName("is_open")
private String isOpen;
@SerializedName("price")
private List<GuardPriceModel> price;
@SerializedName("guard_privilege")
private List<String> guardPrivilege;
public String getGuardName() {
return guardName;
}
public GuardDataTipModel setGuardName(String guardName) {
this.guardName = guardName;
return this;
}
public int getGuardType() {
return guardType;
}
public GuardDataTipModel setGuardType(int guardType) {
this.guardType = guardType;
return this;
}
public String getCloseImg() {
return closeImg;
}
public GuardDataTipModel setCloseImg(String closeImg) {
this.closeImg = closeImg;
return this;
}
public String getOpenImg() {
return openImg;
}
public GuardDataTipModel setOpenImg(String openImg) {
this.openImg = openImg;
return this;
}
public boolean isOpen() {
return TextUtils.equals(isOpen, "1");
}
public String getIsOpen() {
return isOpen;
}
public GuardDataTipModel setIsOpen(String isOpen) {
this.isOpen = isOpen;
return this;
}
public List<GuardPriceModel> getPrice() {
return price;
}
public GuardDataTipModel setPrice(List<GuardPriceModel> price) {
this.price = price;
return this;
}
public List<String> getGuardPrivilege() {
return guardPrivilege;
}
public GuardDataTipModel setGuardPrivilege(List<String> guardPrivilege) {
this.guardPrivilege = guardPrivilege;
return this;
}
}

View File

@ -0,0 +1,31 @@
package com.yunbao.common.bean;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class GuardGetGuardOpenInfoModel extends BaseModel {
@SerializedName("user_info")
private GuardUserInfoModel userInfo;
@SerializedName("guard_data")
private List<GuardDataTipModel> guardData;
public GuardUserInfoModel getUserInfo() {
return userInfo;
}
public GuardGetGuardOpenInfoModel setUserInfo(GuardUserInfoModel userInfo) {
this.userInfo = userInfo;
return this;
}
public List<GuardDataTipModel> getGuardData() {
return guardData;
}
public GuardGetGuardOpenInfoModel setGuardData(List<GuardDataTipModel> guardData) {
this.guardData = guardData;
return this;
}
}

View File

@ -0,0 +1,142 @@
package com.yunbao.common.bean;
import com.google.gson.annotations.SerializedName;
public class GuardGetGuardUserInfoModel extends BaseModel {
/**
* "info": {
* "uid": "98923", // 用户ID
* "user_avatar": "https://downs.yaoulive.com/20230706/0572c0f694601f4d2695cd210effbe93.jpeg?imageView2/2/w/600/h/600", // 用户头像链接
* "liveuid": "98889", // 主播ID
* "live_avatar": "https://ceshi.yaoulive.com/data/upload/20230522/20230526102906.png", // 主播头像链接
* "guard_type": 0, // 守护类型 0.未开通 1.星之守护 2.王之守护 3.神之守护
* "exp": 0, // 守护经验值
* "level": 0, // 守护等级
* "endtime": 0, // 到期时间
* "user_language": "chinese",
* "live_language": "chinese"
* }
* }
*/
@SerializedName("uid")
private String uid;
@SerializedName("user_avatar")
private String userAvatar;
@SerializedName("liveuid")
private String liveuid;
@SerializedName("live_avatar")
private String liveAvatar;
@SerializedName("guard_type")
private int guardType;
@SerializedName("exp")
private String exp;
@SerializedName("level")
private int level;
@SerializedName("endtime")
private long endtime;
@SerializedName("user_language")
private String userLanguage;
@SerializedName("live_language")
private String liveLanguage;
@SerializedName("is_open")
private String isOpen;
public String getIsOpen() {
return isOpen;
}
public GuardGetGuardUserInfoModel setIsOpen(String isOpen) {
this.isOpen = isOpen;
return this;
}
public String getUid() {
return uid;
}
public GuardGetGuardUserInfoModel setUid(String uid) {
this.uid = uid;
return this;
}
public String getUserAvatar() {
return userAvatar;
}
public GuardGetGuardUserInfoModel setUserAvatar(String userAvatar) {
this.userAvatar = userAvatar;
return this;
}
public String getLiveuid() {
return liveuid;
}
public GuardGetGuardUserInfoModel setLiveuid(String liveuid) {
this.liveuid = liveuid;
return this;
}
public String getLiveAvatar() {
return liveAvatar;
}
public GuardGetGuardUserInfoModel setLiveAvatar(String liveAvatar) {
this.liveAvatar = liveAvatar;
return this;
}
public int getGuardType() {
return guardType;
}
public GuardGetGuardUserInfoModel setGuardType(int guardType) {
this.guardType = guardType;
return this;
}
public String getExp() {
return exp;
}
public GuardGetGuardUserInfoModel setExp(String exp) {
this.exp = exp;
return this;
}
public int getLevel() {
return level;
}
public GuardGetGuardUserInfoModel setLevel(int level) {
this.level = level;
return this;
}
public long getEndtime() {
return endtime;
}
public GuardGetGuardUserInfoModel setEndtime(long endtime) {
this.endtime = endtime;
return this;
}
public String getUserLanguage() {
return userLanguage;
}
public GuardGetGuardUserInfoModel setUserLanguage(String userLanguage) {
this.userLanguage = userLanguage;
return this;
}
public String getLiveLanguage() {
return liveLanguage;
}
public GuardGetGuardUserInfoModel setLiveLanguage(String liveLanguage) {
this.liveLanguage = liveLanguage;
return this;
}
}

View File

@ -0,0 +1,145 @@
package com.yunbao.common.bean;
import com.google.gson.annotations.SerializedName;
public class GuardMaturityDateRemindModel extends BaseModel{
@SerializedName("_method_")
private String method;
@SerializedName("action")
private String action;
@SerializedName("is_overdue")
private int isOverdue;
@SerializedName("days")
private int days;
@SerializedName("uid")
private String uid;
@SerializedName("liveuid")
private String liveuid;
@SerializedName("user_avatar")
private String userAvatar;
@SerializedName("user_nicename")
private String userNicename;
@SerializedName("live_avatar")
private String liveAvatar;
@SerializedName("live_nicename")
private String liveNicename;
@SerializedName("ct")
private String ct;
@SerializedName("guard_type")
private String guardType;
public String getGuardType() {
return guardType;
}
public GuardMaturityDateRemindModel setGuardType(String guardType) {
this.guardType = guardType;
return this;
}
public String getMethod() {
return method;
}
public void setMethod(String method) {
this.method = method;
}
public String getAction() {
return action;
}
public void setAction(String action) {
this.action = action;
}
public int getIsOverdue() {
return isOverdue;
}
public void setIsOverdue(int isOverdue) {
this.isOverdue = isOverdue;
}
public int getDays() {
return days;
}
public void setDays(int days) {
this.days = days;
}
public String getUid() {
return uid;
}
public void setUid(String uid) {
this.uid = uid;
}
public String getLiveuid() {
return liveuid;
}
public void setLiveuid(String liveuid) {
this.liveuid = liveuid;
}
public String getUserAvatar() {
return userAvatar;
}
public void setUserAvatar(String userAvatar) {
this.userAvatar = userAvatar;
}
public String getUserNicename() {
return userNicename;
}
public void setUserNicename(String userNicename) {
this.userNicename = userNicename;
}
public String getLiveAvatar() {
return liveAvatar;
}
public void setLiveAvatar(String liveAvatar) {
this.liveAvatar = liveAvatar;
}
public String getLiveNicename() {
return liveNicename;
}
public void setLiveNicename(String liveNicename) {
this.liveNicename = liveNicename;
}
public String getCt() {
return ct;
}
public void setCt(String ct) {
this.ct = ct;
}
@Override
public String toString() {
return "GuardMaturityDateRemindModel{" +
"method='" + method + '\'' +
", action='" + action + '\'' +
", isOverdue=" + isOverdue +
", days=" + days +
", uid='" + uid + '\'' +
", liveuid='" + liveuid + '\'' +
", userAvatar='" + userAvatar + '\'' +
", userNicename='" + userNicename + '\'' +
", liveAvatar='" + liveAvatar + '\'' +
", liveNicename='" + liveNicename + '\'' +
", ct='" + ct + '\'' +
'}';
}
}

View File

@ -8,6 +8,17 @@ public class GuardModel extends BaseModel {
private String type;
@SerializedName("endtime")
private String endtime;
@SerializedName("guard_type")
private String guardType;
public String getGuardType() {
return guardType;
}
public GuardModel setGuardType(String guardType) {
this.guardType = guardType;
return this;
}
public String getType() {
return type;

View File

@ -0,0 +1,70 @@
package com.yunbao.common.bean;
import com.google.gson.annotations.SerializedName;
public class GuardPriceModel extends BaseModel {
/**
* {
* "opening_time": "1個月", // 开通时长
* "original_price": "188000", // 原价
* "discount_price": "", // 折扣价
* "discount": "", // 折扣
* "price_key": 1
* }
*/
@SerializedName("opening_time")
private String openingTime;
@SerializedName("original_price")
private String originalPrice;
@SerializedName("discount_price")
private String discountPrice;
@SerializedName("discount")
private String discount;
@SerializedName("price_key")
private int priceKey;
public String getOpeningTime() {
return openingTime;
}
public GuardPriceModel setOpeningTime(String openingTime) {
this.openingTime = openingTime;
return this;
}
public String getOriginalPrice() {
return originalPrice;
}
public GuardPriceModel setOriginalPrice(String originalPrice) {
this.originalPrice = originalPrice;
return this;
}
public String getDiscountPrice() {
return discountPrice;
}
public GuardPriceModel setDiscountPrice(String discountPrice) {
this.discountPrice = discountPrice;
return this;
}
public String getDiscount() {
return discount;
}
public GuardPriceModel setDiscount(String discount) {
this.discount = discount;
return this;
}
public int getPriceKey() {
return priceKey;
}
public GuardPriceModel setPriceKey(int priceKey) {
this.priceKey = priceKey;
return this;
}
}

View File

@ -0,0 +1,142 @@
package com.yunbao.common.bean;
import com.google.gson.annotations.SerializedName;
public class GuardUserInfoModel extends BaseModel {
/**
* {
* "user_info": { // 用户开通信息
* "uid": "98888", // 用户ID
* "user_avatar": "https://downs.yaoulive.com/mannine.png", // 用户头像链接
* "liveuid": "98889", // 主播ID
* "live_avatar": "https://ceshi.yaoulive.com/data/upload/20230522/20230526102906.png", // 主播头像链接
* "guard_type": 1, // 守护类型
* "exp": 0, // 经验值
* "level": 1, // 等级
* "endtime": 1710145929, // 到期时间
* "user_language": "chinese", // 用户语言
* "live_language": "chinese" // 主播语言
* }
*/
@SerializedName("uid")
private String uid;
@SerializedName("user_avatar")
private String userAvatar;
@SerializedName("liveuid")
private String liveuid;
@SerializedName("live_avatar")
private String liveAvatar;
@SerializedName("guard_type")
private int guardType;
@SerializedName("exp")
private String exp;
@SerializedName("level")
private String level;
@SerializedName("endtime")
private String endtime;
@SerializedName("user_language")
private String userLanguage;
@SerializedName("live_language")
private String liveLanguage;
@SerializedName("is_open")
private String isOpen;
public String getIsOpen() {
return isOpen;
}
public GuardUserInfoModel setIsOpen(String isOpen) {
this.isOpen = isOpen;
return this;
}
public String getUid() {
return uid;
}
public GuardUserInfoModel setUid(String uid) {
this.uid = uid;
return this;
}
public String getUserAvatar() {
return userAvatar;
}
public GuardUserInfoModel setUserAvatar(String userAvatar) {
this.userAvatar = userAvatar;
return this;
}
public String getLiveuid() {
return liveuid;
}
public GuardUserInfoModel setLiveuid(String liveuid) {
this.liveuid = liveuid;
return this;
}
public String getLiveAvatar() {
return liveAvatar;
}
public GuardUserInfoModel setLiveAvatar(String liveAvatar) {
this.liveAvatar = liveAvatar;
return this;
}
public int getGuardType() {
return guardType;
}
public GuardUserInfoModel setGuardType(int guardType) {
this.guardType = guardType;
return this;
}
public String getExp() {
return exp;
}
public GuardUserInfoModel setExp(String exp) {
this.exp = exp;
return this;
}
public String getLevel() {
return level;
}
public GuardUserInfoModel setLevel(String level) {
this.level = level;
return this;
}
public String getEndtime() {
return endtime;
}
public GuardUserInfoModel setEndtime(String endtime) {
this.endtime = endtime;
return this;
}
public String getUserLanguage() {
return userLanguage;
}
public GuardUserInfoModel setUserLanguage(String userLanguage) {
this.userLanguage = userLanguage;
return this;
}
public String getLiveLanguage() {
return liveLanguage;
}
public GuardUserInfoModel setLiveLanguage(String liveLanguage) {
this.liveLanguage = liveLanguage;
return this;
}
}

View File

@ -4,13 +4,13 @@ import java.util.List;
public class HomeUserExhibitInfoBean extends BaseModel {
public UserHomeTopInfo userHomeTopInfo;
public List<GiftAlreadyWall> giftAlreadyWall;
public GiftAlreadyWall giftAlreadyWall;
public List<GiftAlreadyWall> getGiftAlreadyWall() {
public GiftAlreadyWall getGiftAlreadyWall() {
return giftAlreadyWall;
}
public void setGiftAlreadyWall(List<GiftAlreadyWall> giftAlreadyWall) {
public void setGiftAlreadyWall(GiftAlreadyWall giftAlreadyWall) {
this.giftAlreadyWall = giftAlreadyWall;
}
@ -22,9 +22,26 @@ public class HomeUserExhibitInfoBean extends BaseModel {
this.userHomeTopInfo = userHomeTopInfo;
}
public class UserHomeTopInfo {
Fans fans;
public Fans fans;
public List<Guard> guard;
public List<Dress> dress;
public List<Guard> getGuard() {
return guard;
}
public void setGuard(List<Guard> guard) {
this.guard = guard;
}
public List<Dress> getDress() {
return dress;
}
public void setDress(List<Dress> dress) {
this.dress = dress;
}
public Fans getFans() {
return fans;
@ -92,7 +109,6 @@ public class HomeUserExhibitInfoBean extends BaseModel {
}
}
public class GiftAlreadyWall {
private String gift_wall_lighten_number;
private String gift_wall_lighten_total;

View File

@ -1,5 +1,7 @@
package com.yunbao.common.bean;
import android.widget.TextView;
import java.util.List;
public class HomeUserInfoBean extends BaseModel {
@ -45,6 +47,53 @@ public class HomeUserInfoBean extends BaseModel {
private List<String> cn_label;
private List<String> en_label;
private String age;
private String height;
private String career;
private String en_career;
private String rong_online;
public String getRong_online() {
return rong_online;
}
public void setRong_online(String rong_online) {
this.rong_online = rong_online;
}
public String getAge() {
return age;
}
public void setAge(String age) {
this.age = age;
}
public String getHeight() {
return height;
}
public void setHeight(String height) {
this.height = height;
}
public String getCareer() {
return career;
}
public void setCareer(String career) {
this.career = career;
}
public String getEn_career() {
return en_career;
}
public void setEn_career(String en_career) {
this.en_career = en_career;
}
public List<String> getCn_label() {
return cn_label;
}

View File

@ -256,7 +256,9 @@ public class IMLoginModel extends BaseModel {
@SerializedName("guard_type")
private String guardType = "";
@SerializedName("isAttention")
private int attention;
private int attention;//1被关注 2已关注 3互关 0没关系
@SerializedName("type")
private String type;
public int getAttention() {
return attention;
@ -270,6 +272,14 @@ public class IMLoginModel extends BaseModel {
return createTime;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public IMLoginModel setCreateTime(String createTime) {
this.createTime = createTime;
return this;

View File

@ -56,6 +56,18 @@ public class LiveBean implements Parcelable {
private int redPacketStatus;
@SerializedName("giftId")
private String giftId;
@SerializedName("sendMoneyLongStatus ")
private int sendMoneyLongStatus ;
public int getSendMoneyLongStatus() {
return sendMoneyLongStatus;
}
public LiveBean setSendMoneyLongStatus(int sendMoneyLongStatus) {
this.sendMoneyLongStatus = sendMoneyLongStatus;
return this;
}
private Map<String,String> params;//用于跳转Activity时扩展参数从首页Banner跳转到直播间时需要根据携带参数判断是否弹出新人特惠对话框
public String getRecommendCardIconSizeTwo() {

View File

@ -43,4 +43,14 @@ public class MessageSayHiBean extends BaseModel{
public void setStatus(int status) {
this.status = status;
}
@Override
public String toString() {
return "MessageSayHiBean{" +
"user=" + user +
", model='" + model + '\'' +
", nextTime=" + nextTime +
", status=" + status +
'}';
}
}

View File

@ -5,7 +5,7 @@ import com.google.gson.annotations.SerializedName;
public class MessageSayHiStartBean extends BaseModel{
@SerializedName("time")
private int nextTime;
private int status;
public int getNextTime() {
return nextTime;
}
@ -13,4 +13,20 @@ public class MessageSayHiStartBean extends BaseModel{
public void setNextTime(int nextTime) {
this.nextTime = nextTime;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
@Override
public String toString() {
return "MessageSayHiStartBean{" +
"nextTime=" + nextTime +
", status=" + status +
'}';
}
}

View File

@ -14,9 +14,19 @@ public class MessageUserInfoBean extends BaseModel{
@SerializedName("msg")
String sayHiMsg;
int id=-1;
int status; //0 需要跳转到 编辑资料页面
String extras;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getExtras() {
return extras;
}
@ -103,12 +113,22 @@ public class MessageUserInfoBean extends BaseModel{
private int is_hello;
private String star_name;
private String career;
@SerializedName("en_career")
private String enCareer;
private String height;
private String age;
@SerializedName("open_off")
private int openOff;//接单设置 1开启 2关闭
@SerializedName("rong_online")
private int rongOnline;
private int rongOnline;//0 在线 非0 其他
public String getEnCareer() {
return enCareer;
}
public void setEnCareer(String enCareer) {
this.enCareer = enCareer;
}
public void setOpenOff(int openOff) {
this.openOff = openOff;

View File

@ -3,6 +3,7 @@ package com.yunbao.common.bean;
public class NewCommunityType extends BaseModel {
private int id;
private String talk_name;
private String talk_name_en;
private String img;
private String is_hot;
private String hot_time;
@ -11,13 +12,12 @@ public class NewCommunityType extends BaseModel {
public NewCommunityType() {
}
public NewCommunityType(int id, String talk_name, String img, String is_hot, String hot_time, String sort) {
this.id = id;
this.talk_name = talk_name;
this.img = img;
this.is_hot = is_hot;
this.hot_time = hot_time;
this.sort = sort;
public String getTalk_name_en() {
return talk_name_en;
}
public void setTalk_name_en(String talk_name_en) {
this.talk_name_en = talk_name_en;
}
public int getId() {

View File

@ -0,0 +1,37 @@
package com.yunbao.common.bean;
import com.google.gson.annotations.SerializedName;
public class NewGuardLevelModel extends BaseModel{
@SerializedName("guard_type")
private int guardType;
@SerializedName("cn")
private String cn;
@SerializedName("en")
private String en;
public int getGuardType() {
return guardType;
}
public void setGuardType(int guardType) {
this.guardType = guardType;
}
public String getCn() {
return cn;
}
public void setCn(String cn) {
this.cn = cn;
}
public String getEn() {
return en;
}
public void setEn(String en) {
this.en = en;
}
}

Some files were not shown because too many files have changed in this diff Show More