-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDeployGateEvent.java
121 lines (105 loc) · 4.82 KB
/
DeployGateEvent.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
package com.deploygate.service;
public interface DeployGateEvent {
// old format is too ambiguous so we are going to make it clear and safer.
//
// all values should be <namespace>.<content> since writing this comment :)
//
// namespace:
// ACTION => a
// EXTRA => e
//
// content:
// should be hyphen-separated string and be lower cases
public static final String ACTION_INIT = "init";
public static final String ACTION_UPDATE_AVAILABLE = "update";
public static final String ACTION_ENABLE_LOGCAT = "enableLogcat";
public static final String ACTION_DISABLE_LOGCAT = "disableLogcat";
public static final String ACTION_ONESHOT_LOGCAT = "oneshotLogcat";
public static final String ACTION_SEND_LOGCAT = "sendLogcat";
public static final String ACTION_SEND_CRASH_REPORT = "reportCrash";
public static final String ACTION_SEND_CUSTOM_LOG = "customLog";
public static final String ACTION_INSTALL_UPDATE = "installUpdate";
public static final String ACTION_OPEN_APP_DETAIL = "openAppDetail";
public static final String ACTION_OPEN_COMMENTS = "openComments";
public static final String ACTION_COMPOSE_COMMENT = "composeComment";
public static final String ACTION_VISIBILITY_EVENT = "a.visibility-event";
public static final String EXTRA_AUTHOR = "author";
public static final String EXTRA_EXPECTED_AUTHOR = "expectedAuthor";
/**
* A SDK's model version queried by this key from INIT event.
*/
public static final String EXTRA_SDK_VERSION = "sdkVersion";
/**
* A SDK's artifact version queried by this key from INIT event.
*
* @since 4.7.0
*/
public static final String EXTRA_SDK_ARTIFACT_VERSION = "e.sdk-artifact-version";
public static final String EXTRA_IS_MANAGED = "isManaged";
public static final String EXTRA_IS_AUTHORIZED = "isAuthorized";
public static final String EXTRA_LOGIN_USERNAME = "loginUsername";
public static final String EXTRA_IS_STOP_REQUESTED = "isStopRequested";
public static final String EXTRA_SERIAL = "serial";
public static final String EXTRA_VERSION_NAME = "versionName";
public static final String EXTRA_VERSION_CODE = "versionCode";
public static final String EXTRA_SERIAL_MESSAGE = "serialMessage";
public static final String EXTRA_CAN_LOGCAT = "canLogCat";
public static final String EXTRA_IS_BOOT = "isBoot";
public static final String EXTRA_LOG = "log";
public static final String EXTRA_LOG_TYPE = "logType";
/**
* the unique id generated on the client side to identify data
*/
public static final String EXTRA_CID = "e.cid";
/**
* a group id that collects instructions
*/
public static final String EXTRA_INSTRUCTION_GROUP_ID = "e.gid";
/**
* session key of a logcat-stream
*/
public static final String EXTRA_LOGCAT_STREAM_SESSION_KEY = "e.logcat-stream-session-key";
/**
* a marker of the bundle positioning
*/
public static final String EXTRA_BUNDLE_POSITION = "e.bundle-position";
/**
* buffered-at in sdk-side, depends on device-clock.
*/
public static final String EXTRA_BUFFERED_AT_IN_MILLI_SECONDS = "e.bufferedAt";
/**
* this key shouldn't be used. ref: com.deploygate.sdk.Compatibility#SERIALIZED_EXCEPTION
*/
@Deprecated
public static final String EXTRA_EXCEPTION = "exception";
public static final String EXTRA_EXCEPTION_ROOT_CAUSE_CLASSNAME = "exceptionRootCauseClassName";
public static final String EXTRA_EXCEPTION_ROOT_CAUSE_MESSAGE = "exceptionRootCauseMessage";
public static final String EXTRA_EXCEPTION_STACKTRACES = "exceptionStackTraces";
public static final String EXTRA_CURRENT_REVISION = "currentRevision";
public static final String EXTRA_CURRENT_DISTRIBUTION_ID = "currentDistributionId";
public static final String EXTRA_CURRENT_DISTRIBUTION_TITLE = "currentDistributionTitle";
/**
* this key shouldn't be used
*/
@Deprecated
public static final String EXTRA_DEPLOYGATE_VERSION_CODE = "deploygateVersionCode";
public static final String EXTRA_COMMENT = "comment";
public static final String EXTRA_DISTRIBUTION_USER_NAME = "distributionUserName";
/**
* the id of the capture.
*/
public static final String EXTRA_CAPTURE_ID = "e.capture-id";
/**
* A event type for the app goes to foreground/background.
*/
public static final String EXTRA_VISIBILITY_EVENT_TYPE = "e.visibility-event-type";
/**
* The elapsed real time since boot at the time when the app goes to foreground/background.
* this value must be nano times.
*/
public static final String EXTRA_VISIBILITY_EVENT_ELAPSED_REAL_TIME_IN_NANOS = "e.visibility-event-elapsed-real-time";
interface VisibilityType {
int BACKGROUND = 0;
int FOREGROUND = 1;
}
}