MobilePermissions icon indicating copy to clipboard operation
MobilePermissions copied to clipboard

Error Incompatible Types JString and String

Open RenatoRuiz00 opened this issue 2 years ago • 2 comments

This error occurred in Delphi version 11.1 0f1f8c2a-9385-4370-9a96-924fbd1b6a38

RenatoRuiz00 avatar Nov 18 '22 18:11 RenatoRuiz00

i add some variable in that file

var {$IFDEF ANDROID} EmptyStr : javaString; <<----- {$ENDIF} BaseManifest: IMobilePermissionsManifest;

MrLee73 avatar Nov 19 '22 03:11 MrLee73

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 ]

adrianosantostreina avatar Nov 20 '22 01:11 adrianosantostreina

I´m with the same issue. Delphi 11.2. Mobile Permissions Source code 2 downloaded today (16/12/2022);

hcoineto avatar Dec 17 '22 01:12 hcoineto

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?

adrianosantostreina avatar Jan 18 '23 16:01 adrianosantostreina

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

adrianosantostreina avatar Mar 02 '23 19:03 adrianosantostreina