-
Notifications
You must be signed in to change notification settings - Fork 7
BareExampleApp: Upgrade RN to 0.80. Use RNEF. Fix stability issues #71
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
base: main
Are you sure you want to change the base?
Conversation
|
8192d6a
to
1e0750b
Compare
I added tap on Android because I noticed that API 33 uses an additional modal window on a fresh Chrome instance. That was the reason for the test failure on API 33. |
run: yarn workspace react-native-legal-bare-example generate:legal | ||
shell: bash | ||
|
||
- name: "[WORKAROUND] run generateCodegenArtifactsFromSchema manually for example app" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this workaround done, because RNEF does not invoke codegen when building native part?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it with and without RNEF. I spent some time fighting this bug, and @artus9033 helped me with it. It started working with this script before the build. Without it, it breaks. The build. My plan was to commit it with a workaround and then try to fix this bug in a separate context.
hermesCommand = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsolutePath() + "/sdks/hermesc/%OS-BIN%/hermesc" | ||
codegenDir = new File(["node", "--print", "require.resolve('@react-native/codegen/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsoluteFile() | ||
cliFile = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), 'cli.js') | ||
cliFile = file("../../node_modules/@rnef/cli/dist/src/bin.js") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we align to previous syntax that supports any nested location of cli script?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I followed the RNEF docs, but I agree with you. It should be in the same format as the other files above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FIxed
mavenCentral() | ||
} | ||
dependencies { | ||
classpath("com.mikepenz.aboutlibraries.plugin:aboutlibraries-plugin:11.6.3") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is line added by the generate command, let's remove it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
…fications make things easier"
…iables like this in build.gradle in bare-example android app
e0c14bc
to
13257ad
Compare
…for bare-example app
.github/workflows/test-e2e-ios.yaml
Outdated
- name: Download and Unpack APK artifact | ||
run: | | ||
curl -L -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -o artifact.zip "https://api.github.com/repos/${{ github.repository }}/actions/artifacts/${{ needs.build-release.outputs.artifact-id }}/zip" | ||
unzip artifact.zip -d downloaded-artifacts | ||
tar zxf downloaded-artifacts/app.tar.gz -C downloaded-artifacts | ||
ls -l downloaded-artifacts | ||
APP_PATH=$(pwd)/$(find downloaded-artifacts -name "*.app" -print -quit) | ||
echo "ARTIFACT_PATH_FOR_E2E=$APP_PATH" >> $GITHUB_ENV | ||
shell: bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of doing custom logic you can use remote-cache
command from: callstackincubator/rock#263. i'm linking the PR because it's not documented yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can find the docs here now: https://www.rnef.dev/docs/cli#rnef-remote-cache-actions-and-options
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! I'll use it
@@ -0,0 +1,4 @@ | |||
// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll remove it
…download in GH actions for e2e
812fd9a
to
645ea85
Compare
645ea85
to
d19a2c6
Compare
I need some time to fix it. I convert it to draft |
This PR:
--pure-lockfile
due to deprecation warningsThis PR fixes #50