DEM 2 1.0.642 Release Notes
Released 21.07.2023
This release continues to improve existing features while introducing a few significant feature contributions.
What's new
Migration to Android 13
We raised target framework to Android 13.0. You'll need some additional changes other than package update and change of the target in your android projects:
- Update Xamarin.Essentials to version 1.8.0-preview1 for both Android and iOS projects (support for android 13 is still in preview)
- Update Xam.Plugin.Media to version 6.0.2 for both Android and iOS projects
Since Xamarin doesn't support new granular media permissions, we needed to make an extension and added two new interfaces - IReadImagesPermission and IPostNotificationPermission, so you now need to add an implementation and registration in your Android project:
public class ReadImagesVideoPermission : Xamarin.Essentials.Permissions.BasePlatformPermission, IReadImagesPermission { public override (string androidPermission, bool isRuntime)[] RequiredPermissions => new List<(string androidPermission, bool isRuntime)> { ("android.permission.READ_MEDIA_IMAGES", true) }.ToArray(); } public class PostNotificationPermission : Xamarin.Essentials.Permissions.BasePlatformPermission, IPostNotificationPermission { public override (string androidPermission, bool isRuntime)[] RequiredPermissions => new List<(string androidPermission, bool isRuntime)> { ("android.permission.POST_NOTIFICATIONS", true) }.ToArray(); }
typeCatalog.Add(new AppServiceInfo<ReadImagesVideoPermission, IReadImagesPermission>() { IsSingleInstance = true }); typeCatalog.Add(new AppServiceInfo<PostNotificationPermission, IPostNotificationPermission>() { IsSingleInstance = true });
Add the following in your AndroidManifest.xml:
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="31" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="31" /> <uses-permission android:name="android.permission.READ_MEDIA_IMAGES" /> <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
Add this in your MainActivity's OnRequestPermissionsResult method if not already added:
Xamarin.Essentials.Platform.OnRequestPermissionsResult(requestCode, permissions, grantResults);
Xamarin.Android 13.0 releases are distributed as part of Visual Studio 2022 17.3. On this link you can find the installation for desired version.
Use our solutions as reference and feel free to contact us if there are any problems.
Changesets that can be usefull: 1128622, 1128744
Note
If you use AppCenter, don't forget to change SDK version in build configuration. We changed it to 13.2.
Atos
- Update template after payment - If user successfully finished payment from one of his templates, on post payment screen this new option will be shown if enabled. To enable this feature you'll need to set new configuration key FactoryConfig_UpdateTemplatesAfterPayment to true. Default value is false.
Latest application on AppCentar
Halk - SxS MToken - SC 24x7 UAT
Halk SME - SxS MToken - SC 24x7 UAT
DEM V2 - Staging - SxS on Halk test
DEM V2 - Demo - SxS on Halk test
Packages (642)
Contributions welcome!
If you have one or more of some common pieces of code that you are always replicating across delivery apps, don't hesitate to contribute! We are the first NuGet package you install when creating a new .Net Mobile banking app!
Please have a look at our contribution guide before you get started.
If you need any help getting started, please let us know.
Useful Links
Thank you to our community for helping to make DEM even better! Mobile Team