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
d9da0255
Commit
d9da0255
authored
Apr 08, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加审核去广告包
parent
e6ac82fb
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
65 additions
and
59 deletions
+65
-59
build.gradle
GoodMoney/app/build.gradle
+3
-2
AndroidManifest.xml
GoodMoney/app/src/main/AndroidManifest.xml
+1
-1
MyFragment.kt
...c/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
+27
-27
ForegroundOrBackground.java
...ava/com/mints/goodmoney/utils/ForegroundOrBackground.java
+29
-29
activity_award.xml
GoodMoney/app/src/main/res/layout/activity_award.xml
+1
-0
activity_food_subsidy.xml
GoodMoney/app/src/main/res/layout/activity_food_subsidy.xml
+1
-0
activity_morning_clock.xml
GoodMoney/app/src/main/res/layout/activity_morning_clock.xml
+1
-0
activity_walk.xml
GoodMoney/app/src/main/res/layout/activity_walk.xml
+1
-0
activity_water.xml
GoodMoney/app/src/main/res/layout/activity_water.xml
+1
-0
No files found.
GoodMoney/app/build.gradle
View file @
d9da0255
...
...
@@ -64,7 +64,8 @@ android {
// 不显示Log
buildConfigField
"boolean"
,
"LOG_DEBUG"
,
"true"
buildConfigField
"String"
,
"AppKeyPre"
,
"\"abcd\""
buildConfigField
"String"
,
"MainIp"
,
DEBUG_URL
// buildConfigField "String", "MainIp", DEBUG_URL
buildConfigField
"String"
,
"MainIp"
,
RELEASE_URL
manifestPlaceholders
=
[
TD_SCHEMA_KEY:
DEBUG_TD_SCHEMA_KEY
,
TD_KEY
:
DEBUG_TD_KEY
]
...
...
@@ -190,7 +191,7 @@ dependencies {
// 三方接入
// leakcanary
debugImplementation
'com.squareup.leakcanary:leakcanary-android:2.4'
//
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.4'
// 极光推送
implementation
'cn.jiguang.sdk:jpush:3.6.6'
implementation
'cn.jiguang.sdk:jcore:2.3.8'
...
...
GoodMoney/app/src/main/AndroidManifest.xml
View file @
d9da0255
...
...
@@ -127,7 +127,7 @@
<!-- </activity>-->
<activity
android:name=
".ui.activitys.Splash
Ylh
Activity"
android:name=
".ui.activitys.SplashActivity"
android:screenOrientation=
"portrait"
android:theme=
"@style/NormalSplash"
>
<intent-filter>
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
View file @
d9da0255
...
...
@@ -354,33 +354,33 @@ class MyFragment : BaseFragment(),
* 设置Banner
*/
override
fun
getMyRotationChartSuc
(
data
:
RotationChartBean
)
{
mBannerData
=
data
if
(
mBannerData
?.
list
==
null
||
mBannerData
?.
list
!!
.
size
==
0
)
{
mAdBannerAdapter
=
null
fl_my_banner
.
visibility
=
View
.
VISIBLE
LogUtil
.
d
(
"TAG"
,
"getMyRotationChartSuc"
)
banner_view
.
visibility
=
View
.
GONE
banner_view
.
stopAutoScroll
()
BannerManager
.
getTtBanner
(
TtCsjAdManager
.
TT_AD_BANNER_MY
,
fl_my_banner
)
}
else
{
fl_my_banner
.
visibility
=
View
.
GONE
banner_view
.
visibility
=
View
.
VISIBLE
mAdBannerAdapter
=
AdBannerAdapter
(
activity
)
mAdBannerAdapter
?.
let
{
val
list
:
MutableList
<
RotationChartBean
.
ListBean
?>
=
mutableListOf
()
list
.
addAll
(
mBannerData
?.
list
!!
)
list
.
add
(
data
.
position
,
null
)
it
.
setOnPageClickListener
(
this
)
it
.
setData
(
list
)
it
.
setAdPosition
(
data
.
position
)
banner_view
.
setAdapter
(
it
)
}
banner_view
.
startAutoScroll
()
}
//
mBannerData = data
//
//
if (mBannerData?.list == null || mBannerData?.list!!.size == 0) {
//
mAdBannerAdapter = null
//
//
fl_my_banner.visibility = View.VISIBLE
//
LogUtil.d("TAG", "getMyRotationChartSuc")
//
banner_view.visibility = View.GONE
//
banner_view.stopAutoScroll()
//
BannerManager.getTtBanner(TtCsjAdManager.TT_AD_BANNER_MY, fl_my_banner)
//
} else {
//
//
fl_my_banner.visibility = View.GONE
//
banner_view.visibility = View.VISIBLE
//
mAdBannerAdapter = AdBannerAdapter(activity)
//
//
mAdBannerAdapter?.let {
//
val list: MutableList<RotationChartBean.ListBean?> = mutableListOf()
//
list.addAll(mBannerData?.list!!)
//
list.add(data.position, null)
//
it.setOnPageClickListener(this)
//
it.setData(list)
//
it.setAdPosition(data.position)
//
banner_view.setAdapter(it)
//
}
//
banner_view.startAutoScroll()
//
}
}
override
fun
onRefresh
(
refreshLayout
:
RefreshLayout
)
{
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/utils/ForegroundOrBackground.java
View file @
d9da0255
...
...
@@ -101,37 +101,37 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
return
;
}
if
(
count
==
0
)
{
// LogUtil.d("ForegroundOrBackground", System.currentTimeMillis() - leaveTime + " onActivityStarted");
// 60秒后打开应用 显示开屏广告
if
(
System
.
currentTimeMillis
()
-
leaveTime
>=
60000
)
{
if
(
isYlhSplash
)
{
isYlhSplash
=
false
;
if
(
ylhIntent
==
null
)
{
// 优量汇广告
ylhIntent
=
new
Intent
(
activity
,
SplashADActivity
.
class
);
}
activity
.
startActivity
(
ylhIntent
);
}
else
{
isYlhSplash
=
true
;
if
(
csjIntent
==
null
)
{
// 快手广告
csjIntent
=
new
Intent
(
activity
,
SplashCsjADActivity
.
class
);
}
activity
.
startActivity
(
csjIntent
);
// if (ksIntent == null) {
// if (count == 0) {
//// LogUtil.d("ForegroundOrBackground", System.currentTimeMillis() - leaveTime + " onActivityStarted");
// // 60秒后打开应用 显示开屏广告
// if (System.currentTimeMillis() - leaveTime >= 60000) {
//
// if (isYlhSplash) {
// isYlhSplash = false;
//
// if (ylhIntent == null) {
// // 优量汇广告
// ylhIntent = new Intent(activity, SplashADActivity.class);
// }
// activity.startActivity(ylhIntent);
// } else {
// isYlhSplash = true;
//
// if (csjIntent == null) {
// // 快手广告
//
ksIntent = new Intent(activity, SplashKs
ADActivity.class);
//
csjIntent = new Intent(activity, SplashCsj
ADActivity.class);
// }
// activity.startActivity(ksIntent);
}
}
}
// activity.startActivity(csjIntent);
//
//// if (ksIntent == null) {
//// // 快手广告
//// ksIntent = new Intent(activity, SplashKsADActivity.class);
//// }
//// activity.startActivity(ksIntent);
// }
//
// }
// }
count
++;
}
...
...
GoodMoney/app/src/main/res/layout/activity_award.xml
View file @
d9da0255
...
...
@@ -170,6 +170,7 @@
</FrameLayout>
<FrameLayout
android:visibility=
"gone"
android:id=
"@+id/flAwardAd"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
...
...
GoodMoney/app/src/main/res/layout/activity_food_subsidy.xml
View file @
d9da0255
...
...
@@ -42,6 +42,7 @@
</FrameLayout>
<FrameLayout
android:visibility=
"gone"
android:id=
"@+id/flSubsidykAd"
android:layout_width=
"340dp"
android:layout_height=
"340dp"
...
...
GoodMoney/app/src/main/res/layout/activity_morning_clock.xml
View file @
d9da0255
...
...
@@ -85,6 +85,7 @@
</LinearLayout>
<FrameLayout
android:visibility=
"gone"
android:id=
"@+id/flMorningClockAd"
android:layout_width=
"340dp"
android:layout_height=
"340dp"
...
...
GoodMoney/app/src/main/res/layout/activity_walk.xml
View file @
d9da0255
...
...
@@ -41,6 +41,7 @@
</FrameLayout>
<FrameLayout
android:visibility=
"gone"
android:id=
"@+id/flWalkAd"
android:layout_width=
"340dp"
android:layout_height=
"340dp"
...
...
GoodMoney/app/src/main/res/layout/activity_water.xml
View file @
d9da0255
...
...
@@ -40,6 +40,7 @@
</FrameLayout>
<FrameLayout
android:visibility=
"gone"
android:id=
"@+id/flWaterAd"
android:layout_width=
"340dp"
android:layout_height=
"340dp"
...
...
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