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

Use the serialized variable when writing on the properties file #211

Closed
wants to merge 3 commits into from

Conversation

marioshtika
Copy link

Hello the issue is described in here

I am using the below code to write on the grade.properties file on Android, but it is not working

platforms:
  android:
    properties:
      - file: gradle.properties
        entries: 
          android.enableJetifier: true

I followed the logic and it looks like it is working but it is not writing it back to the file

I was getting the below error message

Fatal error: Error running command
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received [Object: null prototype]

And as @Ali-H888 mentioned, if you check here you will find that it is passing data to the write file argument instead of the serialized string and that's what is causing the error.

We both tested the fix and it's working on our local machine.

I have created a pull request for this.

Copy link

vercel bot commented Feb 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
trapeze ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2024 8:28pm

@marioshtika
Copy link
Author

Sorry I accidentally closed this pull request 😊
I created a new one in here

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.

1 participant