diff --git a/assets/store_icon_1024.png b/assets/store_icon_1024.png new file mode 100644 index 00000000..81985c25 Binary files /dev/null and b/assets/store_icon_1024.png differ diff --git a/assets/store_icon_1024.png.import b/assets/store_icon_1024.png.import new file mode 100644 index 00000000..ce943577 --- /dev/null +++ b/assets/store_icon_1024.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cvha2q6tubg48" +path="res://.godot/imported/store_icon_1024.png-ab9010ef12b8be0d3e74d774c48cb00c.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/store_icon_1024.png" +dest_files=["res://.godot/imported/store_icon_1024.png-ab9010ef12b8be0d3e74d774c48cb00c.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/export_presets.cfg b/export_presets.cfg index d15aa2ab..0abcfac5 100644 --- a/export_presets.cfg +++ b/export_presets.cfg @@ -771,7 +771,7 @@ application/export_method_debug=1 application/code_sign_identity_release="" application/export_method_release=0 application/targeted_device_family=2 -application/bundle_identifier="com.excellolab.kalulu" +application/bundle_identifier="com.cerberegames.kaluluios" application/signature="" application/short_version="" application/version="" @@ -793,7 +793,7 @@ icons/iphone_180x180="" icons/ipad_76x76="" icons/ipad_152x152="" icons/ipad_167x167="" -icons/app_store_1024x1024="" +icons/app_store_1024x1024="res://assets/store_icon_1024.png" icons/spotlight_40x40="" icons/spotlight_80x80="" icons/settings_58x58="" diff --git a/project.godot b/project.godot index 356de1e2..a02bdc3c 100644 --- a/project.godot +++ b/project.godot @@ -11,7 +11,7 @@ config_version=5 [application] config/name="Kalulu" -config/version="0.0" +config/version="2.0.0" run/main_scene="res://sources/menus/splash_screen/splash_screen.tscn" config/features=PackedStringArray("4.2", "Forward Plus") boot_splash/bg_color=Color(0.141176, 0.141176, 0.141176, 1) diff --git a/sources/utils/autoloads/server_manager.gd b/sources/utils/autoloads/server_manager.gd index d2aae8f0..9e9f647e 100644 --- a/sources/utils/autoloads/server_manager.gd +++ b/sources/utils/autoloads/server_manager.gd @@ -32,6 +32,14 @@ func get_language_pack_url(locale: String) -> Dictionary: #region Sender functions +func _create_request_headers() -> PackedStringArray: + var headers: PackedStringArray = [] + var teacher_settings: TeacherSettings = UserDataManager.teacher_settings + if teacher_settings and teacher_settings.token: + headers.append("Authorization: Bearer " + teacher_settings.token) + return headers + + func _response() -> Dictionary: return { "code" : code, @@ -53,7 +61,8 @@ func _get_request(URI: String, params: Dictionary) -> void: req += "&" req += str(key) + "=" + str(params[key]) - if http_request.request(req) == 0: + + if http_request.request(req, _create_request_headers()) == 0: await request_completed else: code = 500 @@ -65,7 +74,8 @@ func _post_json_request(URI: String, data: Dictionary) -> void: json = {} var req: = URL + URI - var headers: = ["Content-Type: application/json"] + var headers: = _create_request_headers() + headers.append("Content-Type: application/json") var json = JSON.stringify(data) if http_request.request(req, headers, HTTPClient.METHOD_POST, json) == 0: