Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0c05ed1c55 | |||
| 2125cefdac | |||
| 29be5a0e74 | |||
| 64e491805c | |||
| e12950c25c | |||
| 7552ac1942 |
@@ -15,7 +15,7 @@ android {
|
|||||||
minSdk = 22
|
minSdk = 22
|
||||||
targetSdk = 36
|
targetSdk = 36
|
||||||
versionCode = 1
|
versionCode = 1
|
||||||
versionName = "1.0"
|
versionName = "0.10.1"
|
||||||
|
|
||||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
@@ -57,6 +57,6 @@ dependencies {
|
|||||||
androidTestImplementation(libs.androidx.compose.ui.test.junit4)
|
androidTestImplementation(libs.androidx.compose.ui.test.junit4)
|
||||||
debugImplementation(libs.androidx.compose.ui.tooling)
|
debugImplementation(libs.androidx.compose.ui.tooling)
|
||||||
debugImplementation(libs.androidx.compose.ui.test.manifest)
|
debugImplementation(libs.androidx.compose.ui.test.manifest)
|
||||||
implementation("androidx.appcompat:appcompat:1.7.0")
|
implementation("androidx.appcompat:appcompat:1.7.1")
|
||||||
implementation("com.google.android.exoplayer:exoplayer:2.19.1")
|
implementation("com.google.android.exoplayer:exoplayer:2.19.1")
|
||||||
}
|
}
|
||||||
@@ -45,6 +45,12 @@ class MainActivity : Activity() {
|
|||||||
|
|
||||||
copyRawToFiles(R.raw.hairdryer, "hairdryer.ogg", soundFolder)
|
copyRawToFiles(R.raw.hairdryer, "hairdryer.ogg", soundFolder)
|
||||||
copyRawToFiles(R.raw.fezforgotten, "fezforgotten.ogg", soundFolder)
|
copyRawToFiles(R.raw.fezforgotten, "fezforgotten.ogg", soundFolder)
|
||||||
|
copyRawToFiles(R.raw.feuer, "feuer.ogg", soundFolder)
|
||||||
|
copyRawToFiles(R.raw.dwarfs, "dwarfs.ogg", soundFolder)
|
||||||
|
copyRawToFiles(R.raw.meeresrauschen, "meeresrauschen.ogg", soundFolder)
|
||||||
|
copyRawToFiles(R.raw.regen, "regen.ogg", soundFolder)
|
||||||
|
copyRawToFiles(R.raw.zombi, "zombi.ogg", soundFolder)
|
||||||
|
copyRawToFiles(R.raw.zombi_refrain, "zombi-refrain.ogg", soundFolder)
|
||||||
|
|
||||||
val status = findViewById<TextView>(R.id.statusText)
|
val status = findViewById<TextView>(R.id.statusText)
|
||||||
val input = findViewById<EditText>(R.id.timerInput)
|
val input = findViewById<EditText>(R.id.timerInput)
|
||||||
@@ -56,7 +62,7 @@ class MainActivity : Activity() {
|
|||||||
.sortedWith(compareByDescending<File> { it.name == "hairdryer.ogg" }
|
.sortedWith(compareByDescending<File> { it.name == "hairdryer.ogg" }
|
||||||
.thenBy { it.name })
|
.thenBy { it.name })
|
||||||
|
|
||||||
val names = audioFiles.map { it.name }
|
val names = audioFiles.map { it.nameWithoutExtension }
|
||||||
|
|
||||||
val adapter = ArrayAdapter(this, android.R.layout.simple_spinner_item, names)
|
val adapter = ArrayAdapter(this, android.R.layout.simple_spinner_item, names)
|
||||||
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
|
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
|
||||||
@@ -124,7 +130,7 @@ class MainActivity : Activity() {
|
|||||||
}?.toList() ?: emptyList()
|
}?.toList() ?: emptyList()
|
||||||
}
|
}
|
||||||
|
|
||||||
// --- Permissions ---
|
// --- Permissions
|
||||||
/* private fun checkPermissions(): Boolean {
|
/* private fun checkPermissions(): Boolean {
|
||||||
val permission = if (Build.VERSION.SDK_INT >= 33)
|
val permission = if (Build.VERSION.SDK_INT >= 33)
|
||||||
android.Manifest.permission.READ_MEDIA_AUDIO
|
android.Manifest.permission.READ_MEDIA_AUDIO
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user