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

fix: Demo project cleanup #87

Merged
merged 16 commits into from
Nov 7, 2024
Merged

fix: Demo project cleanup #87

merged 16 commits into from
Nov 7, 2024

Conversation

miquelbeltran
Copy link
Contributor

@miquelbeltran miquelbeltran commented Nov 5, 2024

fix: Demo project cleanup

Description 📝

  • Purpose: Ensure the demo project builds and runs with the latest dependencies and RN distribution
  • Approach: Recreate demo project.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Updates

  • Recreated the demo project using npx react-native init.
  • Moved original app js files.
  • Fixed .gitignore and similar files.
  • Add Github CI job to compile demo Android project.
  • Add Github CI job to compile demo iOS project.

Screenshots 📷

Android Emulator screenshot:

Screenshot_1730802690

iOS simulator screenshot:

image

Test plan 🧪

  • Ensure Android app builds and runs
  • Ensure iOS app builds and runs

Author to check 👓

  • Project and all contained modules builds successfully
  • Self-/dev-tested
  • Unit/UI/Automation/Integration tests provided where applicable
  • Code is written to standards
  • Appropriate documentation written (code comments, internal docs)

Reviewer to check ✔️

  • Project and all contained modules builds successfully
  • Change has been dev-/reviewer-tested, where possible
  • Unit/UI/Automation/Integration tests provided where applicable
  • Code is written to standards
  • Appropriate documentation written (code comments, internal docs)

demo/README.md Outdated Show resolved Hide resolved
@miquelbeltran miquelbeltran marked this pull request as draft November 5, 2024 10:00
@miquelbeltran miquelbeltran marked this pull request as ready for review November 6, 2024 09:36
@miquelbeltran miquelbeltran requested review from TheRealAgentK, sumitramanga, a team and PanosNB and removed request for a team November 6, 2024 10:17
Comment on lines +7 to +9

Install with `npm install -g npx` if not present already in your system.
Copy link
Collaborator

Choose a reason for hiding this comment

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

npx should come with npm if npm is already installed :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, added it just in case, I wasn't sure if npx was set up automatically when installing npm.

Choose a reason for hiding this comment

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

Yeah it is these days, last 3-4 years or so?

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '20'
Copy link
Collaborator

@sumitramanga sumitramanga Nov 6, 2024

Choose a reason for hiding this comment

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

This is Node.js, right? Perhaps we use the latest stable version of node ? If that's moving away from the general goa of this PR, we can leave it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is needed to setup npm on Github actions, not as much important to run the actual project, but just to have npm present when testing the project in GitHub.

Copy link
Collaborator

@sumitramanga sumitramanga left a comment

Choose a reason for hiding this comment

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

Just a couple of comments to consider, otherwise, looks good!
I didn't look too deeply in the auto generated code since that's not what you created but did do a rough review of it

Copy link

@TheRealAgentK TheRealAgentK left a comment

Choose a reason for hiding this comment

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

Looks good to me overall.


/**
* Run Proguard to shrink the Java bytecode in release builds.
* Set this to true to Run Proguard on Release builds to minify the Java bytecode.
*/
def enableProguardInReleaseBuilds = false

Choose a reason for hiding this comment

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

This is a react-specific setting, I think?

Is that also taking care of R8?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was generated by the RN create command, haven't looked into it.

I only had to add the jettifier to true due to some 3rd party dependencies not supporting AndroidX libraries.

@miquelbeltran miquelbeltran merged commit aa1c1e5 into master Nov 7, 2024
4 checks passed
@miquelbeltran miquelbeltran deleted the android-cleanup branch November 7, 2024 07:56
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.

3 participants