Skip to content
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

Make sure we are not missing splash screen xml file in AndroidResource #108

Closed
Youssef1313 opened this issue Mar 29, 2023 · 9 comments
Closed

Comments

@Youssef1313
Copy link
Member

I'm not too sure, but we might be missing including uno_splash_image.xml in AndroidResource

@Youssef1313
Copy link
Member Author

@pictos Can you please confirm if I'm correct?

@pictos
Copy link
Contributor

pictos commented Mar 29, 2023

@Youssef1313 it's included at some point because the app can run sometimes, so it's something related to the incremental builds. The fix on Xamarin.Android repo, that you mention in another issue isn't released yet, so maybe we have to wait for it?

@Youssef1313
Copy link
Member Author

This is not about the build issue (currently Jerome is looking into it), but I found the only place we include an android resource is:

<AndroidResource Include="@(_ResizetizerCollectedAppIcons)"
Link="%(_ResizetizerCollectedAppIcons.RecursiveDir)%(_ResizetizerCollectedAppIcons.Filename)%(_ResizetizerCollectedAppIcons.Extension)" >
</AndroidResource>

I think this doesn't include uno_splash_image.xml, so was wondering how it is included (if at all), and whether this can cause issues.

cc @jeromelaban as well for thoughts.

@pictos
Copy link
Contributor

pictos commented Mar 29, 2023

@Youssef1313 the splash screen are handled in another task, here's where the splash assets are generated

<GenerateSplashAndroidResources_v0
Condition="'$(_ResizetizerIsAndroidApp)' == 'True'"
IntermediateOutputPath="$(_UnoIntermediateSplashScreen)"
UnoSplashScreen="@(UnoSplashScreen)"
/>
<ItemGroup Condition="'$(_ResizetizerIsAndroidApp)' == 'True'">
<UnoImage Include="@(UnoSplashScreen)" />
<LibraryResourceDirectories Condition="Exists('$(_UnoIntermediateSplashScreen)')" Include="$(_UnoIntermediateSplashScreen)">
<StampFile>$(_ResizetizerStampFile)</StampFile>
</LibraryResourceDirectories>
<FileWrites Include="$(_UnoIntermediateSplashScreen)**\*" />
</ItemGroup>

@Youssef1313
Copy link
Member Author

@pictos Yes I see it's generated here, but not added to AndroidResource after generated. So trying to understand why it's not added or if it's added somewhere I can't see.

@pictos
Copy link
Contributor

pictos commented Mar 29, 2023

@Youssef1313 we added the generated assets as LibraryResourceDirectories, that's handled by Xamarin.Android build tasks in the pipeline, you can check that on binlog

@nickrandolph
Copy link
Contributor

@Youssef1313 is this a derived issue or duplicate of #106?

@Youssef1313
Copy link
Member Author

@Youssef1313 we added the generated assets as LibraryResourceDirectories, that's handled by Xamarin.Android build tasks in the pipeline, you can check that on binlog

Good, just wanted to make sure we are not missing it. Let me close then.

@Youssef1313
Copy link
Member Author

@Youssef1313 is this a derived issue or duplicate of #106?

Nope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants