2023-11-29 04:49:37 +01:00
|
|
|
const pkg = require('./package.json')
|
|
|
|
|
2023-09-08 17:47:01 +02:00
|
|
|
module.exports = function () {
|
2023-11-29 04:49:37 +01:00
|
|
|
/**
|
|
|
|
* App version number. Should be incremented as part of a release cycle.
|
|
|
|
*/
|
|
|
|
const VERSION = pkg.version
|
|
|
|
|
|
|
|
/**
|
|
|
|
* iOS build number. Must be incremented for each TestFlight version.
|
|
|
|
*/
|
2023-12-13 22:48:49 +01:00
|
|
|
const IOS_BUILD_NUMBER = '2'
|
2023-11-29 04:49:37 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Android build number. Must be incremented for each release.
|
|
|
|
*/
|
2023-12-13 21:48:26 +01:00
|
|
|
const ANDROID_VERSION_CODE = 49
|
2023-11-29 04:49:37 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Uses built-in Expo env vars
|
|
|
|
*
|
|
|
|
* @see https://docs.expo.dev/build-reference/variables/#built-in-environment-variables
|
|
|
|
*/
|
|
|
|
const PLATFORM = process.env.EAS_BUILD_PLATFORM
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Additional granularity for the `dist` field
|
|
|
|
*/
|
|
|
|
const DIST_BUILD_NUMBER =
|
|
|
|
PLATFORM === 'android' ? ANDROID_VERSION_CODE : IOS_BUILD_NUMBER
|
|
|
|
|
2023-09-08 17:47:01 +02:00
|
|
|
return {
|
|
|
|
expo: {
|
2023-11-29 04:49:37 +01:00
|
|
|
version: VERSION,
|
2023-09-08 17:47:01 +02:00
|
|
|
name: 'Bluesky',
|
|
|
|
slug: 'bluesky',
|
|
|
|
scheme: 'bluesky',
|
|
|
|
owner: 'blueskysocial',
|
|
|
|
runtimeVersion: {
|
|
|
|
policy: 'appVersion',
|
|
|
|
},
|
|
|
|
orientation: 'portrait',
|
|
|
|
icon: './assets/icon.png',
|
|
|
|
userInterfaceStyle: 'automatic',
|
|
|
|
splash: {
|
2023-12-14 21:48:40 +01:00
|
|
|
image: './assets/splash.png',
|
2023-09-08 17:47:01 +02:00
|
|
|
resizeMode: 'cover',
|
|
|
|
backgroundColor: '#ffffff',
|
|
|
|
},
|
|
|
|
ios: {
|
2023-11-29 04:49:37 +01:00
|
|
|
buildNumber: IOS_BUILD_NUMBER,
|
2023-09-08 17:47:01 +02:00
|
|
|
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: {
|
2023-11-29 04:49:37 +01:00
|
|
|
versionCode: ANDROID_VERSION_CODE,
|
2023-12-14 21:48:40 +01:00
|
|
|
icon: './assets/icon.png',
|
2023-09-08 17:47:01 +02:00
|
|
|
adaptiveIcon: {
|
2023-12-14 21:48:40 +01:00
|
|
|
foregroundImage: './assets/icon-android-foreground.png',
|
|
|
|
monochromeImage: './assets/icon-android-foreground.png',
|
|
|
|
backgroundImage: './assets/icon-android-background.png',
|
|
|
|
backgroundColor: '#1185FE',
|
2023-09-08 17:47:01 +02:00
|
|
|
},
|
|
|
|
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',
|
2023-11-29 04:49:37 +01:00
|
|
|
Boolean(process.env.SENTRY_AUTH_TOKEN) && 'sentry-expo',
|
2023-09-08 17:47:01 +02:00
|
|
|
[
|
|
|
|
'expo-build-properties',
|
|
|
|
{
|
|
|
|
android: {
|
|
|
|
compileSdkVersion: 34,
|
|
|
|
targetSdkVersion: 34,
|
|
|
|
buildToolsVersion: '34.0.0',
|
|
|
|
kotlinVersion: '1.8.0',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'expo-updates',
|
|
|
|
{
|
|
|
|
username: 'blueskysocial',
|
|
|
|
},
|
|
|
|
],
|
2023-12-12 22:40:24 +01:00
|
|
|
'./plugins/withAndroidManifestPlugin.js',
|
2023-09-08 17:47:01 +02:00
|
|
|
].filter(Boolean),
|
|
|
|
extra: {
|
|
|
|
eas: {
|
|
|
|
projectId: '55bd077a-d905-4184-9c7f-94789ba0f302',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
hooks: {
|
|
|
|
postPublish: [
|
2023-11-29 04:49:37 +01:00
|
|
|
/*
|
|
|
|
* @see https://docs.expo.dev/guides/using-sentry/#app-configuration
|
|
|
|
*/
|
2023-09-08 17:47:01 +02:00
|
|
|
{
|
|
|
|
file: 'sentry-expo/upload-sourcemaps',
|
|
|
|
config: {
|
|
|
|
organization: 'blueskyweb',
|
|
|
|
project: 'react-native',
|
2023-11-29 04:49:37 +01:00
|
|
|
release: VERSION,
|
|
|
|
dist: `${PLATFORM}.${VERSION}.${DIST_BUILD_NUMBER}`,
|
2023-09-08 17:47:01 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|