tooot/app.config.ts

43 lines
1.1 KiB
TypeScript
Raw Normal View History

2020-11-23 00:07:32 +01:00
import { ExpoConfig } from '@expo/config'
2021-02-02 22:50:38 +01:00
import { versions } from './package.json'
2021-01-20 00:39:39 +01:00
import 'dotenv/config'
2020-11-23 00:07:32 +01:00
2021-02-02 22:50:38 +01:00
const toootVersion = `${versions.major}.${versions.minor}.${versions.patch}`
2020-11-23 00:07:32 +01:00
export default (): ExpoConfig => ({
2021-01-16 01:44:00 +01:00
name: 'tooot',
2021-01-30 01:29:15 +01:00
description: 'tooot for Mastodon',
2021-01-16 01:44:00 +01:00
slug: 'tooot',
scheme: 'tooot',
2021-02-02 22:50:38 +01:00
version: toootVersion,
2020-11-23 00:07:32 +01:00
privacy: 'hidden',
2020-12-29 01:09:22 +01:00
assetBundlePatterns: ['assets/*'],
2021-01-22 01:34:20 +01:00
extra: {
2021-05-19 23:28:01 +02:00
sentryDSN: process.env.SENTRY_DSN,
2021-12-15 22:48:59 +01:00
toootPushKeyPublic: process.env.TOOOT_PUSH_KEY_PUBLIC
2021-01-22 01:34:20 +01:00
},
2020-12-29 16:19:04 +01:00
hooks: {
postPublish: [
{
2021-01-20 00:39:39 +01:00
file: 'sentry-expo/upload-sourcemaps',
config: {
organization: process.env.SENTRY_ORGANIZATION,
project: process.env.SENTRY_PROJECT,
authToken: process.env.SENTRY_AUTH_TOKEN,
setCommits: process.env.GITHUB_SHA || undefined,
2021-03-14 21:48:28 +01:00
deployEnv: process.env.ENVIRONMENT
2021-01-20 00:39:39 +01:00
}
2020-12-29 16:19:04 +01:00
}
]
},
2021-10-24 00:43:00 +02:00
jsEngine: 'hermes',
2021-02-20 19:12:44 +01:00
ios: {
bundleIdentifier: 'com.xmflsct.app.tooot'
},
2021-01-22 01:34:20 +01:00
android: {
package: 'com.xmflsct.app.tooot',
googleServicesFile: './configs/google-services.json',
permissions: ['CAMERA', 'VIBRATE']
2020-12-29 01:09:22 +01:00
}
2020-11-23 00:07:32 +01:00
})