-
Notifications
You must be signed in to change notification settings - Fork 571
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
Android manifest update #4977
Android manifest update #4977
Conversation
@Agetian maybe you know why on github we don't need to mess with the d8 file? |
Hmm, not sure tbh, I haven't investigated the Github way of doing things as far as building and deploying an Android snapshot goes ^^; |
@Agetian can you look to replace
that is one of the last pieces where the Version needs to be updated |
Hmm, getVersionString simply returns "GIT" for me (on a snapshot version), with the entire BuildInfo.class.getPackage() method returning "null"... Not sure if it would return a proper version string if executed on an actual release. At any rate, kinda confusing for snapshots as such. I wonder if there's a better way to track the number, hmm... |
Normally, maven should have put the version inside these Manifest files so it can be accessed by |
I think we need https://maven.apache.org/shared/maven-archiver/examples/manifest.html <configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
</archive>
</configuration> i will check this out at weekend |
Sounds good! |
8af07b7
to
2c3f9c9
Compare
@Agetian the addDefaultImplementationEntries should already be enabled by default when i run As for the Android thing, i tried:
and i get:
but i can't find where the problem is happening (it is difficult to debug inside the maven plugin) |
This PR has not been updated in a while nad has been marked on stale. Stale PRs will be auto closed |
Linked Issue that is causing the problem: |
2c3f9c9
to
5a2b906
Compare
@kevlahnota i don't understand the config there yet: right now it does reset the VersionCode to 1 🤔 |
@kevlahnota should i try to apply this Commit into this MR too? ad81b0e |
Hmm the code there will just remove all non digit from revision - 2.0.00-snapshot, to 2000 and append 0 and MMdd where MM for month and dd for the date so the versioncode if date today is october 10, it will be 200001010 as version code (also append MMdd to the finalname), I don't know if it will work on your MR |
@kevlahnota like i said, right now the But i don't understand yet why it does happen, and have no idea on how to debug it |
@kevlahnota this code right there should have updated the VersionCode in theory, it should have turned but for some reason it doesn't, and I don't know how to debug the maven plugin not really for snapshots, but that should have been good enough? |
did you try to pass the alpha-version?
|
The default should be |
5a2b906
to
79c346e
Compare
Ugh, looks like I need to rebase it at home |
57201ff
to
c74bf21
Compare
@kevlahnota on my System, i had problems with the working directory. It only works correct when calling it in |
I can't figure it out on my system too since its always missing 4 digits that's why I resort to use the build-helper-maven-plugin (timestamp-property for appending monthdate code, regex-property to retain only numeric characters from revision, still missing 1 digit character so I append |
That's why I added this: With that, even |
this moves the Android Manifest to the more Default Location for the plugins
and enables
manifest-merger
goal.This sets the VersionName and generates the VersionCode from it