Updates the ServerManager to handle the authorization header. Updates the ios export preset.
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 393 KiB |
@@ -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
|
||||||
+2
-2
@@ -771,7 +771,7 @@ application/export_method_debug=1
|
|||||||
application/code_sign_identity_release=""
|
application/code_sign_identity_release=""
|
||||||
application/export_method_release=0
|
application/export_method_release=0
|
||||||
application/targeted_device_family=2
|
application/targeted_device_family=2
|
||||||
application/bundle_identifier="com.excellolab.kalulu"
|
application/bundle_identifier="com.cerberegames.kaluluios"
|
||||||
application/signature=""
|
application/signature=""
|
||||||
application/short_version=""
|
application/short_version=""
|
||||||
application/version=""
|
application/version=""
|
||||||
@@ -793,7 +793,7 @@ icons/iphone_180x180=""
|
|||||||
icons/ipad_76x76=""
|
icons/ipad_76x76=""
|
||||||
icons/ipad_152x152=""
|
icons/ipad_152x152=""
|
||||||
icons/ipad_167x167=""
|
icons/ipad_167x167=""
|
||||||
icons/app_store_1024x1024=""
|
icons/app_store_1024x1024="res://assets/store_icon_1024.png"
|
||||||
icons/spotlight_40x40=""
|
icons/spotlight_40x40=""
|
||||||
icons/spotlight_80x80=""
|
icons/spotlight_80x80=""
|
||||||
icons/settings_58x58=""
|
icons/settings_58x58=""
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@ config_version=5
|
|||||||
[application]
|
[application]
|
||||||
|
|
||||||
config/name="Kalulu"
|
config/name="Kalulu"
|
||||||
config/version="0.0"
|
config/version="2.0.0"
|
||||||
run/main_scene="res://sources/menus/splash_screen/splash_screen.tscn"
|
run/main_scene="res://sources/menus/splash_screen/splash_screen.tscn"
|
||||||
config/features=PackedStringArray("4.2", "Forward Plus")
|
config/features=PackedStringArray("4.2", "Forward Plus")
|
||||||
boot_splash/bg_color=Color(0.141176, 0.141176, 0.141176, 1)
|
boot_splash/bg_color=Color(0.141176, 0.141176, 0.141176, 1)
|
||||||
|
|||||||
@@ -32,6 +32,14 @@ func get_language_pack_url(locale: String) -> Dictionary:
|
|||||||
|
|
||||||
#region Sender functions
|
#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:
|
func _response() -> Dictionary:
|
||||||
return {
|
return {
|
||||||
"code" : code,
|
"code" : code,
|
||||||
@@ -53,7 +61,8 @@ func _get_request(URI: String, params: Dictionary) -> void:
|
|||||||
req += "&"
|
req += "&"
|
||||||
req += str(key) + "=" + str(params[key])
|
req += str(key) + "=" + str(params[key])
|
||||||
|
|
||||||
if http_request.request(req) == 0:
|
|
||||||
|
if http_request.request(req, _create_request_headers()) == 0:
|
||||||
await request_completed
|
await request_completed
|
||||||
else:
|
else:
|
||||||
code = 500
|
code = 500
|
||||||
@@ -65,7 +74,8 @@ func _post_json_request(URI: String, data: Dictionary) -> void:
|
|||||||
json = {}
|
json = {}
|
||||||
|
|
||||||
var req: = URL + URI
|
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)
|
var json = JSON.stringify(data)
|
||||||
if http_request.request(req, headers, HTTPClient.METHOD_POST, json) == 0:
|
if http_request.request(req, headers, HTTPClient.METHOD_POST, json) == 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user