Commit f444c027 by sikang

load bugly for website

parent b4109455
......@@ -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"
// }
// def startParams = getGradle().getStartParameter().getTaskRequests()[0]
// if(startParams!=null && startParams.getArgs().toString().contains("Website")){
// }
websiteImplementation 'com.tencent.bugly:crashreport:3.0.0'
implementation project(':cash_plugin_toolbox')
}
......
......@@ -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')
......
......@@ -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();
......
......@@ -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;//
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment