Compare commits
8 Commits
282837d415
..
v0.11
| Author | SHA1 | Date | |
|---|---|---|---|
| e3bfe6a89b | |||
| 25258d3f5d | |||
| 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.11"
|
||||||
|
|
||||||
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")
|
||||||
}
|
}
|
||||||
@@ -6,7 +6,9 @@
|
|||||||
android:label="Hairdryer/Dunstabzugshaube"
|
android:label="Hairdryer/Dunstabzugshaube"
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
android:supportsRtl="true"
|
android:supportsRtl="true"
|
||||||
android:theme="@android:style/Theme.Light.NoTitleBar">
|
android:theme="@android:style/Theme.Light.NoTitleBar"
|
||||||
|
android:icon="@mipmap/ic_launcher"
|
||||||
|
android:roundIcon="@mipmap/ic_launcher_round">
|
||||||
|
|
||||||
<activity android:name=".MainActivity"
|
<activity android:name=".MainActivity"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
|
|||||||
|
After Width: | Height: | Size: 97 KiB |
@@ -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
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<background android:drawable="@color/ic_launcher_background"/>
|
||||||
|
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||||
|
</adaptive-icon>
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<background android:drawable="@color/ic_launcher_background"/>
|
||||||
|
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||||
|
</adaptive-icon>
|
||||||
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 988 B |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 5.6 KiB |
|
After Width: | Height: | Size: 4.8 KiB |
|
After Width: | Height: | Size: 4.7 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 8.4 KiB |
|
After Width: | Height: | Size: 7.2 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 13 KiB |
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<color name="ic_launcher_background">#FFFFFF</color>
|
||||||
|
</resources>
|
||||||