v2.0.0
|
@ -28,7 +28,7 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: pppscn/keystore
|
||||
token: ${{ secrets.GITHUB_TOKEN }} # 连接仓库的token,需要单独配置
|
||||
token: ${{ secrets.TOKEN }} # 连接仓库的token,需要单独配置
|
||||
path: keystore # 仓库的根目录名
|
||||
# 打包release
|
||||
- name: Build with Gradle
|
||||
|
|
|
@ -58,7 +58,7 @@ android {
|
|||
}
|
||||
}
|
||||
//apk file name
|
||||
/*android.applicationVariants.all { variant ->
|
||||
android.applicationVariants.all { variant ->
|
||||
variant.outputs.all {
|
||||
//def date = new Date().format("yyyyMMdd" , TimeZone.getTimeZone("Asia/Shanghai"))
|
||||
def date = new Date().format("yyyyMMdd", TimeZone.getTimeZone("GMT+08"))
|
||||
|
@ -69,7 +69,7 @@ android {
|
|||
outputFileName = "SmsForwarder_release_${date}_${versionName}.apk"
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -25,7 +25,6 @@ import com.idormy.sms.forwarder.model.vo.SmsVo;
|
|||
import com.idormy.sms.forwarder.sender.SendUtil;
|
||||
import com.idormy.sms.forwarder.sender.SenderUtil;
|
||||
import com.idormy.sms.forwarder.utils.LogUtil;
|
||||
import com.idormy.sms.forwarder.utils.OSUtils;
|
||||
import com.idormy.sms.forwarder.utils.PhoneUtils;
|
||||
import com.idormy.sms.forwarder.utils.SettingUtil;
|
||||
|
||||
|
@ -47,11 +46,11 @@ public class FrontService extends Service {
|
|||
Log.i(TAG, "onCreate");
|
||||
Notification.Builder builder = new Notification.Builder(this);
|
||||
builder.setSmallIcon(R.drawable.ic_forwarder);
|
||||
OSUtils.ROM_TYPE romType = OSUtils.getRomType();
|
||||
//OSUtils.ROM_TYPE romType = OSUtils.getRomType();
|
||||
//Log.d(TAG, "onCreate: " + romType);
|
||||
if (romType == OSUtils.ROM_TYPE.MIUI_ROM) {
|
||||
builder.setContentTitle(getString(R.string.app_name));
|
||||
}
|
||||
//if (romType == OSUtils.ROM_TYPE.MIUI_ROM) {
|
||||
builder.setContentTitle(getString(R.string.app_name));
|
||||
//}
|
||||
builder.setContentText(getString(R.string.notification_content));
|
||||
Intent intent = new Intent(this, MainActivity.class);
|
||||
@SuppressLint("UnspecifiedImmutableFlag") PendingIntent pendingIntent = PendingIntent.getActivity
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24"
|
||||
android:tint="#FFFFFF"
|
||||
android:autoMirrored="true">
|
||||
<group android:scaleX="1.0514286"
|
||||
android:scaleY="1.0514286"
|
||||
android:translateX="-1.1428572"
|
||||
android:translateY="-2.1942856">
|
||||
<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"/>
|
||||
</group>
|
||||
</vector>
|
After Width: | Height: | Size: 468 B |
After Width: | Height: | Size: 349 B |
After Width: | Height: | Size: 628 B |
After Width: | Height: | Size: 894 B |
|
@ -1,5 +0,0 @@
|
|||
<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>
|
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 6.6 KiB |