-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add manifest validation, replace manifest build dir generation #104
Conversation
# Conflicts: # application/build.gradle.kts # plugins/build.gradle.kts
Oh! Nice PR, im waiting them for my project! |
"""<?xml version="1.0" encoding="utf-8"?> | ||
<manifest package="$packageName"/> | ||
""".trimIndent() | ||
"""<manifest package="$packageName"/>""" |
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.
Why we are skipping xml version here?
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've never seen any effect of specifying xml version in android xml files like manifest or resources, I can roll back this
private fun LibraryExtension.maybeGenerateManifest( | ||
project: Project, | ||
feature: AndroidLibraryFeatureConfiguration | ||
) { | ||
val manifestFile = manifestFile(project.buildDir, feature.packageName) | ||
val manifestFile = File(project.projectDir, "src/main/AndroidManifest.xml") |
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.
There could be a few cases where we'll need different manifests in src/smth
folders do we want to support that?
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 great, my only worry is xml version and encoding info which we are removing from the manifest. I wonder what's the implications would be in this case.
Added 2 flags to forma configuration for working with manifests:
generateManifest
from android targets and addgenerateMissedManifests
to forma global configvalidateManifestPackages
for comparing build.gradle.ktspackageName
with manifest'spackage