Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version:3.5.0 #193

Merged
merged 31 commits into from
Jun 21, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
ac86050
Version:3.5.0
cpacm Apr 19, 2023
087cf8d
Version:3.5.0
cpacm Apr 19, 2023
98a5f48
fix:store application context
cpacm Apr 19, 2023
6ffd70c
feat: add autotracker click ignore interface.
cpacm Apr 26, 2023
fac9364
feat: update logger output.
cpacm Apr 27, 2023
028dcd3
feat: update logger output.
cpacm Apr 27, 2023
b5f41f3
fix: try catch Tipview remove
cpacm Apr 28, 2023
ec904ff
feat:update global viewtree observer;
cpacm May 8, 2023
2182a20
fix:33 -> build version O
cpacm May 8, 2023
b9920a7
feat:add unregister method for TrackerRegistry
cpacm May 10, 2023
27e032e
fix:ScreenshotUtil logic
cpacm May 10, 2023
59afc7d
fix:call doDeepLinkByUrl NPE when AdvertModule not registered.
cpacm May 11, 2023
3db13f0
feat:add log message
cpacm May 15, 2023
ee4d629
feat: add autotrack option for all inject.
cpacm May 16, 2023
435b6c2
feat: add materialButtonToggleGroup inject point.
cpacm May 17, 2023
5abbeb0
feat: add contextMenuItem inject point.
cpacm May 18, 2023
900fa6d
feat: add ViewChange Injector.
cpacm May 19, 2023
abfe2be
feat: add more autotracker options.
cpacm May 19, 2023
bb992db
feat: rewrite screenshot logic.
cpacm May 23, 2023
1ea107d
feat: add more circle view.
cpacm May 24, 2023
cce5949
unit test
cpacm Jun 14, 2023
7c01923
update circler node type
cpacm Jun 15, 2023
1458463
checkstyle
cpacm Jun 16, 2023
434a4ef
move compoundButton from change to click
cpacm Jun 16, 2023
952b82d
fix widget content value
cpacm Jun 16, 2023
cc92ff9
viewOnClick => public
cpacm Jun 16, 2023
a9be51e
1. imeiEnabled default false
cpacm Jun 19, 2023
a8b0c19
1. return imei after getImei
cpacm Jun 20, 2023
3bb8a77
fix wslogger log logic
cpacm Jun 20, 2023
9af39f8
fix textview content
cpacm Jun 21, 2023
5a98c21
release 3.5.0
Jun 21, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix wslogger log logic
  • Loading branch information
cpacm committed Jun 20, 2023
commit 3bb8a77d3a87e255c4243736fea9f9cc2e05a817
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ public void openLog() {
logHt.start();
sLogHandler = new Handler(logHt.getLooper());
}
//send log 2 times per 1 second
sLogHandler.postDelayed(mLogRunnable, 500);
//send log 1 times per 1 second
sLogHandler.postDelayed(mLogRunnable, 1000);
}

public void closeLog() {
Expand All @@ -81,7 +81,7 @@ public void printOut() {
}
}
sLogHandler.removeCallbacks(mLogRunnable);
sLogHandler.postDelayed(mLogRunnable, 500);
sLogHandler.postDelayed(mLogRunnable, 1000);
}

public interface Callback {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ public void sendScreenshotRefreshed(String screenshotBase64, float scale) {
builder.build(new Callback<DebuggerScreenshot>() {
@Override
public void onSuccess(DebuggerScreenshot result) {
Logger.d(TAG, "Create circle screenshot successfully");
if (result != null && mListener != null) mListener.onScreenshotRefreshed(result);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import android.text.TextUtils;
import android.util.Log;

import com.growingio.android.sdk.track.log.Logger;
import com.growingio.android.sdk.track.utils.ThreadUtils;
import com.growingio.android.sdk.track.webservices.message.QuitMessage;
import com.growingio.android.sdk.track.webservices.message.ReadyMessage;
Expand Down Expand Up @@ -55,11 +54,10 @@ public void sendMessage(String msg) {

@Override
public void onOpen(WebSocket webSocket, Response response) {
Logger.d(TAG, "Created webSocket successfully");
if (webSocket.send(ReadyMessage.createMessage().toJSONObject().toString())) {
this.webSocket = webSocket;
} else {
Logger.e(TAG, "send ready message failed");
Log.e(TAG, "send ready message failed");
ThreadUtils.runOnUiThread(new Runnable() {
@Override
public void run() {
Expand All @@ -74,7 +72,7 @@ public void onMessage(WebSocket webSocket, String text) {
if (TextUtils.isEmpty(text) || TextUtils.isEmpty(text.trim())) {
return;
}
Logger.d(TAG, "Received message is " + text);
Log.d(TAG, "Received message is " + text);

if (text.contains("had disconnected")) {
ThreadUtils.runOnUiThread(() -> webSocketListener.onQuited());
Expand All @@ -84,7 +82,7 @@ public void onMessage(WebSocket webSocket, String text) {
JSONObject message = new JSONObject(text);
String msgType = message.optString("msgType");
if (ReadyMessage.MSG_TYPE.equals(msgType)) {
Logger.d(TAG, "Web is ready");
Log.d(TAG, "Web is ready");
ThreadUtils.runOnUiThread(new Runnable() {
@Override
public void run() {
Expand All @@ -93,7 +91,7 @@ public void run() {
});
return;
} else if (QuitMessage.MSG_TYPE.equals(msgType)) {
Logger.d(TAG, "Web is quited");
Log.d(TAG, "Web is quited");
ThreadUtils.runOnUiThread(new Runnable() {
@Override
public void run() {
Expand All @@ -103,7 +101,7 @@ public void run() {
return;
}
} catch (JSONException e) {
Logger.e(TAG, e);
Log.e(TAG, e.getMessage());
}
ThreadUtils.runOnUiThread(new Runnable() {
@Override
Expand All @@ -115,7 +113,7 @@ public void run() {

@Override
public void onClosed(WebSocket webSocket, int code, String reason) {
Logger.e(TAG, "webSocket on onClosed, reason: $reason");
Log.e(TAG, "webSocket on onClosed, reason: " + reason);
ThreadUtils.runOnUiThread(new Runnable() {
@Override
public void run() {
Expand All @@ -126,7 +124,7 @@ public void run() {

@Override
public void onFailure(WebSocket webSocket, Throwable t, Response response) {
Logger.e(TAG, t, "webSocket on onFailure, reason: ");
Log.e(TAG, "webSocket on onFailure, reason: " + t.getMessage());
ThreadUtils.runOnUiThread(new Runnable() {
@Override
public void run() {
Expand Down