-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
70 changed files
with
1,408 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+272 Bytes
godot/.godot/imported/apple.svg-641aec9d79b14fbb47eb0d04902e71d2.ctex
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
godot/.godot/imported/apple.svg-641aec9d79b14fbb47eb0d04902e71d2.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source_md5="778bc8d9f87581f06e92917b5214dbd3" | ||
dest_md5="3c28e9ae9b2281681e8c49b5d5d363d9" | ||
|
Binary file added
BIN
+28.3 KB
godot/.godot/imported/coinbase.svg-8106001dab373e0975a9afab1d75672a.ctex
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
godot/.godot/imported/coinbase.svg-8106001dab373e0975a9afab1d75672a.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source_md5="ee61b4c9433056c58df21a294add6d30" | ||
dest_md5="d81639693d91a4051ab9488fe3a8b561" | ||
|
Binary file added
BIN
+490 Bytes
godot/.godot/imported/discord.svg-38d7f38535cf2c0881bf32441b4ccc7f.ctex
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
godot/.godot/imported/discord.svg-38d7f38535cf2c0881bf32441b4ccc7f.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source_md5="6847e2cbc4b76020977eddd74b3e845d" | ||
dest_md5="1bd326d6f05d63a18febd1d6fecd5b87" | ||
|
Binary file added
BIN
+1.22 KB
godot/.godot/imported/fortmatic.png-3b8fd439ecd97fe87b18c5ffd32c9a4a.ctex
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
godot/.godot/imported/fortmatic.png-3b8fd439ecd97fe87b18c5ffd32c9a4a.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source_md5="29905828089fc22f91298a053b83eed5" | ||
dest_md5="971d6f319c0be1800eaabfd5f37353c6" | ||
|
Binary file added
BIN
+748 Bytes
godot/.godot/imported/google.svg-d81bea1d73b14bdb66d2c96be88fd22a.ctex
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
godot/.godot/imported/google.svg-d81bea1d73b14bdb66d2c96be88fd22a.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source_md5="2eaf2b48a586d872fadff9b3eef3f74a" | ||
dest_md5="ee902025e732e2a3310620ee7ab7e62a" | ||
|
Binary file added
BIN
+806 Bytes
godot/.godot/imported/magic.svg-088cb34831e9e0bcc01490605434ad18.ctex
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
godot/.godot/imported/magic.svg-088cb34831e9e0bcc01490605434ad18.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source_md5="3b11cd2a5f3cfe0f27b13471974858c0" | ||
dest_md5="ac96a58e05292cb44690bd8fe2d59b7e" | ||
|
Binary file added
BIN
+2.78 KB
godot/.godot/imported/metamask.svg-e2b3734a6d9017e7f4c76d9edaa09abd.ctex
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
godot/.godot/imported/metamask.svg-e2b3734a6d9017e7f4c76d9edaa09abd.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source_md5="9898554a9551d85c2ebce1bccbdfe7f9" | ||
dest_md5="e9dfba0bc5b661d7c45cc48a39470f75" | ||
|
Binary file added
BIN
+7.52 KB
godot/.godot/imported/samsung-blockchain-wallet.svg-fbbd8c1b81202edf0b532a55a7554d1f.ctex
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
godot/.godot/imported/samsung-blockchain-wallet.svg-fbbd8c1b81202edf0b532a55a7554d1f.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source_md5="46eb5ab4f2d3fcfdbb09c4bb0897cba0" | ||
dest_md5="28a7b91100fd48d10f0ecd42aa5a79fe" | ||
|
Binary file added
BIN
+9.81 KB
godot/.godot/imported/wallet-connect.png-220ad8719a0db3ee52993cdcb120adf4.ctex
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
godot/.godot/imported/wallet-connect.png-220ad8719a0db3ee52993cdcb120adf4.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source_md5="67b9c88b63853487c8aecf0786f775e8" | ||
dest_md5="9b90704ac05c5c28f6846018b5ac48cc" | ||
|
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
godot/.godot/imported/x.svg-9f33895c5ec2b09bfe96a45d04ac5390.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source_md5="1b578fdf8fb61b007cc47bc8ea6cf81a" | ||
dest_md5="302c4a1d004d999fd5d81bab1ee84c59" | ||
|
115 changes: 115 additions & 0 deletions
115
godot/addons/GodotAndroidPluginMagicLink/MagicLinkPluginInterface.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
class_name MagicLinkPluginInterface | ||
|
||
signal connected(address: String) | ||
signal logout | ||
|
||
const PLUGIN_NAME = "GodotAndroidPluginMagicLink" | ||
|
||
var wallet_connected: bool = false | ||
var public_address: String = "" | ||
|
||
static var _plugin_singleton = null | ||
|
||
|
||
func get_singleton(): | ||
if _plugin_singleton != null: | ||
return _plugin_singleton | ||
|
||
if Engine.has_singleton(PLUGIN_NAME): | ||
_plugin_singleton = Engine.get_singleton(PLUGIN_NAME) | ||
return _plugin_singleton | ||
|
||
printerr("Initialization error: unable to access the java logic") | ||
return null | ||
|
||
|
||
func _on_connected(address: String): | ||
public_address = address | ||
wallet_connected = true | ||
|
||
connected.emit(address) | ||
|
||
|
||
func _on_logout(): | ||
public_address = "" | ||
wallet_connected = false | ||
|
||
logout.emit() | ||
|
||
|
||
func setup(magic_key: String, callback_url: String, network: String = "ethereum"): | ||
var singleton = get_singleton() | ||
if singleton == null: | ||
printerr("Initialization error") | ||
return | ||
|
||
singleton.setup(magic_key, callback_url, network) | ||
singleton.connected.connect(self._on_connected) | ||
singleton.on_logout.connect(self._on_logout) | ||
|
||
|
||
func async_check_connection() -> bool: | ||
var singleton = get_singleton() | ||
if singleton == null: | ||
printerr("Initialization error") | ||
return false | ||
|
||
singleton.checkConnection() | ||
|
||
return await singleton.connection_state == "true" | ||
|
||
|
||
func async_login_email(email: String): | ||
var singleton = get_singleton() | ||
if singleton == null: | ||
printerr("Initialization error") | ||
return | ||
|
||
singleton.loginEmailOTP(email) | ||
await singleton.connected | ||
|
||
|
||
func async_login_social(oauth_provider: String): | ||
var singleton = get_singleton() | ||
if singleton == null: | ||
printerr("Initialization error") | ||
return | ||
|
||
singleton.loginSocial(oauth_provider) | ||
await singleton.connected | ||
|
||
|
||
func async_logout(): | ||
var singleton = get_singleton() | ||
if singleton == null: | ||
printerr("Initialization error") | ||
return | ||
|
||
singleton.logout() | ||
await singleton.on_logout | ||
|
||
|
||
func open_wallet(): | ||
if wallet_connected != true: | ||
printerr("Please, check if you're connected first...") | ||
return | ||
|
||
var singleton = get_singleton() | ||
if singleton == null: | ||
printerr("Initialization error") | ||
return | ||
|
||
singleton.openWallet() | ||
|
||
|
||
func async_sign(message: String) -> String: | ||
if wallet_connected != true: | ||
printerr("Please, check if you're connected first...") | ||
return "" | ||
var singleton = get_singleton() | ||
if singleton == null: | ||
printerr("Initialization error") | ||
return "" | ||
|
||
singleton.sign(message) | ||
return await singleton.signed_message |
Binary file added
BIN
+26.5 KB
godot/addons/GodotAndroidPluginMagicLink/bin/release/GodotAndroidPluginMagicLink-release.aar
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
@tool | ||
extends EditorPlugin | ||
|
||
# A class member to hold the editor export plugin during its lifecycle. | ||
var export_plugin: AndroidExportPlugin | ||
|
||
|
||
func _enter_tree(): | ||
# Initialization of the plugin goes here. | ||
export_plugin = AndroidExportPlugin.new() | ||
add_export_plugin(export_plugin) | ||
|
||
|
||
func _exit_tree(): | ||
# Clean-up of the plugin goes here. | ||
remove_export_plugin(export_plugin) | ||
export_plugin = null | ||
|
||
|
||
class AndroidExportPlugin: | ||
extends EditorExportPlugin | ||
const PLUGIN_NAME = "GodotAndroidPluginMagicLink" | ||
|
||
func _supports_platform(platform): | ||
if platform is EditorExportPlatformAndroid: | ||
return true | ||
return false | ||
|
||
func _get_android_libraries(_platform, debug): | ||
if debug: | ||
return PackedStringArray([PLUGIN_NAME + "/bin/debug/" + PLUGIN_NAME + "-debug.aar"]) | ||
|
||
return PackedStringArray([PLUGIN_NAME + "/bin/release/" + PLUGIN_NAME + "-release.aar"]) | ||
|
||
func _get_android_dependencies(_platform, _debug): | ||
var default_dependencies = PackedStringArray( | ||
[ | ||
"link.magic:magic-android:10.6.0", | ||
"link.magic:magic-ext-oauth:5.0.1", | ||
"link.magic:magic-ext-oidc:2.0.4", | ||
"org.web3j:core:4.8.8-android", | ||
"org.web3j:geth:4.8.8-android" | ||
] | ||
) | ||
|
||
return default_dependencies | ||
|
||
func _get_name(): | ||
return PLUGIN_NAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[plugin] | ||
name="GodotAndroidPluginMagicLink" | ||
description="Plugin for connecting with Magic Link on Android" | ||
author="Kuruk" | ||
version="0.1" | ||
script="export_plugin.gd" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="CompressedTexture2D" | ||
uid="uid://kxlueau7wo2u" | ||
path="res://.godot/imported/apple.svg-641aec9d79b14fbb47eb0d04902e71d2.ctex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://src/ui/components/auth/images/apple.svg" | ||
dest_files=["res://.godot/imported/apple.svg-641aec9d79b14fbb47eb0d04902e71d2.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 | ||
svg/scale=1.0 | ||
editor/scale_with_editor_scale=false | ||
editor/convert_colors_with_editor_theme=false |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="CompressedTexture2D" | ||
uid="uid://d1woawj5lwo2f" | ||
path="res://.godot/imported/coinbase.svg-8106001dab373e0975a9afab1d75672a.ctex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://src/ui/components/auth/images/coinbase.svg" | ||
dest_files=["res://.godot/imported/coinbase.svg-8106001dab373e0975a9afab1d75672a.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 | ||
svg/scale=1.0 | ||
editor/scale_with_editor_scale=false | ||
editor/convert_colors_with_editor_theme=false |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.