Skip to content

Commit 14ff3dd

Browse files
committed
补提交
1 parent eed94de commit 14ff3dd

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

app/src/main/java/com/rae/cnblogs/CnblogsApplication.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import com.tencent.bugly.Bugly;
1414
import com.tencent.tinker.loader.app.TinkerApplication;
1515
import com.tencent.tinker.loader.shareutil.ShareConstants;
16-
import com.umeng.analytics.MobclickAgent;
1716
import com.umeng.socialize.PlatformConfig;
1817
import com.umeng.socialize.UMShareAPI;
1918

@@ -36,14 +35,12 @@ public void onCreate() {
3635
// 日志上报
3736
Bugly.init(getApplication(), BuildConfig.BUGLY_APP_ID, BuildConfig.DEBUG);
3837
if (!LeakCanary.isInAnalyzerProcess(this)) {
39-
// LeakCanary.install(this);
38+
LeakCanary.install(this);
4039
}
4140

4241
// LeanCloud用户反馈初始化,要在主线程总
4342
AVOSCloud.initialize(getApplication(), BuildConfig.LEAN_CLOUD_APP_ID, BuildConfig.LEAN_CLOUD_APP_KEY);
4443
FeedbackThread.getInstance();
45-
MobclickAgent.setDebugMode(BuildConfig.DEBUG);
46-
// SkinCompatManager.withoutActivity(getApplication()).loadSkin("night", SkinCompatManager.SKIN_LOADER_STRATEGY_BUILD_IN);
4744

4845
// 一些要求不高的初始化操作放到线程中去操作
4946
new Thread(new Runnable() {

app/src/main/res/layout/activity_setting.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@
9999
style="@style/ItemStyle"
100100
android:layout_width="match_parent"
101101
android:layout_height="wrap_content"
102-
android:gravity="center_vertical">
102+
android:gravity="center_vertical"
103+
android:visibility="gone">
103104

104105
<TextView
105106
style="@style/ItemTitleStyle"

app/tinker-support.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apply plugin: 'com.tencent.bugly.tinker-support'
22

3-
def bakPath = file("${buildDir}")
3+
def bakPath = file("C:\\rae\\android-cnblogs-v1.0.0\\app\\build\\bakApk\\")
44

55
/**
66
* 此处填写每次构建生成的基准包目录
77
*/
8-
def baseApkDir = "basic"
9-
def apkName = "app-v1.0.0.apk"
8+
def baseApkDir = "app-0820-22-37-32"
9+
def apkName = "app-huawei-release.apk"
1010

1111
/**
1212
* 对于插件各参数的详细解析请参考
@@ -37,10 +37,11 @@ tinkerSupport {
3737
// 构建基准包和补丁包都要指定不同的tinkerId,并且必须保证唯一性
3838
// 基类版本:cnblogs-basic-1.0.0
3939
// 补丁版本:cnblogs-path-1.0.0-001
40+
// tinkerId = "cnblogs-basic-1.0.0"
4041
tinkerId = "cnblogs-path-1.0.0-001"
4142

4243
// 构建多渠道补丁时使用
43-
// buildAllFlavorsDir = "${bakPath}/${baseApkDir}"
44+
buildAllFlavorsDir = "${bakPath}/${baseApkDir}"
4445

4546
// 是否启用加固模式,默认为false.(tinker-spport 1.0.7起支持)
4647
// isProtectedApp = true

0 commit comments

Comments
 (0)