İlk commit: Stepstead Godot istemci (4.6 Mobile)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
commit
6a1706051d
346 changed files with 14415 additions and 0 deletions
25
addons/stepcounter/export_plugin.gd
Normal file
25
addons/stepcounter/export_plugin.gd
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
@tool
|
||||
extends EditorExportPlugin
|
||||
## Android export'unda StepCounter AAR'ını ve izinleri ekler.
|
||||
|
||||
const PLUGIN_NAME := "StepCounter"
|
||||
# Derlenmiş AAR buraya kopyalanmalı (native/stepcounter-android/build çıktısı)
|
||||
const AAR_PATH := "res://addons/stepcounter/stepcounter-release.aar"
|
||||
|
||||
func _supports_platform(platform: EditorExportPlatform) -> bool:
|
||||
return platform is EditorExportPlatformAndroid
|
||||
|
||||
func _get_android_libraries(platform: EditorExportPlatform, debug: bool) -> PackedStringArray:
|
||||
return PackedStringArray([AAR_PATH])
|
||||
|
||||
func _get_android_dependencies(platform: EditorExportPlatform, debug: bool) -> PackedStringArray:
|
||||
return PackedStringArray(["org.jetbrains.kotlin:kotlin-stdlib:2.1.0"])
|
||||
|
||||
func _get_android_manifest_element_contents(platform: EditorExportPlatform, debug: bool) -> String:
|
||||
return """
|
||||
<uses-permission android:name="android.permission.ACTIVITY_RECOGNITION" />
|
||||
<uses-feature android:name="android.hardware.sensor.stepcounter" android:required="false" />
|
||||
"""
|
||||
|
||||
func _get_name() -> String:
|
||||
return PLUGIN_NAME
|
||||
1
addons/stepcounter/export_plugin.gd.uid
Normal file
1
addons/stepcounter/export_plugin.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://dbplx5scln6x8
|
||||
7
addons/stepcounter/plugin.cfg
Normal file
7
addons/stepcounter/plugin.cfg
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[plugin]
|
||||
|
||||
name="StepCounter"
|
||||
description="Android adım sayar (TYPE_STEP_COUNTER) Godot eklentisi"
|
||||
author="Stepstead"
|
||||
version="1.0.0"
|
||||
script="stepcounter.gd"
|
||||
13
addons/stepcounter/stepcounter.gd
Normal file
13
addons/stepcounter/stepcounter.gd
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
@tool
|
||||
extends EditorPlugin
|
||||
## StepCounter Android eklentisini export'a kaydeder.
|
||||
|
||||
var _export_plugin: EditorExportPlugin
|
||||
|
||||
func _enter_tree() -> void:
|
||||
_export_plugin = preload("res://addons/stepcounter/export_plugin.gd").new()
|
||||
add_export_plugin(_export_plugin)
|
||||
|
||||
func _exit_tree() -> void:
|
||||
remove_export_plugin(_export_plugin)
|
||||
_export_plugin = null
|
||||
1
addons/stepcounter/stepcounter.gd.uid
Normal file
1
addons/stepcounter/stepcounter.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://ccvwkrmtxhcpd
|
||||
Loading…
Add table
Add a link
Reference in a new issue