We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1f7ab5 commit aab8e29Copy full SHA for aab8e29
android/src/main/java/com/amplitude/android/utilities/DefaultEventUtils.kt
@@ -53,6 +53,9 @@ class DefaultEventUtils(private val amplitude: Amplitude) {
53
54
// Write the current version/build into persistent storage
55
amplitude.amplitudeScope.launch(amplitude.storageIODispatcher) {
56
+ // wait until it is built before writing to storage
57
+ amplitude.isBuilt.await()
58
+
59
storage.write(Storage.Constants.APP_VERSION, currentVersion)
60
storage.write(Storage.Constants.APP_BUILD, currentBuild)
61
}
0 commit comments