diff options
author | dan <dan.abramov@gmail.com> | 2023-09-08 16:47:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-08 08:47:01 -0700 |
commit | 6d73ed96e1d6bccfa60113727571411f06a2b172 (patch) | |
tree | 230c81a315a979d791e7bae184c9bffecfc6fc13 /app.config.js | |
parent | adc5b75b2bf6d041d13f37b718565a5acb82612e (diff) | |
download | voidsky-6d73ed96e1d6bccfa60113727571411f06a2b172.tar.zst |
Make Sentry optional (#1416)
* Move app.json -> app.config.js * Make Sentry optional
Diffstat (limited to 'app.config.js')
-rw-r--r-- | app.config.js | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/app.config.js b/app.config.js new file mode 100644 index 000000000..4e519381a --- /dev/null +++ b/app.config.js @@ -0,0 +1,114 @@ +module.exports = function () { + const hasSentryToken = !!process.env.SENTRY_AUTH_TOKEN + return { + expo: { + name: 'Bluesky', + slug: 'bluesky', + scheme: 'bluesky', + owner: 'blueskysocial', + version: '1.49.0', + runtimeVersion: { + policy: 'appVersion', + }, + orientation: 'portrait', + icon: './assets/icon.png', + userInterfaceStyle: 'automatic', + splash: { + image: './assets/cloud-splash.png', + resizeMode: 'cover', + backgroundColor: '#ffffff', + }, + ios: { + buildNumber: '1', + supportsTablet: false, + bundleIdentifier: 'xyz.blueskyweb.app', + config: { + usesNonExemptEncryption: false, + }, + infoPlist: { + UIBackgroundModes: ['remote-notification'], + NSCameraUsageDescription: + 'Used for profile pictures, posts, and other kinds of content.', + NSMicrophoneUsageDescription: + 'Used for posts and other kinds of content.', + NSPhotoLibraryAddUsageDescription: + 'Used to save images to your library.', + NSPhotoLibraryUsageDescription: + 'Used for profile pictures, posts, and other kinds of content', + }, + associatedDomains: ['applinks:bsky.app', 'applinks:staging.bsky.app'], + }, + androidStatusBar: { + barStyle: 'dark-content', + backgroundColor: '#ffffff', + }, + android: { + versionCode: 36, + adaptiveIcon: { + foregroundImage: './assets/adaptive-icon.png', + backgroundColor: '#ffffff', + }, + googleServicesFile: './google-services.json', + package: 'xyz.blueskyweb.app', + intentFilters: [ + { + action: 'VIEW', + autoVerify: true, + data: [ + { + scheme: 'https', + host: 'bsky.app', + }, + ], + category: ['BROWSABLE', 'DEFAULT'], + }, + ], + }, + web: { + favicon: './assets/favicon.png', + }, + updates: { + enabled: true, + fallbackToCacheTimeout: 1000, + url: 'https://u.expo.dev/55bd077a-d905-4184-9c7f-94789ba0f302', + }, + plugins: [ + 'expo-localization', + hasSentryToken && 'sentry-expo', + [ + 'expo-build-properties', + { + android: { + compileSdkVersion: 34, + targetSdkVersion: 34, + buildToolsVersion: '34.0.0', + kotlinVersion: '1.8.0', + }, + }, + ], + [ + 'expo-updates', + { + username: 'blueskysocial', + }, + ], + ].filter(Boolean), + extra: { + eas: { + projectId: '55bd077a-d905-4184-9c7f-94789ba0f302', + }, + }, + hooks: { + postPublish: [ + { + file: 'sentry-expo/upload-sourcemaps', + config: { + organization: 'blueskyweb', + project: 'react-native', + }, + }, + ], + }, + }, + } +} |