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
e5c1900c
Commit
e5c1900c
authored
Feb 04, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保留h5微转,删除sdk方式
parent
5d3b243a
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
25 additions
and
66 deletions
+25
-66
build.gradle
GoodMoney/app/build.gradle
+2
-2
articlesdk-v1.0.6.202012121917-x.aar
GoodMoney/app/libs/articlesdk-v1.0.6.202012121917-x.aar
+0
-0
InitAppService.kt
...y/app/src/main/java/com/mints/goodmoney/InitAppService.kt
+0
-13
Constant.kt
.../app/src/main/java/com/mints/goodmoney/common/Constant.kt
+2
-1
WrapperActivity.kt
.../java/com/mints/goodmoney/ui/activitys/WrapperActivity.kt
+6
-4
MyFragment.kt
...c/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
+7
-22
PanFragment.kt
.../main/java/com/mints/goodmoney/ui/fragment/PanFragment.kt
+3
-21
WzFragment.kt
...c/main/java/com/mints/goodmoney/ui/fragment/WzFragment.kt
+2
-2
activity_wrapper.xml
GoodMoney/app/src/main/res/layout/activity_wrapper.xml
+3
-1
No files found.
GoodMoney/app/build.gradle
View file @
e5c1900c
...
...
@@ -255,8 +255,8 @@ dependencies {
implementation
(
name:
'scenead-2.2'
,
ext:
'aar'
)
implementation
'com.just.agentweb:agentweb:4.1.2'
// 喜马拉雅 已集成
// 微转阅读
implementation
(
name:
'articlesdk-v1.0.6.202012121917-x'
,
ext:
'aar'
)
// 微转阅读
(接入h5方式)
//
implementation(name: 'articlesdk-v1.0.6.202012121917-x', ext: 'aar')
//天卓SDK的珊瑚2.0组件
implementation
(
name:
'adapt-1.3.3'
,
ext:
'aar'
)
implementation
(
name:
'commonbase-1.0.2'
,
ext:
'aar'
)
...
...
GoodMoney/app/libs/articlesdk-v1.0.6.202012121917-x.aar
deleted
100644 → 0
View file @
5d3b243a
File deleted
GoodMoney/app/src/main/java/com/mints/goodmoney/InitAppService.kt
View file @
e5c1900c
...
...
@@ -11,7 +11,6 @@ import com.downloader.PRDownloaderConfig
import
com.mints.goodmoney.manager.BxmManager.initBxm
import
com.mob.MobSDK
import
com.tencent.mm.opensdk.openapi.WXAPIFactory
import
com.xiangzi.articlesdk.XzArticleSdk
/**
* 子线程初始化SDK
...
...
@@ -55,9 +54,6 @@ class InitAppService : IntentService("InitializeService") {
* 子线程进行初始化SDK操作
*/
private
fun
initApplication
()
{
// 微转分享
initWzShare
()
// 初始化ShareSDK
MobSDK
.
init
(
this
)
...
...
@@ -82,15 +78,6 @@ class InitAppService : IntentService("InitializeService") {
PRDownloader
.
initialize
(
this
,
config
)
}
/**
* 微转分享
*/
private
fun
initWzShare
()
{
val
iwxapi
=
WXAPIFactory
.
createWXAPI
(
this
,
"wxc8ac2985f6a805e2"
,
false
)
iwxapi
.
registerApp
(
"wxc8ac2985f6a805e2"
)
XzArticleSdk
.
get
().
init
(
this
.
application
,
iwxapi
,
"151"
,
"haozhuanqian"
)
}
/**
* 绑定jpush
*/
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/common/Constant.kt
View file @
e5c1900c
...
...
@@ -216,12 +216,13 @@ object Constant {
const
val
MERGE_KEY
=
"merge_key"
// wrapper type 0-新闻 1-小说 2-平台分红 3-来电秀
// wrapper type 0-新闻 1-小说 2-平台分红 3-来电秀
4-微转
const
val
WRAPPER_TYPE
=
"wrapper_type"
const
val
WRAPPER_TYPE_NEWS
=
0
const
val
WRAPPER_TYPE_BOOK
=
1
const
val
WRAPPER_TYPE_FRIENDS
=
2
const
val
WRAPPER_TYPE_KYL
=
3
const
val
WRAPPER_TYPE_WZ
=
4
//1登录,2提现,3任务
const
val
RISK_EVENT_ID_LOGIN
=
1
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/WrapperActivity.kt
View file @
e5c1900c
...
...
@@ -6,10 +6,8 @@ import androidx.fragment.app.Fragment
import
com.mints.goodmoney.R
import
com.mints.goodmoney.common.Constant
import
com.mints.goodmoney.ui.activitys.base.BaseActivity
import
com.mints.goodmoney.ui.fragment.FriendsFragment
import
com.mints.goodmoney.ui.fragment.KuYinYueFragment
import
com.mints.goodmoney.ui.fragment.MyZhangyueFragment
import
com.mints.goodmoney.ui.fragment.RsNewsFragment
import
com.mints.goodmoney.ui.fragment.*
import
kotlinx.android.synthetic.main.activity_wrapper.*
import
kotlinx.android.synthetic.main.header_layout.*
/**
...
...
@@ -65,6 +63,10 @@ class WrapperActivity : BaseActivity(), View.OnClickListener {
tv_title
.
text
=
"来电秀"
currentFragment
=
KuYinYueFragment
()
}
Constant
.
WRAPPER_TYPE_WZ
->
{
layoutWrapper
.
visibility
=
View
.
GONE
currentFragment
=
WzFragment
(
true
)
}
}
if
(!
currentFragment
!!
.
isAdded
)
{
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
View file @
e5c1900c
...
...
@@ -2,7 +2,10 @@ package com.mints.goodmoney.ui.fragment
import
android.Manifest
import
android.annotation.SuppressLint
import
android.content.*
import
android.content.BroadcastReceiver
import
android.content.Context
import
android.content.Intent
import
android.content.IntentFilter
import
android.os.Bundle
import
android.text.TextUtils
import
android.view.Gravity
...
...
@@ -45,9 +48,6 @@ import com.mints.library.utils.nodoubleclick.AntiShake
import
com.scwang.smartrefresh.layout.api.RefreshLayout
import
com.scwang.smartrefresh.layout.listener.OnRefreshListener
import
com.tbruyelle.rxpermissions.RxPermissions
import
com.xiangzi.articlesdk.callback.IXzArticleSdkInitCallback
import
com.xiangzi.articlesdk.core.XzArticleCoreImpl
import
com.xiangzi.articlesdk.exception.XzSdkException
import
kotlinx.android.synthetic.main.fragment_main_my.*
import
kotlinx.android.synthetic.main.header_layout.*
import
kotlinx.android.synthetic.main.item_fragment_main_my_clock.*
...
...
@@ -1182,24 +1182,9 @@ class MyFragment : BaseFragment(),
* 分享文章
*/
private
fun
shareArticle
(
coin
:
Int
)
{
if
(
XzArticleCoreImpl
.
get
().
initIsSuccess
())
{
XzArticleCoreImpl
.
get
().
openArticleListActivity
(
requireActivity
())
}
else
{
try
{
XzArticleCoreImpl
.
get
().
initUser
(
userManager
.
userID
,
coin
.
toString
(),
"金币"
,
object
:
IXzArticleSdkInitCallback
{
override
fun
initSuccess
()
{
shareArticle
(
coin
)
}
override
fun
initFailed
(
errMsg
:
String
)
{
showToast
(
"初始化失败,请稍候重试~"
)
}
})
}
catch
(
e
:
XzSdkException
)
{
e
.
printStackTrace
()
}
}
val
bundle
=
Bundle
()
bundle
.
putInt
(
Constant
.
WRAPPER_TYPE
,
Constant
.
WRAPPER_TYPE_WZ
)
readyGo
(
WrapperActivity
::
class
.
java
,
bundle
)
}
/**
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/PanFragment.kt
View file @
e5c1900c
...
...
@@ -19,9 +19,6 @@ import com.mints.goodmoney.mvp.views.PanView
import
com.mints.goodmoney.ui.activitys.*
import
com.mints.goodmoney.ui.fragment.base.BaseFragment
import
com.mints.library.utils.json.JsonUtil
import
com.xiangzi.articlesdk.callback.IXzArticleSdkInitCallback
import
com.xiangzi.articlesdk.core.XzArticleCoreImpl
import
com.xiangzi.articlesdk.exception.XzSdkException
import
kotlinx.android.synthetic.main.fragment_main_pan.*
/**
...
...
@@ -192,23 +189,8 @@ class PanFragment : BaseFragment(), PanView {
* 分享文章
*/
private
fun
shareArticle
(
coin
:
Int
)
{
if
(
XzArticleCoreImpl
.
get
().
initIsSuccess
())
{
XzArticleCoreImpl
.
get
().
openArticleListActivity
(
requireActivity
())
}
else
{
try
{
XzArticleCoreImpl
.
get
().
initUser
(
userManager
.
userID
,
coin
.
toString
(),
"金币"
,
object
:
IXzArticleSdkInitCallback
{
override
fun
initSuccess
()
{
shareArticle
(
coin
)
}
override
fun
initFailed
(
errMsg
:
String
)
{
showToast
(
"初始化失败,请稍候重试~"
)
}
})
}
catch
(
e
:
XzSdkException
)
{
e
.
printStackTrace
()
}
}
val
bundle
=
Bundle
()
bundle
.
putInt
(
Constant
.
WRAPPER_TYPE
,
Constant
.
WRAPPER_TYPE_WZ
)
readyGo
(
WrapperActivity
::
class
.
java
,
bundle
)
}
}
\ No newline at end of file
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/WzFragment.kt
View file @
e5c1900c
...
...
@@ -28,7 +28,7 @@ import java.util.HashMap
* 时间:2020/9/20 17:30
*/
@SuppressLint
(
"SetJavaScriptEnabled"
)
class
WzFragment
:
BaseFragment
(),
BaseView
{
class
WzFragment
(
private
var
isResume
:
Boolean
=
false
)
:
BaseFragment
(),
BaseView
{
private
val
userManager
by
lazy
{
UserManager
.
getInstance
()
}
...
...
@@ -55,7 +55,7 @@ class WzFragment : BaseFragment(), BaseView {
override
fun
onResume
()
{
super
.
onResume
()
if
(
AppConfig
.
fragmentClickFlag
==
Constant
.
FRAGMENT_CLICK_FOUR
)
{
if
(
AppConfig
.
fragmentClickFlag
==
Constant
.
FRAGMENT_CLICK_FOUR
||
isResume
)
{
if
(
TextUtils
.
isEmpty
(
userManager
?.
userID
))
{
// 游客登录
...
...
GoodMoney/app/src/main/res/layout/activity_wrapper.xml
View file @
e5c1900c
...
...
@@ -5,7 +5,9 @@
android:background=
"@color/white"
android:orientation=
"vertical"
>
<include
layout=
"@layout/header_layout"
/>
<include
android:id=
"@+id/layoutWrapper"
layout=
"@layout/header_layout"
/>
<FrameLayout
android:id=
"@+id/flWrapper"
...
...
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