mirror of
https://github.com/stablyai/orca.git
synced 2026-11-17 11:24:37 +00:00
Release-signed Android runs also build an AAB with ORCA_ANDROID_DISTRIBUTION=play. app.config.js embeds that as extra.androidDistribution, which turns off the GitHub update check, the settings check row and the GitHub wording on the update wall. A new job uploads the AAB to Play's internal track with fastlane once ORCA_PLAY_SERVICE_ACCOUNT_JSON exists. Nothing changes until release signing is enabled; the unused biometric permissions are blocked.
32 lines
1.4 KiB
JavaScript
32 lines
1.4 KiB
JavaScript
// Bare expo-notifications defaults to sandbox entitlements while non-dev push-token.ts reports production, silently losing TestFlight/App Store pushes.
|
|
// Derive APNs mode from release workflow env; Expo still supplies app.json, including Fastlane version/buildNumber rewrites, for everything else.
|
|
const APS_ENVIRONMENT =
|
|
process.env.ORCA_IOS_APS_ENVIRONMENT === 'production' ? 'production' : 'development'
|
|
|
|
// The release workflow sets this only for the Play AAB; Play installs must not offer GitHub updates.
|
|
const IS_PLAY_BUILD = process.env.ORCA_ANDROID_DISTRIBUTION === 'play'
|
|
|
|
module.exports = ({ config }) => ({
|
|
...config,
|
|
...(IS_PLAY_BUILD && { extra: { ...config.extra, androidDistribution: 'play' } }),
|
|
// `expo run` installs a dev-client build cached for the current native fingerprint instead of
|
|
// rebuilding; scripts/native-client.mjs populates the cache.
|
|
buildCacheProvider: { plugin: './scripts/native-build-cache.cjs' },
|
|
ios: {
|
|
...config.ios,
|
|
entitlements: { ...config.ios?.entitlements, 'aps-environment': APS_ENVIRONMENT }
|
|
},
|
|
plugins: (config.plugins ?? []).map((plugin) =>
|
|
plugin === 'expo-notifications'
|
|
? [
|
|
'expo-notifications',
|
|
{
|
|
enableBackgroundRemoteNotifications: true,
|
|
mode: APS_ENVIRONMENT,
|
|
icon: './assets/notification-icon.png'
|
|
}
|
|
]
|
|
: plugin
|
|
)
|
|
})
|