Android SDK
FeedJarKit for Android is a Kotlin Compose library aligned with FeedJarKit iOS: same ingest endpoint, API key auth, feedback types, and validation (support requires email).
Add the dependency
dependencies {
implementation("in.feedjar:feedjarkit:0.1.0")
}Production API
FeedJarKit talks to the production ingest API over HTTPS. The base URL is embedded in the SDK — integrators only pass their app fjr_… key via configure.
Configure
class MyApp : Application() {
override fun onCreate() {
super.onCreate()
FeedJar.configure(apiKey = "fjr_...")
}
}Built-in bottom sheet
@Composable
fun Screen() {
var open by remember { mutableStateOf(false) }
Button(onClick = { open = true }) { Text("Feedback") }
FeedJarFeedbackBottomSheet(
visible = open,
onDismiss = { open = false },
allowedTypes = listOf(
FeedbackType.FEEDBACK,
FeedbackType.featureRequest(),
),
initialType = FeedbackType.FEEDBACK,
metadata = mapOf("appVersion" to BuildConfig.VERSION_NAME),
)
}Programmatic submit
lifecycleScope.launch {
try {
FeedJar.submit(
type = FeedbackType.featureRequest(),
message = "Dark theme please",
email = "user@example.com",
metadata = mapOf("screen" to "settings"),
)
} catch (e: FeedJarError) {
Log.e("FeedJar", e.message.orEmpty())
}
}HTTP details and curl examples: Feedback API.