Skip to content

Commit ae06130

Browse files
authored
v2022.10.20.7 (#5)
- 重构UI,减少对弹出框权限的依赖,菜单项加入描述信息、图标 - - 权限获取功能重构,修复不能正确请求权限的bug - 增加若干可卸载APP - 增加若干去广告APP
1 parent 20aba51 commit ae06130

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+2802
-1683
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ insert_final_newline = true
1313

1414
[**/*.{cmd,bat}]
1515
end_of_line = crlf
16+
17+
[**/*.{yml,yaml}]
18+
indent_style = space
19+
indent_size = 2

.eslintrc.js

Lines changed: 3 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ module.exports = {
1414
},
1515
},
1616
globals: {
17-
Atomics: "readonly",
18-
SharedArrayBuffer: "readonly",
1917
colors: true,
2018
com: true,
19+
org: true,
2120
importClass: true,
2221
storages: true,
2322
device: true,
@@ -27,25 +26,12 @@ module.exports = {
2726
runtime: true,
2827
java: true,
2928
importPackage: true,
30-
YuvImage: true,
31-
ImageFormat: true,
3229
ui: true,
33-
View: true,
30+
activity: true,
3431
context: true,
35-
ObjectAnimator: true,
36-
BinaryBitmap: true,
37-
HybridBinarizer: true,
38-
RGBLuminanceSource: true,
39-
MultiFormatReader: true,
4032
sleep: true,
4133
android: true,
42-
Paint: true,
43-
PorterDuffXfermode: true,
44-
PorterDuff: true,
4534
toastLog: true,
46-
ByteArrayOutputStream: true,
47-
Rect: true,
48-
ActivityCompat: true,
4935
files: true,
5036
requestScreenCapture: true,
5137
http: true,
@@ -54,21 +40,15 @@ module.exports = {
5440
random: true,
5541
events: true,
5642
press: true,
57-
Tap: true,
5843
gesture: true,
59-
Swipe: true,
6044
getPackageName: true,
6145
shell: true,
6246
floaty: true,
6347
currentPackage: true,
64-
Canvas: true,
6548
launch: true,
66-
FileOutputStream: true,
6749
app: true,
6850
images: true,
6951
launchApp: true,
70-
Bitmap: true,
71-
Buffer: true,
7252
idEndsWith: true,
7353
textEndsWith: true,
7454
descEndsWith: true,
@@ -79,33 +59,13 @@ module.exports = {
7959
id: true,
8060
desc: true,
8161
descStartsWith: true,
82-
AnimatorSet: true,
8362
click: true,
84-
PendingIntent: true,
8563
dialogs: true,
8664
auto: true,
8765
setClip: true,
88-
Context: true,
8966
getClip: true,
90-
DevicePolicyManager: true,
91-
Intent: true,
92-
ComponentName: true,
93-
Cipher: true,
94-
IvParameterSpec: true,
95-
SecretKeySpec: true,
9667
javax: true,
97-
BASE64Decoder: true,
98-
NotificationManager: true,
99-
NotificationChannel: true,
100-
Uri: true,
10168
media: true,
102-
ServerSocket: true,
103-
DataInputStream: true,
104-
DataOutputStream: true,
105-
Socket: true,
106-
JavaAdapter: true,
107-
WebChromeClient: true,
108-
ValueCallback: true,
10969
captureScreen: true,
11070
timers: true,
11171
selector: true,
@@ -114,6 +74,7 @@ module.exports = {
11474
waitForActivity: true,
11575
waitForPackage: true,
11676
currentActivity: true,
77+
__non_webpack_require__: true,
11778
DEBUG: true,
11879
},
11980
rules: {

.github/workflows/webpack.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,44 @@ jobs:
2222
run: |
2323
npm install
2424
npm run build
25+
26+
- name: Create Release
27+
id: create_release
28+
uses: actions/create-release@v1
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
with:
32+
tag_name: ${{ github.ref }}
33+
release_name: ${{ github.ref }}
34+
draft: true
35+
prerelease: true
36+
37+
- name: Upload Batch
38+
uses: actions/upload-release-asset@v1
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
with:
42+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
43+
asset_path: ./dist/miui_cleaner_cmd/MiuiCleaner.cmd
44+
asset_name: MiuiCleaner.cmd
45+
asset_content_type: text/plain
46+
47+
- name: Upload JavaScript Main
48+
uses: actions/upload-release-asset@v1
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
with:
52+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
53+
asset_path: ./dist/miui_cleaner_app/main.js
54+
asset_name: main.js
55+
asset_content_type: text/javascript
56+
57+
- name: Upload JavaScript Service
58+
uses: actions/upload-release-asset@v1
59+
env:
60+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
with:
62+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
63+
asset_path: ./dist/miui_cleaner_app/services.js
64+
asset_name: services.js
65+
asset_content_type: text/javascript

.gitignore

Lines changed: 180 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,66 @@
11
# File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig
2-
# Created by https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode,node
3-
# Edit at https://www.toptal.com/developers/gitignore?templates=windows,visualstudiocode,node
2+
# Created by https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode,node,linux,androidstudio,android
3+
# Edit at https://www.toptal.com/developers/gitignore?templates=windows,visualstudiocode,node,linux,androidstudio,android
4+
5+
### Android ###
6+
# Gradle files
7+
.gradle/
8+
build/
9+
10+
# Local configuration file (sdk path, etc)
11+
local.properties
12+
13+
# Log/OS Files
14+
*.log
15+
16+
# Android Studio generated files and folders
17+
captures/
18+
.externalNativeBuild/
19+
.cxx/
20+
*.apk
21+
output.json
22+
23+
# IntelliJ
24+
*.iml
25+
.idea/
26+
misc.xml
27+
deploymentTargetDropDown.xml
28+
render.experimental.xml
29+
30+
# Keystore files
31+
*.jks
32+
*.keystore
33+
34+
# Google Services (e.g. APIs or Firebase)
35+
google-services.json
36+
37+
# Android Profiling
38+
*.hprof
39+
40+
### Android Patch ###
41+
gen-external-apklibs
42+
43+
# Replacement of .externalNativeBuild directories introduced
44+
# with Android Studio 3.5.
45+
46+
### Linux ###
47+
*~
48+
49+
# temporary files which can be created if a process still has a handle open of a deleted file
50+
.fuse_hidden*
51+
52+
# KDE directory preferences
53+
.directory
54+
55+
# Linux trash folder which might appear on any partition or disk
56+
.Trash-*
57+
58+
# .nfs files are created when an open file is removed but is still being accessed
59+
.nfs*
460

561
### Node ###
662
# Logs
763
logs
8-
*.log
964
npm-debug.log*
1065
yarn-debug.log*
1166
yarn-error.log*
@@ -193,9 +248,129 @@ $RECYCLE.BIN/
193248
# Windows shortcuts
194249
*.lnk
195250

196-
# End of https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode,node
251+
### AndroidStudio ###
252+
# Covers files to be ignored for android development using Android Studio.
253+
254+
# Built application files
255+
*.ap_
256+
*.aab
257+
258+
# Files for the ART/Dalvik VM
259+
*.dex
260+
261+
# Java class files
262+
*.class
263+
264+
# Generated files
265+
bin/
266+
gen/
267+
out/
268+
269+
# Gradle files
270+
.gradle
197271

198-
# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)
272+
# Signing files
273+
.signing/
274+
275+
# Local configuration file (sdk path, etc)
276+
277+
# Proguard folder generated by Eclipse
278+
proguard/
199279

280+
# Log Files
281+
282+
# Android Studio
283+
/*/build/
284+
/*/local.properties
285+
/*/out
286+
/*/*/build
287+
/*/*/production
288+
.navigation/
289+
*.ipr
290+
*.swp
291+
292+
# Keystore files
293+
294+
# Google Services (e.g. APIs or Firebase)
295+
# google-services.json
296+
297+
# Android Patch
298+
299+
# External native build folder generated in Android Studio 2.2 and later
300+
.externalNativeBuild
301+
302+
# NDK
303+
obj/
304+
305+
# IntelliJ IDEA
306+
*.iws
307+
/out/
308+
309+
# User-specific configurations
310+
.idea/caches/
311+
.idea/libraries/
312+
.idea/shelf/
313+
.idea/workspace.xml
314+
.idea/tasks.xml
315+
.idea/.name
316+
.idea/compiler.xml
317+
.idea/copyright/profiles_settings.xml
318+
.idea/encodings.xml
319+
.idea/misc.xml
320+
.idea/modules.xml
321+
.idea/scopes/scope_settings.xml
322+
.idea/dictionaries
323+
.idea/vcs.xml
324+
.idea/jsLibraryMappings.xml
325+
.idea/datasources.xml
326+
.idea/dataSources.ids
327+
.idea/sqlDataSources.xml
328+
.idea/dynamic.xml
329+
.idea/uiDesigner.xml
330+
.idea/assetWizardSettings.xml
331+
.idea/gradle.xml
332+
.idea/jarRepositories.xml
333+
.idea/navEditor.xml
334+
335+
# Legacy Eclipse project files
336+
.classpath
337+
.project
338+
.cproject
339+
.settings/
340+
341+
# Mobile Tools for Java (J2ME)
342+
.mtj.tmp/
343+
344+
# Package Files #
345+
*.war
346+
*.ear
347+
348+
# virtual machine crash logs (Reference: http://www.java.com/en/download/help/error_hotspot.xml)
349+
hs_err_pid*
350+
351+
## Plugin-specific files:
352+
353+
# mpeltonen/sbt-idea plugin
354+
.idea_modules/
355+
356+
# JIRA plugin
357+
atlassian-ide-plugin.xml
358+
359+
# Mongo Explorer plugin
360+
.idea/mongoSettings.xml
361+
362+
# Crashlytics plugin (for Android Studio and IntelliJ)
363+
com_crashlytics_export_strings.xml
364+
crashlytics.properties
365+
crashlytics-build.properties
366+
fabric.properties
367+
368+
### AndroidStudio Patch ###
369+
370+
!/gradle/wrapper/gradle-wrapper.jar
371+
372+
# End of https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode,node,linux,androidstudio,android
373+
374+
# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)
200375

201376
window_dump.xml

0 commit comments

Comments
 (0)