Align on release/dist
This commit is contained in:
+31
-5
@@ -1,12 +1,33 @@
|
|||||||
module.exports = function () {
|
module.exports = function () {
|
||||||
const hasSentryToken = !!process.env.SENTRY_AUTH_TOKEN
|
/**
|
||||||
|
* App version number. Should be incremented as part of a release cycle.
|
||||||
|
*/
|
||||||
|
const VERSION = '1.57.0'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* iOS build number. Must be incremented for each TestFlight version.
|
||||||
|
*/
|
||||||
|
const IOS_BUILD_NUMBER = '4'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Android build number. Must be incremented for each release.
|
||||||
|
*/
|
||||||
|
const ANDROID_VERSION_CODE = 46
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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
|
||||||
|
|
||||||
return {
|
return {
|
||||||
expo: {
|
expo: {
|
||||||
|
version: VERSION,
|
||||||
name: 'Bluesky',
|
name: 'Bluesky',
|
||||||
slug: 'bluesky',
|
slug: 'bluesky',
|
||||||
scheme: 'bluesky',
|
scheme: 'bluesky',
|
||||||
owner: 'blueskysocial',
|
owner: 'blueskysocial',
|
||||||
version: '1.57.0',
|
|
||||||
runtimeVersion: {
|
runtimeVersion: {
|
||||||
policy: 'appVersion',
|
policy: 'appVersion',
|
||||||
},
|
},
|
||||||
@@ -19,7 +40,7 @@ module.exports = function () {
|
|||||||
backgroundColor: '#ffffff',
|
backgroundColor: '#ffffff',
|
||||||
},
|
},
|
||||||
ios: {
|
ios: {
|
||||||
buildNumber: '4',
|
buildNumber: IOS_BUILD_NUMBER,
|
||||||
supportsTablet: false,
|
supportsTablet: false,
|
||||||
bundleIdentifier: 'xyz.blueskyweb.app',
|
bundleIdentifier: 'xyz.blueskyweb.app',
|
||||||
config: {
|
config: {
|
||||||
@@ -43,7 +64,7 @@ module.exports = function () {
|
|||||||
backgroundColor: '#ffffff',
|
backgroundColor: '#ffffff',
|
||||||
},
|
},
|
||||||
android: {
|
android: {
|
||||||
versionCode: 46,
|
versionCode: ANDROID_VERSION_CODE,
|
||||||
adaptiveIcon: {
|
adaptiveIcon: {
|
||||||
foregroundImage: './assets/adaptive-icon.png',
|
foregroundImage: './assets/adaptive-icon.png',
|
||||||
backgroundColor: '#ffffff',
|
backgroundColor: '#ffffff',
|
||||||
@@ -74,7 +95,7 @@ module.exports = function () {
|
|||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
'expo-localization',
|
'expo-localization',
|
||||||
hasSentryToken && 'sentry-expo',
|
Boolean(process.env.SENTRY_AUTH_TOKEN) && 'sentry-expo',
|
||||||
[
|
[
|
||||||
'expo-build-properties',
|
'expo-build-properties',
|
||||||
{
|
{
|
||||||
@@ -100,11 +121,16 @@ module.exports = function () {
|
|||||||
},
|
},
|
||||||
hooks: {
|
hooks: {
|
||||||
postPublish: [
|
postPublish: [
|
||||||
|
/*
|
||||||
|
* @see https://docs.expo.dev/guides/using-sentry/#app-configuration
|
||||||
|
*/
|
||||||
{
|
{
|
||||||
file: 'sentry-expo/upload-sourcemaps',
|
file: 'sentry-expo/upload-sourcemaps',
|
||||||
config: {
|
config: {
|
||||||
organization: 'blueskyweb',
|
organization: 'blueskyweb',
|
||||||
project: 'react-native',
|
project: 'react-native',
|
||||||
|
release: VERSION,
|
||||||
|
dist: `${PLATFORM}.${VERSION}`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
+16
-4
@@ -18,15 +18,27 @@ const buildChannel = (info.channel || 'development') as
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Examples:
|
* Examples:
|
||||||
* - `ios-1.57.0(3)`
|
* - `dev`
|
||||||
* - `android-1.57.0(46)`
|
* - `1.57.0`
|
||||||
*/
|
*/
|
||||||
const appVersion = `${Platform.OS}-${app.appVersion}(${app.buildVersion})`
|
const release = app.appVersion ?? 'dev'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Examples:
|
||||||
|
* - `web.dev`
|
||||||
|
* - `ios.dev`
|
||||||
|
* - `android.dev`
|
||||||
|
* - `web.1.57.0`
|
||||||
|
* - `ios.1.57.0`
|
||||||
|
* - `android.1.57.0`
|
||||||
|
*/
|
||||||
|
const dist = `${Platform.OS}.${release}`
|
||||||
|
|
||||||
init({
|
init({
|
||||||
dsn: 'https://05bc3789bf994b81bd7ce20c86ccd3ae@o4505071687041024.ingest.sentry.io/4505071690514432',
|
dsn: 'https://05bc3789bf994b81bd7ce20c86ccd3ae@o4505071687041024.ingest.sentry.io/4505071690514432',
|
||||||
debug: false, // If `true`, Sentry will try to print out useful debugging information if something goes wrong with sending the event. Set it to `false` in production
|
debug: false, // If `true`, Sentry will try to print out useful debugging information if something goes wrong with sending the event. Set it to `false` in production
|
||||||
enableInExpoDevelopment: true,
|
enableInExpoDevelopment: true,
|
||||||
environment: buildChannel,
|
environment: buildChannel,
|
||||||
dist: appVersion,
|
dist,
|
||||||
|
release,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user