-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
Question: Struggling with project setup #17
Comments
Okay, the above is obviously stupid in terms of source sets. app/build.gradle:
|
Is that working? To be honest I have not setup this for multiple variants. But this seems related with the KSP issue and not directly with this library. I'd love to ear from you when you get this to work, it will help me understand this for the next time someone is struggling with the same thing. |
Upfront: I am using Groovy, not kts. I am neither a Gradle expert, nor do I now anything about KSP. Yes it is working. Actually it is the only setup that I found working for me. But I don't know if this is good or if there are better ways. I would be happy if someone could confirm this. Yes I had a look at the link you provided.
From my understanding and my tests I can tell the following:
I think it is crucial that debug AND release is working and not just once. In your readme you are mentioning under setup (3): "main" and ".../debug/..." which I think is wrong or rather only working as long as you only build the debug variant. When I compare the stuff "you" generate under |
Thanks for the elaborate response 👍 As far as changing the location to be the same for debug and release, I'll investigate it further, but it seems to me that this is related with this issue that soon should be solved, hopefully. For now, it seems expected, as we see a similar approach done here Once again, thanks so much for taking the time. If there is anything else I can help with, I'd be glad :) |
Glad this helped. I you prefer, you can close this issue. On the other hand it would be nice to keep it open until the root cause in KSP is fixed or to track your current status in terms of better solutions (e.g. same location for debug and release). |
Closing this issue, since this shouldn't bother anyone now that I updated the Readme. Thank you! |
I would like to try your library since it looks really promising.
However, I am struggling with the very basics in terms of project setup.
build.gradle:
app/build.gradle:
No matter if I add sourceSets for only debug, only release or both (as above), whenever I switch the build variant, I get the following error:
Without switching build variants I can build the project.
I assume the problem is on my side. Could you please elaborate on how to properly setup my project for debug and release? Anything (else) I am doing wrong?
Please let me know if you need more details about my setup.
The text was updated successfully, but these errors were encountered: