MobilePermissions
MobilePermissions copied to clipboard
Error Incompatible Types JString and String
This error occurred in Delphi version 11.1
i add some variable in that file
var {$IFDEF ANDROID} EmptyStr : javaString; <<----- {$ENDIF} BaseManifest: IMobilePermissionsManifest;
It was not supposed to give this error, because in the base unit we already predicted this, for some reason Delphi is ignoring it.
You can make this adjustment to all EmptyStr if you prefer.
Adriano Santos
De: "MrLee73" @.> Para: "adrianosantostreina" @.> Cc: "Subscribed" @.***> Enviadas: Sábado, 19 de novembro de 2022 0:05:38 Assunto: Re: [adrianosantostreina/MobilePermissions] Error Incompatible Types JString and String (Issue #28)
i add some variable in thet file
var {$IFDEF ANDROID} EmptyStr : javaString; <<----- {$ENDIF} BaseManifest: IMobilePermissionsManifest;
— Reply to this email directly, [ https://github.com/adrianosantostreina/MobilePermissions/issues/28#issuecomment-1320769135 | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/AFSBSUOVVII5Q5LUUJBN52TWJA7YFANCNFSM6AAAAAASEZBGOY | unsubscribe ] . You are receiving this because you are subscribed to this thread. Message ID: <adrianosantostreina/MobilePermissions/issues/28/ [ callto:1320769135 | 1320769135 ] @ github . com>
--
#MaiorCanalDelphiMobile
Adriano Santos Tornando você um profissional mais completo
Site oficial: [ http://adrianosantostreina.com.br/ | http://adrianosantostreina.com.br ] YouTube: [ http://youtube.com/adrianosantostreina | http://youtube.com/adrianosantostreina ] Instagram: [ http://instagram/adrianosantostreina | http://instagram/adrianosantostreina ]
I´m with the same issue. Delphi 11.2. Mobile Permissions Source code 2 downloaded today (16/12/2022);
We were unable to complete updates to the component. However, it is on our roadmap to make the necessary changes, as well as add new properties.
The component is OpenSource, that means the community can contribute. Any developer who wants to make corrections, just make a Fork of the project, correct and send the PullRequest that we will analyze and accept if everything is ok.
Are you interested in making this contribution to us?
Finally we managed to tweak everything needed in the component to be compatible with Delphi 11.x
We are preparing a new version with other new properties.
Do your tests and let us know. Thanks