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
3c9214ac
Commit
3c9214ac
authored
Jan 25, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加来电秀
parent
0597cb5d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
122 deletions
+11
-122
build.gradle
GoodMoney/app/build.gradle
+2
-4
proguard-rules.pro
GoodMoney/app/proguard-rules.pro
+0
-12
KylVideoActivity.kt
...java/com/mints/goodmoney/ui/activitys/KylVideoActivity.kt
+5
-4
MoneyFragment.kt
...ain/java/com/mints/goodmoney/ui/fragment/MoneyFragment.kt
+0
-13
JZVideoPlayerStandardLoopVideo.java
.../goodmoney/ui/widgets/JZVideoPlayerStandardLoopVideo.java
+0
-85
activity_permission.xml
GoodMoney/app/src/main/res/layout/activity_permission.xml
+4
-4
No files found.
GoodMoney/app/build.gradle
View file @
3c9214ac
...
...
@@ -9,8 +9,8 @@ android {
applicationId
"com.mints.goodmoney"
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
versionCode
1
5
versionName
"1.1.
4
"
versionCode
1
6
versionName
"1.1.
5
"
flavorDimensions
"default"
// dex突破65535的限制
...
...
@@ -175,8 +175,6 @@ dependencies {
implementation
'com.king.zxing:zxing-lite:1.1.7-androidx'
// toast
implementation
'com.hjq:toast:8.8'
// 视频
implementation
'cn.jzvd:jiaozivideoplayer:7.0.5'
// 附件下载更新
implementation
'com.mindorks.android:prdownloader:0.6.0'
// 圆角库
...
...
GoodMoney/app/proguard-rules.pro
View file @
3c9214ac
...
...
@@ -563,18 +563,6 @@
# ===================== JZVedio START ================
-keep public class cn.jzvd.JZMediaSystem {*; }
-keep public class cn.jzvd.demo.CustomMedia.CustomMedia {*; }
-keep public class cn.jzvd.demo.CustomMedia.JZMediaIjk {*; }
-keep public class cn.jzvd.demo.CustomMedia.JZMediaSystemAssertFolder {*; }
-keep class tv.danmaku.ijk.media.player.
*
* {*; }
-dontwarn tv.danmaku.ijk.media.player.*
-keep interface tv.danmaku.ijk.media.player.
*
* { *; }
# ======================= JZVedio END ================
# ===================== 微转分享 START ================
-keep class com.xiangzi.*{*;}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/KylVideoActivity.kt
View file @
3c9214ac
...
...
@@ -42,7 +42,7 @@ class KylVideoActivity : BaseActivity(), View.OnClickListener, KylVideoView {
private
var
downloadId
:
Int
=
-
1
//vedio下载id
private
var
downloadVedioSucFlag
=
false
// 下载视频成功
private
var
vedioName
=
""
private
var
vedio
Path
Name
=
""
override
fun
getContentViewLayoutID
()
=
R
.
layout
.
activity_kyl_video
...
...
@@ -125,7 +125,8 @@ class KylVideoActivity : BaseActivity(), View.OnClickListener, KylVideoView {
}
catch
(
e
:
java
.
lang
.
Exception
)
{
vedioPath
=
filesDir
.
absolutePath
+
"/video/"
}
vedioName
=
MD5
.
GetMD5Code
(
System
.
currentTimeMillis
().
toString
()
+
UserManager
.
getInstance
().
userID
+
videoUrl
)
+
".mp4"
val
vedioName
=
MD5
.
GetMD5Code
(
System
.
currentTimeMillis
().
toString
()
+
UserManager
.
getInstance
().
userID
+
videoUrl
)
+
".mp4"
vedioPathName
=
vedioPath
+
vedioName
downloadId
=
PRDownloader
.
download
(
videoUrl
,
vedioPath
,
vedioName
)
.
build
()
.
start
(
object
:
OnDownloadListener
{
...
...
@@ -194,8 +195,8 @@ class KylVideoActivity : BaseActivity(), View.OnClickListener, KylVideoView {
}
private
fun
vedioAdingSuccess
(
adType
:
String
)
{
if
(
downloadVedioSucFlag
)
{
DetailActivity
.
startSelf
(
this
@KylVideoActivity
,
vedioName
)
if
(
downloadVedioSucFlag
&&
!
TextUtils
.
isEmpty
(
vedioPathName
)
)
{
DetailActivity
.
startSelf
(
this
@KylVideoActivity
,
vedio
Path
Name
)
}
}
}
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MoneyFragment.kt
View file @
3c9214ac
...
...
@@ -172,13 +172,6 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
}
override
fun
onTabSelected
(
tab
:
XTabLayout
.
Tab
)
{
// if (tab.position == 3) {
// if (!UserManager.getInstance().userIsLogin()) {
// readyGo(WxLoginActivity::class.java)
// vpFragmentMoney.currentItem = if (curPosition == 3) 0 else curPosition
// return
// }
// }
when
(
tab
.
position
)
{
0
->
{
if
(
AppConfig
.
showAdFlag
)
{
...
...
@@ -220,12 +213,6 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
}
addOrShowFragment
(
childFragmentManager
,
xmlyGameFragment
!!
,
FRAGMENT_TAG_XMLY
)
}
3
->
{
if
(
liebaoGameFragment
==
null
)
{
liebaoGameFragment
=
LiebaoGameFragment
()
}
addOrShowFragment
(
childFragmentManager
,
liebaoGameFragment
!!
,
FRAGMENT_TAG_GAME
)
}
// 3 -> {
// if (liebaoGameFragment == null) {
// liebaoGameFragment = LiebaoGameFragment()
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/widgets/JZVideoPlayerStandardLoopVideo.java
deleted
100644 → 0
View file @
0597cb5d
package
com
.
mints
.
goodmoney
.
ui
.
widgets
;
import
android.content.Context
;
import
android.util.AttributeSet
;
import
android.view.View
;
import
cn.jzvd.JZDataSource
;
import
cn.jzvd.JzvdStd
;
public
class
JZVideoPlayerStandardLoopVideo
extends
JzvdStd
{
private
JZVedioStatusListener
jzVedioStatusListener
;
private
boolean
isVedioRestart
=
true
;
//true-重复播放视频
public
void
setJzVedioStatusListener
(
JZVedioStatusListener
jzVedioStatusListener
)
{
this
.
jzVedioStatusListener
=
jzVedioStatusListener
;
}
public
JZVideoPlayerStandardLoopVideo
(
Context
context
)
{
super
(
context
);
}
public
JZVideoPlayerStandardLoopVideo
(
Context
context
,
AttributeSet
attrs
)
{
super
(
context
,
attrs
);
}
@Override
public
void
onStatePlaying
()
{
super
.
onStatePlaying
();
if
(
jzVedioStatusListener
!=
null
)
{
jzVedioStatusListener
.
jzVedioPlaying
();
}
}
@Override
public
void
onAutoCompletion
()
{
super
.
onAutoCompletion
();
try
{
if
(
isVedioRestart
)
{
startVideo
();
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
public
interface
JZVedioStatusListener
{
void
jzVedioPlaying
();
}
@Override
public
void
setUp
(
JZDataSource
jzDataSource
,
int
screen
)
{
super
.
setUp
(
jzDataSource
,
screen
);
try
{
if
(
screen
!=
SCREEN_NORMAL
)
{
fullscreenButton
.
setVisibility
(
View
.
VISIBLE
);
progressBar
.
setVisibility
(
View
.
VISIBLE
);
currentTimeTextView
.
setVisibility
(
View
.
VISIBLE
);
totalTimeTextView
.
setVisibility
(
View
.
VISIBLE
);
}
else
{
fullscreenButton
.
setVisibility
(
View
.
INVISIBLE
);
progressBar
.
setVisibility
(
View
.
INVISIBLE
);
currentTimeTextView
.
setVisibility
(
View
.
INVISIBLE
);
totalTimeTextView
.
setVisibility
(
View
.
INVISIBLE
);
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
/**
* 设置视频是否重复播放 true-重复播放
*/
public
void
setVedioRestart
(
boolean
isVedioRestart
)
{
this
.
isVedioRestart
=
isVedioRestart
;
}
// public int getJZVedioState(){
// return state;
// }
}
GoodMoney/app/src/main/res/layout/activity_permission.xml
View file @
3c9214ac
...
...
@@ -9,7 +9,7 @@
android:layout_width=
"match_parent"
android:layout_height=
"120dp"
android:layout_gravity=
"center"
android:layout_margin
Top=
"2
0dp"
android:layout_margin
=
"3
0dp"
android:gravity=
"center"
android:text=
"@string/permission_tip"
android:textColor=
"@color/colorAccent"
...
...
@@ -118,9 +118,9 @@
<TextView
android:layout_width=
"match_parent"
android:layout_height=
"
4
0dp"
android:layout_height=
"
5
0dp"
android:layout_marginLeft=
"60dp"
android:layout_marginTop=
"
3
0dp"
android:layout_marginTop=
"
4
0dp"
android:layout_marginRight=
"60dp"
android:layout_marginBottom=
"10dp"
android:background=
"@drawable/shape_tv_gold"
...
...
@@ -128,5 +128,5 @@
android:onClick=
"getPermission"
android:text=
"@string/get_permission"
android:textColor=
"@color/white"
android:textSize=
"
20
sp"
/>
android:textSize=
"
18
sp"
/>
</LinearLayout>
\ 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