一些细节优化

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("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"
}
}
}

View File

@ -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": {}
}
]

View File

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

View File

@ -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) {

View File

@ -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<LogVo> logVos = new ArrayList<>();

View File

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