feat: scaffold Android project with dependencies
Made-with: Cursor
This commit is contained in:
28
app/src/main/java/xyz/cottongin/radio247/MainActivity.kt
Normal file
28
app/src/main/java/xyz/cottongin/radio247/MainActivity.kt
Normal file
@@ -0,0 +1,28 @@
|
||||
package xyz.cottongin.radio247
|
||||
|
||||
import android.os.Bundle
|
||||
import androidx.activity.ComponentActivity
|
||||
import androidx.activity.compose.setContent
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
|
||||
class MainActivity : ComponentActivity() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
setContent {
|
||||
Radio247Placeholder()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun Radio247Placeholder() {
|
||||
Text("24/7 Radio")
|
||||
}
|
||||
|
||||
@Preview(showBackground = true)
|
||||
@Composable
|
||||
private fun Radio247PlaceholderPreview() {
|
||||
Radio247Placeholder()
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package xyz.cottongin.radio247
|
||||
|
||||
import android.app.Application
|
||||
|
||||
class RadioApplication : Application()
|
||||
@@ -0,0 +1,13 @@
|
||||
package xyz.cottongin.radio247.service
|
||||
|
||||
import android.app.Service
|
||||
import android.content.Intent
|
||||
import android.os.IBinder
|
||||
|
||||
/**
|
||||
* Stub for the media playback foreground service.
|
||||
* Will be implemented in a later task.
|
||||
*/
|
||||
class RadioPlaybackService : Service() {
|
||||
override fun onBind(intent: Intent?): IBinder? = null
|
||||
}
|
||||
Reference in New Issue
Block a user