Add app source for F-Droid release (v1.0.11)

Adds the full Android source tree, Gradle wrapper and version catalog,
fastlane store metadata in six languages and the fdroiddata build
recipe. .gitignore now also excludes build output and keystores.
README gains build instructions and an updated structure tree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015g6ECVSKcBG8CJPrqC3G5o
This commit is contained in:
Claude
2026-10-06 18:23:16 +00:00
parent 6498e4c97d
commit 57cec132f9
159 changed files with 6898 additions and 2 deletions
@@ -0,0 +1,54 @@
package cc.skysparkle.fogwave
import android.content.Context
import androidx.compose.ui.test.assertTextEquals
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onNodeWithTag
import androidx.test.core.app.ApplicationProvider
import cc.skysparkle.fogwave.data.repository.RadioRepository
import cc.skysparkle.fogwave.ui.components.AboutPanel
import cc.skysparkle.fogwave.ui.theme.FogwaveTheme
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
import org.robolectric.annotation.Config
@RunWith(RobolectricTestRunner::class)
@Config(sdk = [36])
class AppInfoTest {
@get:Rule val composeTestRule = createComposeRule()
private val context: Context = ApplicationProvider.getApplicationContext()
@Test
fun appNameIsFogwave() {
assertEquals("Fogwave", context.getString(R.string.app_name))
}
@Test
fun aboutScreenShowsTheBuildVersion() {
composeTestRule.setContent { FogwaveTheme { AboutPanel() } }
composeTestRule
.onNodeWithTag("about_version")
.assertTextEquals(context.getString(R.string.about_version, BuildConfig.VERSION_NAME))
}
@Test
fun stationsAreUniqueSecureAndDoNotUseExpiringTokens() {
val stations = RadioRepository(context).stations
assertEquals(stations.size, stations.map { it.id }.toSet().size)
stations.forEach { station ->
assertTrue(station.streamUrl, station.streamUrl.startsWith("https://"))
// Short-lived tokens (e.g. revma's rj-tok) stop working within minutes.
assertFalse(station.streamUrl, station.streamUrl.contains("rj-tok"))
assertTrue(context.getString(station.descriptionRes).isNotBlank())
assertTrue(station.genres.isNotEmpty())
}
}
}
@@ -0,0 +1,53 @@
package cc.skysparkle.fogwave
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onRoot
import cc.skysparkle.fogwave.data.model.Genre
import cc.skysparkle.fogwave.data.model.IconSizeStep
import cc.skysparkle.fogwave.data.model.RadioStation
import cc.skysparkle.fogwave.data.model.ViewMode
import cc.skysparkle.fogwave.ui.components.StationItem
import cc.skysparkle.fogwave.ui.theme.FogwaveTheme
import com.github.takahirom.roborazzi.RobolectricDeviceQualifiers
import com.github.takahirom.roborazzi.captureRoboImage
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
import org.robolectric.annotation.Config
import org.robolectric.annotation.GraphicsMode
@RunWith(RobolectricTestRunner::class)
@GraphicsMode(GraphicsMode.Mode.NATIVE)
@Config(qualifiers = RobolectricDeviceQualifiers.Pixel8, sdk = [36])
class StationItemScreenshotTest {
@get:Rule val composeTestRule = createComposeRule()
private val station = RadioStation(
id = "zipfm",
name = "ZIP FM",
descriptionRes = R.string.station_desc_zip,
streamUrl = "https://example.com/stream",
iconResId = R.drawable.ic_station_zipfm,
genres = listOf(Genre.HITS, Genre.POP),
bitrate = "128 kbps"
)
@Test
fun stationItem_list_screenshot() {
composeTestRule.setContent {
FogwaveTheme {
StationItem(
station = station,
isCurrent = true,
isPlaying = false,
viewMode = ViewMode.LIST,
sizeStep = IconSizeStep.M,
onClick = {}
)
}
}
composeTestRule.onRoot().captureRoboImage(filePath = "src/test/screenshots/station_item.png")
}
}