capacitor-dex-editor 0.0.38 → 0.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/AndroidManifest.xml +8 -0
- package/android/src/main/assets/availableSyntax.json +54 -0
- package/android/src/main/assets/c.json +42 -0
- package/android/src/main/assets/colors.json +21 -0
- package/android/src/main/assets/cpp.json +79 -0
- package/android/src/main/assets/dart.json +108 -0
- package/android/src/main/assets/java.json +46 -0
- package/android/src/main/assets/js.json +54 -0
- package/android/src/main/assets/json.json +33 -0
- package/android/src/main/assets/kotlin.json +53 -0
- package/android/src/main/assets/lua.json +54 -0
- package/android/src/main/assets/php.json +69 -0
- package/android/src/main/assets/python.json +87 -0
- package/android/src/main/assets/rust.json +139 -0
- package/android/src/main/assets/smali.json +131 -0
- package/android/src/main/assets/xml.json +96 -0
- package/android/src/main/java/com/aetherlink/dexeditor/DexEditorPluginPlugin.java +48 -0
- package/android/src/main/java/com/aetherlink/dexeditor/SmaliEditorActivity.java +205 -0
- package/android/src/main/java/com/aetherlink/dexeditor/editor/EditView.java +4022 -0
- package/android/src/main/java/com/aetherlink/dexeditor/editor/WordWrapLayout.java +275 -0
- package/android/src/main/java/com/aetherlink/dexeditor/editor/buffer/BufferCache.java +113 -0
- package/android/src/main/java/com/aetherlink/dexeditor/editor/buffer/GapBuffer.java +685 -0
- package/android/src/main/java/com/aetherlink/dexeditor/editor/component/ClipboardPanel.java +1380 -0
- package/android/src/main/java/com/aetherlink/dexeditor/editor/component/Magnifier.java +363 -0
- package/android/src/main/java/com/aetherlink/dexeditor/editor/highlight/Candidate.java +52 -0
- package/android/src/main/java/com/aetherlink/dexeditor/editor/highlight/CommentDef.java +47 -0
- package/android/src/main/java/com/aetherlink/dexeditor/editor/highlight/LineResult.java +49 -0
- package/android/src/main/java/com/aetherlink/dexeditor/editor/highlight/MHSyntaxHighlightEngine.java +841 -0
- package/android/src/main/java/com/aetherlink/dexeditor/editor/highlight/Rule.java +53 -0
- package/android/src/main/java/com/aetherlink/dexeditor/editor/highlight/Token.java +48 -0
- package/android/src/main/java/com/aetherlink/dexeditor/editor/listener/OnTextChangedListener.java +6 -0
- package/android/src/main/java/com/aetherlink/dexeditor/editor/utils/Pair.java +80 -0
- package/android/src/main/java/com/aetherlink/dexeditor/editor/utils/ScreenUtils.java +63 -0
- package/android/src/main/res/drawable/abc_text_cursor_material.xml +9 -0
- package/android/src/main/res/drawable/abc_text_select_handle_left_mtrl.png +0 -0
- package/android/src/main/res/drawable/abc_text_select_handle_middle_mtrl.png +0 -0
- package/android/src/main/res/drawable/abc_text_select_handle_right_mtrl.png +0 -0
- package/android/src/main/res/drawable/ic_arrow_back.xml +12 -0
- package/android/src/main/res/drawable/ic_copy.xml +11 -0
- package/android/src/main/res/drawable/ic_cut.xml +10 -0
- package/android/src/main/res/drawable/ic_delete.xml +12 -0
- package/android/src/main/res/drawable/ic_edit_white_24dp.xml +10 -0
- package/android/src/main/res/drawable/ic_goto.xml +10 -0
- package/android/src/main/res/drawable/ic_launcher_background.xml +186 -0
- package/android/src/main/res/drawable/ic_look_white_24dp.xml +11 -0
- package/android/src/main/res/drawable/ic_more.xml +10 -0
- package/android/src/main/res/drawable/ic_open_link.xml +11 -0
- package/android/src/main/res/drawable/ic_paste.xml +11 -0
- package/android/src/main/res/drawable/ic_redo_white_24dp.xml +10 -0
- package/android/src/main/res/drawable/ic_select.xml +11 -0
- package/android/src/main/res/drawable/ic_select_all.xml +10 -0
- package/android/src/main/res/drawable/ic_share.xml +11 -0
- package/android/src/main/res/drawable/ic_toggle_comment.xml +12 -0
- package/android/src/main/res/drawable/ic_translate.xml +10 -0
- package/android/src/main/res/drawable/ic_undo_white_24dp.xml +11 -0
- package/android/src/main/res/drawable/magnifier_bg.xml +5 -0
- package/android/src/main/res/drawable/popup_background.xml +8 -0
- package/android/src/main/res/drawable/ripple_effect.xml +9 -0
- package/android/src/main/res/drawable/selection_menu_background.xml +5 -0
- package/android/src/main/res/layout/custom_selection_menu.xml +44 -0
- package/android/src/main/res/layout/expand_button.xml +23 -0
- package/android/src/main/res/layout/item_autocomplete.xml +25 -0
- package/android/src/main/res/layout/magnifier_popup.xml +17 -0
- package/android/src/main/res/layout/menu_item.xml +30 -0
- package/android/src/main/res/layout/text_selection_menu.xml +36 -0
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
android:height="24dp"
|
|
4
|
+
android:width="24dp"
|
|
5
|
+
android:viewportWidth="24.0"
|
|
6
|
+
android:viewportHeight="24.0">
|
|
7
|
+
<path
|
|
8
|
+
android:fillColor="#ff000000"
|
|
9
|
+
android:pathData="M12.87,15.07l-2.54,-2.51 0.03,-0.03c1.74,-1.94 2.98,-4.17 3.71,-6.53L17,6L17,4h-7L10,2L8,2v2L1,4v1.99h11.17C11.5,7.92 10.44,9.75 9,11.35 8.07,10.32 7.3,9.19 6.69,8h-2c0.73,1.63 1.73,3.17 2.98,4.56l-5.09,5.02L4,19l5,-5 3.11,3.11 0.76,-2.04zM18.5,10h-2L12,22h2l1.12,-3h4.75L21,22h2l-4.5,-12zM15.88,17l1.62,-4.33L19.12,17h-3.24z" />
|
|
10
|
+
</vector>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
android:width="24dp"
|
|
4
|
+
android:height="24dp"
|
|
5
|
+
android:viewportHeight="24"
|
|
6
|
+
android:viewportWidth="24">
|
|
7
|
+
<path
|
|
8
|
+
android:fillColor="#FFFFFFFF"
|
|
9
|
+
android:pathData="M12.5,8C9.85,8 7.45,9 5.6,10.6L2,7V16H11L7.38,12.38C8.77,11.22 10.54,10.5 12.5,10.5C16.04,10.5 19.05,12.81 20.1,16L22.47,15.22C21.08,11.03 17.15,8 12.5,8Z"/>
|
|
10
|
+
|
|
11
|
+
</vector>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
|
3
|
+
<solid android:color="?android:attr/colorBackground" />
|
|
4
|
+
<corners android:radius="12dp" />
|
|
5
|
+
<stroke
|
|
6
|
+
android:width="0.5dp"
|
|
7
|
+
android:color="#1F000000" />
|
|
8
|
+
</shape>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
android:color="?android:attr/colorControlHighlight">
|
|
4
|
+
<item android:id="@android:id/mask">
|
|
5
|
+
<shape>
|
|
6
|
+
<solid android:color="#FF000000" />
|
|
7
|
+
</shape>
|
|
8
|
+
</item>
|
|
9
|
+
</ripple>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
android:id="@+id/popupContainer"
|
|
4
|
+
android:layout_width="wrap_content"
|
|
5
|
+
android:layout_height="wrap_content"
|
|
6
|
+
android:orientation="vertical"
|
|
7
|
+
android:background="@drawable/popup_background"
|
|
8
|
+
android:padding="0dp">
|
|
9
|
+
|
|
10
|
+
<!-- Primary Menu -->
|
|
11
|
+
<LinearLayout
|
|
12
|
+
android:id="@+id/primaryMenu"
|
|
13
|
+
android:layout_width="wrap_content"
|
|
14
|
+
android:layout_height="wrap_content"
|
|
15
|
+
android:orientation="horizontal"
|
|
16
|
+
android:padding="0dp">
|
|
17
|
+
|
|
18
|
+
<!-- Menu items added dynamically -->
|
|
19
|
+
|
|
20
|
+
</LinearLayout>
|
|
21
|
+
|
|
22
|
+
<!-- Divider - Hidden by default -->
|
|
23
|
+
<View
|
|
24
|
+
android:id="@+id/divider"
|
|
25
|
+
android:layout_width="match_parent"
|
|
26
|
+
android:layout_height="1dp"
|
|
27
|
+
android:background="#1A000000"
|
|
28
|
+
android:visibility="gone"
|
|
29
|
+
android:layout_marginHorizontal="8dp" />
|
|
30
|
+
|
|
31
|
+
<!-- Secondary Menu - Hidden by default -->
|
|
32
|
+
<LinearLayout
|
|
33
|
+
android:id="@+id/secondaryMenu"
|
|
34
|
+
android:layout_width="match_parent"
|
|
35
|
+
android:layout_height="wrap_content"
|
|
36
|
+
android:orientation="vertical"
|
|
37
|
+
android:visibility="gone"
|
|
38
|
+
android:padding="0dp">
|
|
39
|
+
|
|
40
|
+
<!-- Menu items added dynamically -->
|
|
41
|
+
|
|
42
|
+
</LinearLayout>
|
|
43
|
+
|
|
44
|
+
</LinearLayout>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
android:layout_width="wrap_content"
|
|
4
|
+
android:layout_height="match_parent"
|
|
5
|
+
android:orientation="horizontal"
|
|
6
|
+
android:gravity="center"
|
|
7
|
+
android:paddingStart="16dp"
|
|
8
|
+
android:paddingEnd="16dp"
|
|
9
|
+
android:minWidth="48dp"
|
|
10
|
+
android:clipChildren="false"
|
|
11
|
+
android:clipToPadding="false">
|
|
12
|
+
|
|
13
|
+
<ImageView
|
|
14
|
+
android:id="@+id/expandIcon"
|
|
15
|
+
android:layout_width="wrap_content"
|
|
16
|
+
android:layout_height="wrap_content"
|
|
17
|
+
android:adjustViewBounds="true"
|
|
18
|
+
android:scaleType="centerInside"
|
|
19
|
+
android:maxWidth="30dp"
|
|
20
|
+
android:maxHeight="30dp"
|
|
21
|
+
android:padding="2dp" />
|
|
22
|
+
|
|
23
|
+
</LinearLayout>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<LinearLayout
|
|
3
|
+
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
4
|
+
android:layout_width="match_parent"
|
|
5
|
+
android:layout_height="wrap_content"
|
|
6
|
+
android:orientation="vertical">
|
|
7
|
+
|
|
8
|
+
<TextView
|
|
9
|
+
android:id="@+id/text1"
|
|
10
|
+
android:layout_width="match_parent"
|
|
11
|
+
android:layout_height="wrap_content"
|
|
12
|
+
android:paddingVertical="6dp"
|
|
13
|
+
android:paddingHorizontal="10dp"
|
|
14
|
+
android:textColor="@android:color/black"
|
|
15
|
+
android:textSize="14sp"
|
|
16
|
+
android:ellipsize="end"
|
|
17
|
+
android:singleLine="true"/>
|
|
18
|
+
|
|
19
|
+
<View
|
|
20
|
+
android:layout_width="match_parent"
|
|
21
|
+
android:layout_height="1dp"
|
|
22
|
+
android:background="#E0E0E0"/>
|
|
23
|
+
|
|
24
|
+
</LinearLayout>
|
|
25
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<FrameLayout
|
|
3
|
+
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
4
|
+
android:layout_width="wrap_content"
|
|
5
|
+
android:layout_height="wrap_content"
|
|
6
|
+
android:background="@android:color/transparent">
|
|
7
|
+
|
|
8
|
+
<ImageView
|
|
9
|
+
android:id="@+id/magnifier_image_view"
|
|
10
|
+
android:layout_width="wrap_content"
|
|
11
|
+
android:layout_height="match_parent"
|
|
12
|
+
android:scaleType="fitXY"
|
|
13
|
+
android:background="@drawable/magnifier_bg"
|
|
14
|
+
android:elevation="10dp"/>
|
|
15
|
+
|
|
16
|
+
</FrameLayout>
|
|
17
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
android:layout_width="wrap_content"
|
|
4
|
+
android:layout_height="match_parent"
|
|
5
|
+
android:orientation="horizontal"
|
|
6
|
+
android:gravity="center"
|
|
7
|
+
android:paddingStart="16dp"
|
|
8
|
+
android:paddingEnd="16dp"
|
|
9
|
+
android:minWidth="56dp"
|
|
10
|
+
android:clipChildren="false"
|
|
11
|
+
android:clipToPadding="false">
|
|
12
|
+
<ImageView
|
|
13
|
+
android:id="@+id/menuIcon"
|
|
14
|
+
android:layout_width="wrap_content"
|
|
15
|
+
android:layout_height="wrap_content"
|
|
16
|
+
android:layout_marginEnd="8dp"
|
|
17
|
+
android:adjustViewBounds="true"
|
|
18
|
+
android:scaleType="centerInside"
|
|
19
|
+
android:maxWidth="30dp"
|
|
20
|
+
android:maxHeight="30dp"
|
|
21
|
+
android:padding="2dp" />
|
|
22
|
+
<TextView
|
|
23
|
+
android:id="@+id/menuTitle"
|
|
24
|
+
android:layout_width="wrap_content"
|
|
25
|
+
android:layout_height="wrap_content"
|
|
26
|
+
android:textSize="14sp"
|
|
27
|
+
android:gravity="center_vertical"
|
|
28
|
+
android:singleLine="true" />
|
|
29
|
+
|
|
30
|
+
</LinearLayout>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
android:id="@+id/selection_menu_container"
|
|
4
|
+
android:layout_width="wrap_content"
|
|
5
|
+
android:layout_height="wrap_content"
|
|
6
|
+
android:orientation="vertical"
|
|
7
|
+
android:background="@drawable/selection_menu_background"
|
|
8
|
+
android:elevation="8dp"
|
|
9
|
+
android:padding="4dp">
|
|
10
|
+
|
|
11
|
+
<!-- First-level items (horizontal) -->
|
|
12
|
+
<LinearLayout
|
|
13
|
+
android:id="@+id/first_level_container"
|
|
14
|
+
android:layout_width="wrap_content"
|
|
15
|
+
android:layout_height="wrap_content"
|
|
16
|
+
android:orientation="horizontal"
|
|
17
|
+
android:padding="4dp"
|
|
18
|
+
android:background="@android:color/transparent">
|
|
19
|
+
|
|
20
|
+
<!-- Dynamic buttons will be added programmatically -->
|
|
21
|
+
</LinearLayout>
|
|
22
|
+
|
|
23
|
+
<!-- Second-level items (vertical, hidden by default) -->
|
|
24
|
+
<LinearLayout
|
|
25
|
+
android:id="@+id/second_level_container"
|
|
26
|
+
android:layout_width="wrap_content"
|
|
27
|
+
android:layout_height="wrap_content"
|
|
28
|
+
android:orientation="vertical"
|
|
29
|
+
android:visibility="gone"
|
|
30
|
+
android:background="@android:color/white"
|
|
31
|
+
android:elevation="4dp"
|
|
32
|
+
android:padding="4dp">
|
|
33
|
+
<!-- Dynamic buttons will be added programmatically -->
|
|
34
|
+
</LinearLayout>
|
|
35
|
+
|
|
36
|
+
</LinearLayout>
|