Giter Site home page Giter Site logo

Comments (5)

chenenyu avatar chenenyu commented on May 20, 2024

gradle3.0变化太大,很多原有api不起作用(应该是bug),所以1.2的版本不兼容,建议换到1.3的版本

from router.

faith333 avatar faith333 commented on May 20, 2024

我尝试修改了一下插件里的判断方式, 姑且解决了3.0.0上的这个问题. 希望日后有更优雅的方式可以解决
`
subs.findAll {

  String file = it.buildFile.text
  String regxLibrary = "apply plugin:\\s*['\"]" + LIBRARY + "['\"]"
  String regxRouterPlugin = "apply plugin:\\s*['\"]" + ROUTER_PLUGIN + "['\"]"
  file.find(regxLibrary) != null && file.find(regxRouterPlugin) != null
  //it.plugins.hasPlugin(LIBRARY) && it.plugins.hasPlugin(RouterPlugin)

}
`

from router.

chenenyu avatar chenenyu commented on May 20, 2024

解决方式太硬了。。。

from router.

faith333 avatar faith333 commented on May 20, 2024

没办法. 我觉得插件的这个自动register module的特性是个亮点, 不想抛弃它使用1.3的方式. 但苦于对gradle插件和api的不熟悉只能用这样暴力的方法了.. 期待你找到更好的方式我再跟上:)

from router.

xxw8393 avatar xxw8393 commented on May 20, 2024

临时方案还不错的 我是干脆写成以app开头的全部加进去。。。

from router.

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.