Coder Social home page Coder Social logo

Comments (5)

mlynch avatar mlynch commented on June 11, 2024

Sorry I'm not following, can you clarify what this issue is describing? Thanks

from trapeze.

Ryanccl avatar Ryanccl commented on June 11, 2024

企业微信截图_cb4f9ebd-ecd6-45fc-a0d3-7f9f894ecdf4
I want to automatically modify the apikey of the plug-in project after adding the capacitor plug-in, but now after executing trapeze, the xml of the main project is modified
image

from trapeze.

mlynch avatar mlynch commented on June 11, 2024

Why would you want to modify the plugin project? The only setting that matters is the setting in your main app project. I suppose you could just configure the directory of the android project if you want to be specific though. https://trapeze.dev/docs/Operations/getting-started#usage

from trapeze.

Ryanccl avatar Ryanccl commented on June 11, 2024

Why would you want to modify the plugin project? The only setting that matters is the setting in your main app project. I suppose you could just configure the directory of the android project if you want to be specific though. https://trapeze.dev/docs/Operations/getting-started#usage

My need is to achieve the same effect as the cordova plugin

cordova plugin add cordova-example-plugin --variable APP_KEY=your_appkey

There will be no actual APP_KEY in the developed third-party plug-in code. When using, the package name of each package is different, and the APP_KEY inside will also be different. APP_KEY needs to be updated when adding plugins

from trapeze.

mlynch avatar mlynch commented on June 11, 2024

Yes, the way this is done is how I described it: plugins that require variables ultimately require you adding config values to your app's configuration files which then apply to the rest of the app. The way Trapeze does this is correct, this is working as expected. You wouldn't modify the actual plugin project which is probably in a node_modules folder and going to be recreated every time the plugin is installed.

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.