Giter Club home page Giter Club logo

Comments (8)

artem-zinnatullin avatar artem-zinnatullin commented on June 19, 2024

Neat, though we don't have flavors to test this, but it'd be very nice to use something like this to run required gradle tasks automatically, the same Android Studio does using "Gradle-aware Make". But I'm afraid this would require Android Studio plugin.

from mainframer.

artem-zinnatullin avatar artem-zinnatullin commented on June 19, 2024

TL;TR: plugin for IntelliJ Idea or Android Studio that will automatically pass required build steps to mainframer.sh would be very neat.

If someone would like to start working on this — please ping us here, so community could track your progress!

@ahornerr thanks for sharing your receipe, in v2.0.0 we'll have samples for different build systems and I'll add a link to your receipe into gradle-android sample docs!

from mainframer.

ahornerr avatar ahornerr commented on June 19, 2024

Yes, I've noticed that if I don't give Android Studio enough time to update the .iml file after switching flavors, it will build the old flavor. Typically this only takes about 10-15 seconds but it's important for me not to jump the gun.

from mainframer.

ahornerr avatar ahornerr commented on June 19, 2024

Thank you!

from mainframer.

artem-zinnatullin avatar artem-zinnatullin commented on June 19, 2024

Yes, I've noticed that if I don't give Android Studio enough time to update the .iml file after switching flavors, it will build the old flavor. Typically this only takes about 10-15 seconds but it's important for me not to jump the gun.

Doesn't it show the progress of Gradle sync that is happening once you switch between build types/flavors? I believe you simply need to wait until it completes and then start the build.

from mainframer.

ahornerr avatar ahornerr commented on June 19, 2024

That's correct, I'm just impatient :)

from mainframer.

artem-zinnatullin avatar artem-zinnatullin commented on June 19, 2024

Haha, that's understandable 😸

from mainframer.

edwardstock avatar edwardstock commented on June 19, 2024

Nice solution!

By the same way, can take gradle options from: .idea/workspace.xml

xmllint --xpath "string(//option[@name='COMMAND_LINE_OPTIONS']/@value)" .idea/workspace.xml

from mainframer.

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.