一些细节优化

This commit is contained in:
pppscn 2021-02-10 23:19:09 +08:00
parent 5fd3c77e5c
commit cccea93ac9
6 changed files with 12 additions and 12 deletions

View File

@ -27,10 +27,10 @@ android {
//def date = new Date().format("yyyyMMdd" , TimeZone.getTimeZone("Asia/Shanghai")) //def date = new Date().format("yyyyMMdd" , TimeZone.getTimeZone("Asia/Shanghai"))
def date = new Date().format("yyyyMMdd", TimeZone.getTimeZone("GMT+08")) def date = new Date().format("yyyyMMdd", TimeZone.getTimeZone("GMT+08"))
if (variant.buildType.name.equals('debug')) { if (variant.buildType.name.equals('debug')) {
outputFileName = "TSMS_debug_${date}_${versionName}.apk" outputFileName = "SmsForwarder_debug_${date}_${versionName}.apk"
} }
if (variant.buildType.name.equals('release')) { if (variant.buildType.name.equals('release')) {
outputFileName = "TSMS_release_${date}_${versionName}.apk" outputFileName = "SmsForwarder_release_${date}_${versionName}.apk"
} }
} }
} }

View File

@ -6,14 +6,14 @@
"apkInfo": { "apkInfo": {
"type": "MAIN", "type": "MAIN",
"splits": [], "splits": [],
"versionCode": 35, "versionCode": 1,
"versionName": "3.5.0", "versionName": "1.0.0",
"enabled": true, "enabled": true,
"outputFile": "TSMS_release_20210126_3.5.0.apk", "outputFile": "SmsForwarder_release_20210210_1.0.0.apk",
"fullName": "release", "fullName": "release",
"baseName": "release" "baseName": "release"
}, },
"path": "TSMS_release_20210126_3.5.0.apk", "path": "SmsForwarder_release_20210210_1.0.0.apk",
"properties": {} "properties": {}
} }
] ]

View File

@ -44,7 +44,7 @@
</intent-filter> </intent-filter>
</receiver> </receiver>
<receiver <receiver
android:name="com.idormy.sms.forwarder.BroadCastReceiver.TSMSBroadcastReceiver" android:name="com.idormy.sms.forwarder.BroadCastReceiver.SmsForwarderBroadcastReceiver"
android:permission="android.permission.BROADCAST_SMS"> android:permission="android.permission.BROADCAST_SMS">
<intent-filter android:priority="999"> <intent-filter android:priority="999">
<!--短信广播--> <!--短信广播-->

View File

@ -16,8 +16,8 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Objects; import java.util.Objects;
public class TSMSBroadcastReceiver extends BroadcastReceiver { public class SmsForwarderBroadcastReceiver extends BroadcastReceiver {
private String TAG = "TSMSBroadcastReceiver"; private String TAG = "SmsForwarderBroadcastReceiver";
@Override @Override
public void onReceive(Context context, Intent intent) { public void onReceive(Context context, Intent intent) {

View File

@ -17,7 +17,7 @@ import android.view.MenuItem;
import android.view.View; import android.view.View;
import android.widget.AdapterView; 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.adapter.LogAdapter;
import com.idormy.sms.forwarder.model.LogModel; import com.idormy.sms.forwarder.model.LogModel;
import com.idormy.sms.forwarder.model.vo.LogVo; import com.idormy.sms.forwarder.model.vo.LogVo;
@ -32,7 +32,7 @@ import java.util.List;
public class MainActivity extends AppCompatActivity implements ReFlashListView.IReflashListener { public class MainActivity extends AppCompatActivity implements ReFlashListView.IReflashListener {
private IntentFilter intentFilter; private IntentFilter intentFilter;
private TSMSBroadcastReceiver smsBroadcastReceiver; private SmsForwarderBroadcastReceiver smsBroadcastReceiver;
private String TAG = "MainActivity"; private String TAG = "MainActivity";
// logVoList用于存储数据 // logVoList用于存储数据
private List<LogVo> logVos = new ArrayList<>(); private List<LogVo> logVos = new ArrayList<>();

View File

@ -134,7 +134,7 @@
android:id="@+id/btSetRuleSender" android:id="@+id/btSetRuleSender"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="设置发送方"> android:text="选择发送方">
</Button> </Button>
</LinearLayout> </LinearLayout>