Skip to content

Commit df60d89

Browse files
Add example to demo
1 parent ec9e222 commit df60d89

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

common/src/commonMain/kotlin/com/powersync/db/PowerSyncDatabaseImpl.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ internal class PowerSyncDatabaseImpl(
160160
options = options,
161161
schema = schema,
162162
activeSubscriptions = streams.currentlyReferencedStreams,
163+
appMetadata = appMetadata,
163164
)
164165
}
165166
}

demos/supabase-todolist/shared/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,5 +123,8 @@ buildkonfig {
123123
stringConfigField("POWERSYNC_URL")
124124
stringConfigField("SUPABASE_URL")
125125
stringConfigField("SUPABASE_ANON_KEY")
126+
127+
// App version from Gradle project version
128+
buildConfigField(STRING, "APP_VERSION", "\"${project.version}\"")
126129
}
127130
}

demos/supabase-todolist/shared/src/commonMain/kotlin/com/powersync/demos/Auth.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ internal class AuthViewModel(
6969
}
7070
},
7171
),
72+
appMetadata = mapOf(
73+
"appVersion" to Config.APP_VERSION
74+
),
7275
)
7376
}
7477

0 commit comments

Comments
 (0)