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
3d487408
Commit
3d487408
authored
Jul 08, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update script
parent
8961b049
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
7 deletions
+38
-7
app_build.gradle
+35
-1
build.gradle
+1
-3
script/sdk_manager.py
+0
-2
src/main/java/com/common/base/BaseApplication.java
+1
-0
src/main/java/tech/starwin/LibConfig.java
+1
-1
No files found.
app_build.gradle
View file @
3d487408
...
...
@@ -25,11 +25,44 @@ android {
lintOptions
{
disable
'GoogleAppIndexingWarning'
}
productFlavors
{
website
{
//是否集成bugly
buildConfigField
'Boolean'
,
'LOAD_BUGLY'
,
'true'
dimension
"channel"
}
googleplay
{
buildConfigField
'Boolean'
,
'LOAD_BUGLY'
,
'false'
dimension
"channel"
}
}
}
dependencies
{
// getGradle().getStartParameter().getTaskRequests()[0]
exec
{
workingDir
=
"../lib_base/script"
if
(
"${tongdun_parent_key}"
.
size
()
>
5
)
{
implementation
(
name:
'android_spirit-20190220-2.0.0.1'
,
ext:
'aar'
)
implementation
'com.alibaba:fastjson:1.1.58.android'
executable
'sh'
args
"-c"
,
"./sdk_manager.py open TD"
}
else
{
executable
'sh'
args
"-c"
,
"./sdk_manager.py close TD"
}
}
// exec{
// workingDir = "../lib_base/script"
// def startParams = getGradle().getStartParameter().getTaskRequests()[0]
// if(startParams!=null && startParams.getArgs().toString().contains("Website")){
// implementation 'com.tencent.bugly:crashreport:3.0.0'
// executable 'sh' args "-c","./sdk_manager.py open BUGLY"
// }else{
// executable 'sh' args "-c","./sdk_manager.py close BUGLY"
// }
// }
implementation
project
(
':cash_plugin_toolbox'
)
}
...
...
@@ -41,3 +74,4 @@ walle {
// 渠道配置文件
channelFile
=
new
File
(
"${project.getProjectDir()}/channel"
)
}
build.gradle
View file @
3d487408
...
...
@@ -73,13 +73,11 @@ dependencies {
// api 'me.jessyan:autosize:1.0.6'
//同盾
//
compileOnly(name: 'android_spirit-20190220-2.0.0.1', ext: 'aar')
compileOnly
(
name:
'android_spirit-20190220-2.0.0.1'
,
ext:
'aar'
)
api
(
name:
'libfbref-release'
,
ext:
'aar'
)
api
'com.alibaba:fastjson:1.1.58.android'
//QMUI
api
'com.qmuiteam:qmui:1.1.10'
...
...
script/sdk_manager.py
View file @
3d487408
...
...
@@ -8,7 +8,6 @@ import sys
def
close_sdk
(
path
,
sdk
):
# print("processing content: %s..." % path)
with
open
(
path
,
"r"
,
encoding
=
"utf-8"
)
as
f
:
# readlines以列表的形式将文件读出
lines
=
f
.
readlines
()
with
open
(
path
,
"w"
,
encoding
=
"utf-8"
)
as
f_w
:
...
...
@@ -31,7 +30,6 @@ def open_sdk(path, sdk):
# print("processing content: %s..." % path)
code_mark
=
"//SDK-"
+
sdk
+
"-CODE ->"
with
open
(
path
,
"r"
,
encoding
=
"utf-8"
)
as
f
:
# readlines以列表的形式将文件读出
lines
=
f
.
readlines
()
with
open
(
path
,
"w"
,
encoding
=
"utf-8"
)
as
f_w
:
...
...
src/main/java/com/common/base/BaseApplication.java
View file @
3d487408
...
...
@@ -52,6 +52,7 @@ public abstract class BaseApplication extends MultiDexApplication {
@Override
public
void
onCreate
()
{
super
.
onCreate
();
// CrashReport.initCrashReport(getApplicationContext(), "注册时申请的APPID", false);
AppLanguageUtils
.
setLanguage
(
this
,
LibConfig
.
LANGUAGE
);
...
...
src/main/java/tech/starwin/LibConfig.java
View file @
3d487408
...
...
@@ -70,6 +70,7 @@ public class LibConfig {
public
static
String
APPSFLYER_DEV_KEY
;
public
static
String
XH_CHANNEL_NAME
;
public
static
boolean
IS_COLLECT_MODE
;
public
static
boolean
LOAD_BUGLY
=
false
;
public
static
String
TEST_TOKEN
;
public
static
String
LANGUAGE
=
"in"
;
public
static
int
HARVESTER_PORT
;
//
...
...
@@ -141,7 +142,6 @@ public class LibConfig {
}
/**
* init FirebaseRemoteConfig 1
*/
...
...
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