Skip to content

Instantly share code, notes, and snippets.

@armanso
Last active April 19, 2020 17:18
Show Gist options
  • Save armanso/512880ee29ea3e75dab649c949bda79f to your computer and use it in GitHub Desktop.
Save armanso/512880ee29ea3e75dab649c949bda79f to your computer and use it in GitHub Desktop.
config files
const storePublishedReviewsList = async (reviews: PublishedReviews) => {
// callback to store data file
}
const retrivePublishedReviewsList = async (): Promise<PublishedReviews> => {
// callback to retrive data from data source
}
const onNewMessageAvailable = async (messages: string[]) => {
// callback of having new messages
}
const config: Config = {
apps: [
{ id: "com.you.app", showAppIcon: true, publisherKey: "./api-key.json" },
{ id: "appstore-id", showAppIcon: true, regions: 'all' }
],
storePublishedReviewsList,
retrivePublishedReviewsList,
onNewMessageAvailable
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment