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

greenDao #994

Open
qiaoxianzhu opened this issue Sep 17, 2019 · 3 comments
Open

greenDao #994

qiaoxianzhu opened this issue Sep 17, 2019 · 3 comments

Comments

@qiaoxianzhu
Copy link

Hello,
I want to ask a question about greenDao.

greendao {
schemaVersion 1
// daoPackage 'com.test.xxx.greendao.gen'
targetGenDir 'src/main/java'
}

Can I dynamically generate the above content with code?

@greenrobot-team
Copy link
Collaborator

These are options for the Gradle plugin. So as usual for Gradle you can generate these values somehow inside the build script.

Note: typically you do not have to specify a targetGenDir, only a schemaVersion. http://greenrobot.org/greendao/documentation/modelling-entities/#Schema

@qiaoxianzhu
Copy link
Author

Well, I mean
Can i implement it in another way instead of in Gradle?

@qiaoxianzhu qiaoxianzhu reopened this Sep 18, 2019
@greenrobot-team
Copy link
Collaborator

Not that I am aware of. You would have to ask the Gradle folks about that.

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

No branches or pull requests

2 participants