xamarin-macios/tools
Sebastien Pouliot 54f2dae935
[mtouch] Add `force-rejected-types-removal` optimization (#8009)
This optimization can be enabled when it's not possible to use the
managed linker (e.g. **Don't link**) or when the managed linker cannot
remove references to deprecated types that would cause an application
to be rejected by Apple.

References to the existing types will be renamed, e.g. `UIWebView` to
`DeprecatedWebView`, in every assemblies.

The type definition is also renamed (for validity) and all custom
attributes on the types and their members will be removed.
Code inside the members will be replaced with a
`throw new NotSupportedException ();`.

The msbuild test app `MyReleaseBuild` has been updated to test that the
optimization is working as expected (device builds are slow so reusing
this test has little impact in test time).

Basically the test ensure that `UIWebView` is used and cannot be removed
by the compiler (optimization) or the managed linker (since it's
referenced). Since the optimization is enabled then we can `grep` then
final `.app` directory to ensure there's no mention of `UIWebView` inside
any of the files that would be submitted.

The application can be run, by itself, and will turn green if OK, red if
`DeprecatedWebView` can't be found (skeleton replacement for `UIWebView`)
or orange if a `NotSupportedException` is thrown.

Finally introspection tests have been updated to skip over the deprecated
(and renamed) types. It should not be an issue right now, since this
optimization is not enabled by default, but it made testing easier.
2020-03-02 09:20:29 -05:00
..
apidiff Merge remote-tracking branch 'origin/xcode11' into master-xcode11 2019-09-13 18:35:18 +02:00
common [mtouch] Add `force-rejected-types-removal` optimization (#8009) 2020-03-02 09:20:29 -05:00
devops [VSTS] update labels used in the pipeline. (#7996) 2020-02-27 13:12:55 -05:00
install-source [xcode11.3] [Packaging] Ensure that when we build from source, the srcs go to the correct place. (#7407) 2019-11-12 09:05:35 -05:00
linker [mtouch] Add `force-rejected-types-removal` optimization (#8009) 2020-03-02 09:20:29 -05:00
mlaunch [mlaunch] Fix clean target to actually do something. (#5985) 2019-05-03 19:11:22 +02:00
mmp [mmp] Set 'disable_omit_fp' by default to provide better native stack traces in certain cases. (#7981) 2020-02-26 15:49:55 +01:00
mtouch [mtouch] Add `force-rejected-types-removal` optimization (#8009) 2020-03-02 09:20:29 -05:00
siminstaller Bump for Xcode 11.3 beta 1 (#7431) 2019-11-14 14:32:26 +01:00
xibuild [xibuild] Clean up temporary files when done. (#7508) 2019-12-03 14:42:56 +01:00
.gitignore Add scripts to calculate API diffs and generated code diff between the current build and another revision. (#3447) 2018-02-13 07:47:47 +01:00
Makefile Add tool to download and install simulators, and use it to provision the iOS 10.3 simulator if needed. Fixes maccore#1442. (#5645) 2019-02-22 10:39:16 +01:00
compare-commits.sh [apidiff] Fix a few issues with the apidiff when the mono hash or api diff url changes. (#6084) 2019-05-22 05:41:18 -07:00
diff-to-html Add scripts to calculate API diffs and generated code diff between the current build and another revision. (#3447) 2018-02-13 07:47:47 +01:00
nunit3-console-3.10.0 [msbuild] Update tests to NUnit 3.12. (#7597) 2019-12-16 23:55:59 +01:00