重新梳理代码

This commit is contained in:
pppscn 2021-09-30 14:51:35 +08:00
parent 658ee0b512
commit ec6aa2370c
41 changed files with 306 additions and 231 deletions

View File

@ -142,6 +142,7 @@ dependencies {
implementation 'com.github.mailhu:emailkit:4.2.2'
//Lombok
//noinspection AnnotationProcessorOnCompilePath
compileOnly 'org.projectlombok:lombok:1.18.20'
annotationProcessor 'org.projectlombok:lombok:1.18.20'

View File

@ -61,7 +61,8 @@
</activity>
<activity
android:name=".AboutActivity"
android:label="@string/about">
android:label="@string/about"
tools:ignore="IntentFilterExportedReceiver">
<intent-filter>
<!--协议部分,随便设置-->
<data

View File

@ -46,7 +46,7 @@ public class FrontService extends Service {
super.onCreate();
Log.i(TAG, "onCreate");
Notification.Builder builder = new Notification.Builder(this);
builder.setSmallIcon(R.drawable.ic_sms_forwarder);
builder.setSmallIcon(R.drawable.ic_forwarder);
OSUtils.ROM_TYPE romType = OSUtils.getRomType();
//Log.d(TAG, "onCreate: " + romType);
if (romType == OSUtils.ROM_TYPE.MIUI_ROM) {
@ -131,6 +131,7 @@ public class FrontService extends Service {
}
//获取当前电量
@SuppressLint("ObsoleteSdkInt")
private int getBatteryLevel() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
BatteryManager batteryManager = (BatteryManager) getSystemService(BATTERY_SERVICE);

View File

@ -14,7 +14,7 @@ import javax.net.ssl.TrustManager;
import javax.net.ssl.TrustManagerFactory;
import javax.net.ssl.X509TrustManager;
@SuppressLint("TrustAllX509TrustManager")
@SuppressLint("ALL")
public class CertUtils {
//获取这个SSLSocketFactory

View File

@ -1,5 +1,6 @@
package com.idormy.sms.forwarder.utils;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
@ -10,7 +11,7 @@ public class SettingUtil {
static Boolean hasInit = false;
private static final String TAG = "SettingUtil";
private static SharedPreferences sp_setting = null;
@SuppressWarnings("FieldCanBeLocal")
@SuppressLint("StaticFieldLeak")
private static Context context = null;
public static void init(Context context1) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 688 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 458 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 889 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -0,0 +1,5 @@
<vector android:autoMirrored="true" android:height="24dp"
android:tint="#FFFFFF" android:viewportHeight="24"
android:viewportWidth="24" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="@android:color/white" android:pathData="M20,4H4C2.9,4 2,4.9 2,6v12c0,1.1 0.9,2 2,2h9v-2H4V8l8,5l8,-5v5h2V6C22,4.9 21.1,4 20,4zM12,11L4,6h16L12,11zM19,15l4,4l-4,4v-3h-4v-2h4V15z"/>
</vector>

View File

@ -6,7 +6,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
@ -34,7 +34,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="end"
android:text="v1.0" />
android:text="@string/version_now" />
</LinearLayout>
<Button
@ -47,7 +47,6 @@
</LinearLayout>
<LinearLayout
android:id="@+id/auto_reboot"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
@ -101,7 +100,6 @@
</LinearLayout>
<LinearLayout
android:id="@+id/about_web"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
@ -117,18 +115,16 @@
android:text="@string/open_source" />
<TextView
android:id="@+id/linkweb"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="3"
android:autoLink="web"
android:gravity="end"
android:text="https://github.com/pppscn/SmsForwarder"
android:text="@string/linkweb"
android:textSize="14sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/about_web2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
@ -144,18 +140,16 @@
android:text="@string/synchronize_mirror" />
<TextView
android:id="@+id/linkweb2"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="3"
android:autoLink="web"
android:gravity="end"
android:text="https://gitee.com/pp/SmsForwarder"
android:text="@string/linkweb2"
android:textSize="14sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_wait_open_time"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
@ -228,7 +222,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="end"
android:text="0KB" />
android:text="@string/cache_size" />
</LinearLayout>
<Button

View File

@ -31,7 +31,6 @@
android:orientation="horizontal">
<Button
android:id="@+id/bt_refresh_log"
android:layout_width="match_parent"
android:layout_height="35dp"
android:layout_marginStart="10dp"
@ -41,10 +40,9 @@
android:background="@color/colorPrimary"
android:onClick="cleanLog"
android:text="@string/bt_refresh_log"
tools:ignore="NestedWeights" />
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/rule_setting"
android:layout_width="match_parent"
android:layout_height="35dp"
android:layout_marginStart="10dp"
@ -54,10 +52,9 @@
android:background="@color/colorPrimary"
android:onClick="toRuleSetting"
android:text="@string/rule_setting"
tools:ignore="NestedWeights" />
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/sender_setting"
android:layout_width="match_parent"
android:layout_height="35dp"
android:layout_marginLeft="10dp"
@ -67,7 +64,8 @@
android:layout_weight="1"
android:background="@color/colorPrimary"
android:onClick="toSendSetting"
android:text="@string/sender_setting" />
android:text="@string/sender_setting"
tools:ignore="ButtonStyle" />
</LinearLayout>
</LinearLayout>

View File

@ -25,7 +25,6 @@
android:textColor="@color/colorPrimary" />
<Button
android:id="@+id/bt_add_rule"
android:layout_width="match_parent"
android:layout_height="35dp"
android:layout_margin="10dp"

View File

@ -25,7 +25,6 @@
android:textColor="@color/colorPrimary" />
<Button
android:id="@+id/button22"
android:layout_width="match_parent"
android:layout_height="35dp"
android:layout_margin="10dp"

View File

@ -29,12 +29,12 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:autofillHints=""
android:ems="16"
android:inputType="text"
android:maxLines="1"
android:text=""
tools:ignore="LabelFor"
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
@ -63,7 +63,8 @@
android:layout_height="wrap_content"
android:gravity="end"
android:text="@string/carrier_mobile"
android:textSize="9sp" />
android:textSize="9sp"
tools:ignore="SmallSp" />
</LinearLayout>
<EditText
@ -71,11 +72,12 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:autofillHints=""
android:ems="16"
android:inputType="text"
android:maxLines="1"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
@ -104,7 +106,8 @@
android:layout_height="wrap_content"
android:gravity="end"
android:text="@string/carrier_mobile"
android:textSize="9sp" />
android:textSize="9sp"
tools:ignore="SmallSp" />
</LinearLayout>
<EditText
@ -112,11 +115,12 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:autofillHints=""
android:ems="16"
android:inputType="text"
android:maxLines="1"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
@ -145,7 +149,8 @@
android:layout_height="wrap_content"
android:gravity="end"
android:text="@string/low_power_alarm_threshold_tips"
android:textSize="9sp" />
android:textSize="9sp"
tools:ignore="SmallSp" />
</LinearLayout>
<EditText
@ -153,11 +158,12 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:autofillHints=""
android:ems="16"
android:inputType="number"
android:maxLines="1"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
@ -186,7 +192,8 @@
android:layout_height="wrap_content"
android:gravity="end"
android:text="@string/retry_interval_tips"
android:textSize="9sp" />
android:textSize="9sp"
tools:ignore="SmallSp" />
</LinearLayout>
<LinearLayout
@ -199,60 +206,65 @@
android:layout_width="42dp"
android:layout_height="48dp"
android:layout_marginStart="5dp"
android:autofillHints=""
android:ems="16"
android:inputType="number"
android:maxLines="1"
android:textAlignment="center"
android:text=""
android:autofillHints="" />
android:textAlignment="center"
tools:ignore="LabelFor" />
<EditText
android:id="@+id/et_retry_delay_time2"
android:layout_width="42dp"
android:layout_height="48dp"
android:layout_marginStart="5dp"
android:autofillHints=""
android:ems="16"
android:inputType="number"
android:maxLines="1"
android:textAlignment="center"
android:text=""
android:autofillHints="" />
android:textAlignment="center"
tools:ignore="LabelFor" />
<EditText
android:id="@+id/et_retry_delay_time3"
android:layout_width="42dp"
android:layout_height="48dp"
android:layout_marginStart="5dp"
android:autofillHints=""
android:ems="16"
android:inputType="number"
android:maxLines="1"
android:textAlignment="center"
android:text=""
android:autofillHints="" />
android:textAlignment="center"
tools:ignore="LabelFor" />
<EditText
android:id="@+id/et_retry_delay_time4"
android:layout_width="42dp"
android:layout_height="48dp"
android:layout_marginStart="5dp"
android:autofillHints=""
android:ems="16"
android:inputType="number"
android:maxLines="1"
android:textAlignment="center"
android:text=""
android:autofillHints="" />
android:textAlignment="center"
tools:ignore="LabelFor" />
<EditText
android:id="@+id/et_retry_delay_time5"
android:layout_width="42dp"
android:layout_height="48dp"
android:layout_marginStart="5dp"
android:autofillHints=""
android:ems="16"
android:inputType="number"
android:maxLines="1"
android:textAlignment="center"
android:text=""
android:autofillHints="" />
android:textAlignment="center"
tools:ignore="LabelFor" />
</LinearLayout>
</LinearLayout>
@ -299,7 +311,6 @@
android:textStyle="bold" />
<Switch
android:id="@+id/switch_add_device_name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="3"
@ -319,10 +330,10 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/forward_missed_calls"
android:textStyle="bold" />
android:textStyle="bold"
tools:ignore="RelativeOverlap" />
<Switch
android:id="@+id/switch_enable_phone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
@ -394,9 +405,10 @@
android:id="@+id/text_sms_template"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autofillHints=""
android:inputType="text"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
<LinearLayout
android:layout_width="match_parent"
@ -413,7 +425,7 @@
android:background="@color/colorPrimary"
android:onClick="toInsertLabel"
android:text="@string/insert_sender"
tools:ignore="NestedWeights" />
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/bt_insert_content"
@ -425,7 +437,8 @@
android:layout_weight="1"
android:background="@color/colorPrimary"
android:onClick="toInsertLabel"
android:text="@string/insert_content" />
android:text="@string/insert_content"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/bt_insert_extra"
@ -437,7 +450,8 @@
android:layout_weight="1"
android:background="@color/colorPrimary"
android:onClick="toInsertLabel"
android:text="@string/insert_extra" />
android:text="@string/insert_extra"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/bt_insert_time"
@ -449,7 +463,8 @@
android:layout_weight="1"
android:background="@color/colorPrimary"
android:onClick="toInsertLabel"
android:text="@string/insert_time" />
android:text="@string/insert_time"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/bt_insert_device_name"
@ -461,14 +476,14 @@
android:layout_weight="1"
android:background="@color/colorPrimary"
android:onClick="toInsertLabel"
android:text="@string/insert_device_name" />
android:text="@string/insert_device_name"
tools:ignore="ButtonStyle,NestedWeights" />
</LinearLayout>
</LinearLayout>
<Button
android:id="@+id/btnInitSetting"
android:layout_width="match_parent"
android:layout_height="35dp"
android:layout_margin="10dp"
@ -478,7 +493,6 @@
android:text="@string/init_setting" />
<Button
android:id="@+id/btnBatterySetting"
android:layout_width="match_parent"
android:layout_height="35dp"
android:layout_margin="10dp"

View File

@ -6,7 +6,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
@ -26,11 +26,11 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="3dp"
android:autofillHints=""
android:ems="11"
android:inputType="text"
android:text=""
tools:ignore="LabelFor"
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
<LinearLayout
@ -49,10 +49,10 @@
android:id="@+id/editTextBarkServer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:autofillHints=""
android:ems="14"
android:inputType="text"
android:text=""
android:autofillHints=""
tools:ignore="LabelFor" />
</LinearLayout>
@ -63,11 +63,13 @@
android:orientation="horizontal">
<Button
android:id="@+id/buttonBarkOk"
android:id="@+id/buttonBarkTest"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/ok" />
android:text="@string/test"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/buttonBarkDel"
@ -75,15 +77,16 @@
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/del" />
android:text="@string/del"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/buttonBarkTest"
android:id="@+id/buttonBarkOk"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/test" />
android:text="@string/ok"
tools:ignore="ButtonStyle,NestedWeights" />
</LinearLayout>

View File

@ -6,7 +6,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
@ -26,10 +26,11 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="3dp"
android:autofillHints=""
android:ems="11"
android:inputType="text"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
<LinearLayout
@ -48,10 +49,11 @@
android:id="@+id/editTextDingdingToken"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:autofillHints=""
android:ems="14"
android:inputType="textPassword"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
@ -71,10 +73,11 @@
android:id="@+id/editTextDingdingSecret"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:autofillHints=""
android:ems="14"
android:inputType="textPassword"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
<LinearLayout
@ -93,10 +96,11 @@
android:id="@+id/editTextDingdingAtMobiles"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:autofillHints=""
android:ems="14"
android:inputType="text"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
<LinearLayout
@ -127,11 +131,13 @@
android:orientation="horizontal">
<Button
android:id="@+id/buttonDingdingOk"
android:id="@+id/buttonDingdingTest"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/ok" />
android:text="@string/test"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/buttonDingdingDel"
@ -139,15 +145,16 @@
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/del" />
android:text="@string/del"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/buttonDingdingTest"
android:id="@+id/buttonDingdingOk"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/test" />
android:text="@string/ok"
tools:ignore="ButtonStyle,NestedWeights" />
</LinearLayout>

View File

@ -6,7 +6,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
@ -26,10 +26,11 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="3dp"
android:autofillHints=""
android:ems="11"
android:inputType="text"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor,TextFields" />
</LinearLayout>
<LinearLayout
@ -49,10 +50,11 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="3dp"
android:autofillHints=""
android:ems="14"
android:inputType="text"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor,TextFields" />
</LinearLayout>
<LinearLayout
@ -72,10 +74,11 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="3dp"
android:autofillHints=""
android:ems="5"
android:inputType="text"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor,TextFields" />
<TextView
android:layout_width="wrap_content"
@ -107,10 +110,11 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="3dp"
android:autofillHints=""
android:ems="14"
android:inputType="textEmailAddress"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
<LinearLayout
@ -130,10 +134,11 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="3dp"
android:autofillHints=""
android:ems="14"
android:inputType="text"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor,TextFields" />
</LinearLayout>
<LinearLayout
@ -153,10 +158,11 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="3dp"
android:autofillHints=""
android:ems="14"
android:inputType="textPassword"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor,TextFields" />
</LinearLayout>
<LinearLayout
@ -176,10 +182,11 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="3dp"
android:autofillHints=""
android:ems="14"
android:inputType="textEmailAddress"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
<LinearLayout
@ -189,11 +196,13 @@
android:orientation="horizontal">
<Button
android:id="@+id/buttonEmailOk"
android:id="@+id/buttonEmailTest"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/ok" />
android:text="@string/test"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/buttonEmailDel"
@ -201,15 +210,16 @@
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/del" />
android:text="@string/del"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/buttonEmailTest"
android:id="@+id/buttonEmailOk"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/test" />
android:text="@string/ok"
tools:ignore="ButtonStyle,NestedWeights" />
</LinearLayout>

View File

@ -1,11 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
@ -25,10 +26,11 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="3dp"
android:autofillHints=""
android:ems="11"
android:inputType="text"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
<LinearLayout
@ -47,10 +49,11 @@
android:id="@+id/editTextFeishuWebhook"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:autofillHints=""
android:ems="14"
android:inputType="text"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
@ -70,10 +73,11 @@
android:id="@+id/editTextFeishuSecret"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:autofillHints=""
android:ems="14"
android:inputType="textPassword"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
<LinearLayout
@ -83,11 +87,13 @@
android:orientation="horizontal">
<Button
android:id="@+id/buttonFeishuOk"
android:id="@+id/buttonFeishuTest"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/ok" />
android:text="@string/test"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/buttonFeishuDel"
@ -95,15 +101,16 @@
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/del" />
android:text="@string/del"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/buttonFeishuTest"
android:id="@+id/buttonFeishuOk"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/test" />
android:text="@string/ok"
tools:ignore="ButtonStyle,NestedWeights" />
</LinearLayout>

View File

@ -6,7 +6,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
@ -28,9 +28,10 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:autofillHints=""
android:inputType="text"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
<LinearLayout
@ -52,9 +53,10 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:autofillHints=""
android:inputType="text"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
<LinearLayout
@ -76,9 +78,10 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:autofillHints=""
android:inputType="text"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
@ -101,9 +104,10 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:autofillHints=""
android:inputType="textPassword"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
<LinearLayout
@ -153,9 +157,10 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:autofillHints=""
android:inputType="text"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
<TextView
@ -173,11 +178,13 @@
android:orientation="horizontal">
<Button
android:id="@+id/buttonQYWXAppOk"
android:id="@+id/buttonQYWXAppTest"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/ok" />
android:text="@string/test"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/buttonQYWXAppDel"
@ -185,15 +192,16 @@
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/del" />
android:text="@string/del"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/buttonQYWXAppTest"
android:id="@+id/buttonQYWXAppOk"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/test" />
android:text="@string/ok"
tools:ignore="ButtonStyle,NestedWeights" />
</LinearLayout>

View File

@ -1,11 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
@ -25,10 +26,11 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="3dp"
android:autofillHints=""
android:ems="11"
android:inputType="text"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
<LinearLayout
@ -47,10 +49,11 @@
android:id="@+id/editTextQYWXGroupRobotWebHook"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:autofillHints=""
android:ems="14"
android:inputType="text"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
<LinearLayout
@ -60,11 +63,13 @@
android:orientation="horizontal">
<Button
android:id="@+id/buttonQyWxGroupRobotOk"
android:id="@+id/buttonQyWxGroupRobotTest"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/ok" />
android:text="@string/test"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/buttonQyWxGroupRobotDel"
@ -72,15 +77,16 @@
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/del" />
android:text="@string/del"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/buttonQyWxGroupRobotTest"
android:id="@+id/buttonQyWxGroupRobotOk"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/test" />
android:text="@string/ok"
tools:ignore="ButtonStyle,NestedWeights" />
</LinearLayout>

View File

@ -1,11 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
@ -36,12 +37,12 @@
<RadioButton
android:id="@+id/btnSimSlot1"
style="@style/rg_rb_style"
android:text="SIM1" />
android:text="@string/sim1" />
<RadioButton
android:id="@+id/btnSimSlot2"
style="@style/rg_rb_style"
android:text="SIM2" />
android:text="@string/sim2" />
</RadioGroup>
</LinearLayout>
@ -94,8 +95,8 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="5dp"
android:layout_marginEnd="5dp"
android:layout_marginTop="5dp"
android:layout_marginEnd="5dp"
android:orientation="vertical">
<TextView
@ -170,26 +171,18 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:autofillHints=""
android:ems="14"
android:inputType="text"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
<TextView
android:id="@+id/tv_mu_rule_tips"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="3dp"
android:text="
多重匹配规则示例:\n
\n
并且 是 手机号 相等 10086\n
或者 是 手机号 相等 10011\n
并且 是 短信内容 包含 欠费\n
\n
以上规则表示收到短信并且手机号是10086 或者 手机号是10010并且 短信内容 包含 欠费 时转发短信\n
注意:每行开始的空格代表层级,太过复杂的多重规则可能导致内存占用很大!
" />
android:text="@string/mu_rule_tips" />
</LinearLayout>
<LinearLayout
@ -237,11 +230,13 @@
android:orientation="horizontal">
<Button
android:id="@+id/buttonRuleOk"
android:id="@+id/buttonRuleTest"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/ok" />
android:text="@string/test"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/buttonRuleDel"
@ -249,15 +244,16 @@
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/del" />
android:text="@string/del"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/buttonRuleTest"
android:id="@+id/buttonRuleOk"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/test" />
android:text="@string/ok"
tools:ignore="ButtonStyle,NestedWeights" />
</LinearLayout>

View File

@ -1,11 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:orientation="vertical">
@ -33,13 +34,13 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:text="SIM1" />
android:text="@string/sim1" />
<RadioButton
android:id="@+id/btnSimSlot2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="SIM2" />
android:text="@string/sim2" />
</RadioGroup>
<TextView
@ -54,10 +55,11 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="3dp"
android:autofillHints=""
android:ems="10"
android:inputType="text"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor,TextFields" />
<TextView
android:layout_width="match_parent"
@ -71,10 +73,11 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="3dp"
android:autofillHints=""
android:ems="10"
android:inputType="text"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
<Button

View File

@ -1,11 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
@ -25,10 +26,11 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="3dp"
android:autofillHints=""
android:ems="11"
android:inputType="text"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
<LinearLayout
@ -47,10 +49,11 @@
android:id="@+id/editTextServerChanSendKey"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:autofillHints=""
android:ems="14"
android:inputType="textPassword"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
<LinearLayout
@ -60,11 +63,13 @@
android:orientation="horizontal">
<Button
android:id="@+id/buttonServerChanOk"
android:id="@+id/buttonServerChanTest"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/ok" />
android:text="@string/test"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/buttonServerChanDel"
@ -72,15 +77,16 @@
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/del" />
android:text="@string/del"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/buttonServerChanTest"
android:id="@+id/buttonServerChanOk"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/test" />
android:text="@string/ok"
tools:ignore="ButtonStyle,NestedWeights" />
</LinearLayout>

View File

@ -6,7 +6,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
@ -26,10 +26,11 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="3dp"
android:autofillHints=""
android:ems="14"
android:inputType="text"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
<LinearLayout
@ -61,12 +62,12 @@
<RadioButton
android:id="@+id/btnSmsSimSlot1"
style="@style/rg_rb_style"
android:text="SIM1" />
android:text="@string/sim1" />
<RadioButton
android:id="@+id/btnSmsSimSlot2"
style="@style/rg_rb_style"
android:text="SIM2" />
android:text="@string/sim2" />
</RadioGroup>
</LinearLayout>
@ -89,9 +90,11 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="3dp"
android:autofillHints=""
android:ems="14"
android:inputType="text"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
<LinearLayout
@ -122,11 +125,13 @@
android:orientation="horizontal">
<Button
android:id="@+id/buttonSmsOk"
android:id="@+id/buttonSmsTest"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/ok" />
android:text="@string/test"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/buttonSmsDel"
@ -134,15 +139,16 @@
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/del" />
android:text="@string/del"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/buttonSmsTest"
android:id="@+id/buttonSmsOk"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/test" />
android:text="@string/ok"
tools:ignore="ButtonStyle,NestedWeights" />
</LinearLayout>

View File

@ -1,11 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
@ -25,10 +26,11 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="3dp"
android:autofillHints=""
android:ems="11"
android:inputType="text"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
<LinearLayout
@ -47,10 +49,11 @@
android:id="@+id/editTextTelegramApiToken"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:autofillHints=""
android:ems="14"
android:inputType="textPassword"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
<LinearLayout
@ -69,10 +72,11 @@
android:id="@+id/editTextTelegramChatId"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:autofillHints=""
android:ems="14"
android:inputType="text"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
<LinearLayout
@ -82,11 +86,13 @@
android:orientation="horizontal">
<Button
android:id="@+id/buttonTelegramOk"
android:id="@+id/buttonTelegramTest"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/ok" />
android:text="@string/test"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/buttonTelegramDel"
@ -94,15 +100,16 @@
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/del" />
android:text="@string/del"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/buttonTelegramTest"
android:id="@+id/buttonTelegramOk"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/test" />
android:text="@string/ok"
tools:ignore="ButtonStyle,NestedWeights" />
</LinearLayout>

View File

@ -1,11 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
@ -25,10 +26,11 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="3dp"
android:autofillHints=""
android:ems="11"
android:inputType="text"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
<LinearLayout
@ -56,13 +58,13 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:text="POST" />
android:text="@string/post" />
<RadioButton
android:id="@+id/radioWebNotifyMethodGet"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="GET" />
android:text="@string/get" />
</RadioGroup>
@ -84,10 +86,11 @@
android:id="@+id/editTextWebNotifyWebServer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:autofillHints=""
android:ems="14"
android:inputType="text"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
<LinearLayout
@ -106,10 +109,11 @@
android:id="@+id/editTextWebNotifyWebParams"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:autofillHints=""
android:ems="14"
android:inputType="text"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
<LinearLayout
@ -128,10 +132,11 @@
android:id="@+id/editTextWebNotifySecret"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:autofillHints=""
android:ems="14"
android:inputType="textPassword"
android:text=""
android:autofillHints="" />
tools:ignore="LabelFor" />
</LinearLayout>
<LinearLayout
@ -141,11 +146,13 @@
android:orientation="horizontal">
<Button
android:id="@+id/buttonWebNotifyOk"
android:id="@+id/buttonWebNotifyTest"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/ok" />
android:text="@string/test"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/buttonWebNotifyDel"
@ -153,15 +160,16 @@
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/del" />
android:text="@string/del"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:id="@+id/buttonWebNotifyTest"
android:id="@+id/buttonWebNotifyOk"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:text="@string/test" />
android:text="@string/ok"
tools:ignore="ButtonStyle,NestedWeights" />
</LinearLayout>

View File

@ -9,7 +9,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="10dip"
android:paddingBottom="10dip">
android:paddingBottom="10dip"
tools:ignore="UselessParent">
<LinearLayout
android:id="@+id/layout"
@ -17,13 +18,14 @@
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:gravity="center"
android:orientation="vertical">
android:orientation="vertical"
tools:ignore="RelativeOverlap">
<TextView
android:id="@+id/tip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="下拉可以刷新!" />
android:text="@string/pull_tips" />
<TextView
android:id="@+id/lastUpdateTime"

View File

@ -7,7 +7,6 @@
<LinearLayout
android:layout_width="34dp"
android:layout_height="34dp"
android:layout_alignParentEnd="true"
android:layout_marginStart="5dp"
android:layout_marginTop="10dp"
android:orientation="vertical">

View File

@ -8,7 +8,6 @@
android:id="@+id/rule_sender_image"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_alignParentEnd="true"
android:layout_margin="5dp"
tools:ignore="ContentDescription" />

View File

@ -2,7 +2,8 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
tools:ignore="UseCompoundDrawables">
<ImageView
android:id="@+id/sender_image"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

View File

@ -4,14 +4,4 @@
<color name="colorPrimaryDark">#1B8DD4</color>
<color name="colorAccent">#63C2FA</color>
<color name="white">#FFFFFF</color>
<color name="blank">#696969</color>
<color name="textColor">#DF000000</color>
<color name="textColorRequire">#F44336</color>
<color name="textHintColor">#8A000000</color>
<color name="grey">#EEEEEE</color>
<color name="greyDark">#DDDDDD</color>
<color name="success">#4CAF50</color>
<color name="error">#F44336</color>
</resources>

View File

@ -1,4 +1,4 @@
<resources>
<resources xmlns:tools="http://schemas.android.com/tools">
<string name="app_name">SmsForwarder</string>
<string name="notification_content">Forward to DingTalk Bot/WeCom Group Bot/Email/Bark/ServerChan/Telegram/Webhook, etc</string>
<!--Common-->
@ -7,7 +7,6 @@
<string name="del">Delete</string>
<string name="test">Test</string>
<string name="confirm">Confirm</string>
<string name="tips">Tips</string>
<string name="all">All</string>
<string name="select">Select</string>
<string name="setting">Settings</string>
@ -31,7 +30,7 @@
<string name="join_qq_group2">Join 2nd Group</string>
<string name="cache">Cache</string>
<string name="purge">Purge</string>
<string name="checking">Checking...</string>
<string name="checking">Checking</string>
<string name="up_to_date">Yo, you are up to date!</string>
<string name="cache_purged">Cache purged</string>
<string name="unknown_qq_version">No mobile QQ is installed or not supported by recent version!</string>
@ -44,7 +43,7 @@
<string name="clear_logs_tips">Are you sure to clear all forwarding logs?</string>
<string name="pull_tips">Pull to refresh.</string>
<string name="release_tips">Release to refresh.</string>
<string name="reflashing_tips">Refreshing...</string>
<string name="reflashing_tips">Refreshing</string>
<!--RuleActivity-->
<string name="setrule">Fwd Rule Settings</string>
<string name="delete_rule_title">Delete confirmation</string>
@ -138,11 +137,11 @@
<string name="OnlyNoNetwork">仅当无网络时启用</string>
<!--SettingActivity-->
<string name="device_name">Device name</string>
<string name="sim1_remark">SIM1 Remark</string>
<string name="sim2_remark">SIM2 Remark</string>
<string name="sim1_remark" tools:ignore="Typos">SIM1 Remark</string>
<string name="sim2_remark" tools:ignore="Typos">SIM2 Remark</string>
<string name="carrier_mobile">Carrier_Mobile Number</string>
<string name="low_power_alarm_threshold">Low power alarm threshold</string>
<string name="low_power_alarm_threshold_tips">Value range: 0-100. Left blank or 0 is disabled</string>
<string name="low_power_alarm_threshold_tips">Value range: 0100. Left blank or 0 is disabled</string>
<string name="retry_interval">Retry interval (seconds)</string>
<string name="retry_interval_tips">Retry five times after it fails</string>
<string name="add_extra">Sim slot info attached</string>
@ -163,5 +162,13 @@
<string name="unsupport">Your phone does not support this setting</string>
<string name="isIgnored">Set successfully!</string>
<!--SenderBaseMsg-->
<string name="start_request_interface">Start request interface...</string>
<string name="version_now">v1.0</string>
<string name="linkweb">https://github.com/pppscn/SmsForwarder</string>
<string name="linkweb2">https://gitee.com/pp/SmsForwarder</string>
<string name="cache_size">0KB</string>
<string name="sim1" tools:ignore="Typos">SIM1</string>
<string name="sim2" tools:ignore="Typos">SIM2</string>
<string name="mu_rule_tips">多重匹配规则示例:\n \n 并且 是 手机号 相等 10086\n 或者 是 手机号 相等 10011\n 并且 是 短信内容 包含 欠费\n \n 以上规则表示收到短信并且手机号是10086 或者 手机号是10010并且 短信内容 包含 欠费 时转发短信\n 注意:每行开始的空格代表层级,太过复杂的多重规则可能导致内存占用很大!</string>
<string name="post">POST</string>
<string name="get">GET</string>
</resources>

View File

@ -4,14 +4,4 @@
<color name="colorPrimaryDark">#1B8DD4</color>
<color name="colorAccent">#63C2FA</color>
<color name="white">#FFFFFF</color>
<color name="blank">#696969</color>
<color name="textColor">#DF000000</color>
<color name="textColorRequire">#F44336</color>
<color name="textHintColor">#8A000000</color>
<color name="grey">#EEEEEE</color>
<color name="greyDark">#DDDDDD</color>
<color name="success">#4CAF50</color>
<color name="error">#F44336</color>
</resources>

View File

@ -1,4 +1,4 @@
<resources>
<resources xmlns:tools="http://schemas.android.com/tools">
<string name="app_name">短信转发器</string>
<string name="notification_content">根据规则转发到钉钉/微信/邮箱/bark/Server酱/Telegram/webhook等</string>
<!--Common-->
@ -7,7 +7,6 @@
<string name="del">删除</string>
<string name="test">测试</string>
<string name="confirm">确认</string>
<string name="tips">提示</string>
<string name="all">全部</string>
<string name="select">选择</string>
<string name="setting">设置</string>
@ -31,7 +30,7 @@
<string name="join_qq_group2">加入②群</string>
<string name="cache">缓存大小</string>
<string name="purge">清除缓存</string>
<string name="checking">检查中...</string>
<string name="checking">检查中</string>
<string name="up_to_date">已是最新版本!</string>
<string name="cache_purged">缓存清理完成</string>
<string name="unknown_qq_version">未安装手Q或安装的版本不支持</string>
@ -44,7 +43,7 @@
<string name="clear_logs_tips">确定要清空转发记录吗?</string>
<string name="pull_tips">下拉可以刷新!</string>
<string name="release_tips">松开可以刷新!</string>
<string name="reflashing_tips">正在刷新...</string>
<string name="reflashing_tips">正在刷新</string>
<!--RuleActivity-->
<string name="setrule">设置转发规则</string>
<string name="delete_rule_title">规则删除确认</string>
@ -138,11 +137,11 @@
<string name="OnlyNoNetwork">仅当无网络时启用</string>
<!--SettingActivity-->
<string name="device_name">设备名称</string>
<string name="sim1_remark">SIM1备注</string>
<string name="sim2_remark">SIM2备注</string>
<string name="sim1_remark" tools:ignore="Typos">SIM1备注</string>
<string name="sim2_remark" tools:ignore="Typos">SIM2备注</string>
<string name="carrier_mobile">运营商_手机号</string>
<string name="low_power_alarm_threshold">低电量预警阈值</string>
<string name="low_power_alarm_threshold_tips">取值范围0-100留空或0禁用</string>
<string name="low_power_alarm_threshold_tips">取值范围0100留空或0禁用</string>
<string name="retry_interval">每次重试间隔(秒)</string>
<string name="retry_interval_tips">接口请求失败后将重试5次</string>
<string name="add_extra">转发时附加卡槽信息</string>
@ -162,6 +161,14 @@
<string name="calling">来电</string>
<string name="unsupport">您的手机不支持此设置</string>
<string name="isIgnored">已设置成功!</string>
<!--SenderBaseMsg-->
<string name="start_request_interface">开始请求接口...</string>
<!--Other-->
<string name="version_now">v1.0</string>
<string name="linkweb">https://github.com/pppscn/SmsForwarder</string>
<string name="linkweb2">https://gitee.com/pp/SmsForwarder</string>
<string name="cache_size">0KB</string>
<string name="sim1" tools:ignore="Typos">SIM1</string>
<string name="sim2" tools:ignore="Typos">SIM2</string>
<string name="mu_rule_tips">多重匹配规则示例:\n \n 并且 是 手机号 相等 10086\n 或者 是 手机号 相等 10011\n 并且 是 短信内容 包含 欠费\n \n 以上规则表示收到短信并且手机号是10086 或者 手机号是10010并且 短信内容 包含 欠费 时转发短信\n 注意:每行开始的空格代表层级,太过复杂的多重规则可能导致内存占用很大!</string>
<string name="post">POST</string>
<string name="get">GET</string>
</resources>