File tree Expand file tree Collapse file tree 4 files changed +16
-3
lines changed Expand file tree Collapse file tree 4 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ android {
38
38
39
39
ext {
40
40
PUBLISH_GROUP_ID = ' com.trendyol.android.devtools'
41
- PUBLISH_VERSION = ' 0.4.1 '
41
+ PUBLISH_VERSION = ' 0.5.0 '
42
42
PUBLISH_ARTIFACT_ID = ' debug-menu'
43
43
PUBLISH_DESCRIPTION = " Android QA Debug Menu"
44
44
PUBLISH_URL = " https://github.com/Trendyol/android-dev-tools"
Original file line number Diff line number Diff line change 8
8
<activity
9
9
android : name =" .internal.ui.DebugMenuActivity"
10
10
android : launchMode =" singleInstance"
11
+ android : label =" @string/label"
12
+ android : taskAffinity =" com.trendyol.android.devtools.debugmenu.task"
11
13
android : theme =" @style/Theme.Devtools" />
12
14
</application >
13
15
</manifest >
Original file line number Diff line number Diff line change 1
1
package com.trendyol.android.devtools.debugmenu
2
2
3
3
import android.content.Context
4
+ import android.content.Intent
4
5
import com.trendyol.android.devtools.debugmenu.internal.di.ContextContainer
5
6
import com.trendyol.android.devtools.debugmenu.internal.domain.DebugMenuUseCase
6
7
import com.trendyol.android.devtools.debugmenu.internal.ui.DebugMenuActivity
@@ -25,10 +26,19 @@ object DebugMenu {
25
26
* @param title to show above menu. Default is "Debug Menu".
26
27
*/
27
28
fun show (title : String = "Debug Menu ") {
28
- val context = ContextContainer .getContext()
29
- context.startActivity(DebugMenuActivity .newIntent(context, title))
29
+ ContextContainer .getContext().startActivity(newIntent(title))
30
30
}
31
31
32
+ /* *
33
+ * Creates an Intent to launch Debug menu.
34
+ *
35
+ * @param title to show above menu. Default is "Debug Menu".
36
+ *
37
+ * @return intent for Debug Menu's activity.
38
+ */
39
+ fun newIntent (title : String = "Debug Menu "): Intent =
40
+ DebugMenuActivity .newIntent(ContextContainer .getContext(), title)
41
+
32
42
fun addDebugAction (debugAction : DebugActionItem ) {
33
43
addDebugActionItems(listOf (debugAction))
34
44
}
Original file line number Diff line number Diff line change 1
1
<resources >
2
+ <string name =" label" >Debug Menu</string >
2
3
<string name =" dev_tools_notification_title" >Dev Tools</string >
3
4
<string name =" dev_tools_notification_description" >Tap to open Dev Tools</string >
4
5
<string name =" dev_tools_notification_name" >Android Dev Tools</string >
You can’t perform that action at this time.
0 commit comments