Jump to content

Dave Nottage

Members
  • Content Count

    1335
  • Joined

  • Last visited

  • Days Won

    29

Posts posted by Dave Nottage


  1. 1 minute ago, Felix. said:

    on github there are two your projects: Kastri (Cross-platform library for Delphi) and KastriFree (Free version of the Kastri library). Isn't Kastri free?

    I had originally planned on having a commercial version, however those plans changed. Now Kastri is driven mostly by sponsorship and one-off donations. Kastri Free is deprecated and developers should use Kastri instead.

    • Thanks 1

  2. 2 minutes ago, Felix. said:

    should your RunProcess application (built with Delphi 10.4.1) work under Android 11?

    It runs on my Android 11 device when I build it with Delphi 11. If you're using 10.4.1, you should go to the Libraries node under the Android platform in Project Manager, right click it and click Revert System Files To Default. Like this, but you're going back a version:

     

    https://github.com/DelphiWorlds/HowTo/tree/main/Solutions/AndroidLibraries

    • Thanks 1

  3. 13 minutes ago, William23668 said:

    But I am looking for a list of available services  documentation for FMX, where I can find this ? Delphi 11.

    There may not be one, although this link (from the one you gave) might help: https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Mobile_Tutorials:_Mobile_Application_Development_(iOS_and_Android)

    It might be easier to ask here if there is an implementation of what you want to use, or scan the Delphi source.

     

    • Thanks 1

  4. 3 hours ago, TimCruise said:

    Can iphone and ipad users install Apple apps distributed directly from my own company web site?

    Yes. They're called Custom Apps: https://developer.apple.com/custom-apps/

     

    3 hours ago, TimCruise said:

    What are restrictions on iphone versions and sdk versions building my iphone apps?  If you can show an official document, it would be great!

    Yes, that would be. It seems they're hard to find.

    • Thanks 1

  5. On 12/19/2021 at 6:47 AM, TimCruise said:

    So, we face a situation that we want to build apps on older sdk so that more phone users can run our apps; but we cannot publish these older apps to recent official Android store or Apple store.  Am I right?  :classic_blush:

    Play Store has a restriction on the target SDK level (30), but does not have a restriction on the minimum SDK level set for an app, so you can support users that have lower versions of Android.

     

    The iOS App Store apparently has a restriction of a minimum version of iOS 9.0.

    On 12/19/2021 at 6:47 AM, TimCruise said:

    This scenario enables me to develop on RAD Studio v10.4 or v11 without renewing it every year.

    That might work if you find a viable alternative for Play Store. If you wish to target app stores, you need to stay current with Delphi.


  6. 2 minutes ago, mvanrijnen said:

    Ok, and what would be the minimum hardware for this, Apple Mini (2014 ??) ?

    There's a list of minimum requirements for Big Sur here: https://support.apple.com/en-au/HT211238. Note that includes late 2014 Mac Mini.

    3 minutes ago, mvanrijnen said:

    Or are there virtual solutions for this (legal ones) ?

    There are legal virtual solutions available online, such as MacInCloud: https://www.macincloud.com/ and MacStadium: https://www.macstadium.com

     

    • Thanks 1

  7. 2 hours ago, TimCruise said:

    I have set up a macOS v10.12 and its XCode v8.3.3 environment.

    If you're planning on deploying iOS apps to the App Store, you will need at least macOS 10.15 so that you can use Xcode 12, the minimum required for deploying apps to the App Store. From April next year, this will change to Xcode 13, which requires Big Sur 11.3.

     

    • Like 1

  8. 3 hours ago, Hans♫ said:

    you need to access the assets in it thru the AssetManager API.

    That's correct. I have a method in TAssetDelivery called GetAssets that will enumerate them (note: this also enumerates any folders contained in the assets) at the top-level by passing a blank value for the path.

     

    As per the AssetManager docs, there are methods for accessing the files, however as you may notice from those docs these are not methods that you can use in a traditional Delphi-like manner.

     

    One way around this could be to use the open method of AssetManager to return an InputStream and (ultimately) save it to a file that can be accessed using traditional file methods, however it seems a bit of overkill - you might as well use a fast-follow pack.

     

    If you're playing videos, you could re-write TMediaPlayer (or at least the Android part) to deal with assets accessed via AssetManager however I'm yet to find a way of using these in a VideoView that works.

     

     

     


  9. 6 minutes ago, JLG said:

    due to google strict requirements, I need a solution which does not use idsmtp but IDHTTP

    Can you show which requirements you are working from?

     

    7 minutes ago, JLG said:

    I generated using idmessage

    If what you are using is purely HTTP-based, then TIdMessage is unlikely to be appropriate. Please show your code.


  10. 20 hours ago, Hans♫ said:

    However, when running the AssetDeliveryDemo App on the device, only an empty startup screen is displayed

    While experimenting with the code (or for some other reason) it seems I had not reverted the code to use the Fetch method (which was commented out) rather than Query (in the IdleMessageHandler). Can you check whether changing this works for you?

     


  11. 3 hours ago, vedat said:

    even if the app was closed

    Yes.. as far as I can ascertain, if the app is closed you would need a service to ensure the notification with the controls is persistent. Here's a problem with this scenario: you will not be able to use TMediaPlayer in a service, since it relies on FMX units, including FMX.Types, because of this issue: https://quality.embarcadero.com/browse/RSP-17857 so you would need to do your own implementation (or find one), avoiding the FMX units.


  12. 3 hours ago, Arsl01 said:

    The com.apple.developer.user-fonts entitlement is present

    This suggests that the App ID you have created for your app has the Fonts entitlement checked, i.e. on the Apple Developer site, your App ID has this:

     

    image.thumb.png.a18768de293d30d03106dbfa1dc02e2b.png

     

    It's unlikely you need this entitlement. Please refer to: https://stackoverflow.com/a/58534629/3164070

     

    To rectify the issue, you would need to remove the entitlement from the App ID, re-create and re-download the provisioning profile for your app.


  13. 3 hours ago, Felix. said:

    Maybe we need to apply chmod to stockfish file

    I thought I would have received an error indicating that it could not be executed. I also used TFile.GetAttributes to check whether it could be (it has all the execute attributes), and running ls -l on the containing folder (using the demo itself) suggests that it is executable:

     

    image.thumb.png.b43d888b73dc8615f7036d509c3e8067.png


  14. 8 hours ago, Felix. said:

    There are no examples for Delphi Firemonkey. It's not hard to make it work under Windows, but under Android.

    There's now an example of how to run a process on Android, here:

     

    https://github.com/DelphiWorlds/HowTo/tree/main/Demos/AndroidRunProcess

     

    Sadly, I have been unable to make it work with the Stockfish application that is available for download here:

     

    https://stockfishchess.org/download/

     

    The process seems to start, however it also seems to lock up my application. There does not seem to be any clues in the device logcat messages as to what the problem is. The demo still includes the files, and the code that attempts to run it, however the code has been commented out in favour of some more basic executables that are known to work. 

     

    I have put my efforts on hold (though I may use the run process code myself for something else), and have thrown it open to anyone else who might be able to make it work.

    • Thanks 1
×