eas-cli
eas-cli copied to clipboard
EAS channel:list Invalid app config. "android.versionCode" must be a number
Build/Submit details page URL
No response
Summary
With Expo SDK 49 eas channel:list
doesn't read .env
Managed or bare?
bare
Environment
expo-env-info 1.0.5 environment info:
System:
OS: macOS 13.2.1
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 20.6.1 - /opt/homebrew/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 9.8.1 - /opt/homebrew/bin/npm
Managers:
CocoaPods: 1.12.1 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8815526
Xcode: 14.3.1/14E300c - /usr/bin/xcodebuild
npmPackages:
@expo/metro-config: ^0.10.7 => 0.10.7
expo: ^49.0.7 => 49.0.10
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
react-native: 0.72.4 => 0.72.4
react-native-web: ~0.18.7 => 0.18.12
npmGlobalPackages:
eas-cli: 5.2.0
Expo Workflow: bare
Error output
Invalid app config. "android.versionCode" must be a number
Reproducible demo or steps to reproduce from a blank project
app.config.js
const pjson = require('./package.json');
/** @type {import('expo/config').ExpoConfig} */
export default () => {
return {
experiments: {
tsconfigPaths: true,
},
plugins: [
['expo-router'],
['@react-native-firebase/auth'],
['@react-native-firebase/app'],
['@react-native-firebase/crashlytics'],
['@react-native-firebase/dynamic-links'],
['@react-native-google-signin/google-signin'],
['expo-apple-authentication'],
['expo-updates'],
['expo-localization'],
],
scheme: 'discovertsy',
version: pjson.version,
runtimeVersion: pjson.version,
owner: 'discovertsy',
orientation: 'portrait',
userInterfaceStyle: 'light',
extra: {
eas: {
projectId: 'd71a04a3-9db3-48c1-a108-47a5d4dd4ad7',
},
},
jsEngine: 'hermes',
name: 'Discovertsy',
slug: 'discovertsy',
assetBundlePatterns: ['**/*'],
icon: iconToRender,
splash: {
image: './assets/splash.png',
resizeMode: 'cover',
backgroundColor: '#4444FF',
},
ios: {
config: {
usesNonExemptEncryption: false,
},
googleServicesFile: './GoogleService-Info.plist',
buildNumber: process.env.BUILD_NUMBER,
supportsTablet: false,
bundleIdentifier: 'com.discovertsy.app',
infoPlist: {
CADisableMinimumFrameDurationOnPhone: true,
NSLocationAlwaysAndWhenInUseUsageDescription:
'Allow Discovertsy to use your location, to suggest the best things to do near you.',
NSLocationAlwaysUsageDescription:
'Allow Discovertsy to use your location, to suggest the best things to do near you.',
NSLocationWhenInUseUsageDescription:
'Allow Discovertsy to use your location, to suggest the best things to do near you.',
LSApplicationQueriesSchemes: [
'mailto',
'comgooglemaps',
'citymapper',
'uber',
'lyft',
],
},
associatedDomains: [
'applinks:discovertsyshare.page.link',
'applinks:discovertsy.com',
],
},
android: {
googleServicesFile: './google-services.json',
versionCode: parseInt(process.env.BUILD_NUMBER, 10), <- ISSUE
config: {
googleMaps: {
apiKey: process.env.GMAPS_API,
},
},
adaptiveIcon: {
foregroundImage: './assets/adaptive-icon.png',
backgroundColor: '#4443FE',
},
package: 'com.discovertsy.app',
intentFilters: [
{
action: 'VIEW',
data: [
{
scheme: 'https',
host: '*.discovertsyshare.page.link',
pathPrefix: '/records',
},
],
category: ['BROWSABLE', 'DEFAULT'],
},
{
action: 'VIEW',
data: [
{
scheme: 'https',
host: '*.discovertsy.com',
pathPrefix: '/records',
},
],
category: ['BROWSABLE', 'DEFAULT'],
},
],
},
};
};