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:
avi 2026-08-14 16:19:54 -05:00
commit 6b6f242edb
8 changed files with 12 additions and 12 deletions

View file

@ -3,7 +3,7 @@
An Android app that listens for SMS commands to trigger a loud ring — overriding
"Do Not Disturb" (DND) — so you can find your phone.
- **Package:** `com.example.lostmyphone`
- **Package:** `lostmyphone.app`
- **No Google Play Services.** Pure Android SDK.
- **Languages:** Kotlin, Material Components (AndroidX).
@ -132,7 +132,7 @@ settings instead.
## 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
├── SmsReceiver.kt # BroadcastReceiver: parses SMS -> detects RING_NOW / PLAY_SONG
└── RingService.kt # ForegroundService: DND gate, volume override, focus + playback, 30s timer

View file

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

View file

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

View file

@ -1,4 +1,4 @@
package com.example.lostmyphone
package lostmyphone.app
import android.Manifest
import android.app.NotificationManager

View file

@ -1,4 +1,4 @@
package com.example.lostmyphone
package lostmyphone.app
import android.content.Context
import android.content.SharedPreferences

View file

@ -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"

View file

@ -1,4 +1,4 @@
package com.example.lostmyphone
package lostmyphone.app
import android.content.Intent
import android.database.Cursor

View file

@ -1,4 +1,4 @@
package com.example.lostmyphone
package lostmyphone.app
import android.content.BroadcastReceiver
import android.content.Context