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
ea18cb22
Commit
ea18cb22
authored
Nov 04, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
5db1a1dc
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
119 additions
and
4 deletions
+119
-4
build.gradle
GoodMoney/app/build.gradle
+3
-2
bxmsdk-release-3.0.0.aar
GoodMoney/app/libs/bxmsdk-release-3.0.0.aar
+0
-0
iReader-release-1.0.1.aar
GoodMoney/app/libs/iReader-release-1.0.1.aar
+0
-0
proguard-rules.pro
GoodMoney/app/proguard-rules.pro
+21
-0
AndroidManifest.xml
GoodMoney/app/src/main/AndroidManifest.xml
+11
-0
Constant.kt
.../app/src/main/java/com/mints/goodmoney/common/Constant.kt
+5
-0
BxmManager.kt
...p/src/main/java/com/mints/goodmoney/manager/BxmManager.kt
+49
-0
TtCsjAdManager.java
...main/java/com/mints/goodmoney/manager/TtCsjAdManager.java
+2
-1
MainActivity.kt
...ain/java/com/mints/goodmoney/ui/activitys/MainActivity.kt
+6
-0
MoneyFragment.kt
...ain/java/com/mints/goodmoney/ui/fragment/MoneyFragment.kt
+5
-1
MyFragment.kt
...c/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
+1
-0
new_app_file_paths.xml
GoodMoney/app/src/main/res/xml/new_app_file_paths.xml
+16
-0
No files found.
GoodMoney/app/build.gradle
View file @
ea18cb22
...
...
@@ -187,7 +187,6 @@ dependencies {
implementation
(
name:
'msa_mdid_1.0.13'
,
ext:
'aar'
)
// 穿山甲广告
implementation
(
name:
'open_ad_sdk'
,
ext:
'aar'
)
// implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.6'
// 广点通广告 腾讯
implementation
(
name:
'GDTSDK.unionNormal.4.232.1102'
,
ext:
'aar'
)
// shareSdk
...
...
@@ -227,7 +226,9 @@ dependencies {
implementation
'androidx.annotation:annotation:1.0.0'
implementation
'androidx.core:core:1.0.0'
implementation
'androidx.fragment:fragment:1.0.0'
// 变现猫
implementation
(
name:
'bxmsdk-release-3.0.0'
,
ext:
'aar'
)
implementation
'com.android.support:support-v4:28.0.0'
...
...
GoodMoney/app/libs/bxmsdk-release-3.0.0.aar
0 → 100755
View file @
ea18cb22
File added
GoodMoney/app/libs/iReader-release-1.0.1.aar
View file @
ea18cb22
No preview for this file type
GoodMoney/app/proguard-rules.pro
View file @
ea18cb22
...
...
@@ -427,3 +427,24 @@
}
# ======================= 掌阅书城 END ================
# ===================== 变现猫 START ================
-keep class com.bytedance.sdk.openadsdk.
*
* { *; }
-keep public interface com.bytedance.sdk.openadsdk.downloadnew.
*
* {*;}
-keep class com.ss.android.* {*;}
-keep class com.pgl.* {*;}
-keep class com.qq.e.
*
* {
public protected *;
}
-keep class com.bxm.sdk.ad.
*
*{ *;}
-keep class com.bianxianmao.sdk.
*
*{*;}
-keep class android.support.v4.app.NotificationCompat
*
*{
public *;
}
# ======================= 变现猫 END ================
\ No newline at end of file
GoodMoney/app/src/main/AndroidManifest.xml
View file @
ea18cb22
...
...
@@ -260,6 +260,17 @@
android:name=
"com.qq.e.ads.LandscapeADActivity"
android:configChanges=
"keyboard|keyboardHidden|orientation|screenSize"
android:screenOrientation=
"landscape"
/>
<!-- 变现猫 -->
<!-- <provider-->
<!-- android:name="android.support.v4.content.FileProvider"-->
<!-- android:authorities="${applicationId}.fileprovider"-->
<!-- android:exported="false"-->
<!-- android:grantUriPermissions="true">-->
<!-- <meta-data-->
<!-- android:name="android.support.FILE_PROVIDER_PATHS"-->
<!-- android:resource="@xml/new_app_file_paths" />-->
<!-- </provider>-->
</application>
</manifest>
\ No newline at end of file
GoodMoney/app/src/main/java/com/mints/goodmoney/common/Constant.kt
View file @
ea18cb22
...
...
@@ -18,6 +18,11 @@ object Constant {
*/
const
val
TAG_NAME
=
"SUN"
/**
* app名称
*/
const
val
MINTS_APP_NAME
=
"好赚钱"
/**
* 应用包名
*/
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/BxmManager.kt
0 → 100644
View file @
ea18cb22
package
com.mints.goodmoney.manager
import
android.app.Activity
import
android.app.Application
import
android.view.ViewGroup
import
com.bianxianmao.sdk.BDAdvanceButtonAd
import
com.bianxianmao.sdk.manager.BDAdvanceConfig
import
com.bianxianmao.sdk.manager.BDManager
import
com.mints.goodmoney.BuildConfig
import
com.mints.goodmoney.common.Constant
/**
* 描述:变现猫
* 作者:孟崔广
*/
object
BxmManager
{
const
val
APP_ID
=
""
const
val
BUTTON_AD_SPOT_ID
=
""
var
bdAdvanceButtonAd
:
BDAdvanceButtonAd
?
=
null
/**
* 初始化
*/
fun
initBxm
(
application
:
Application
)
{
BDAdvanceConfig
.
getInstance
()
.
setAppName
(
Constant
.
MINTS_APP_NAME
)
.
setDebug
(
BuildConfig
.
DEBUG
)
.
enableAudit
(
false
)
BDManager
.
getStance
()
.
init
(
application
,
APP_ID
)
}
/**
* 获取Button广告
*/
fun
loadButtonAd
(
activity
:
Activity
?,
viewGroup
:
ViewGroup
)
{
if
(
activity
==
null
)
return
if
(
bdAdvanceButtonAd
==
null
)
{
bdAdvanceButtonAd
=
BDAdvanceButtonAd
(
activity
,
viewGroup
,
BUTTON_AD_SPOT_ID
)
}
bdAdvanceButtonAd
?.
loadAd
()
}
}
\ No newline at end of file
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/TtCsjAdManager.java
View file @
ea18cb22
...
...
@@ -6,6 +6,7 @@ import com.bytedance.sdk.openadsdk.TTAdConfig;
import
com.bytedance.sdk.openadsdk.TTAdConstant
;
import
com.bytedance.sdk.openadsdk.TTAdSdk
;
import
com.mints.goodmoney.BuildConfig
;
import
com.mints.goodmoney.common.Constant
;
/**
* 穿山甲广告
...
...
@@ -13,7 +14,7 @@ import com.mints.goodmoney.BuildConfig;
public
class
TtCsjAdManager
{
public
static
final
String
TT_AD_APPID
=
"5113521"
;
public
static
final
String
TT_AD_NAME
=
"好赚钱"
;
public
static
final
String
TT_AD_NAME
=
Constant
.
MINTS_APP_NAME
;
/*激励视频*/
public
static
final
String
TT_AD_VEDIO_MAIN_DEV
=
"945561938"
;
// 开发使用
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/MainActivity.kt
View file @
ea18cb22
...
...
@@ -140,6 +140,12 @@ class MainActivity : BaseActivity(), MainView, View.OnClickListener {
tab_tv_my
.
setSelected
(
false
)
}
fun
selectVedio
(){
moneyFragment
?.
let
{
(
it
as
MoneyFragment
).
selectVedio
()
}
}
/**
* 点击第二个tab
*/
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MoneyFragment.kt
View file @
ea18cb22
...
...
@@ -32,7 +32,7 @@ class MoneyFragment : BaseFragment() {
override
fun
setUserVisibleHint
(
isVisibleToUser
:
Boolean
)
{
super
.
setUserVisibleHint
(
isVisibleToUser
)
mainFragment
?.
userVisibleHint
=
isVisibleToUser
mainFragment
?.
userVisibleHint
=
isVisibleToUser
}
private
fun
initView
()
{
...
...
@@ -52,4 +52,8 @@ class MoneyFragment : BaseFragment() {
vpFragmentMoney
.
setAdapter
(
adapter
)
xtFragmentMoney
.
setupWithViewPager
(
vpFragmentMoney
)
}
public
fun
selectVedio
()
{
vpFragmentMoney
.
currentItem
=
0
}
}
\ No newline at end of file
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
View file @
ea18cb22
...
...
@@ -431,6 +431,7 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
MainMyAdapter
.
TASK_TYPE_HOME
->
{
val
activity
:
MainActivity
?
=
activity
as
MainActivity
?
activity
?.
clickTab1Layout
()
activity
?.
selectVedio
()
}
// 邀好友赚金币
MainMyAdapter
.
TASK_TYPE_INVITE
->
{
...
...
GoodMoney/app/src/main/res/xml/new_app_file_paths.xml
0 → 100755
View file @
ea18cb22
<?xml version="1.0" encoding="utf-8"?>
<paths>
<external-path
name=
"tt_external_root"
path=
"."
/>
<external-path
name=
"tt_external_download"
path=
"Download"
/>
<external-files-path
name=
"tt_external_files_download"
path=
"Download"
/>
<files-path
name=
"tt_internal_file_download"
path=
"Download"
/>
<cache-path
name=
"tt_internal_cache_download"
path=
"Download"
/>
<external-cache-path
name=
"gdt_sdk_download_path1"
path=
"com_qq_e_download"
/>
<cache-path
name=
"gdt_sdk_download_path2"
path=
"com_qq_e_download"
/>
</paths>
\ No newline at end of file
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