Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repositories {
}

dependencies {
implementation("com.formbricks:android:1.0.0") // replace with latest version
implementation("com.formbricks:android:2.0.0") // replace with latest version
}
```

Expand All @@ -33,12 +33,22 @@ android {
// 1. Initialize the SDK
val config = FormbricksConfig.Builder(
"https://your-formbricks-server.com",
"YOUR_ENVIRONMENT_ID"
"YOUR_WORKSPACE_ID"
)
.setLoggingEnabled(true)
.setFragmentManager(supportFragmentManager)
.build()

// Note: `environmentId` is deprecated and will be removed in a future version.
// Existing integrations using the legacy entry point still work:
//
// FormbricksConfig.Builder.withEnvironmentId(
// "https://your-formbricks-server.com",
// "YOUR_ENVIRONMENT_ID"
// )
//
// Migrate to `workspaceId` as soon as possible.

// 2. Setup Formbricks
Formbricks.setup(this, config)

Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {
id("org.sonarqube") version "4.4.1.3373"
}

version = "1.2.0"
version = "2.0.0"
val groupId = "com.formbricks"
val artifactId = "android"

Expand Down
Loading