refactor: rename package to lostmyphone.app
Move off the reserved com.example placeholder namespace to the app's own package identifier.
This commit is contained in:
parent
c0d15761db
commit
6b6f242edb
8 changed files with 12 additions and 12 deletions
|
|
@ -4,11 +4,11 @@ plugins {
|
|||
}
|
||||
|
||||
android {
|
||||
namespace = "com.example.lostmyphone"
|
||||
namespace = "lostmyphone.app"
|
||||
compileSdk = 34
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "com.example.lostmyphone"
|
||||
applicationId = "lostmyphone.app"
|
||||
minSdk = 24
|
||||
targetSdk = 34
|
||||
versionCode = 1
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@
|
|||
android:exported="false"
|
||||
android:foregroundServiceType="mediaPlayback">
|
||||
<intent-filter>
|
||||
<action android:name="com.example.lostmyphone.action.RING" />
|
||||
<action android:name="lostmyphone.app.action.RING" />
|
||||
</intent-filter>
|
||||
</service>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package com.example.lostmyphone
|
||||
package lostmyphone.app
|
||||
|
||||
import android.Manifest
|
||||
import android.app.NotificationManager
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.example.lostmyphone
|
||||
package lostmyphone.app
|
||||
|
||||
import android.content.Context
|
||||
import android.content.SharedPreferences
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.example.lostmyphone
|
||||
package lostmyphone.app
|
||||
|
||||
import android.app.NotificationChannel
|
||||
import android.app.NotificationManager
|
||||
|
|
@ -42,8 +42,8 @@ class RingService : Service() {
|
|||
companion object {
|
||||
private const val TAG = "RingService"
|
||||
|
||||
const val ACTION_RING = "com.example.lostmyphone.action.RING"
|
||||
const val ACTION_STOP = "com.example.lostmyphone.action.STOP"
|
||||
const val ACTION_RING = "lostmyphone.app.action.RING"
|
||||
const val ACTION_STOP = "lostmyphone.app.action.STOP"
|
||||
const val EXTRA_DND_GRANTED = "extra_dnd_granted"
|
||||
|
||||
private const val CHANNEL_ID = "ring_channel"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.example.lostmyphone
|
||||
package lostmyphone.app
|
||||
|
||||
import android.content.Intent
|
||||
import android.database.Cursor
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.example.lostmyphone
|
||||
package lostmyphone.app
|
||||
|
||||
import android.content.BroadcastReceiver
|
||||
import android.content.Context
|
||||
Loading…
Add table
Add a link
Reference in a new issue