fix: get the app building

- settings.gradle.kts: add dependencyResolutionManagement repositories so app deps resolve
- activity_main.xml: move help text with raw quotes to a string resource (commands_help)
- RingService.kt: import NotificationChannel and PendingIntent
- gradle wrapper: add gradlew + gradle-wrapper.jar, regenerate properties
- add .gitignore for build outputs and local.properties
This commit is contained in:
avi 2026-08-07 09:47:47 -05:00
commit 597a189637
9 changed files with 363 additions and 2 deletions

View file

@ -1,6 +1,8 @@
package com.example.lostmyphone
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.app.Service
import androidx.core.app.NotificationCompat
import android.content.ContentUris

View file

@ -88,7 +88,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:text="Commands: send \"RING_NOW\" to this device for the default ringtone, or \"PLAY_SONG <Name>\" to play a matching local track."
android:text="@string/commands_help"
android:textSize="13sp" />
</LinearLayout>

View file

@ -29,4 +29,6 @@
<string name="status_help">Status: %1$s</string>
<string name="dnd_explanation">Enabling Do Not Disturb Access lets the app cut through DND to play the ring. It is only ever used after a valid SMS trigger or a manual test.</string>
<string name="commands_help">Commands: send "RING_NOW" to this device for the default ringtone, or "PLAY_SONG &lt;Name&gt;" to play a matching local track.</string>
</resources>