Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update React Native tests #179

Open
wants to merge 7 commits into
base: integration/v3
Choose a base branch
from

Conversation

joshedney
Copy link
Contributor

@joshedney joshedney commented Mar 4, 2025

Goal

Update the React Native iOS and Android tests to cover the escape hatches

Remove the old React Native fixture files.

Testing

Covered by CI

@joshedney joshedney requested review from lemnik and tomlongridge March 4, 2025 09:33
@joshedney joshedney self-assigned this Mar 4, 2025
@joshedney joshedney changed the base branch from next to integration/v3 March 4, 2025 09:33
Comment on lines 34 to 43
# --bundle=STRING The path to the bundled JavaScript file to upload
# --code-bundle-id=STRING A unique identifier for the JavaScript bundle
# --dev Indicates whether this is a debug or release build
# --source-map=STRING The path to the source map file to upload
# --version-name=STRING The version of the application
# --bundle-version=STRING The bundle version of this build of the application (Apple platforms only)
# --plist=STRING The path to a .plist file from which to obtain build information
# --scheme=STRING The name of the Xcode options.Ios.Scheme used to build the application
# --xcode-project=STRING The path to an Xcode project, workspace or containing directory from which to obtain build information
# --xcarchive-path=PATH The path to the .xcarchive to process if it has been exported
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this has been erroneously copied in...

Comment on lines 246 to 258
if ENV['RN_VERSION'].to_f == 0.70
ENV['APP_MANIFEST_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml"
ENV['BUNDLE_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/generated/assets/react/release/index.android.bundle"
ENV['SOURCE_MAP_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/generated/sourcemaps/react/release/index.android.bundle.map"
elsif ENV['RN_VERSION'].to_f == 0.73
ENV['APP_MANIFEST_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml"
ENV['BUNDLE_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle"
ENV['SOURCE_MAP_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/generated/sourcemaps/react/release/index.android.bundle.map"
elsif ENV['RN_VERSION'].to_f == 0.75
ENV['APP_MANIFEST_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/intermediates/merged_manifests/release/processReleaseManifest/AndroidManifest.xml"
ENV['BUNDLE_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle"
ENV['SOURCE_MAP_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/generated/sourcemaps/react/release/index.android.bundle.map"
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about expressing it like this to make it clearer what the differences are? (It pushes the full feature path to the feature script and allows this to be just the differences between versions - so we can add new ones if the path changes again.)

Suggested change
if ENV['RN_VERSION'].to_f == 0.70
ENV['APP_MANIFEST_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml"
ENV['BUNDLE_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/generated/assets/react/release/index.android.bundle"
ENV['SOURCE_MAP_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/generated/sourcemaps/react/release/index.android.bundle.map"
elsif ENV['RN_VERSION'].to_f == 0.73
ENV['APP_MANIFEST_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml"
ENV['BUNDLE_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle"
ENV['SOURCE_MAP_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/generated/sourcemaps/react/release/index.android.bundle.map"
elsif ENV['RN_VERSION'].to_f == 0.75
ENV['APP_MANIFEST_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/intermediates/merged_manifests/release/processReleaseManifest/AndroidManifest.xml"
ENV['BUNDLE_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle"
ENV['SOURCE_MAP_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/generated/sourcemaps/react/release/index.android.bundle.map"
end
ENV['APP_MANIFEST_PATH'] = "android/app/build/intermediates/merged_manifests/release/processReleaseManifest/AndroidManifest.xml"
ENV['BUNDLE_PATH'] = "android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle"
ENV['SOURCE_MAP_PATH'] = "android/app/build/generated/sourcemaps/react/release/index.android.bundle.map"
if ENV['RN_VERSION'].to_f < 0.75
ENV['APP_MANIFEST_PATH'] = "android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml"
elsif ENV['RN_VERSION'].to_f < 0.73
ENV['BUNDLE_PATH'] = "android/app/build/generated/assets/react/release/index.android.bundle"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants