Skip to content

Commit

Permalink
Merge pull request #139 from bugsnag/PLAT-10553-support-v49
Browse files Browse the repository at this point in the history
  • Loading branch information
yousif-bugsnag authored Jul 12, 2023
2 parents 34e5dc4 + 80d81e4 commit 3ada917
Show file tree
Hide file tree
Showing 12 changed files with 87 additions and 71 deletions.
2 changes: 1 addition & 1 deletion features/fixtures/test-app/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"web": {
"favicon": "./assets/favicon.png"
},
"plugins": ["./config-plugins/withRemoveiOSNotificationEntitlement"],
"plugins": ["./config-plugins/withRemoveiOSNotificationEntitlement", "./config-plugins/withAddClearTextTrafficAndroid"],
"extra": {
"eas": {
"projectId": "EXPO_EAS_PROJECT_ID"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { AndroidConfig, withAndroidManifest } = require('@expo/config-plugins')
const { getMainApplicationOrThrow } = AndroidConfig.Manifest

const withAddClearTextTrafficAndroid = config => {
config = withAndroidManifest(config, config => {
config.modResults = setUsesCleartextTraffic(config, config.modResults)
return config
})

return config
}

function setUsesCleartextTraffic(config, androidManifest) {
const mainApplication = getMainApplicationOrThrow(androidManifest);
mainApplication.$['android:usesCleartextTraffic'] = 'true'
return androidManifest;
}

module.exports = withAddClearTextTrafficAndroid
23 changes: 10 additions & 13 deletions features/fixtures/test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,17 @@
"web": "expo start --web"
},
"dependencies": {
"@react-native-community/netinfo": "9.3.7",
"expo": "~48.0.4",
"expo-application": "~5.1.1",
"expo-constants": "~14.2.1",
"expo-crypto": "~12.2.1",
"expo-device": "~5.2.1",
"expo-file-system": "~15.2.2",
"expo-screen-orientation": "~5.1.1",
"expo-status-bar": "~1.4.4",
"@react-native-community/netinfo": "9.3.10",
"expo": "^49.0.0",
"expo-application": "~5.3.0",
"expo-constants": "~14.4.2",
"expo-crypto": "~12.4.1",
"expo-device": "~5.4.0",
"expo-file-system": "~15.4.2",
"expo-screen-orientation": "~6.0.2",
"expo-status-bar": "~1.6.0",
"react": "18.2.0",
"react-native": "0.71.3"
},
"resolutions": {
"expo-modules-core": "1.2.3"
"react-native": "0.72.1"
},
"devDependencies": {
"@babel/core": "^7.20.0"
Expand Down
48 changes: 24 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"devDependencies": {
"eslint": "^6.8.0",
"eslint-config-standard": "^14.1.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-jest": "^23.7.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.18.3",
"eslint-plugin-standard": "^4.0.1",
"expo": "^48.0.0",
"jest": "^26.6.3",
"jest-expo": "^48.0.1",
"lerna": "^6.0.1",
"react": "18.2.0",
"react-native": "0.71.3",
"verdaccio": "^5.10.2"
},
"scripts": {
"bootstrap": "lerna bootstrap",
"test:unit": "jest",
"test:lint": "eslint --report-unused-disable-directives --max-warnings=0 .",
"local-npm:start": "verdaccio --config ./verdaccio-config.yml",
"local-npm:publish-all": "lerna publish --yes --force-publish --exact --no-push --no-git-reset --no-git-tag-version --registry 'http://localhost:4873'"
}
"devDependencies": {
"eslint": "^6.8.0",
"eslint-config-standard": "^14.1.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-jest": "^23.7.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.18.3",
"eslint-plugin-standard": "^4.0.1",
"expo": "^49.0.0",
"jest": "^26.6.3",
"jest-expo": "^48.0.1",
"lerna": "^6.0.1",
"react": "18.2.0",
"react-native": "0.72.1",
"verdaccio": "^5.10.2"
},
"scripts": {
"bootstrap": "lerna bootstrap",
"test:unit": "jest",
"test:lint": "eslint --report-unused-disable-directives --max-warnings=0 .",
"local-npm:start": "verdaccio --config ./verdaccio-config.yml",
"local-npm:publish-all": "lerna publish --yes --force-publish --exact --no-push --no-git-reset --no-git-tag-version --registry 'http://localhost:4873'"
}
}
12 changes: 6 additions & 6 deletions packages/delivery-expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
"license": "MIT",
"devDependencies": {
"@bugsnag/core": "^7.16.0",
"@react-native-community/netinfo": "9.3.7",
"expo-crypto": "~12.2.1",
"expo-file-system": "~15.2.2"
"@react-native-community/netinfo": "9.3.10",
"expo-crypto": "~12.4.0",
"expo-file-system": "~15.4.2"
},
"peerDependencies": {
"@bugsnag/core": "^7.0.0",
"@react-native-community/netinfo": "9.3.7",
"expo-crypto": "~12.2.1",
"expo-file-system": "~15.2.2"
"@react-native-community/netinfo": "9.3.10",
"expo-crypto": "~12.4.0",
"expo-file-system": "~15.4.2"
}
}
2 changes: 1 addition & 1 deletion packages/expo-cli/lib/version-information.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const semver = require('semver')

// the major version number of the latest Expo SDK we support
const LATEST_SUPPORTED_EXPO_SDK = 48
const LATEST_SUPPORTED_EXPO_SDK = 49

class Version {
constructor (expoSdkVersion, bugsnagVersion, isLegacy = false) {
Expand Down
2 changes: 1 addition & 1 deletion packages/expo-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"author": "Bugsnag",
"license": "MIT",
"dependencies": {
"@expo/package-manager": "^1.0.1",
"@expo/package-manager": "^1.0.2",
"command-line-args": "^5.0.2",
"kleur": "^3.0.2",
"prompts": "^2.0.4",
Expand Down
26 changes: 13 additions & 13 deletions packages/expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,28 @@
"author": "Bugsnag",
"license": "MIT",
"dependencies": {
"@bugsnag/core": "^7.16.0",
"@bugsnag/core": "^7.19.0",
"@bugsnag/delivery-expo": "^48.0.0",
"@bugsnag/plugin-browser-session": "^7.16.0",
"@bugsnag/plugin-console-breadcrumbs": "^7.16.0",
"@bugsnag/plugin-browser-session": "^7.19.0",
"@bugsnag/plugin-console-breadcrumbs": "^7.19.0",
"@bugsnag/plugin-expo-app": "^48.0.0",
"@bugsnag/plugin-expo-app-state-breadcrumbs": "^48.0.0",
"@bugsnag/plugin-expo-connectivity-breadcrumbs": "^48.0.0",
"@bugsnag/plugin-expo-device": "^48.1.0",
"@bugsnag/plugin-network-breadcrumbs": "^7.16.0",
"@bugsnag/plugin-react": "^7.16.0",
"@bugsnag/plugin-react-native-global-error-handler": "^7.16.0",
"@bugsnag/plugin-react-native-orientation-breadcrumbs": "^7.16.0",
"@bugsnag/plugin-react-native-unhandled-rejection": "^7.16.0",
"@bugsnag/source-maps": "^2.3.0",
"bugsnag-build-reporter": "^1.0.1"
"@bugsnag/plugin-network-breadcrumbs": "^7.19.0",
"@bugsnag/plugin-react": "^7.19.0",
"@bugsnag/plugin-react-native-global-error-handler": "^7.19.0",
"@bugsnag/plugin-react-native-orientation-breadcrumbs": "^7.19.0",
"@bugsnag/plugin-react-native-unhandled-rejection": "^7.19.0",
"@bugsnag/source-maps": "^2.3.1",
"bugsnag-build-reporter": "^2.0.0"
},
"devDependencies": {
"expo-constants": "~14.2.1"
"expo-constants": "~14.4.2"
},
"peerDependencies": {
"expo": "^48.0.0",
"expo-constants": "~14.2.1",
"expo": "^49.0.0",
"expo-constants": "~14.4.2",
"promise": "^8.3.0",
"react": "*"
}
Expand Down
10 changes: 5 additions & 5 deletions packages/plugin-expo-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"author": "Bugsnag",
"license": "MIT",
"devDependencies": {
"@bugsnag/core": "^7.16.0",
"expo-application": "~5.1.1",
"expo-constants": "~14.2.1"
"@bugsnag/core": "^7.19.0",
"expo-application": "~5.3.0",
"expo-constants": "~14.4.2"
},
"peerDependencies": {
"@bugsnag/core": "^7.0.0",
"expo-application": "~5.1.1",
"expo-constants": "~14.2.1"
"expo-application": "~5.3.0",
"expo-constants": "~14.4.2"
}
}
4 changes: 2 additions & 2 deletions packages/plugin-expo-connectivity-breadcrumbs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"license": "MIT",
"devDependencies": {
"@bugsnag/core": "^7.16.0",
"@react-native-community/netinfo": "9.3.7"
"@react-native-community/netinfo": "9.3.10"
},
"peerDependencies": {
"@bugsnag/core": "^7.0.0",
"@react-native-community/netinfo": "9.3.7"
"@react-native-community/netinfo": "9.3.10"
}
}
8 changes: 4 additions & 4 deletions packages/plugin-expo-device/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
"license": "MIT",
"devDependencies": {
"@bugsnag/core": "^7.16.0",
"expo-constants": "~14.2.1",
"expo-device": "~5.2.1"
"expo-constants": "~14.4.2",
"expo-device": "~5.4.0"
},
"peerDependencies": {
"@bugsnag/core": "^7.0.0",
"expo-constants": "~14.2.1",
"expo-device": "~5.2.1"
"expo-constants": "~14.4.2",
"expo-device": "~5.4.0"
}
}
2 changes: 1 addition & 1 deletion packages/plugin-expo-eas-sourcemaps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"peerDependencies": {
"@bugsnag/source-maps": "^2.3.1",
"@expo/config": "^8.0.2"
"@expo/config": "^8.1.1"
},
"author": "Bugsnag",
"license": "MIT"
Expand Down

0 comments on commit 3ada917

Please sign in to comment.