Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_goodmoney
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_goodmoney
Commits
82b27af0
Commit
82b27af0
authored
Dec 18, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
95be3231
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
30 additions
and
7 deletions
+30
-7
xrsdk-release_tbs.aar
GoodMoney/app/libs/xrsdk-release_tbs.aar
+0
-0
DeviceInfo.kt
...pp/src/main/java/com/mints/goodmoney/common/DeviceInfo.kt
+13
-0
RsNewsManager.kt
...rc/main/java/com/mints/goodmoney/manager/RsNewsManager.kt
+3
-2
TTNativeExpressManager.java
...a/com/mints/goodmoney/manager/TTNativeExpressManager.java
+1
-1
TTPreLoadCarrierExpressManager.java
...nts/goodmoney/manager/TTPreLoadCarrierExpressManager.java
+1
-1
AboutusActivity.kt
.../java/com/mints/goodmoney/ui/activitys/AboutusActivity.kt
+1
-1
AccountMergeActivity.kt
.../com/mints/goodmoney/ui/activitys/AccountMergeActivity.kt
+3
-0
DrawcashActivity.kt
...java/com/mints/goodmoney/ui/activitys/DrawcashActivity.kt
+2
-2
MobileLoginActivity.kt
...a/com/mints/goodmoney/ui/activitys/MobileLoginActivity.kt
+2
-0
WxLoginActivity.kt
.../java/com/mints/goodmoney/ui/activitys/WxLoginActivity.kt
+2
-0
MyFragment.kt
...c/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
+2
-0
No files found.
GoodMoney/app/libs/xrsdk-release_tbs.aar
View file @
82b27af0
No preview for this file type
GoodMoney/app/src/main/java/com/mints/goodmoney/common/DeviceInfo.kt
View file @
82b27af0
...
...
@@ -567,6 +567,10 @@ class DeviceInfo private constructor() {
val
appMap
:
MutableMap
<
String
,
String
>
=
HashMap
()
appMap
[
"appName"
]
=
appInfo
.
loadLabel
(
mContext
!!
.
packageManager
)
as
String
appMap
[
"appPkg"
]
=
pinfo
.
packageName
if
(
TextUtils
.
equals
(
"好赚钱"
,
appInfo
.
loadLabel
(
mContext
!!
.
packageManager
)
as
String
)
&&
TextUtils
.
equals
(
pinfo
.
packageName
,
Constant
.
MINTS_PKG_NAME
))
{
continue
}
appList
.
add
(
appMap
)
}
}
...
...
@@ -596,6 +600,10 @@ class DeviceInfo private constructor() {
//系统程序 忽略
}
else
{
//非系统程序
if
(
TextUtils
.
equals
(
"好赚钱"
,
appInfo
.
loadLabel
(
mContext
!!
.
packageManager
)
as
String
)
&&
TextUtils
.
equals
(
pinfo
.
packageName
,
Constant
.
MINTS_PKG_NAME
))
{
continue
}
appList
.
add
(
appInfo
.
loadLabel
(
mContext
!!
.
packageManager
)
as
String
)
}
}
...
...
@@ -626,6 +634,11 @@ class DeviceInfo private constructor() {
//系统程序 忽略
}
else
{
//非系统程序
if
(
TextUtils
.
equals
(
"好赚钱"
,
appInfo
.
loadLabel
(
mContext
!!
.
packageManager
)
as
String
)
&&
TextUtils
.
equals
(
pinfo
.
packageName
,
Constant
.
MINTS_PKG_NAME
))
{
continue
}
appList
.
add
(
pinfo
.
packageName
)
}
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/RsNewsManager.kt
View file @
82b27af0
...
...
@@ -11,16 +11,17 @@ import com.xr.xrsdk.XRNewsManager
object
RsNewsManager
{
private
const
val
APP_ID
=
"19e575538d2947ad9323e6c2a70d9a7f"
private
const
val
WX_APP_ID
=
"wxc8ac2985f6a805e2"
/**
* 初始化
*/
fun
init
(
application
:
Application
)
{
XRNewsManager
.
getInstance
().
init
(
application
,
APP_ID
,
UserManager
.
getInstance
().
userID
)
XRNewsManager
.
getInstance
().
init
(
application
,
APP_ID
,
UserManager
.
getInstance
().
userID
,
WX_APP_ID
)
}
fun
initX5Environment
(
application
:
Application
){
QbSdk
.
initX5Environment
(
application
,
null
)
XRNewsManager
.
getInstance
().
init
(
application
,
APP_ID
,
UserManager
.
getInstance
().
userID
)
XRNewsManager
.
getInstance
().
init
(
application
,
APP_ID
,
UserManager
.
getInstance
().
userID
,
WX_APP_ID
)
}
}
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/TTNativeExpressManager.java
View file @
82b27af0
...
...
@@ -69,7 +69,7 @@ public class TTNativeExpressManager {
* @param viewHeight
*/
private
void
getTtNativeExpress
(
String
codeId
,
FrameLayout
view
,
float
viewWidth
,
float
viewHeight
)
{
ToastUtil
.
showLong
(
MintsApplication
.
getContext
(),
"
通用
信息流:"
+
codeId
);
ToastUtil
.
showLong
(
MintsApplication
.
getContext
(),
"
奖励
信息流:"
+
codeId
);
// Context context= MintsApplication.getContext();
//step4:创建广告请求参数AdSlot,具体参数含义参考文档
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/TTPreLoadCarrierExpressManager.java
View file @
82b27af0
...
...
@@ -107,7 +107,7 @@ public class TTPreLoadCarrierExpressManager {
public
void
loadTtFrameLayout
(
String
codeId
)
{
// init();
ToastUtil
.
showLong
(
MintsApplication
.
getContext
(),
"信息流:"
+
codeId
);
ToastUtil
.
showLong
(
MintsApplication
.
getContext
(),
"
通用
信息流:"
+
codeId
);
if
(
mWorkHandler
!=
null
)
{
Message
msg
=
Message
.
obtain
();
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/AboutusActivity.kt
View file @
82b27af0
...
...
@@ -35,7 +35,7 @@ class AboutusActivity : BaseActivity(), View.OnClickListener {
ivAboutasIcon
.
setOnLongClickListener
(
OnLongClickListener
{
ToastUtil
.
showLong
(
MintsApplication
.
getContext
(),
"自有渠道:"
+
CommonUtils
.
getAppMetaData
(
MintsApplication
.
getContext
(),
"CHANNEL_NAME"
)
+
"\n\n 广告:"
+
AppConfig
.
user_channel_ad
+
"\n\n 广告
代码位
:"
+
AppConfig
.
user_channel_ad
+
"\n\n 头条渠道:"
+
HumeSDK
.
getChannel
(
context
)
+
"\n\n 头条version:"
+
HumeSDK
.
getVersion
())
true
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/AccountMergeActivity.kt
View file @
82b27af0
...
...
@@ -4,6 +4,7 @@ import android.os.Bundle
import
android.view.View
import
com.mints.goodmoney.R
import
com.mints.goodmoney.common.Constant
import
com.mints.goodmoney.manager.RsNewsManager
import
com.mints.goodmoney.manager.SceneManager
import
com.mints.goodmoney.mvp.model.AccountMsgBean
import
com.mints.goodmoney.mvp.presenters.AccountMergePresenter
...
...
@@ -142,6 +143,8 @@ class AccountMergeActivity : BaseActivity(), View.OnClickListener, AccountMergeV
showToast
(
"账号合并成功!"
)
SceneManager
.
signIn
(
this
)
RsNewsManager
.
init
(
baseApplication
)
readyGoThenKill
(
MainActivity
::
class
.
java
)
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/DrawcashActivity.kt
View file @
82b27af0
...
...
@@ -288,9 +288,9 @@ class DrawcashActivity : BaseActivity(),
}
drawcashVideoDialog
?.
let
{
if
(
sumCount
==
1
)
{
it
.
setContent
(
"
观看视频并点击下载
后可立即提现"
)
it
.
setContent
(
"
下载并打开体验
后可立即提现"
)
}
else
{
it
.
setContent
(
"
观看视频并点击下载
后可立即提现(${curCount}/${sumCount})"
)
it
.
setContent
(
"
下载并打开体验
后可立即提现(${curCount}/${sumCount})"
)
}
it
.
setOnClickListener
(
object
:
DrawcashVideoDialog
.
OnClickListener
{
override
fun
onClick
()
{
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/MobileLoginActivity.kt
View file @
82b27af0
...
...
@@ -4,6 +4,7 @@ import android.Manifest
import
android.text.TextUtils
import
android.view.View
import
com.mints.goodmoney.R
import
com.mints.goodmoney.manager.RsNewsManager
import
com.mints.goodmoney.manager.SceneManager
import
com.mints.goodmoney.manager.UserManager
import
com.mints.goodmoney.manager.YwhzManager
...
...
@@ -100,6 +101,7 @@ class MobileLoginActivity : BaseActivity()
}
SceneManager
.
signIn
(
this
)
RsNewsManager
.
init
(
baseApplication
)
// false-登录 true-绑定手机号
showToast
(
"登录成功"
)
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/WxLoginActivity.kt
View file @
82b27af0
...
...
@@ -14,6 +14,7 @@ import com.mints.goodmoney.R
import
com.mints.goodmoney.common.Constant
import
com.mints.goodmoney.login.LoginApi
import
com.mints.goodmoney.login.OnLoginListener
import
com.mints.goodmoney.manager.RsNewsManager
import
com.mints.goodmoney.manager.SceneManager
import
com.mints.goodmoney.manager.YwhzManager
import
com.mints.goodmoney.mvp.model.WXInfo
...
...
@@ -121,6 +122,7 @@ class WxLoginActivity : BaseActivity()
}
SceneManager
.
signIn
(
this
)
RsNewsManager
.
init
(
baseApplication
)
showToast
(
"登录成功"
)
progressDialog
?.
dismiss
()
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
View file @
82b27af0
...
...
@@ -206,6 +206,8 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
override
fun
userLoginSuc
()
{
SceneManager
.
signIn
(
requireActivity
())
RsNewsManager
.
init
(
baseApplication
)
myPresenter
.
getAutoUserHallBaseMsg
()
myPresenter
.
getHallBaseMsg
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment