This commit is contained in:
wming-black
2021-11-30 11:51:25 +08:00
parent cfec867880
commit f5abfec804
12 changed files with 46 additions and 30 deletions

View File

@@ -1,24 +1,10 @@
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<JetCodeStyleSettings>
<option name="PACKAGES_TO_USE_STAR_IMPORTS">
<value>
<package name="java.util" alias="false" withSubpackages="false" />
<package name="kotlinx.android.synthetic" alias="false" withSubpackages="true" />
<package name="io.ktor" alias="false" withSubpackages="true" />
</value>
</option>
<option name="PACKAGES_IMPORT_LAYOUT">
<value>
<package name="" alias="false" withSubpackages="true" />
<package name="java" alias="false" withSubpackages="true" />
<package name="javax" alias="false" withSubpackages="true" />
<package name="kotlin" alias="false" withSubpackages="true" />
<package name="" alias="true" withSubpackages="true" />
</value>
</option>
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
</JetCodeStyleSettings>
<codeStyleSettings language="XML">
<option name="FORCE_REARRANGE_MODE" value="1" />
<indentOptions>
<option name="CONTINUATION_INDENT_SIZE" value="4" />
</indentOptions>
@@ -130,5 +116,8 @@
</rules>
</arrangement>
</codeStyleSettings>
<codeStyleSettings language="kotlin">
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
</codeStyleSettings>
</code_scheme>
</component>

5
.idea/codeStyles/codeStyleConfig.xml generated Normal file
View File

@@ -0,0 +1,5 @@
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="USE_PER_PROJECT_SETTINGS" value="true" />
</state>
</component>

3
.idea/gradle.xml generated
View File

@@ -4,7 +4,7 @@
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="testRunner" value="PLATFORM" />
<option name="testRunner" value="GRADLE" />
<option name="disableWrapperSourceDistributionNotification" value="true" />
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
@@ -24,7 +24,6 @@
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
<option name="useQualifiedModuleNames" value="true" />
</GradleProjectSettings>
</option>
</component>

View File

@@ -1,6 +1,12 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="AlibabaAbstractMethodOrInterfaceMethodMustUseJavadoc" enabled="false" level="MAJOR" enabled_by_default="false" />
<inspection_tool class="AlibabaAvoidCommentBehindStatement" enabled="false" level="MAJOR" enabled_by_default="false" />
<inspection_tool class="AlibabaCommentsMustBeJavadocFormat" enabled="false" level="MAJOR" enabled_by_default="false" />
<inspection_tool class="AlibabaMethodTooLong" enabled="false" level="MAJOR" enabled_by_default="false" />
<inspection_tool class="AlibabaRemoveCommentedCode" enabled="false" level="MAJOR" enabled_by_default="false" />
<inspection_tool class="AlibabaUndefineMagicConstant" enabled="false" level="MAJOR" enabled_by_default="false" />
<inspection_tool class="JavaDoc" enabled="true" level="WARNING" enabled_by_default="true">
<option name="TOP_LEVEL_CLASS_OPTIONS">
<value>

4
.idea/misc.xml generated
View File

@@ -3,6 +3,8 @@
<component name="DesignSurface">
<option name="filePathToZoomLevelMap">
<map>
<entry key="..\:/fuzhu/app/src/main/res/layout/activity_cancle_follow.xml" value="0.35885416666666664" />
<entry key="..\:/fuzhu/app/src/main/res/layout/activity_keyword.xml" value="0.35885416666666664" />
<entry key="..\:/picture/fuzhu/app/src/main/res/layout/activity_cancel_thumb_up.xml" value="0.3170289855072464" />
<entry key="..\:/picture/fuzhu/app/src/main/res/layout/activity_cancle_follow.xml" value="0.3541666666666667" />
<entry key="..\:/picture/fuzhu/app/src/main/res/layout/activity_hong_bao.xml" value="0.17451874366767983" />
@@ -11,7 +13,7 @@
</map>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="false" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">

View File

@@ -202,7 +202,7 @@ public class AblService extends AccessibilityService {
} else if (str.contains("设置抖音号")) {
LiveEventBus.get("runningstate").post("0");
}
AblViewUtil.Close();
break;
}
default:
@@ -212,11 +212,13 @@ public class AblService extends AccessibilityService {
public void scroll2PositionClick(AccessibilityService service, String text) {
try {
Thread.sleep(5000); //隔200 ms 滚动一次
Thread.sleep(5000);
//隔200 ms 滚动一次
} catch (InterruptedException e) {
e.printStackTrace();
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) { //必须android4.3以上的版本
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) {
//必须android4.3以上的版本
getdouyindsf();
}
}

View File

@@ -99,11 +99,15 @@ public class AblViewUtil {
parent.findAccessibilityNodeInfosByViewId(id);
if (accessibilityNodeInfos != null &&
!accessibilityNodeInfos.isEmpty()) {
if (anisCallBack != null) anisCallBack.succ(accessibilityNodeInfos);
if (anisCallBack != null) {
anisCallBack.succ(accessibilityNodeInfos);
}
return accessibilityNodeInfos;
}
}
if (anisCallBack != null) anisCallBack.fail();
if (anisCallBack != null) {
anisCallBack.fail();
}
return new ArrayList<>();
}
@@ -190,12 +194,16 @@ public class AblViewUtil {
AblService.getInstance().dispatchGesture(gestureDescription, new AccessibilityService.GestureResultCallback() {
@Override
public void onCompleted(GestureDescription gestureDescription) {
if (callback != null) callback.succ(gestureDescription);
if (callback != null) {
callback.succ(gestureDescription);
}
}
@Override
public void onCancelled(GestureDescription gestureDescription) {
if (callback != null) callback.fail(gestureDescription);
if (callback != null) {
callback.fail(gestureDescription);
}
}
}, null);
}
@@ -614,6 +622,10 @@ public class AblViewUtil {
if (isContainText("检测到更新")){
findAndPerformActionTextView("以后再说");
}
if (isContainText("发现通讯录朋友")){
findAndPerformActionTextView("暂时不要");
}
Log.e("_____-------","弹窗解决");
}

View File

@@ -109,7 +109,6 @@ public class DakaActivity extends BaseActivity {
headerAndFooterAdapter.addFooterView(footerView, 0);
mRecyclerView.setAdapter(headerAndFooterAdapter);
}
private View getFooterView(int type, View.OnClickListener listener) {
View view = getLayoutInflater().inflate(R.layout.footer_prilet_view, (ViewGroup) mRecyclerView.getParent(), false);
if (type == 1) {

View File

@@ -34,7 +34,7 @@ public class AblStep1 extends BaseAblStep {
break;
case AblSteps.STEP_261:
ChangLiang.ishuodong = "T";
AblViewUtil.Close();
//AblViewUtil.Close();
AblViewUtil.mySleep(5);
AblService instance = AblService.getInstance();
myClick();

View File

@@ -127,7 +127,7 @@ public class TestAblStep6 extends BaseAblStep {
AblViewUtil.mySleep(1);
AccessibilityNodeInfo chilrecy = getrecy();
Log.e("TIAOSHI###", "向上滑动");
chilrecy.performAction(AccessibilityNodeInfo.ACTION_SCROLL_FORWARD); //触发容器元素的滚动事件
chilrecy.performAction(AccessibilityNodeInfo.ACTION_SCROLL_FORWARD);//触发容器元素的滚动事件
AblViewUtil.mySleep(1);
AblStepHandler.sendMsg(AblSteps.STEP_13);
}
@@ -173,6 +173,7 @@ public class TestAblStep6 extends BaseAblStep {
AccessibilityNodeInfo child = root.getChild(i);
// Log.e("TIAOSHI###", "----oneNode:" + child.getClassName() + ":" + child.getText() + ":" + child.getContentDescription());
// nodeZuobiao(child);
for (int y = 0; y < child.getChildCount(); y++) {
AccessibilityNodeInfo child1 = child.getChild(y);
// Log.e("TIAOSHI###", "----twoNode:" + child1.getClassName() + ":" + child1.getText() + ":" + child1.getContentDescription());
@@ -326,7 +327,7 @@ public class TestAblStep6 extends BaseAblStep {
}
if (child.getText().toString().equals("互相关注")) {
AblViewUtil.mySleep(1);
// clickcommontwo(child, "互相关注");
//clickcommontwo(child, "互相关注");
Rect rect = new Rect();
child.getBoundsInScreen(rect);
if (rect.top <= 2100) {