File tree 7 files changed +32
-11
lines changed
src/main/java/home/smart/fly/animations/ui/activity
7 files changed +32
-11
lines changed Original file line number Diff line number Diff line change @@ -208,8 +208,11 @@ dependencies {
208
208
209
209
// https://github.com/didi/DoraemonKit
210
210
211
- debugImplementation " com.didichuxing.doraemonkit:doraemonkit:$doraemonkit "
212
- releaseImplementation " com.didichuxing.doraemonkit:doraemonkit-no-op:$doraemonkit "
211
+ // debugImplementation "com.didichuxing.doraemonkit:doraemonkit:$doraemonkit"
212
+ debugImplementation (" com.didichuxing.doraemonkit:dokitx:$doraemonkit " ) {
213
+ exclude group : " org.jsoup" , module : " jsoup"
214
+ }
215
+ releaseImplementation " com.didichuxing.doraemonkit:dokitx-no-op:$doraemonkit "
213
216
214
217
// https://github.com/skydoves/TransformationLayout
215
218
implementation " com.github.skydoves:transformationlayout:1.0.5"
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ dokitExt {
24
24
// 默认值为 5ms 小于该值的函数在调用栈中不显示
25
25
thresholdTime 10
26
26
// 调用栈函数入口
27
- enterMethods = [" com.didichuxing.doraemondemo.MainDebugActivity.test1 " ]
27
+ enterMethods = [" home.smart.fly.animations.AppStartActivity.onCreate " ]
28
28
}
29
29
// 普通模式配置
30
30
normalMethod {
Original file line number Diff line number Diff line change @@ -35,7 +35,12 @@ class OrientationActivity : AppCompatActivity() {
35
35
.observeOn(AndroidSchedulers .mainThread())
36
36
.subscribe {
37
37
val xy = IntArray (2 )
38
+ val start = System .nanoTime()
38
39
pos_tv.getLocationOnScreen(xy)
40
+ Log .e(
41
+ " zyq" ,
42
+ " cost time = ${System .nanoTime() - start} "
43
+ )
39
44
pos_tv.text = " position info: x=${xy[0 ]} ,y=${xy[1 ]} "
40
45
41
46
val hour = TimeUnit .DAYS .toHours(1 )
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ buildscript {
25
25
// jacoco https://github.com/arturdm/jacoco-android-gradle-plugin
26
26
classpath ' com.dicedmelon.gradle:jacoco-android:0.1.4'
27
27
// https://github.com/didi/DoraemonKit
28
- classpath " com.didichuxing.doraemonkit:doraemonkit -plugin:$doraemonkit "
28
+ classpath " com.didichuxing.doraemonkit:dokitx -plugin:$doraemonkit "
29
29
}
30
30
31
31
Original file line number Diff line number Diff line change 13
13
core_ktx = ' 1.3.1'
14
14
15
15
kotlin_version = ' 1.4.10'
16
- gradle_version = ' 4.1.0 '
16
+ gradle_version = ' 4.1.1 '
17
17
18
- doraemonkit = ' 3.2.0 '
18
+ doraemonkit = ' 3.3.4 '
19
19
20
20
glide = ' 4.11.0'
21
21
arouter_api = ' 1.5.0'
Original file line number Diff line number Diff line change @@ -34,11 +34,24 @@ kotlin.code.style=official
34
34
android.useAndroidX =true
35
35
android.enableJetifier =true
36
36
# ./gradlew task_name -Dorg.gradle.daemon=false -Dorg.gradle.debug=true 可以开启调试
37
-
38
37
IMITATE_DEBUG_STORE_FILE =../imitation.jks
39
38
IMITATE_DEBUG_KEY_ALIAS =imitate
40
39
IMITATE_DEBUG_STORE_PASSWORD =123456
41
40
IMITATE_DEBUG_KEY_PASSWORD =123456
42
-
43
-
41
+ # dokit全局配置
42
+ # 插件开关
43
+ DOKIT_PLUGIN_SWITCH =true
44
+ # DOKIT读取三方库会和booster冲突 如果你的项目中也集成了booster 建议将开关改成false
45
+ DOKIT_THIRD_LIB_SWITCH =true
46
+ # 插件日志
47
+ DOKIT_LOG_SWITCH =true
48
+ # 自定义Webview的全限定名 主要是作用于h5 js抓包和数据mock
49
+ DOKIT_WEBVIEW_CLASS_NAME =com/didichuxing/doraemonkit/widget/webview/MyWebView
50
+ # dokit 慢函数开关
51
+ DOKIT_METHOD_SWITCH =true
52
+ # dokit 函数调用栈层级
53
+ DOKIT_METHOD_STACK_LEVEL =4
54
+ # 0:默认模式 打印函数调用栈 需添加指定入口 默认为application onCreate 和attachBaseContext
55
+ # 1:普通模式 运行时打印某个函数的耗时 全局业务代码函数插入
56
+ DOKIT_METHOD_STRATEGY =0
44
57
Original file line number Diff line number Diff line change @@ -171,8 +171,8 @@ dependencies {
171
171
172
172
// https://github.com/didi/DoraemonKit
173
173
174
- debugImplementation " com.didichuxing.doraemonkit:doraemonkit :$doraemonkit "
175
- releaseImplementation " com.didichuxing.doraemonkit:doraemonkit -no-op:$doraemonkit "
174
+ debugImplementation " com.didichuxing.doraemonkit:dokitx :$doraemonkit "
175
+ releaseImplementation " com.didichuxing.doraemonkit:dokitx -no-op:$doraemonkit "
176
176
177
177
implementation ' com.github.wanglu1209:PhotoViewer:0.50'
178
178
You can’t perform that action at this time.
0 commit comments