Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_book
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_book
Commits
31277fae
Commit
31277fae
authored
Sep 26, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
b07b98a2
Changes
18
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
43 additions
and
28 deletions
+43
-28
mints_enjoyboxjia.jks
book/app/mints_enjoyboxjia.jks
+0
-0
mints_infinitefunjia.jks
book/app/mints_infinitefunjia.jks
+0
-0
Constant.kt
...pp/src/main/java/com/mints/enjoyboxjia/common/Constant.kt
+1
-1
CsjAppLogManager.kt
...in/java/com/mints/enjoyboxjia/manager/CsjAppLogManager.kt
+1
-1
BookBean.java
...c/main/java/com/mints/enjoyboxjia/mvp/model/BookBean.java
+5
-1
SettingsActivity.kt
...va/com/mints/enjoyboxjia/ui/activitys/SettingsActivity.kt
+1
-1
WatchRecordActivity.kt
...com/mints/enjoyboxjia/ui/activitys/WatchRecordActivity.kt
+2
-0
WatchRecordAdapter.kt
...va/com/mints/enjoyboxjia/ui/adapter/WatchRecordAdapter.kt
+10
-4
activity_watch_record.xml
book/app/src/main/res/layout/activity_watch_record.xml
+1
-1
dialog_agreement.xml
book/app/src/main/res/layout/dialog_agreement.xml
+1
-1
dialog_permession.xml
book/app/src/main/res/layout/dialog_permession.xml
+1
-1
dialog_powe2.xml
book/app/src/main/res/layout/dialog_powe2.xml
+1
-1
dialog_power.xml
book/app/src/main/res/layout/dialog_power.xml
+1
-1
item_watch_record.xml
book/app/src/main/res/layout/item_watch_record.xml
+4
-1
ic_launcher_main.png
book/app/src/main/res/mipmap-xhdpi/ic_launcher_main.png
+0
-0
ic_launcher_main.png
book/app/src/main/res/mipmap-xxhdpi/ic_launcher_main.png
+0
-0
strings.xml
book/app/src/main/res/values/strings.xml
+8
-8
gradle.properties
book/gradle.properties
+6
-6
No files found.
book/app/mints_enjoyboxjia.jks
deleted
100644 → 0
View file @
b07b98a2
File deleted
book/app/mints_infinitefunjia.jks
0 → 100644
View file @
31277fae
File added
book/app/src/main/java/com/mints/enjoyboxjia/common/Constant.kt
View file @
31277fae
...
@@ -10,7 +10,7 @@ object Constant {
...
@@ -10,7 +10,7 @@ object Constant {
const
val
TAG_NAME
=
"SUN"
const
val
TAG_NAME
=
"SUN"
const
val
MINTS_PKG_NAME
=
"com.mints.enjoyboxjia"
const
val
MINTS_PKG_NAME
=
"com.mints.enjoyboxjia"
const
val
ACTION_EXIT_APP
=
"package.exit"
const
val
ACTION_EXIT_APP
=
"package.exit"
const
val
MINTS_APP_NAME
=
"
乐享宝盒
"
const
val
MINTS_APP_NAME
=
"
趣无限
"
const
val
FRAGMENT_CLICK_ONE
=
0
const
val
FRAGMENT_CLICK_ONE
=
0
const
val
FRAGMENT_CLICK_TWO
=
1
const
val
FRAGMENT_CLICK_TWO
=
1
const
val
FRAGMENT_CLICK_THREE
=
2
const
val
FRAGMENT_CLICK_THREE
=
2
...
...
book/app/src/main/java/com/mints/enjoyboxjia/manager/CsjAppLogManager.kt
View file @
31277fae
...
@@ -21,7 +21,7 @@ import org.json.JSONObject
...
@@ -21,7 +21,7 @@ import org.json.JSONObject
object
CsjAppLogManager
{
object
CsjAppLogManager
{
// 获取方式,穿山甲平台-Adspark-免费广告监测-应用管理创建
// 获取方式,穿山甲平台-Adspark-免费广告监测-应用管理创建
const
val
APP_LOG_ID
=
"6
22129
"
const
val
APP_LOG_ID
=
"6
44145
"
fun
init
(
application
:
Application
)
{
fun
init
(
application
:
Application
)
{
// 第一个参数APPID: 参考2.1节获取
// 第一个参数APPID: 参考2.1节获取
...
...
book/app/src/main/java/com/mints/enjoyboxjia/mvp/model/BookBean.java
View file @
31277fae
...
@@ -18,7 +18,7 @@ public class BookBean implements Serializable {
...
@@ -18,7 +18,7 @@ public class BookBean implements Serializable {
private
int
commentCount
;
private
int
commentCount
;
private
int
likeCount
;
private
int
likeCount
;
private
int
collectCount
;
private
int
collectCount
;
private
B
oolean
isCollect
;
private
b
oolean
isCollect
;
private
String
commentContent
;
private
String
commentContent
;
private
String
categoryName
;
private
String
categoryName
;
private
String
categoryId
;
private
String
categoryId
;
...
@@ -157,6 +157,10 @@ public class BookBean implements Serializable {
...
@@ -157,6 +157,10 @@ public class BookBean implements Serializable {
return
isCollect
;
return
isCollect
;
}
}
public
void
setIsCollect
(
boolean
isCollect
)
{
this
.
isCollect
=
isCollect
;
}
public
Object
getCommentContent
()
{
public
Object
getCommentContent
()
{
return
commentContent
;
return
commentContent
;
}
}
...
...
book/app/src/main/java/com/mints/enjoyboxjia/ui/activitys/SettingsActivity.kt
View file @
31277fae
...
@@ -109,7 +109,7 @@ class SettingsActivity : BaseActivity(), View.OnClickListener {
...
@@ -109,7 +109,7 @@ class SettingsActivity : BaseActivity(), View.OnClickListener {
item_wechat
.
findViewById
<
TextView
>(
R
.
id
.
tv_right
).
text
=
"未授权"
item_wechat
.
findViewById
<
TextView
>(
R
.
id
.
tv_right
).
text
=
"未授权"
}
}
item_invitedCode
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
text
=
"
乐享宝盒
ID"
item_invitedCode
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
text
=
"
趣无限
ID"
val
invitedCode
=
ContextCompat
.
getDrawable
(
this
,
R
.
mipmap
.
icon_settings_invite
)
val
invitedCode
=
ContextCompat
.
getDrawable
(
this
,
R
.
mipmap
.
icon_settings_invite
)
invitedCode
?.
setBounds
(
0
,
0
,
56
,
56
)
invitedCode
?.
setBounds
(
0
,
0
,
56
,
56
)
item_invitedCode
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
)
item_invitedCode
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
)
...
...
book/app/src/main/java/com/mints/enjoyboxjia/ui/activitys/WatchRecordActivity.kt
View file @
31277fae
...
@@ -45,8 +45,10 @@ class WatchRecordActivity : BaseActivity(), WatchRecordView {
...
@@ -45,8 +45,10 @@ class WatchRecordActivity : BaseActivity(), WatchRecordView {
WatchRecordAdapter
.
OnItemCollectClickListener
{
WatchRecordAdapter
.
OnItemCollectClickListener
{
override
fun
onItemCollectClick
(
bean
:
BookBean
)
{
override
fun
onItemCollectClick
(
bean
:
BookBean
)
{
if
(!
bean
.
isCollect
)
{
if
(!
bean
.
isCollect
)
{
bean
.
isCollect
=
true
watchRecordPresenter
.
collect
(
bean
.
id
)
watchRecordPresenter
.
collect
(
bean
.
id
)
}
else
{
}
else
{
bean
.
isCollect
=
false
watchRecordPresenter
.
cancelCollect
(
bean
.
id
)
watchRecordPresenter
.
cancelCollect
(
bean
.
id
)
}
}
mWatchRecordAdapter
?.
notifyDataSetChanged
()
mWatchRecordAdapter
?.
notifyDataSetChanged
()
...
...
book/app/src/main/java/com/mints/enjoyboxjia/ui/adapter/WatchRecordAdapter.kt
View file @
31277fae
package
com.mints.enjoyboxjia.ui.adapter
package
com.mints.enjoyboxjia.ui.adapter
import
android.view.View
import
android.view.View
import
android.widget.ImageView
import
android.widget.TextView
import
android.widget.TextView
import
com.airbnb.lottie.LottieAnimationView
import
com.airbnb.lottie.LottieAnimationView
import
com.airbnb.lottie.LottieComposition
import
com.airbnb.lottie.LottieComposition
...
@@ -18,15 +19,20 @@ class WatchRecordAdapter :
...
@@ -18,15 +19,20 @@ class WatchRecordAdapter :
holder
.
getView
<
TextView
>(
R
.
id
.
tv_watch_title
).
text
=
item
.
title
holder
.
getView
<
TextView
>(
R
.
id
.
tv_watch_title
).
text
=
item
.
title
holder
.
getView
<
TextView
>(
R
.
id
.
tv_watch_text
).
text
=
item
.
summary
holder
.
getView
<
TextView
>(
R
.
id
.
tv_watch_text
).
text
=
item
.
summary
holder
.
getView
<
TextView
>(
R
.
id
.
tv_watch_user
).
text
=
item
.
author
holder
.
getView
<
TextView
>(
R
.
id
.
tv_watch_user
).
text
=
"作者:"
+
item
.
author
if
(
item
.
isCollect
)
{
holder
.
getView
<
ImageView
>(
R
.
id
.
iv_collect
).
setImageResource
(
R
.
mipmap
.
home_collect_img_1
)
}
else
{
holder
.
getView
<
ImageView
>(
R
.
id
.
iv_collect
).
setImageResource
(
R
.
mipmap
.
home_collect_img_0
)
}
holder
.
getView
<
View
>(
R
.
id
.
ll_collect
).
setOnClickListener
{
holder
.
getView
<
View
>(
R
.
id
.
ll_collect
).
setOnClickListener
{
if
(!
item
.
isCollect
)
{
if
(!
item
.
isCollect
)
{
mOnItemCollectClickListener
?.
onItemCollectClick
(
item
)
playCollectAnim
(
holder
.
getView
(
R
.
id
.
iv_collect
))
playCollectAnim
(
holder
.
getView
(
R
.
id
.
iv_collect
))
}
else
{
mOnItemCollectClickListener
?.
onItemCollectClick
(
item
)
mOnItemCollectClickListener
?.
onItemCollectClick
(
item
)
}
else
{
playCancelCollectAnim
(
holder
.
getView
(
R
.
id
.
iv_collect
))
playCancelCollectAnim
(
holder
.
getView
(
R
.
id
.
iv_collect
))
mOnItemCollectClickListener
?.
onItemCollectClick
(
item
)
}
}
}
}
}
}
...
@@ -63,7 +69,7 @@ class WatchRecordAdapter :
...
@@ -63,7 +69,7 @@ class WatchRecordAdapter :
}
}
interface
OnItemCollectClickListener
{
interface
OnItemCollectClickListener
{
fun
onItemCollectClick
(
bean
:
BookBean
)
fun
onItemCollectClick
(
bean
:
BookBean
)
}
}
}
}
\ No newline at end of file
book/app/src/main/res/layout/activity_watch_record.xml
View file @
31277fae
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"
@color/white
"
android:background=
"
#F9FAFB
"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<include
layout=
"@layout/header_layout"
/>
<include
layout=
"@layout/header_layout"
/>
...
...
book/app/src/main/res/layout/dialog_agreement.xml
View file @
31277fae
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"10dp"
android:layout_marginLeft=
"10dp"
android:layout_marginTop=
"10dp"
android:layout_marginTop=
"10dp"
android:text=
"
乐享宝盒
自动续费协议"
android:text=
"
趣无限
自动续费协议"
android:textColor=
"@color/black"
android:textColor=
"@color/black"
android:textSize=
"16sp"
android:textSize=
"16sp"
android:textStyle=
"bold"
></TextView>
android:textStyle=
"bold"
></TextView>
...
...
book/app/src/main/res/layout/dialog_permession.xml
View file @
31277fae
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
android:layout_marginTop=
"20dp"
android:layout_marginTop=
"20dp"
android:layout_marginRight=
"26dp"
android:layout_marginRight=
"26dp"
android:layout_marginBottom=
"30dp"
android:layout_marginBottom=
"30dp"
android:text=
"
乐享宝盒
用于提供实时精准的定位服务"
android:text=
"
趣无限
用于提供实时精准的定位服务"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
<TextView
<TextView
...
...
book/app/src/main/res/layout/dialog_powe2.xml
View file @
31277fae
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"20dp"
android:layout_marginTop=
"20dp"
android:text=
"欢迎使用
乐享宝盒
"
android:text=
"欢迎使用
趣无限
"
android:textColor=
"@color/black"
android:textColor=
"@color/black"
android:textSize=
"18sp"
android:textSize=
"18sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
...
...
book/app/src/main/res/layout/dialog_power.xml
View file @
31277fae
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
android:layout_marginLeft=
"16dp"
android:layout_marginLeft=
"16dp"
android:layout_marginTop=
"16dp"
android:layout_marginTop=
"16dp"
android:layout_marginRight=
"16dp"
android:layout_marginRight=
"16dp"
android:text=
"我们依据最新的法律,向您说明
乐享宝盒
软件的隐私政策,特向您推送本提示。请您阅读并充分理解相关条款。"
android:text=
"我们依据最新的法律,向您说明
趣无限
软件的隐私政策,特向您推送本提示。请您阅读并充分理解相关条款。"
android:textColor=
"@color/black"
android:textColor=
"@color/black"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
...
...
book/app/src/main/res/layout/item_watch_record.xml
View file @
31277fae
...
@@ -6,10 +6,11 @@
...
@@ -6,10 +6,11 @@
android:layout_margin=
"10dp"
android:layout_margin=
"10dp"
android:background=
"@drawable/shape_bg_write"
android:background=
"@drawable/shape_bg_write"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:padding=
"
8
dp"
>
android:padding=
"
10
dp"
>
<LinearLayout
<LinearLayout
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:orientation=
"vertical"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
>
android:layout_weight=
"1"
>
...
@@ -30,6 +31,8 @@
...
@@ -30,6 +31,8 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"2dp"
android:layout_marginTop=
"2dp"
android:textColor=
"@color/gray"
android:textColor=
"@color/gray"
android:maxLines=
"5"
android:ellipsize=
"end"
android:textSize=
"16sp"
android:textSize=
"16sp"
tools:text=
"123123123"
/>
tools:text=
"123123123"
/>
...
...
book/app/src/main/res/mipmap-xhdpi/ic_launcher_main.png
View replaced file @
b07b98a2
View file @
31277fae
14.4 KB
|
W:
|
H:
19.7 KB
|
W:
|
H:
2-up
Swipe
Onion skin
book/app/src/main/res/mipmap-xxhdpi/ic_launcher_main.png
View replaced file @
b07b98a2
View file @
31277fae
14.4 KB
|
W:
|
H:
19.7 KB
|
W:
|
H:
2-up
Swipe
Onion skin
book/app/src/main/res/values/strings.xml
View file @
31277fae
This diff is collapsed.
Click to expand it.
book/gradle.properties
View file @
31277fae
...
@@ -25,10 +25,10 @@ android.nonTransitiveRClass=true
...
@@ -25,10 +25,10 @@ android.nonTransitiveRClass=true
DEBUG_URL
=
"https://api.mints-id.com/camera-api/"
DEBUG_URL
=
"https://api.mints-id.com/camera-api/"
RELEASE_URL="https://api.mints-id.com/camera-api/"
RELEASE_URL="https://api.mints-id.com/camera-api/"
RELEASE_KEY_PASSWORD
=
mints
enjoybox
jia
RELEASE_KEY_PASSWORD
=
mints
infinitefun
jia
RELEASE_KEY_ALIAS
=
mints_
enjoybox
jia
RELEASE_KEY_ALIAS
=
mints_
infinitefun
jia
RELEASE_STORE_PASSWORD
=
mints
enjoybox
jia
RELEASE_STORE_PASSWORD
=
mints
infinitefun
jia
RELEASE_STORE_FILE
=
mints_
enjoybox
jia.jks
RELEASE_STORE_FILE
=
mints_
infinitefun
jia.jks
#ShareSDK
#ShareSDK
RELEASE_SHARESDK_KEY
=
396ef0a56a387
RELEASE_SHARESDK_KEY
=
396ef0a56a387
...
@@ -49,8 +49,8 @@ RELEASE_UMENG_KEY=65fbd75dcac2a664de0a755b
...
@@ -49,8 +49,8 @@ RELEASE_UMENG_KEY=65fbd75dcac2a664de0a755b
RELEASE_TALKING_DATA_KEY
=
"5D38F8DE90314DDC8D4375E0D1CCEF15"
RELEASE_TALKING_DATA_KEY
=
"5D38F8DE90314DDC8D4375E0D1CCEF15"
#Gromore
#Gromore
GROMORE_APP_ID="5
4712345
"
GROMORE_APP_ID="5
599044
"
GROMORE_SPLASH_CODE
=
"10
2721234
"
GROMORE_SPLASH_CODE
=
"10
3104878
"
GROMORE_VIDEO_CODE="102721234"
GROMORE_VIDEO_CODE="102721234"
GROMORE_EXPRESS_CODE
=
"102721234"
GROMORE_EXPRESS_CODE
=
"102721234"
GROMORE_MY_EXPRESS_CODE="102721234"
GROMORE_MY_EXPRESS_CODE="102721234"
...
...
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