Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
feat: language server support(working process 60%)
Browse files Browse the repository at this point in the history
feat: optimized collection
refactor(app): move classes
  • Loading branch information
weg2022 committed Aug 13, 2023
1 parent 16abefb commit 51feecc
Show file tree
Hide file tree
Showing 124 changed files with 6,180 additions and 1,523 deletions.
3 changes: 3 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 22 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,27 @@
# APK-IDE

APK-IDE is an Android software for decompiling, compiling and modifying APKs.
Internally use ApkTool 2.7.0

## Readme

* [简体中文](./README_zh.md)

## Features

- [x] Access the class file in the archive file
- [x] Decompile and compile the apk file
- [x] aapt (Ported for apktool. v1/v2)
- [ ] APK signing
- [ ] APK align optimize
- [ ] Git integration
- [ ] Decompile and build Log output
- [ ] Configurable ApkTool(Framework...) options
- [ ] Quickly edit large text files
- [ ] Syntax highlighting (Smali, Java, C/C++, Xml)
- [ ] Code completion (smali only?)
- [ ] Code Analysis and Refactoring (Smali only?)

### Libraries used

* [androidx](https://github.com/androidx/androidx)
* [material-components-android](https://github.com/material-components/material-components-android)
* [apktool](https://github.com/iBotPeaches/Apktool)
* [fernflower](https://github.com/fesh0r/fernflower)
* [cascadia-code](https://github.com/microsoft/cascadia-code)
* [smali](https://github.com/google/smali)
* [commons-text](https://github.com/apache/commons-text)
* [guava](https://github.com/google/guava)
* [snakeyaml](https://bitbucket.org/snakeyaml/snakeyaml)
* [xmlpull-xpp3](https://github.com/codelibs/xpp3)
* [xmlunit](https://github.com/xmlunit/xmlunit)
* [r8](https://r8.googlesource.com/r8)
APK-IDE是一款用于反编译;编译;逆向;修改APK的安卓软件。
编译与反编译核心使用的是 APK-Tool 开源项目

## 功能 (待实现)

- [ ] 反编译与编译APK
- [ ] 代码编辑器 (快速编辑大型文本文件,可配置命令,控制台?,快捷键,查找替换,撤销与重做,超链接,颜色高亮)
- [ ] 代码分析与重构 (代码分析与诊断,,重命名,安全删除,格式化,缩进,代码生成,注释,取消注释,Surround
With...)
- [ ] 代码补全 (基本补全,语法级别补全)
- [ ] 代码导航 (API搜索, 转到符号,签名信息,查找用例)
- [ ] 代码高亮 (基本高亮,语法级别补全)

### 使用的库与资源

* [Androidx](https://github.com/androidx/androidx)
* [Material-Components](https://github.com/material-components/material-components-android)
* [Apktool](https://github.com/iBotPeaches/Apktool)
* [Smali](https://github.com/google/smali)
* [Fernflower](https://github.com/fesh0r/fernflower)
* [R8](https://r8.googlesource.com/r8)
* [InterfaceLoader](https://github.com/JeremyLiao/InterfaceLoader)

## License

Expand Down
40 changes: 0 additions & 40 deletions README_zh.md

This file was deleted.

6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ android {
}
}
namespace 'com.apkide.ui'
compileSdk 33
compileSdk 34

defaultConfig {
applicationId 'com.apkide.ui'
minSdk 26
targetSdk 33
targetSdk 34
versionCode 20230315
versionName '1.0beta1'
multiDexEnabled true
Expand All @@ -50,7 +50,6 @@ android {

buildFeatures {
viewBinding true
aidl true
buildConfig true
}

Expand Down Expand Up @@ -93,6 +92,7 @@ dependencies {
implementation libs.androidx.multidex
implementation libs.androidx.preference
implementation libs.material
implementation libs.interface.loader
implementation project(':common')
implementation project(':openapi')
implementation project(':engine')
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@


<activity
android:name=".AboutUI"
android:name=".about.AboutUI"
android:label="About"
android:theme="@style/Theme.UI" />

Expand Down
Binary file removed app/src/main/assets/fonts/CascadiaMono-Regular.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion app/src/main/java/com/apkide/ui/IDEEditorPager.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public OpenFileService.OpenFileModel openFile(String filePath) {
requestLayout();
postDelayed(() -> {
editor.makeCaretVisible();
editor.getEditorView().redraw();
editor.getEditorView().redrawOnVisible();
}, 50L);
return model;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package com.apkide.ui;
package com.apkide.ui.about;

import android.os.Bundle;

import androidx.annotation.Nullable;

import com.apkide.ui.StyledUI;
import com.apkide.ui.databinding.UiAboutBinding;

public class AboutUI extends StyledUI {
Expand Down
21 changes: 0 additions & 21 deletions app/src/main/java/com/apkide/ui/commands/ExitCommand.java

This file was deleted.

33 changes: 0 additions & 33 deletions app/src/main/java/com/apkide/ui/editor/CodeEditText.java

This file was deleted.

This file was deleted.

This file was deleted.

26 changes: 0 additions & 26 deletions app/src/main/java/com/apkide/ui/editor/CodeEditTextScrollView.java

This file was deleted.

28 changes: 0 additions & 28 deletions app/src/main/java/com/apkide/ui/editor/CodeEditorView.java

This file was deleted.

Loading

0 comments on commit 51feecc

Please sign in to comment.