Skip to content

Commit

Permalink
prepare for alpha 2
Browse files Browse the repository at this point in the history
  • Loading branch information
detectiveren committed May 19, 2024
1 parent 0a8303d commit ca0e60a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
12 changes: 6 additions & 6 deletions luna.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import sqlite3
import system
import platform
import os


# Resources used to develop the app https://flet.dev/docs/tutorials/python-realtime-chat/#getting-started-with-flet
Expand All @@ -20,10 +19,10 @@
def lunaChatInfo():
# This code is a work in progress
lunaInfo = system.getLunaChatInfo("Version")
lunaPlatformsSupported = system.getLunaChatInfo("Platforms")
lunaPlatformsSupported = system.getLunaChatInfo("hostPlatforms")
lunaVersion = lunaInfo[0]
lunaBranch = lunaInfo[2]
supportedWindowsPlatforms = lunaPlatformsSupported[2][1]
supportedWindowsPlatforms = lunaPlatformsSupported[0][1]
if platform.system() == "Windows":
if platform.release() < supportedWindowsPlatforms:
print(f"This version of Windows is unsupported in lunaChat {lunaVersion}, please upgrade to Windows "
Expand Down Expand Up @@ -427,9 +426,10 @@ def joinClick(e):
on_submit=sendClick,
shift_enter=True,
) # Take input from the Text Fields
currentVersion = "1.0"
versionBranch = "alpha"
buildNumber = "2420"
grabLunaInfo = lunaChatInfo()
currentVersion = grabLunaInfo[0]
versionBranch = grabLunaInfo[2]
buildNumber = grabLunaInfo[3]
imageFormats = [".png", ".jpg", ".jpeg", ".gif"] # Supported image formats
videoFormats = [".mp4"]
lunaUsername = ft.TextField(label="Enter your username", color=messageTypeColor, bgcolor=dialogMessageBoxColor,
Expand Down
4 changes: 1 addition & 3 deletions system.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ def __init__(self, operating_system, version, kernel):
lunaChatInfo = {
"Version": systemInfo("1.0", "Andromeda", f"{branches[0]}", "2420"),
"releaseDate": None,
"Platforms": [
platforms("Android", "15.0", "Linux"),
platforms("iOS", "17.5", "darwin"),
"hostPlatforms": [
platforms("Windows", "11", "NT"),
platforms("macOS", "14.5", "darwin")
]
Expand Down

0 comments on commit ca0e60a

Please sign in to comment.