adrianosantostreina / MobilePermissions

This is a component to turn more easy the request permission in Android 8.x or later.
MIT License
105 stars 46 forks source link

Mobile Components does not work at all. MobilePermissions.Component #38

Closed davewr closed 1 year ago

davewr commented 1 year ago

MobilePermissions.Component Highlights as an error.

I installed it as an administrator and normally --- same behavior.

MobilePermissions.Component not found -- and of course, nothing works after that.

This is using your demo. (One Drive is disabled for compiles)

C:\Users\davew\OneDrive\Documents\Embarcadero\Studio\22.0\CatalogRepository\MobilePermissions-2.1\Demos\Tests\UntMain.pas(8,98): error F2613: F2613 Unit 'MobilePermissions.Component' not found.

unit UntMain;

interface

uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, MobilePermissions.Model.Signature, MobilePermissions.Model.Dangerous, MobilePermissions.Model.Standard, MobilePermissions.Component, FMX.Controls.Presentation, FMX.StdCtrls, System.Math.Vectors, FMX.Controls3D, FMX.Layers3D, FMX.ListBox, FMX.Layouts;

davewr commented 1 year ago

Just a note that it is Delphi 11.3. Version .5 is working on my Delphi 11patch 1.

adrianosantostreina commented 1 year ago
  1. It is no longer necessary to open Delphi in Administrator Mode.
  2. You need to indicate to Delphi where the component's sources are, normal operation in any component.

To do this, open Tools > Options > Language > Delphi > Library > Library Path

Add the path to the component in the Library Path.

Do this for Win32, Win64, Android32, Android64.

davewr commented 1 year ago

...{USER_LOCATION}\Documents\Embarcadero\Studio\22.0\CatalogRepository\MobilePermissions\Source\Component

The above works.

Just adding a link to the source does not.

davewr commented 1 year ago

Or better add: $(BDSCatalogRepository)\MobilePermissions-2.1\Source\Component That seems to work and eats less space As an additional point people are always complaining about the effects of OneDrive -- it introduces download delays and can cause component failure due to file copy delays. A directory can be marked through properties that the files will ALWAYS be kept on the device.

adrianosantostreina commented 1 year ago

Dave,

I believe I haven't fully read the component's documentation as I mention adding the paths in the Library Path.

I kindly ask you to observe. We are always improving the documentation.

The component is OpenSource, so if you want to make contributions to the project, they are welcome. You just need to make a PR for me, which I analyze and approve if everything is ok. Due credits will be given.

The community helping, it gets much easier.

[image: image.png]

Adriano Santos WhatsApp Comercial.: (11) 9-9831-0204

Em qua., 15 de mar. de 2023 às 13:30, Dave Robinson < @.***> escreveu:

Or better add: $(BDSCatalogRepository)\MobilePermissions-2.1\Source\Component That seems to work and eats less space As an additional point people are always complaining about the effects of OneDrive -- it introduces download delays and can cause component failure due to file copy delays. A directory can be marked through properties that the files will ALWAYS be kept on the device.

— Reply to this email directly, view it on GitHub https://github.com/adrianosantostreina/MobilePermissions/issues/38#issuecomment-1470360579, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFSBSUPJLDPZDBQOTT3T6O3W4HVEDANCNFSM6AAAAAAV3CU5VA . You are receiving this because you modified the open/close state.Message ID: @.*** com>