Code Monkey home page Code Monkey logo

Comments (5)

marioshtika avatar marioshtika commented on June 2, 2024 1

Hey @Ali-H888 you were right. I also tested this on my local machine and it worked.

I created a pull request for this and hopefully someone will merge it on the main branch.

@mlynch ^

Thank you in advance.

from trapeze.

marioshtika avatar marioshtika commented on June 2, 2024

Hey @Ali-H888 did you find a way to do this?

I think at some point this was possible (#56) but I can not find it how to make it work.

from trapeze.

Ali-H888 avatar Ali-H888 commented on June 2, 2024

Hello @marioshtika, what I did was to replace the gradle.properties file with one of my own

platforms:
    android:
       ....
        copy:
            -   src: ../configuration/android/gradle.properties
                dest: gradle.properties

from trapeze.

marioshtika avatar marioshtika commented on June 2, 2024

Hey @Ali-H888 thank you for your response, I was thinking of the same workaround.

I checked the repository and I saw that the properties operator exists in here
And the interface also exists in here

So something like this should have worked

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 am 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]

@mlynch can you take a look at this and check if this is a bug.

from trapeze.

Ali-H888 avatar Ali-H888 commented on June 2, 2024

@marioshtika Yeah, same here. I didn't check it since a while now, but you got me interested in finding why, and I think I did :)

If you check here you will find that they are passing data to the write file argument instead of the serialized string and that's what is causing the error. I tried changing it locally on my project and it worked when I replaced the data argument with the serialized variable.

from trapeze.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.