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
f444c027
Commit
f444c027
authored
Jul 08, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
load bugly for website
parent
b4109455
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
18 deletions
+16
-18
app_build.gradle
+8
-14
build.gradle
+4
-0
src/main/java/com/common/base/BaseApplication.java
+3
-2
src/main/java/tech/starwin/LibConfig.java
+1
-2
No files found.
app_build.gradle
View file @
f444c027
...
...
@@ -27,41 +27,35 @@ android {
}
productFlavors
{
website
{
//是否集成bugly
buildConfigField
'Boolean'
,
'LOAD_BUGLY'
,
'true'
buildConfigField
(
'String'
,
'BUGLY_APPID'
,
"${bugly_appid}"
)
dimension
"channel"
}
googleplay
{
buildConfigField
'Boolean'
,
'LOAD_BUGLY'
,
'false'
buildConfigField
(
'String'
,
'BUGLY_APPID'
,
"\"\""
)
dimension
"channel"
}
}
}
dependencies
{
exec
{
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"
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"
// }
// }
websiteImplementation
'com.tencent.bugly:crashreport:3.0.0'
implementation
project
(
':cash_plugin_toolbox'
)
}
...
...
build.gradle
View file @
f444c027
...
...
@@ -16,6 +16,7 @@ android {
//Api
buildConfigField
(
'String'
,
'FACEBOOK_APP_ID'
,
"\"${facebook_app_id}\""
)
buildConfigField
(
'String'
,
'ACCOUNT_KIT_CLIENT_TOKEN'
,
"\"${account_kit_client_token}\""
)
}
buildTypes
{
release
{
...
...
@@ -76,6 +77,9 @@ dependencies {
//同盾
compileOnly
(
name:
'android_spirit-20190220-2.0.0.1'
,
ext:
'aar'
)
//bugly
compileOnly
'com.tencent.bugly:crashreport:3.0.0'
api
(
name:
'libfbref-release'
,
ext:
'aar'
)
...
...
src/main/java/com/common/base/BaseApplication.java
View file @
f444c027
...
...
@@ -6,6 +6,7 @@ import android.content.res.Configuration;
import
android.os.Bundle
;
import
android.support.multidex.MultiDex
;
import
android.support.multidex.MultiDexApplication
;
import
android.text.TextUtils
;
import
android.util.Log
;
import
android.view.Gravity
;
import
android.view.View
;
...
...
@@ -18,11 +19,13 @@ import com.jcminarro.philology.Philology;
import
com.jcminarro.philology.PhilologyInterceptor
;
import
com.jcminarro.philology.PhilologyRepository
;
import
com.jcminarro.philology.PhilologyRepositoryFactory
;
import
com.tencent.bugly.crashreport.CrashReport
;
import
org.jetbrains.annotations.NotNull
;
import
org.jetbrains.annotations.Nullable
;
import
io.github.inflationx.viewpump.ViewPump
;
import
tech.starwin.BuildConfig
;
import
tech.starwin.LibConfig
;
import
tech.starwin.network.Gateway
;
import
tech.starwin.utils.InstallReferrerHelper
;
...
...
@@ -52,8 +55,6 @@ public abstract class BaseApplication extends MultiDexApplication {
@Override
public
void
onCreate
()
{
super
.
onCreate
();
// CrashReport.initCrashReport(getApplicationContext(), "注册时申请的APPID", false);
AppLanguageUtils
.
setLanguage
(
this
,
LibConfig
.
LANGUAGE
);
PhilologyRepositoryFactory
repositoryFactory
=
locale
->
new
DefaultPhilologyRepository
();
...
...
src/main/java/tech/starwin/LibConfig.java
View file @
f444c027
...
...
@@ -50,7 +50,6 @@ public class LibConfig {
public
static
String
AGREEMENT_URL
;
public
static
String
REPAYMENT_H5
;
public
static
String
APP_URL
;
public
static
String
BUGLY_APP_ID
;
public
static
String
PRIVACY_POLICY
;
public
static
String
HOTLINE
;
public
static
String
LOAN_AGREEMENT
;
...
...
@@ -60,6 +59,7 @@ public class LibConfig {
public
static
String
GATEWAY_HOST_G0
;
public
static
String
GATEWAY_HOST_G1
;
public
static
String
HARVESTER_IP
;
public
static
String
BUGLY_APPID
;
public
static
String
ZENDESK_URL
;
public
static
String
ZENDESK_APP_ID
;
public
static
String
ZENDESK_OAUTH_CLIENT_ID
;
...
...
@@ -70,7 +70,6 @@ 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
;
//
...
...
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