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
|
|
@ -3,7 +3,7 @@
|
||||||
An Android app that listens for SMS commands to trigger a loud ring — overriding
|
An Android app that listens for SMS commands to trigger a loud ring — overriding
|
||||||
"Do Not Disturb" (DND) — so you can find your phone.
|
"Do Not Disturb" (DND) — so you can find your phone.
|
||||||
|
|
||||||
- **Package:** `com.example.lostmyphone`
|
- **Package:** `lostmyphone.app`
|
||||||
- **No Google Play Services.** Pure Android SDK.
|
- **No Google Play Services.** Pure Android SDK.
|
||||||
- **Languages:** Kotlin, Material Components (AndroidX).
|
- **Languages:** Kotlin, Material Components (AndroidX).
|
||||||
|
|
||||||
|
|
@ -132,7 +132,7 @@ settings instead.
|
||||||
## Architecture
|
## Architecture
|
||||||
|
|
||||||
```
|
```
|
||||||
app/src/main/java/com/example/lostmyphone/
|
app/src/main/java/lostmyphone/app/
|
||||||
├── MainActivity.kt # UI: status, permission requests, DND-access launcher, manual test
|
├── MainActivity.kt # UI: status, permission requests, DND-access launcher, manual test
|
||||||
├── SmsReceiver.kt # BroadcastReceiver: parses SMS -> detects RING_NOW / PLAY_SONG
|
├── SmsReceiver.kt # BroadcastReceiver: parses SMS -> detects RING_NOW / PLAY_SONG
|
||||||
└── RingService.kt # ForegroundService: DND gate, volume override, focus + playback, 30s timer
|
└── RingService.kt # ForegroundService: DND gate, volume override, focus + playback, 30s timer
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
namespace = "com.example.lostmyphone"
|
namespace = "lostmyphone.app"
|
||||||
compileSdk = 34
|
compileSdk = 34
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId = "com.example.lostmyphone"
|
applicationId = "lostmyphone.app"
|
||||||
minSdk = 24
|
minSdk = 24
|
||||||
targetSdk = 34
|
targetSdk = 34
|
||||||
versionCode = 1
|
versionCode = 1
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:foregroundServiceType="mediaPlayback">
|
android:foregroundServiceType="mediaPlayback">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="com.example.lostmyphone.action.RING" />
|
<action android:name="lostmyphone.app.action.RING" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package com.example.lostmyphone
|
package lostmyphone.app
|
||||||
|
|
||||||
import android.Manifest
|
import android.Manifest
|
||||||
import android.app.NotificationManager
|
import android.app.NotificationManager
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package com.example.lostmyphone
|
package lostmyphone.app
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.SharedPreferences
|
import android.content.SharedPreferences
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package com.example.lostmyphone
|
package lostmyphone.app
|
||||||
|
|
||||||
import android.app.NotificationChannel
|
import android.app.NotificationChannel
|
||||||
import android.app.NotificationManager
|
import android.app.NotificationManager
|
||||||
|
|
@ -42,8 +42,8 @@ class RingService : Service() {
|
||||||
companion object {
|
companion object {
|
||||||
private const val TAG = "RingService"
|
private const val TAG = "RingService"
|
||||||
|
|
||||||
const val ACTION_RING = "com.example.lostmyphone.action.RING"
|
const val ACTION_RING = "lostmyphone.app.action.RING"
|
||||||
const val ACTION_STOP = "com.example.lostmyphone.action.STOP"
|
const val ACTION_STOP = "lostmyphone.app.action.STOP"
|
||||||
const val EXTRA_DND_GRANTED = "extra_dnd_granted"
|
const val EXTRA_DND_GRANTED = "extra_dnd_granted"
|
||||||
|
|
||||||
private const val CHANNEL_ID = "ring_channel"
|
private const val CHANNEL_ID = "ring_channel"
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package com.example.lostmyphone
|
package lostmyphone.app
|
||||||
|
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.database.Cursor
|
import android.database.Cursor
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package com.example.lostmyphone
|
package lostmyphone.app
|
||||||
|
|
||||||
import android.content.BroadcastReceiver
|
import android.content.BroadcastReceiver
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
Loading…
Add table
Add a link
Reference in a new issue