@@ -60,21 +60,14 @@ export interface InAppFeedbackPayload {
60
60
/** Email of the tester */
61
61
testerEmail : string ;
62
62
/**
63
- * Display version of the release. For an Android release, the display version
64
- * is the `versionName`. For an iOS release, the display version is the
65
- * `CFBundleShortVersionString`.
63
+ * Version consisting of `versionName` and `versionCode` for Android and
64
+ * `CFBundleShortVersionString` and `CFBundleVersion` for iOS.
66
65
*/
67
- displayVersion : string ;
68
- /**
69
- * Build version of the release. For an Android release, the build version
70
- * is the `versionCode`. For an iOS release, the build version is the
71
- * `CFBundleVersion`.
72
- */
73
- buildVersion : string ;
66
+ appVersion : string ;
74
67
/** Text entered by the tester */
75
68
text : string ;
76
- /** URIs to download screenshot(s). These URIs are fast expiring. */
77
- screenshotUris : string [ ] ;
69
+ /** URI to download screenshot. This URIs are is fast expiring. */
70
+ screenshotUri ? : string ;
78
71
}
79
72
80
73
/**
@@ -332,10 +325,7 @@ export function onInAppFeedbackPublished(
332
325
const [ opts , appId ] = getOptsAndApp ( appIdOrOptsOrHandler ) ;
333
326
334
327
const func = ( raw : CloudEvent < unknown > ) => {
335
- const event = raw as AppDistributionEvent < InAppFeedbackPayload > ;
336
- // Consolidate the case of empty array and null array
337
- event . data . payload . screenshotUris = event . data . payload . screenshotUris || [ ] ;
338
- return handler ( event ) ;
328
+ return handler ( raw as AppDistributionEvent < InAppFeedbackPayload > ) ;
339
329
} ;
340
330
341
331
func . run = handler ;
0 commit comments