Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
e751e5f2
Commit
e751e5f2
authored
Apr 01, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
ffff8761
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
+12
-13
build.gradle
+2
-3
src/main/java/tech/starwin/LibConfig.java
+10
-10
No files found.
build.gradle
View file @
e751e5f2
...
...
@@ -43,7 +43,7 @@ repositories {
}
dependencies
{
api
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
api
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
,
"*.aar"
])
testImplementation
'junit:junit:4.12'
// noinspection GradleCompatible
androidTestImplementation
'com.android.support.test:runner:1.0.2'
...
...
@@ -69,8 +69,7 @@ dependencies {
// api 'me.jessyan:autosize:1.0.6'
//同盾
// api(name: 'android_spirit-20190220-2.0.0.1', ext: 'aar')
// api 'com.alibaba:fastjson:1.1.58.android'
api
'com.alibaba:fastjson:1.1.58.android'
//QMUI
api
'com.qmuiteam:qmui:1.1.10'
...
...
src/main/java/tech/starwin/LibConfig.java
View file @
e751e5f2
...
...
@@ -21,8 +21,8 @@ import com.scwang.smartrefresh.layout.header.ClassicsHeader;
import
org.litepal.LitePal
;
//SDK-TD-START
//SDK-TD-CODE
import cn.fraudmetrix.octopus.aspirit.main.OctopusManager;
//SDK-TD-
CODE //SDK-TD-
END
import
cn.fraudmetrix.octopus.aspirit.main.OctopusManager
;
//SDK-TD-END
import
tech.starwin.network.Gateway
;
import
tech.starwin.utils.PreferencesManager
;
...
...
@@ -168,14 +168,14 @@ public class LibConfig {
private
static
void
initTD
()
{
//SDK-TD-START
//SDK-TD-CODE
if (!TextUtils.isEmpty(TONGDUN_PARENT_CODE) && !TextUtils.isEmpty(TONGDUN_PARENT_KEY)) {
//SDK-TD-CODE
OctopusManager.getInstance().init(CONTEXT, TONGDUN_PARENT_CODE, TONGDUN_PARENT_KEY, TONGDUN_APP_NAME);
//SDK-TD-CODE
OctopusManager.getInstance().setPrimaryColorResId(MAIN_COLOR);
//SDK-TD-CODE
OctopusManager.getInstance().setTitleColorResId(R.color.white);
//SDK-TD-CODE
OctopusManager.getInstance().setShowWarnDialog(true);
//SDK-TD-CODE
OctopusManager.getInstance().setStatusBarBg(MAIN_COLOR);
//SDK-TD-CODE
}
//SDK-TD-CODE
//SDK-TD-END
if
(!
TextUtils
.
isEmpty
(
TONGDUN_PARENT_CODE
)
&&
!
TextUtils
.
isEmpty
(
TONGDUN_PARENT_KEY
))
{
OctopusManager
.
getInstance
().
init
(
CONTEXT
,
TONGDUN_PARENT_CODE
,
TONGDUN_PARENT_KEY
,
TONGDUN_APP_NAME
);
OctopusManager
.
getInstance
().
setPrimaryColorResId
(
MAIN_COLOR
);
OctopusManager
.
getInstance
().
setTitleColorResId
(
R
.
color
.
white
);
OctopusManager
.
getInstance
().
setShowWarnDialog
(
true
);
OctopusManager
.
getInstance
().
setStatusBarBg
(
MAIN_COLOR
);
}
//SDK-TD-END
}
...
...
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