Commit 5478fdc7 by zhangchengbo

fix:替换项目包名

parent 30ffb940
...@@ -31,8 +31,8 @@ ...@@ -31,8 +31,8 @@
# Gson # Gson
-keep class com.simplemobiletools.commons.models.SimpleContact { *; } -keep class com.simplemobiletools.commons.models.SimpleContact { *; }
-keep class com.simplemobiletools.smsmessenger.models.Attachment { *; } -keep class com.secspace.sms.models.Attachment { *; }
-keep class com.simplemobiletools.smsmessenger.models.MessageAttachment { *; } -keep class com.secspace.sms.models.MessageAttachment { *; }
# Please add these rules to your existing keep rules in order to suppress warnings. # Please add these rules to your existing keep rules in order to suppress warnings.
......
...@@ -207,7 +207,7 @@ ...@@ -207,7 +207,7 @@
android:enabled="true" android:enabled="true"
android:exported="true"> android:exported="true">
<intent-filter> <intent-filter>
<action android:name="com.simplemobiletools.smsmessenger.action.mark_as_read" /> <action android:name="com.secspace.sms.action.mark_as_read" />
</intent-filter> </intent-filter>
</receiver> </receiver>
...@@ -216,7 +216,7 @@ ...@@ -216,7 +216,7 @@
android:enabled="true" android:enabled="true"
android:exported="true"> android:exported="true">
<intent-filter> <intent-filter>
<action android:name="com.simplemobiletools.smsmessenger.action.reply" /> <action android:name="com.secspace.sms.action.reply" />
</intent-filter> </intent-filter>
</receiver> </receiver>
...@@ -225,7 +225,7 @@ ...@@ -225,7 +225,7 @@
android:enabled="true" android:enabled="true"
android:exported="true"> android:exported="true">
<intent-filter> <intent-filter>
<action android:name="com.simplemobiletools.smsmessenger.action.delete" /> <action android:name="com.secspace.sms.action.delete" />
</intent-filter> </intent-filter>
</receiver> </receiver>
......
...@@ -46,7 +46,7 @@ const val LAST_RECYCLE_BIN_CHECK = "last_recycle_bin_check" ...@@ -46,7 +46,7 @@ const val LAST_RECYCLE_BIN_CHECK = "last_recycle_bin_check"
const val IS_RECYCLE_BIN = "is_recycle_bin" const val IS_RECYCLE_BIN = "is_recycle_bin"
const val IS_ARCHIVE_AVAILABLE = "is_archive_available" const val IS_ARCHIVE_AVAILABLE = "is_archive_available"
private const val PATH = "com.simplemobiletools.smsmessenger.action." private const val PATH = "com.secspace.sms.action."
const val MARK_AS_READ = PATH + "mark_as_read" const val MARK_AS_READ = PATH + "mark_as_read"
const val REPLY = PATH + "reply" const val REPLY = PATH + "reply"
......
...@@ -21,8 +21,8 @@ abstract class SendStatusReceiver : BroadcastReceiver() { ...@@ -21,8 +21,8 @@ abstract class SendStatusReceiver : BroadcastReceiver() {
} }
companion object { companion object {
const val SMS_SENT_ACTION = "com.simplemobiletools.smsmessenger.receiver.SMS_SENT" const val SMS_SENT_ACTION = "com.secspace.sms.receiver.SMS_SENT"
const val SMS_DELIVERED_ACTION = "com.simplemobiletools.smsmessenger.receiver.SMS_DELIVERED" const val SMS_DELIVERED_ACTION = "com.secspace.sms.receiver.SMS_DELIVERED"
// Defined by platform, but no constant provided. See docs for SmsManager.sendTextMessage. // Defined by platform, but no constant provided. See docs for SmsManager.sendTextMessage.
const val EXTRA_ERROR_CODE = "errorCode" const val EXTRA_ERROR_CODE = "errorCode"
......
...@@ -28,8 +28,8 @@ class MyContactsContentProvider { ...@@ -28,8 +28,8 @@ class MyContactsContentProvider {
fun getSimpleContacts(context: Context, cursor: Cursor?): ArrayList<SimpleContact> { fun getSimpleContacts(context: Context, cursor: Cursor?): ArrayList<SimpleContact> {
val contacts = ArrayList<SimpleContact>() val contacts = ArrayList<SimpleContact>()
val packageName = context.packageName.removeSuffix(".debug") val packageName = context.packageName/*.removeSuffix(".debug")*/
if (packageName != "com.simplemobiletools.dialer"/* && packageName != "com.simplemobiletools.smsmessenger" && packageName != "com.simplemobiletools.calendar.pro"*/) { if (/*packageName != "com.simplemobiletools.dialer" &&*/ packageName != "com.secspace.sms" /*&& packageName != "com.simplemobiletools.calendar.pro"*/) {
return contacts return contacts
} }
...@@ -64,8 +64,8 @@ class MyContactsContentProvider { ...@@ -64,8 +64,8 @@ class MyContactsContentProvider {
fun getContacts(context: Context, cursor: Cursor?): ArrayList<Contact> { fun getContacts(context: Context, cursor: Cursor?): ArrayList<Contact> {
val contacts = ArrayList<Contact>() val contacts = ArrayList<Contact>()
val packageName = context.packageName.removeSuffix(".debug") val packageName = context.packageName/*.removeSuffix(".debug")*/
if (packageName != "com.simplemobiletools.dialer"/* && packageName != "com.simplemobiletools.smsmessenger" && packageName != "com.simplemobiletools.calendar.pro"*/) { if (/*packageName != "com.simplemobiletools.dialer"&&*/ packageName != "com.secspace.sms"/* && packageName != "com.simplemobiletools.calendar.pro"*/) {
return contacts return contacts
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment