IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

SpiderBasic Discussion :

SpiderBasic 2.40 est disponible, ajout de 'Android App Bundle'


Sujet :

SpiderBasic

  1. #1
    Responsable Purebasic

    Avatar de comtois
    Inscrit en
    Avril 2003
    Messages
    1 261
    Détails du profil
    Informations forums :
    Inscription : Avril 2003
    Messages : 1 261
    Points : 9 924
    Points
    9 924
    Billets dans le blog
    8
    Par défaut SpiderBasic 2.40 est disponible, ajout de 'Android App Bundle'
    Hello everyone,

    First, I would like to apologize for the very big delay since the last official release. Some of you already know it, I wanted to finish the 6.00 version of PureBasic which was a very big undertaking and it took longer than expected. To make it up to you, for all users which had subscribed to a one year extension (at any time in the past), I decided to renew it freely up to 31. dec 2023 so you can access the new versions.

    Now, back on the new release which brings some interesting changes and new features (including the bug fixes from the 2.32 beta version):

    • - Added WebSocket library: OpenWebSocket(), CloseWebSocket(), SendWebSocketData(), SendWebSocketString()
    • - Added Packer library: CompressMemory(), UncompressMemory(), CompressString(), UncompressString()
    • - Added Clipboard library: SetClipboardText()
    • - Added Event(), EventString(), EventWebSocket()
    • - Added FormatNumber()
    • - Added Base64Encoder(), Base64Decoder(), Base64EncoderBuffer(), Base64DecoderBuffer()
    • - Changed the behaviour of GetMapElement(), it now always creates a new element if not found.
    • - StrD will switch to exponent notation if too big (> e+21)
    • - Added a timestamp to the index.html to avoid caching problem
    • - Added native OS X arm64 version
    • - Added all IDE improvement from PureBasic



    Here is an example for the WebSocket lib (with some compressed data as well):

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    Procedure Events()
      Select Event()
        Case #PB_Event_Gadget
     
          Select EventGadget()
            Case 0
              SendWebSocketString(2, "Hello !")
     
            Case 1
              *Buffer = AllocateMemory(100)
              PokeA(*Buffer, 0, 25)
              PokeA(*Buffer, 10, 26)
     
              ;SendWebSocketData(2, *Buffer) ; Send the whole buffer (100 bytes)
              ;SendWebSocketData(2, *Buffer, 10, 20) ; Send only a part of the buffer (20 bytes starting from 10)
     
              ; *Compressed = CompressMemory(*Buffer)
     
              *Compressed = CompressString("Test "+Space(1000)+"End")
              Debug "Compressed size (from 1000 bytes): "+MemorySize(*Compressed)
              SendWebSocketData(2, *Compressed)
     
          EndSelect
     
        Case #PB_Event_WebSocket
     
          Select EventType()
            Case #PB_EventType_Connected
              Debug "WebSocket #" + EventWebSocket() + " connected."
     
            Case #PB_EventType_Closed
              Debug "WebSocket #" + EventWebSocket() + " closed."
     
            Case #PB_EventType_String
              Debug "String recieved on WebSocket #" + EventWebSocket() + "."
              Debug "String content: " + EventString()
     
            Case #PB_EventType_Data
              Debug "Data recieved on WebSocket #" + EventWebSocket() + "."
              *Buffer = EventData()
              Debug "Data size: " + MemorySize(*Buffer) + ". First byte: " + PeekA(*Buffer, 0)
     
              ; *Uncompressed = UncompressMemory(*Buffer)
              ;Debug MemorySize(*Uncompressed)
              ;Debug PeekA(*Uncompressed, 0)
     
              Result$ = UncompressString(*Buffer)
              Debug Result$
     
              FreeMemory(*Buffer)
     
            Case #PB_EventType_Error
              Debug "Error on WebSocket #" + EventWebSocket() + "."
          EndSelect
      EndSelect
     
    EndProcedure
     
    BindEvent(#PB_Event_Gadget, @Events())
    BindEvent(#PB_Event_WebSocket, @Events())
     
    OpenWindow(0, 100, 100, 500, 100, "WebSocket test")
    ButtonGadget(0, 10, 10, 200, 30, "Send string !")
    ButtonGadget(1, 10, 45, 200, 30, "Send Data !")
     
    If OpenWebSocket(2, "ws://127.0.0.1:8090/")
      Debug "Trying to open the websocket"
    Else
      Debug "Web socket not supported."
    EndIf
    To test it easily, if you have PureBasic you can download this: https://github.com/Dadido3/WebSocket_Server (click on the green "Code" button -> "download as zip") which is an excellent websocket server implementation in PB, and run the Fuzzy/Fuzzy_Server.pb file, it should work out of the box.

    Have fun !

    The Fantaisie Software Team
    Source de l'information
    Vous souhaitez participer à la rubrique PureBasic (tutoriels, FAQ, sources) ? Contactez-moi par MP.

  2. #2
    Responsable Purebasic

    Avatar de comtois
    Inscrit en
    Avril 2003
    Messages
    1 261
    Détails du profil
    Informations forums :
    Inscription : Avril 2003
    Messages : 1 261
    Points : 9 924
    Points
    9 924
    Billets dans le blog
    8
    Par défaut SpiderBasic 2.40 beta 2 est disponible
    The beta 2 is available ! It fixes a lot of (old) bugs and bring a few more new stuffs:

    • Added #PB_EventType_Focus and #PB_EventType_LostFocus to TreeGadget()
    • Added #PB_Tree_Expanded support to SetGadgetAttribute() for TreeGadget() to quickly expand/collapse all nodes
    • Added HighAccuracy parameter to StartGeolocation() to use the real GPS if available.
    • Added #PB_ListIcon_GridLines support
    • Updated: android framework to android-32 to be able to publish app on Google PlayStore
    • Updated: the application license file
    Vous souhaitez participer à la rubrique PureBasic (tutoriels, FAQ, sources) ? Contactez-moi par MP.

  3. #3
    Responsable Purebasic

    Avatar de comtois
    Inscrit en
    Avril 2003
    Messages
    1 261
    Détails du profil
    Informations forums :
    Inscription : Avril 2003
    Messages : 1 261
    Points : 9 924
    Points
    9 924
    Billets dans le blog
    8
    Par défaut SpiderBasic 2.40 beta 3 est disponible sur votre compte
    beta 3 is out, it includes the final doc for all new stuffs, a few fixes and a few new commands:

    DesktopResolutionX(), DesktopResolutionY(), DesktopScaledX(), DesktopScaledY(), DesktopUnscaledX(), DesktopUnscaledY()
    Vous souhaitez participer à la rubrique PureBasic (tutoriels, FAQ, sources) ? Contactez-moi par MP.

  4. #4
    Responsable Purebasic

    Avatar de comtois
    Inscrit en
    Avril 2003
    Messages
    1 261
    Détails du profil
    Informations forums :
    Inscription : Avril 2003
    Messages : 1 261
    Points : 9 924
    Points
    9 924
    Billets dans le blog
    8
    Par défaut SpiderBasic 2.40 beta 4 est disponible sur votre compte
    beta 4 is out, it includes AAB (Android App Bundle) package creation and some fixes to be able to publish on Google Play. I tried it and it works as expected. An AAB package will be now automatically generated when creating an Android app which is not in debug mode. Feel free to test it to see if it works as expected !

    If you want to test the app I published, use this link: https://play.google.com/apps/interna...00287859621339 and send me your email in PM
    Source de l'information
    Vous souhaitez participer à la rubrique PureBasic (tutoriels, FAQ, sources) ? Contactez-moi par MP.

  5. #5
    Responsable Purebasic

    Avatar de comtois
    Inscrit en
    Avril 2003
    Messages
    1 261
    Détails du profil
    Informations forums :
    Inscription : Avril 2003
    Messages : 1 261
    Points : 9 924
    Points
    9 924
    Billets dans le blog
    8
    Par défaut SpiderBasic 2.40 version finale est disponible
    La version finale est disponible sur votre compte ou en version démo.

    L'ajout de 'Android App Bundle' devrait grandement faciliter la création d'applications pour google play.

    Télécharger
    Vous souhaitez participer à la rubrique PureBasic (tutoriels, FAQ, sources) ? Contactez-moi par MP.

Discussions similaires

  1. SpiderBasic 2.22 beta 1 est disponible sur votre compte
    Par comtois dans le forum SpiderBasic
    Réponses: 1
    Dernier message: 13/09/2019, 17h50
  2. SpiderBasic 2.21 beta 1 est disponible sur votre compte
    Par comtois dans le forum SpiderBasic
    Réponses: 3
    Dernier message: 04/02/2019, 21h46
  3. SpiderBasic 2.10 beta 1 est disponible sur votre compte
    Par comtois dans le forum SpiderBasic
    Réponses: 3
    Dernier message: 26/06/2017, 20h58
  4. SpiderBasic 2.0 beta 1 est disponible sur votre compte
    Par comtois dans le forum SpiderBasic
    Réponses: 13
    Dernier message: 02/12/2016, 12h30
  5. SpiderBasic 1.40 beta 1 est disponible sur votre compte
    Par comtois dans le forum SpiderBasic
    Réponses: 2
    Dernier message: 19/08/2016, 20h34

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo