Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
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
杨凯
YDL-Component-Medical
Commits
da7d4f2b
Commit
da7d4f2b
authored
Apr 22, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:MMKV引入
parent
873819af
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
3 deletions
+8
-3
config.gradle
config.gradle
+3
-2
PublishQuestionAndTrendFragment.java
m-dynamic/src/main/java/com/yidianling/dynamic/publishTrend/fragment/PublishQuestionAndTrendFragment.java
+2
-1
build.gradle
ydl-platform/build.gradle
+1
-0
YdlRepository.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/app/YdlRepository.kt
+2
-0
No files found.
config.gradle
View file @
da7d4f2b
...
...
@@ -33,7 +33,7 @@ ext {
//-------------- 功能组件 --------------
//第一步
"ydl-platform"
:
"0.0.40.
89
"
,
"ydl-platform"
:
"0.0.40.
92
"
,
//第二步 若干
"ydl-webview"
:
"0.0.38.61"
,
...
...
@@ -116,7 +116,7 @@ ext {
//-------------- 功能组件 --------------
//第一步
"ydl-platform"
:
"0.0.40.
89
"
,
"ydl-platform"
:
"0.0.40.
92
"
,
//第二步 若干
"ydl-webview"
:
"0.0.38.61"
,
...
...
@@ -261,6 +261,7 @@ ext {
"ydl-js"
:
"com.ydl:ydl-js:1.0.7-SNAPSHOT@aar"
,
"ydl-router"
:
"com.ydl:ydl-router:1.4.1-SNAPSHOT@aar"
,
"xrecyclerview"
:
"com.ydl:xrecyclerview:1.0.0-SNAPSHOT@aar"
,
"mmkv"
:
"com.tencent:mmkv-static:1.2.6"
,
"arouter-api"
:
"com.alibaba:arouter-api:1.4.1"
,
"arouter-compiler"
:
"com.alibaba:arouter-compiler:1.2.2"
,
"exoplayer"
:
"com.google.android.exoplayer:exoplayer:2.9.0"
,
...
...
m-dynamic/src/main/java/com/yidianling/dynamic/publishTrend/fragment/PublishQuestionAndTrendFragment.java
View file @
da7d4f2b
...
...
@@ -42,6 +42,7 @@ import android.widget.TextView;
import
com.luck.picture.lib.entity.LocalMedia
;
import
com.luck.picture.lib.listener.OnResultCallbackListener
;
import
com.tbruyelle.rxpermissions2.RxPermissions
;
import
com.tencent.mmkv.MMKV
;
import
com.ydl.webview.H5Params
;
import
com.ydl.webview.NewH5Activity
;
import
com.ydl.ydl_image.module.GlideApp
;
...
...
@@ -227,7 +228,7 @@ public class PublishQuestionAndTrendFragment extends BaseFragment implements Vie
public
void
onEventMainThread
(
DynamicSaveEvent
event
)
{
//保留草稿数据 标题、内容、话题、是否专家可见、是否匿名、图片
// MMKV.defaultMMKV().encode()
}
@Override
public
void
initDataAndEventLazy
()
{
...
...
ydl-platform/build.gradle
View file @
da7d4f2b
...
...
@@ -144,6 +144,7 @@ dependencies {
api
rootProject
.
ext
.
dependencies
[
"support-multidex"
]
api
rootProject
.
ext
.
dependencies
[
"tablayout"
]
api
rootProject
.
ext
.
dependencies
[
"xrecyclerview"
]
api
rootProject
.
ext
.
dependencies
[
"mmkv"
]
api
rootProject
.
ext
.
dependencies
[
"flowlayout"
]
api
rootProject
.
ext
.
dependencies
[
"androidanimations"
]
//====================Tools====================
...
...
ydl-platform/src/main/java/com/ydl/ydlcommon/app/YdlRepository.kt
View file @
da7d4f2b
...
...
@@ -5,6 +5,7 @@ import android.app.Application
import
android.os.Build
import
com.alibaba.android.arouter.launcher.ARouter
import
com.bun.miitmdid.core.JLibrary
import
com.tencent.mmkv.MMKV
import
com.ydl.devicesidlib.DeviceIDHelper
import
com.ydl.ydlcommon.base.BaseApp
import
com.ydl.ydlcommon.data.http.UpLoadLogUtils
...
...
@@ -31,6 +32,7 @@ object YdlRepository {
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
P
)
{
JLibrary
.
InitEntry
(
app
)
}
MMKV
.
initialize
(
app
);
LogHelper
.
getInstance
().
deleteExpireLogSync
()
LogUtil
.
debug
=
BaseApp
.
instance
.
getGlobalConfig
().
appDebug
com
.
yidianling
.
common
.
tools
.
LogUtil
.
debug
=
BaseApp
.
instance
.
getGlobalConfig
().
appDebug
...
...
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