You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Use the DropDown in the middle to select the enum to use
388
-
- When selected, the members of that enum will be shown in the box below the enum
389
-
- Alternatively, search for a enum by enum member name using the Search box in the right
390
-
- If desired enum is found, clicking it will populate dropdown
391
-
- Click "Save"
534
+
* `//attr/@path` is the XPath expression to the parameter to update
535
+
* `//attr/@name` the XML attribute to update. For return types, this is `type`.
536
+
* The value of the `<attr/>` is `Android.Graphics.Color`.
392
537
393
-
Use `File` -> `Save` to save your work often!
394
538
395
539
### Finishing the method map
396
540
397
541
The official `methodmap.csv` uses a slightly different format than the one used for enumification.
398
542
399
543
Using BindingStudio:
544
+
400
545
- Ensure the "new api level method map" CSV file is loaded.
401
546
- Choose `Tools` -> `Export Final Method Map`
402
547
- Choose a temporary file name
@@ -405,26 +550,41 @@ Using BindingStudio:
405
550
406
551
Congrats! Enumification is complete!
407
552
408
-
---- Somewhat outdated docs below, update when we do this year's stabilization ----
553
+
But wait, there's more!
554
+
555
+
### New `AndroidManifest.xml` elements and attributes
409
556
410
-
6) new AndroidManifest.xml elements and attributes
557
+
`build-tools/manifest-attribute-codegen/manifest-attribute-codegen.cs` can be
558
+
compiled to a tool that collects all Manifest elements and attributes with the
559
+
API level since when each of them became available. New members are supposed
560
+
to be added to the existing `(FooBar)Attribute.cs` and
561
+
`(FooBar)Attribute.Partial.cs`in`src/Mono.Android` and
562
+
`src/Xamarin.Android.Build.Tasks`, respectively.
411
563
412
-
`build-tools/manifest-attribute-codegen/manifest-attribute-codegen.cs` can be compiled to a tool that collects all Manifest elements and attributes with the API level since when each of them became available. New members are supposed to be added to the existing `(FooBar)Attribute.cs` and `(FooBar)Attribute.Partial.cs`in`src/Mono.Android` and `src/Xamarin.Android.Build.Tasks` respectively.
564
+
See [`build-tools/manifest-attribute-codegen/README.md`](../../build-tools/manifest-attribute-codegen/README.md)
565
+
for details.
413
566
414
-
Note that there are documented and undocumented XML nodes, and we don't have to deal with undocumented ones.
567
+
Note that there are documented and undocumented XML nodes, and we don't have to
These sre located in [Xamarin.Android.Common.props.in](../../src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.props.in). The following MSBuild properties need to be updated to ensure
Defaults to `$(XABuildToolsFolder)` within `Configuration.props`.
581
+
* `$(AndroidSdkPlatformToolsVersion)`: Android SDK `platform-tools` version
582
+
Defaults to `$(XAPlatformToolsVersion)` within `Configuration.props`.
422
583
423
-
`AndroidSdkBuildToolsVersion`
424
-
`AndroidSdkPlatformToolsVersion`
425
-
`AndroidSdkToolsVersion`
584
+
The major version should generally match the new API level. For Android P this will be 28.x.x . If a version which exactly matches the API Level is not available then the latest version should be used.
426
585
427
-
The major version should match the new API level. For Android P this will be 28.x.x . If a version which exactly matches the API Level is not available then the latest version should be used.
586
+
A separate PR should be created which bumps the values within `Configuration.props`
Copy file name to clipboardExpand all lines: build-tools/Xamarin.Android.Tools.BootstrapTasks/Xamarin.Android.Tools.BootstrapTasks/CheckApiCompatibility.cs
LogError($"CheckApiCompatibility found nonacceptable Api breakages for ApiLevel: {ApiLevel}.{Environment.NewLine}{string.Join(Environment.NewLine,lines)}");
0 commit comments