Skip to content

Commit

Permalink
Merge pull request #54 from GuoXiCheng/dev
Browse files Browse the repository at this point in the history
update
  • Loading branch information
GuoXiCheng authored Oct 10, 2023
2 parents bd17d76 + b61286f commit e5a5f45
Show file tree
Hide file tree
Showing 21 changed files with 12 additions and 166 deletions.
Binary file added apk/SKIP-v1.3.2.apk
Binary file not shown.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ android {
minSdk 24
targetSdk 32
versionCode 1
versionName "1.3.1"
versionName "1.3.2"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down
10 changes: 2 additions & 8 deletions app/src/main/java/com/android/skip/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -439,14 +439,8 @@ fun PageFooter() {
end = 6
)
append(" | ")
append("Document")
addStringAnnotation(
tag = "URL",
annotation = "https://guoxicheng.github.io/SKIP-Docs/1-introduction",
start = 9,
end = 18
)
append(" | Version " + BuildConfig.VERSION_NAME)
append(RectManager.getMaxRect())
append(" | version " + BuildConfig.VERSION_NAME)
}
}
ClickableText(
Expand Down
5 changes: 0 additions & 5 deletions app/src/main/java/com/android/skip/Mobile.kt

This file was deleted.

8 changes: 4 additions & 4 deletions app/src/main/java/com/android/skip/MyUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ object MyUtils {
override fun onCompleted(gestureDescription: GestureDescription) {
super.onCompleted(gestureDescription)

if (AnalyticsManager.isShowToast()) {
ToastManager.showToast(accessibilityService, "已为您跳过广告")
AnalyticsManager.setShowToastCount()
}
// if (AnalyticsManager.isShowToast()) {
// ToastManager.showToast(accessibilityService, "已为您跳过广告")
// AnalyticsManager.setShowToastCount()
// }

}
},
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/java/com/android/skip/manager/RectManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ object RectManager {
rect.set(actualX - 1, actualY - 1, actualX + 1, actualY + 1)
return rect
}

fun getMaxRect(): String {
return "${maxRectX}x${maxRectY}"
}
}
23 changes: 0 additions & 23 deletions app/src/main/java/com/android/skip/node/NodeRect.kt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class MyAccessibilityService : AccessibilityService() {
}
}

Log.i("SKIPS", p0?.className.toString())
} catch (e: Exception) {
Log.d("SKIPS", e.message.toString())
} finally {
Expand Down Expand Up @@ -64,14 +63,6 @@ class MyAccessibilityService : AccessibilityService() {
return true
}

// private fun isStartUpPage(): Boolean {
// val countCallBack = NodeCount()
// countCallBack.cleanCount()
// val currentNode = getCurrentRootNode()
// recursionNodes(currentNode, countCallBack)
// return countCallBack.getCount() < SkipConfigManager.getStartPageNodeCount(currentNode.packageName.toString())
// }

override fun onInterrupt() {}

}
Binary file modified app/src/main/res/drawable-v24/backend_lock.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/drawable-v24/disabled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/drawable-v24/enabled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 0 additions & 30 deletions app/src/main/res/drawable-v24/ic_launcher_foreground.xml

This file was deleted.

78 changes: 0 additions & 78 deletions app/src/main/res/drawable/ic_launcher_background.xml

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 0 additions & 2 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
<resources>
<color name="purple_200">#FFBB86FC</color>
<color name="purple_500">#FF6200EE</color>
<color name="purple_700">#FF3700B3</color>
<color name="teal_200">#FF03DAC5</color>
<color name="teal_700">#FF018786</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
<color name="teal_500">#FFB2DEDF</color>
<color name="grey">#FF808080</color>
<color name="green">#FF32A061</color>
</resources>
4 changes: 1 addition & 3 deletions app/src/main/res/values/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#32A060</color>
</resources>
<resources></resources>
3 changes: 0 additions & 3 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,4 @@
<string name="app_name">SKIP</string>
<string name="activity_main">SKIP</string>
<string name="accessibility_description">若无障碍服务发生故障,可以关闭后再打开。</string>
<string name="attention">注意事项</string>
<string name="attention_content">由于无障碍服务会在应用进程结束后自动关闭,因此需要开启应用后台运行权限</string>
<string name="operation">操作方式</string>
</resources>

0 comments on commit e5a5f45

Please sign in to comment.