Obfuscation in Xamarin Projects

前端 未结 4 1764
盖世英雄少女心
盖世英雄少女心 2020-12-05 14:55

As you know Xamarin projects are compiled into dot net dll assembly and it\'ll be pack into apk file and can be easily reflected by reflectors like DotPeek.

4条回答
  •  醉酒成梦
    2020-12-05 14:58

    Dotfuscator has support for Xamarin and instructions are online (for Dotfuscator Professional or the free Community Edition) for how to integrate it. In essence, the process is:

    1. Configure the build to run Dotfuscator via an AfterBuild target
    2. Configure Dotfuscator:
      1. Specify the inputs
      2. Exclude things from renaming, as usual / as needed
      3. Only use Mono-compatible transforms (Pro-only)
    3. Configure a Copy task or post-build event to copy the obfuscated binaries back to their original locations
    4. Build, verify obfuscation, and test

    Full disclosure: I work for PreEmptive Solutions.

提交回复
热议问题