Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/Kyson/AndroidGodEye into…
Browse files Browse the repository at this point in the history
… develop
  • Loading branch information
hui.zhao authored and hui.zhao committed Mar 25, 2020
2 parents 220369d + f28c555 commit e9ad0d9
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 25 deletions.
Binary file modified ART/android_god_eye_connect.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ It is divided into 3 parts:
|CPU|Cpu info of device and app|
|BATTERY|Battery info|
|FPS|Fps info|
|LEAK|Detect memory leak|
|LEAK_CANARY|Memory leak detector base on LeakCanary and Shark|
|HEAP|Heap memory|
|PSS|Pss|
|RAM|Ram|
Expand Down
2 changes: 1 addition & 1 deletion README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ AndroidGodEye是一个可以在PC浏览器中实时监控Android性能数据指
|CPU|手机和App Cpu检测|
|BATTERY|电池检测|
|FPS|帧率检测|
|LEAK|内存泄漏检测|
|LEAK_CANARY|基于LeakCanary和shark的内存泄漏检测|
|HEAP|运行堆内存占用检测|
|PSS|实际物理共享内存占用检测|
|RAM|手机内存|
Expand Down
5 changes: 0 additions & 5 deletions android-godeye-sample/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

-dontwarn okio.**
-dontwarn com.squareup.okhttp3.**
-keep class com.squareup.okhttp3.** { *; }
-keep interface com.squareup.okhttp3.** { *; }
-dontwarn javax.annotation.**
-dontwarn org.codehaus.**
-dontwarn org.conscrypt.**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-dontwarn leakcanary.**
-keep class leakcanary.**
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-dontwarn okio.**
-dontwarn com.squareup.okhttp3.**
-keep class com.squareup.okhttp3.** { *; }
-keep interface com.squareup.okhttp3.** { *; }
1 change: 1 addition & 0 deletions android-godeye/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ android {
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
}
compileOptions {
targetCompatibility = "8"
Expand Down
3 changes: 3 additions & 0 deletions android-godeye/consumer-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-dontwarn leakcanary.**
-dontwarn okio.**
-keep class leakcanary.**
1 change: 1 addition & 0 deletions android-godeye/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

17 changes: 0 additions & 17 deletions android-godeye/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,6 @@
android:exported="false"
android:multiprocess="true" />

<!-- <receiver-->
<!-- android:name=".internal.modules.leakdetector.debug.LeakOutputReceiver"-->
<!-- android:enabled="true"-->
<!-- android:exported="false">-->
<!-- <intent-filter>-->
<!-- <action android:name="com.ctrip.ibu.leakcanary.output.start" />-->
<!-- <action android:name="com.ctrip.ibu.leakcanary.output.progress" />-->
<!-- <action android:name="com.ctrip.ibu.leakcanary.output.retry" />-->
<!-- <action android:name="com.ctrip.ibu.leakcanary.output.done" />-->
<!-- </intent-filter>-->
<!-- </receiver>-->

<service
android:name=".internal.modules.leakdetector.debug.DebugHeapAnalyzerService"
android:enabled="false"
android:process=":leakcanary" />

<service
android:name=".internal.notification.LocalNotificationListenerService"
android:enabled="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ public class LeakConfig implements Serializable {
@Deprecated
public String leakRefInfoProvider;

/**
* @deprecated
*/
@Deprecated
public LeakConfig(boolean debug, boolean debugNotification, String leakRefInfoProvider) {
this.debug = debug;
}
Expand All @@ -30,6 +34,10 @@ public LeakConfig() {
this.debug = true;
}

public LeakConfig(boolean debug) {
this.debug = debug;
}

public boolean debug() {
return debug;
}
Expand All @@ -43,6 +51,7 @@ public boolean debugNotification() {
}

// LeakRefInfoProvider

/**
* @deprecated
*/
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ BUILD_TOOLS_VERSION=29.0.2
MIN_SDK_VERSION=16
TARGET_SDK_VERSION=29

USE_ALIYUN_REPO=true
USE_ALIYUN_REPO=false

0 comments on commit e9ad0d9

Please sign in to comment.