-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fix gradle free builds #2002
Fix gradle free builds #2002
Conversation
|
||
// free build hack: common functions | ||
def doFreeBuild() { | ||
return System.properties["freeBuildHackDoFreeBuild"] == "true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it, but freeBuildHackDoFreeBuild
is just horrible.
Couldn't we shorten that to just freeBuild
, i.e. -DfreeBuild=true
would be passed?
Looks like F-Droid recipes only support setting gradle/project properties (-P
) [1].
Maybe return hasProperty("freeBuild")
? (we can omit =true
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like F-Droid recipes only support setting gradle/project properties (-P) [1].
Maybe return hasProperty("freeBuild")? (we can omit =true)
Yes, that's better, patch done.
Github currently has issues. Will retry and merge this asap. Edit: https://status.github.com/ Interesting, everything spiked and then the app server was gone |
Woah, this is so weird. Merging always fails, this PR is not in the commits. Edit: I contacted the Github support. The repo is "broken" due to a service failure. I hope to hear back soon. |
GitHub support cleared the cache, repo is back to normal. |
…_properties Fix gradle free builds
Replaces #1996, follows #1982 to resolve #1959.
Here is a new solution that fix the flavor and build variants build under gradle and seems to integrate better with android studio.
To make a free build
-DfreeBuildHackDoFreeBuild=true
must be passed to gradle, ex:./gradlew clean assembleFreeRelease -DfreeBuildHackDoFreeBuild=true
@mvdan and @mfietz : are you ok with this solution?
This solution is better that #1996 cause the build variants are correctly linked on Android Studio.
For the record: