I am trying to build my latest release and I noticed that in the Resolve Native Modules log that the builder was installing expo-in-app-purchases 11.0.1 but my package.json version is 12.0.0. Google won’t allow version 11 due to a deprication in the billing library.
I am wondering how to force expo build to utilize the correct packages listed in my package.json.
package.json
{
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject",
"test": "jest"
},
"dependencies": {
"@react-native-async-storage/async-storage": "~1.15.0",
"@react-native-community/datetimepicker": "3.5.2",
"@react-native-community/masked-view": "0.1.10",
"@react-native-community/netinfo": "6.0.0",
"@react-navigation/bottom-tabs": "^5.11.2",
"@react-navigation/drawer": "^5.11.4",
"@react-navigation/native": "^5.8.10",
"@react-navigation/stack": "^5.12.8",
"axios": "^0.21.1",
"expo": "^42.0.0",
"expo-ads-admob": "~10.1.2",
"expo-asset": "~8.3.3",
"expo-constants": "~11.0.1",
"expo-file-system": "~11.1.3",
"expo-in-app-purchases": "^12.0.0",
"expo-sqlite": "~9.2.1",
"expo-tracking-transparency": "~1.1.2",
"prettier": "^2.4.1",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz",
"react-native-dialog": "^9.1.0",
"react-native-dropdown-picker": "^5.1.23",
"react-native-elements": "^2.3.2",
"react-native-gesture-handler": "~1.10.2",
"react-native-keyboard-aware-scroll-view": "^0.9.3",
"react-native-modal": "^11.10.0",
"react-native-paper": "^4.4.1",
"react-native-reanimated": "~2.2.0",
"react-native-safe-area-context": "3.2.0",
"react-native-screens": "~3.4.0",
"react-native-searchable-dropdown": "^1.1.3",
"react-native-simple-dialogs": "^1.4.0",
"react-native-table-component": "^1.2.1",
"react-native-webview": "11.6.2",
"rn-pdf-reader-js": "^4.1.1",
"sentry-expo": "^4.0.3",
"expo-modules-core": "~0.2.0"
},
"devDependencies": {
"@babel/core": "~7.9.0",
"babel-eslint": "^10.1.0",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.6",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-standard": "^16.0.2",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jasmine": "^4.1.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.26.1",
"eslint-plugin-react-native": "^3.11.0",
"jest": "^26.6.3",
"jest-environment-enzyme": "^7.1.2",
"jest-enzyme": "^7.1.2",
"jest-expo": "^42.0.0",
"jest-expo-enzyme": "^1.0.4",
"prettier-eslint": "^13.0.0",
"react-test-renderer": "^17.0.1",
"typescript": "~4.0.0"
},
"private": true,
"jest": {
"preset": "jest-expo",
"setupFilesAfterEnv": [
"jest-enzyme"
],
"testEnvironment": "enzyme",
"transformIgnorePatterns": [
"node_modules/(?!(jest-)?react-native|react-clone-referenced-element|@react-native-community|expo(nent)?|@expo(nent)?/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-base|@sentry/.*|rn-pdf-reader-js)"
]
}
}
out from build
Adding expo-in-app-purchases:11.0.1