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"> <component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173"> <code_scheme name="Project" version="173">
<JetCodeStyleSettings> <JetCodeStyleSettings>
<option name="PACKAGES_TO_USE_STAR_IMPORTS"> <option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
<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>
</JetCodeStyleSettings> </JetCodeStyleSettings>
<codeStyleSettings language="XML"> <codeStyleSettings language="XML">
<option name="FORCE_REARRANGE_MODE" value="1" />
<indentOptions> <indentOptions>
<option name="CONTINUATION_INDENT_SIZE" value="4" /> <option name="CONTINUATION_INDENT_SIZE" value="4" />
</indentOptions> </indentOptions>
@@ -130,5 +116,8 @@
</rules> </rules>
</arrangement> </arrangement>
</codeStyleSettings> </codeStyleSettings>
<codeStyleSettings language="kotlin">
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
</codeStyleSettings>
</code_scheme> </code_scheme>
</component> </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"> <component name="GradleSettings">
<option name="linkedExternalProjectsSettings"> <option name="linkedExternalProjectsSettings">
<GradleProjectSettings> <GradleProjectSettings>
<option name="testRunner" value="PLATFORM" /> <option name="testRunner" value="GRADLE" />
<option name="disableWrapperSourceDistributionNotification" value="true" /> <option name="disableWrapperSourceDistributionNotification" value="true" />
<option name="distributionType" value="DEFAULT_WRAPPED" /> <option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" /> <option name="externalProjectPath" value="$PROJECT_DIR$" />
@@ -24,7 +24,6 @@
</set> </set>
</option> </option>
<option name="resolveModulePerSourceSet" value="false" /> <option name="resolveModulePerSourceSet" value="false" />
<option name="useQualifiedModuleNames" value="true" />
</GradleProjectSettings> </GradleProjectSettings>
</option> </option>
</component> </component>

View File

@@ -1,6 +1,12 @@
<component name="InspectionProjectProfileManager"> <component name="InspectionProjectProfileManager">
<profile version="1.0"> <profile version="1.0">
<option name="myName" value="Project Default" /> <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"> <inspection_tool class="JavaDoc" enabled="true" level="WARNING" enabled_by_default="true">
<option name="TOP_LEVEL_CLASS_OPTIONS"> <option name="TOP_LEVEL_CLASS_OPTIONS">
<value> <value>

4
.idea/misc.xml generated
View File

@@ -3,6 +3,8 @@
<component name="DesignSurface"> <component name="DesignSurface">
<option name="filePathToZoomLevelMap"> <option name="filePathToZoomLevelMap">
<map> <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_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_cancle_follow.xml" value="0.3541666666666667" />
<entry key="..\:/picture/fuzhu/app/src/main/res/layout/activity_hong_bao.xml" value="0.17451874366767983" /> <entry key="..\:/picture/fuzhu/app/src/main/res/layout/activity_hong_bao.xml" value="0.17451874366767983" />
@@ -11,7 +13,7 @@
</map> </map>
</option> </option>
</component> </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" /> <output url="file://$PROJECT_DIR$/build/classes" />
</component> </component>
<component name="ProjectType"> <component name="ProjectType">

View File

@@ -202,7 +202,7 @@ public class AblService extends AccessibilityService {
} else if (str.contains("设置抖音号")) { } else if (str.contains("设置抖音号")) {
LiveEventBus.get("runningstate").post("0"); LiveEventBus.get("runningstate").post("0");
} }
AblViewUtil.Close();
break; break;
} }
default: default:
@@ -212,11 +212,13 @@ public class AblService extends AccessibilityService {
public void scroll2PositionClick(AccessibilityService service, String text) { public void scroll2PositionClick(AccessibilityService service, String text) {
try { try {
Thread.sleep(5000); //隔200 ms 滚动一次 Thread.sleep(5000);
//隔200 ms 滚动一次
} catch (InterruptedException e) { } catch (InterruptedException e) {
e.printStackTrace(); 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(); getdouyindsf();
} }
} }

View File

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

View File

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

View File

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

View File

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