https://docs.sentry.io/clients/react-native/codepush/ has the following
$ appcenter codepush release-react YourApp ios --outputDir build
$ export SENTRY_PROPERTIES=./ios/sentry.properties
$ sentry-cli react-native codepush YourApp ios ./build
When you have both ios and android codepush setup. Do you have to do something like the following for android as well? just want to make sure..
$ appcenter codepush release-react YourApp android --outputDir build
$ export SENTRY_PROPERTIES=./android/sentry.properties
$ sentry-cli react-native codepush YourApp android ./build
Yes you do, but you should use two different folders for build the CodePush so it uses platform specific js for Android and iOS. These are the bash script I use for this process. Also this isn't a bug so use the sentry forums or stack overflow to ask these sort of questions.
Android
#!/usr/bin/env bash
export SENTRY_PROPERTIES=./android/sentry.properties;
appcenter codepush release-react -a YourAppSlug -d Production -o build/android -t VersionYourPushing
sentry-cli react-native codepush YourAppSlug android ./build/android/Codepush/ -o YourProjectOrganisation -p YourApp --deployment Production
iOS
#!/usr/bin/env bash
export SENTRY_PROPERTIES=./ios/sentry.properties;
appcenter codepush release-react -a YourAppSlug -d Production -o build/ios -t VersionYourPushing
sentry-cli react-native codepush YourAppSlug ios ./build/android/Codepush/ -o YourProjectOrganisation -p YourApp --deployment Production
I am closing all old issues, please if this is still a problem feel free to revive it.
Also, consider moving to our new SDK @sentry/react-native if it still happens there please open a new issue.
Most helpful comment
Yes you do, but you should use two different folders for build the CodePush so it uses platform specific js for Android and iOS. These are the bash script I use for this process. Also this isn't a bug so use the sentry forums or stack overflow to ask these sort of questions.
Android
iOS