Gitlab asks too many questions, so I have no gitlab account. For this reason, I put the yml in the source repo of the app.
I really hope this a viable way to announce the app. I know this has been discussed but I found no recent hints on how to propose inclusion of a new app into fdroid without a gitlab account.
If this is not the right way, please point me to more docs, I am happy to read and learn.
Thank you, and sorry! I will fix those things.
How can I make sure to use the same Gradle version? Is including the gradle-wrapper.properties going to fix this or do I need to do more?
OK, I fixed dep config, tagged, compiled, made a release v1.1. Before, I checked with apksigtool that the depinfoblock issue is gone, and I also double checked the tagging. So maybe the release process issues are fixed now.
Then I updated the fdroid metadata yml file in a commit after the v1.1 release (on master) to include the new release.
I have the same problem with my build: Revision numbers do not match.
Could you explain in simple words what exactly is compared to what? Even after a year or so I’m still quite lost in the whole compile & compare process.
For me, the log says
==== detail begin ====
verification of APK with copied signature failed
Comparing reference APK to APK with copied signature…
Unexpected diff output:
diff -r /tmp/tmp0jcz7b22/tmp_binaries_de.chadenas.cpudefense_42.binary/content/META-INF/version-control-info.textproto /tmp/tmp0jcz7b22/_tmp_tmp0jcz7b22_sigcp_de.chadenas.cpudefense_42/content/META-INF/version-control-info.textproto
4c4
< revision: “097c4573fdb625608916436ec0be4081319d2ae5”
—
> revision: “89c02393e9c114aae4a8580bd23fc507af4db2e9”
==== detail end ====
The second revision number is the correct one. But where is the first one from?
The checkupdate bot picksup the Tag, and builds from the tagged commit.
We usually see devs do this:
edit code
build locally an APK
verify APK, it’s ok
commit code
tag from commit
push old TESTed APK to release
Do you notice the mistake?
The APK was build from the tree at that point, when it was pointing to an older commit. And your changes were UNcommited. Hence the two commit hashes that differ.
We can remove that info, there’s a guide in Docs, but I like that since it signals these mistakes and others, and helps up track differences in builds.
We understand you need to test your commits, but please follow the steps:
Thanks for the explanation. The build has succeeded now. In fact, the commit string in my log above was the second-to-last commit, so that confirms what you have said.
But now I’m seriously wondering why this has ever worked … I have always built first and then tagged later. Maybe I was just lucky that there were no changes to any other file.