From cccea93ac941027204d6af573b16281372d4c723 Mon Sep 17 00:00:00 2001 From: pppscn <35696959@qq.com> Date: Wed, 10 Feb 2021 23:19:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E4=BA=9B=E7=BB=86=E8=8A=82=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 4 ++-- app/release/output.json | 8 ++++---- app/src/main/AndroidManifest.xml | 2 +- ...stReceiver.java => SmsForwarderBroadcastReceiver.java} | 4 ++-- .../main/java/com/idormy/sms/forwarder/MainActivity.java | 4 ++-- .../res/layout/activity_alter_dialog_setview_rule.xml | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) rename app/src/main/java/com/idormy/sms/forwarder/BroadCastReceiver/{TSMSBroadcastReceiver.java => SmsForwarderBroadcastReceiver.java} (94%) diff --git a/app/build.gradle b/app/build.gradle index 92c12454..5ba916de 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -27,10 +27,10 @@ android { //def date = new Date().format("yyyyMMdd" , TimeZone.getTimeZone("Asia/Shanghai")) def date = new Date().format("yyyyMMdd", TimeZone.getTimeZone("GMT+08")) if (variant.buildType.name.equals('debug')) { - outputFileName = "TSMS_debug_${date}_${versionName}.apk" + outputFileName = "SmsForwarder_debug_${date}_${versionName}.apk" } if (variant.buildType.name.equals('release')) { - outputFileName = "TSMS_release_${date}_${versionName}.apk" + outputFileName = "SmsForwarder_release_${date}_${versionName}.apk" } } } diff --git a/app/release/output.json b/app/release/output.json index 652798b0..53db60bd 100644 --- a/app/release/output.json +++ b/app/release/output.json @@ -6,14 +6,14 @@ "apkInfo": { "type": "MAIN", "splits": [], - "versionCode": 35, - "versionName": "3.5.0", + "versionCode": 1, + "versionName": "1.0.0", "enabled": true, - "outputFile": "TSMS_release_20210126_3.5.0.apk", + "outputFile": "SmsForwarder_release_20210210_1.0.0.apk", "fullName": "release", "baseName": "release" }, - "path": "TSMS_release_20210126_3.5.0.apk", + "path": "SmsForwarder_release_20210210_1.0.0.apk", "properties": {} } ] \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index a14384b8..4f496aaa 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -44,7 +44,7 @@ diff --git a/app/src/main/java/com/idormy/sms/forwarder/BroadCastReceiver/TSMSBroadcastReceiver.java b/app/src/main/java/com/idormy/sms/forwarder/BroadCastReceiver/SmsForwarderBroadcastReceiver.java similarity index 94% rename from app/src/main/java/com/idormy/sms/forwarder/BroadCastReceiver/TSMSBroadcastReceiver.java rename to app/src/main/java/com/idormy/sms/forwarder/BroadCastReceiver/SmsForwarderBroadcastReceiver.java index 5aace446..38ad7676 100644 --- a/app/src/main/java/com/idormy/sms/forwarder/BroadCastReceiver/TSMSBroadcastReceiver.java +++ b/app/src/main/java/com/idormy/sms/forwarder/BroadCastReceiver/SmsForwarderBroadcastReceiver.java @@ -16,8 +16,8 @@ import java.util.List; import java.util.Map; import java.util.Objects; -public class TSMSBroadcastReceiver extends BroadcastReceiver { - private String TAG = "TSMSBroadcastReceiver"; +public class SmsForwarderBroadcastReceiver extends BroadcastReceiver { + private String TAG = "SmsForwarderBroadcastReceiver"; @Override public void onReceive(Context context, Intent intent) { diff --git a/app/src/main/java/com/idormy/sms/forwarder/MainActivity.java b/app/src/main/java/com/idormy/sms/forwarder/MainActivity.java index 97da1284..8e59cb4f 100644 --- a/app/src/main/java/com/idormy/sms/forwarder/MainActivity.java +++ b/app/src/main/java/com/idormy/sms/forwarder/MainActivity.java @@ -17,7 +17,7 @@ import android.view.MenuItem; import android.view.View; import android.widget.AdapterView; -import com.idormy.sms.forwarder.BroadCastReceiver.TSMSBroadcastReceiver; +import com.idormy.sms.forwarder.BroadCastReceiver.SmsForwarderBroadcastReceiver; import com.idormy.sms.forwarder.adapter.LogAdapter; import com.idormy.sms.forwarder.model.LogModel; import com.idormy.sms.forwarder.model.vo.LogVo; @@ -32,7 +32,7 @@ import java.util.List; public class MainActivity extends AppCompatActivity implements ReFlashListView.IReflashListener { private IntentFilter intentFilter; - private TSMSBroadcastReceiver smsBroadcastReceiver; + private SmsForwarderBroadcastReceiver smsBroadcastReceiver; private String TAG = "MainActivity"; // logVoList用于存储数据 private List logVos = new ArrayList<>(); diff --git a/app/src/main/res/layout/activity_alter_dialog_setview_rule.xml b/app/src/main/res/layout/activity_alter_dialog_setview_rule.xml index 35c97843..6cd0f981 100644 --- a/app/src/main/res/layout/activity_alter_dialog_setview_rule.xml +++ b/app/src/main/res/layout/activity_alter_dialog_setview_rule.xml @@ -134,7 +134,7 @@ android:id="@+id/btSetRuleSender" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="设置发送方"> + android:text="选择发送方">