Babel for dotnet maui. #22572
Unanswered
stefandb1995
asked this question in
Q&A
Replies: 1 comment 2 replies
-
@bravekit I see you have a repo trying to figure this out as well? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I have a dotnet maui application that I want to obfuscate with Babel. I've got 2 projects that I want to merge (using Merge Assemblies). I found an old post on Xamarin.Android (dotnet/android#4202) that helped with the timings. In the bin folder of my main project I can see the merged .dll. Decompiling it does show that they are merged and obfuscated, but when I force a crash on the app and write the stacktrace to logcat I can read all of the code. By all accounts the merged dll isn't used in the apk, but I'm not sure what exactly I need to change.
Some code (so that we don't need to dig through the old post):
`
<_BeforeLinkAssemblies>
$(_BeforeLinkAssemblies);
Obfuscate;
</_BeforeLinkAssemblies>
`
Then we have the obfuscation code. This should really matter, as there are other ways to merge assemblies.
<ItemGroup> <ResolvedAssemblies Remove="@(MergeAssemblies)" /> <ResolvedUserAssemblies Remove="@(MergeAssemblies)" /> </ItemGroup>
Any help would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions