优化bugly更新配置
This commit is contained in:
@@ -49,6 +49,7 @@ import com.netease.nimlib.sdk.uinfo.model.NimUserInfo;
|
|||||||
import com.orhanobut.logger.Logger;
|
import com.orhanobut.logger.Logger;
|
||||||
import com.qiyukf.unicorn.api.Unicorn;
|
import com.qiyukf.unicorn.api.Unicorn;
|
||||||
|
|
||||||
|
import com.tencent.bugly.beta.Beta;
|
||||||
import com.tencent.bugly.crashreport.CrashReport;
|
import com.tencent.bugly.crashreport.CrashReport;
|
||||||
import com.tongdaxing.erban.upgrade.AppUpgradeHelper;
|
import com.tongdaxing.erban.upgrade.AppUpgradeHelper;
|
||||||
import com.trello.rxlifecycle3.android.ActivityEvent;
|
import com.trello.rxlifecycle3.android.ActivityEvent;
|
||||||
@@ -510,6 +511,7 @@ public class MainActivity extends BaseMvpActivity<IMainView, MainPresenter>
|
|||||||
userLivingView.start();
|
userLivingView.start();
|
||||||
}
|
}
|
||||||
EventBus.getDefault().post(new HomeDynamicEvent(false));
|
EventBus.getDefault().post(new HomeDynamicEvent(false));
|
||||||
|
Beta.checkUpgrade();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -512,7 +512,7 @@ public class XChatApplication extends Application {
|
|||||||
* true表示初始化时自动检查升级;
|
* true表示初始化时自动检查升级;
|
||||||
* false表示不会自动检查升级,需要手动调用Beta.checkUpgrade()方法;
|
* false表示不会自动检查升级,需要手动调用Beta.checkUpgrade()方法;
|
||||||
*/
|
*/
|
||||||
// Beta.autoCheckUpgrade = true;
|
Beta.autoCheckUpgrade = false;
|
||||||
/**
|
/**
|
||||||
* 设置升级检查周期为60s(默认检查周期为0s),60s内SDK不重复向后台请求策略);
|
* 设置升级检查周期为60s(默认检查周期为0s),60s内SDK不重复向后台请求策略);
|
||||||
*/
|
*/
|
||||||
@@ -521,7 +521,7 @@ public class XChatApplication extends Application {
|
|||||||
/**
|
/**
|
||||||
* 设置启动延时为1s(默认延时3s),APP启动1s后初始化SDK,避免影响APP启动速度;
|
* 设置启动延时为1s(默认延时3s),APP启动1s后初始化SDK,避免影响APP启动速度;
|
||||||
*/
|
*/
|
||||||
Beta.initDelay = 5 * 1000;
|
Beta.initDelay = 6 * 1000;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置sd卡的Download为更新资源保存目录;
|
* 设置sd卡的Download为更新资源保存目录;
|
||||||
|
@@ -139,6 +139,7 @@ public class ChargeActivity extends BaseActivity {
|
|||||||
tvAgreement = findViewById(R.id.tv_agreement);
|
tvAgreement = findViewById(R.id.tv_agreement);
|
||||||
iv_type_second = findViewById(R.id.iv_type_second);
|
iv_type_second = findViewById(R.id.iv_type_second);
|
||||||
tv_type_first = findViewById(R.id.tv_type_first);
|
tv_type_first = findViewById(R.id.tv_type_first);
|
||||||
|
tv_type_second = findViewById(R.id.tv_type_second);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void selectPayChannelDisplay(String payChannel) {
|
public void selectPayChannelDisplay(String payChannel) {
|
||||||
|
Reference in New Issue
Block a user