Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
Out
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
xjl
Out
Commits
e6cc32d1
Commit
e6cc32d1
authored
Dec 06, 2023
by
xujialang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除fastjson依赖
parent
40712597
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
build.gradle
app/build.gradle
+1
-1
DataManager.java
app/src/main/java/com/zl/sdk/data/DataManager.java
+2
-3
No files found.
app/build.gradle
View file @
e6cc32d1
...
@@ -35,7 +35,7 @@ dependencies {
...
@@ -35,7 +35,7 @@ dependencies {
// implementation 'com.global.wt:l1b2t123457j1:v28.5.1'
// implementation 'com.global.wt:l1b2t123457j1:v28.5.1'
implementation
'com.alibaba:fastjson:2.0.28'
//
implementation 'com.alibaba:fastjson:2.0.28'
implementation
platform
(
'com.google.firebase:firebase-bom:32.1.0'
)
implementation
platform
(
'com.google.firebase:firebase-bom:32.1.0'
)
implementation
'com.google.firebase:firebase-analytics'
implementation
'com.google.firebase:firebase-analytics'
...
...
app/src/main/java/com/zl/sdk/data/DataManager.java
View file @
e6cc32d1
...
@@ -6,7 +6,6 @@ import android.annotation.SuppressLint;
...
@@ -6,7 +6,6 @@ import android.annotation.SuppressLint;
import
android.content.Context
;
import
android.content.Context
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
com.alibaba.fastjson.JSON
;
import
com.google.gson.Gson
;
import
com.google.gson.Gson
;
import
com.zl.sdk.bean.IconOpt
;
import
com.zl.sdk.bean.IconOpt
;
import
com.zl.sdk.bean.OutAdData
;
import
com.zl.sdk.bean.OutAdData
;
...
@@ -60,7 +59,7 @@ public class DataManager {
...
@@ -60,7 +59,7 @@ public class DataManager {
OutAdData
outAdData
=
null
;
OutAdData
outAdData
=
null
;
if
(!
TextUtils
.
isEmpty
(
adConfigString
))
{
if
(!
TextUtils
.
isEmpty
(
adConfigString
))
{
outAdData
=
JSON
.
parseObject
(
adConfigString
,
OutAdData
.
class
);
outAdData
=
new
Gson
().
fromJson
(
adConfigString
,
OutAdData
.
class
);
LogUtil
.
d
(
TAG
+
"Ad配置 weatherAdData= "
+
outAdData
);
LogUtil
.
d
(
TAG
+
"Ad配置 weatherAdData= "
+
outAdData
);
if
(
outAdData
==
null
)
{
if
(
outAdData
==
null
)
{
...
@@ -141,7 +140,7 @@ public class DataManager {
...
@@ -141,7 +140,7 @@ public class DataManager {
if
(!
TextUtils
.
isEmpty
(
outConfigString
))
{
if
(!
TextUtils
.
isEmpty
(
outConfigString
))
{
LogUtil
.
d
(
TAG
+
"Out配置 SP数据:"
+
outConfigString
);
LogUtil
.
d
(
TAG
+
"Out配置 SP数据:"
+
outConfigString
);
outConfig
=
JSON
.
parseObject
(
outConfigString
,
OutConfig
.
class
);
outConfig
=
new
Gson
().
fromJson
(
outConfigString
,
OutConfig
.
class
);
if
(
outConfig
==
null
)
{
if
(
outConfig
==
null
)
{
SPUtils
.
getInstance
(
context
,
CONFIG_SP
).
remove
(
OUT_CONFIG
,
true
);
SPUtils
.
getInstance
(
context
,
CONFIG_SP
).
remove
(
OUT_CONFIG
,
true
);
...
...
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