Skip to content

Commit

Permalink
Rework interaction between KtObject and MemoryManager
Browse files Browse the repository at this point in the history
  • Loading branch information
CedNaru committed Oct 16, 2024
1 parent 7f4614f commit 9becd27
Show file tree
Hide file tree
Showing 932 changed files with 3,453 additions and 2,472 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/deploy_jvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,22 @@ jobs:
run: |
modules/kotlin_jvm/kt/gradlew -p modules/kotlin_jvm/kt/ :godot-kotlin-symbol-processor:publish
- name: Publish godot-library debug
- name: Publish godot-internal-library debug
shell: sh
run: |
modules/kotlin_jvm/kt/gradlew -p modules/kotlin_jvm/kt/ :godot-internal-library:publish -Pdebug
- name: Publish godot-internal-library release
shell: sh
run: |
modules/kotlin_jvm/kt/gradlew -p modules/kotlin_jvm/kt/ :godot-internal-library:publish -Prelease
- name: Publish godot-core-library debug
shell: sh
run: |
modules/kotlin_jvm/kt/gradlew -p modules/kotlin_jvm/kt/ :godot-core-library:publish -Pdebug
- name: Publish godot-library release
- name: Publish godot-core-library release
shell: sh
run: |
modules/kotlin_jvm/kt/gradlew -p modules/kotlin_jvm/kt/ :godot-core-library:publish -Prelease
Expand Down
3 changes: 2 additions & 1 deletion harness/flattened-library-tests/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ includeBuild("../../kt/api-generator") {
includeBuild("../../kt") {
dependencySubstitution {
substitute(module("com.utopia-rise:godot-gradle-plugin")).using(project(":godot-gradle-plugin"))
substitute(module("com.utopia-rise:godot-library")).using(project(":godot-library"))
substitute(module("com.utopia-rise:godot-core-library-debug")).using(project(":godot-core-library"))
substitute(module("com.utopia-rise:godot-core-library-release")).using(project(":godot-core-library"))
substitute(module("com.utopia-rise:godot-kotlin-symbol-processor")).using(project(":godot-kotlin-symbol-processor"))
substitute(module("com.utopia-rise:godot-entry-generator")).using(project(":godot-entry-generator"))
}
Expand Down
3 changes: 2 additions & 1 deletion harness/fqname-library-tests/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ includeBuild("../../kt/api-generator") {
includeBuild("../../kt") {
dependencySubstitution {
substitute(module("com.utopia-rise:godot-gradle-plugin")).using(project(":godot-gradle-plugin"))
substitute(module("com.utopia-rise:godot-library")).using(project(":godot-library"))
substitute(module("com.utopia-rise:godot-core-library-debug")).using(project(":godot-core-library"))
substitute(module("com.utopia-rise:godot-core-library-release")).using(project(":godot-core-library"))
substitute(module("com.utopia-rise:godot-kotlin-symbol-processor")).using(project(":godot-kotlin-symbol-processor"))
substitute(module("com.utopia-rise:godot-entry-generator")).using(project(":godot-entry-generator"))
}
Expand Down
3 changes: 2 additions & 1 deletion harness/hierarchical-library-tests/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ includeBuild("../../kt/api-generator") {
includeBuild("../../kt") {
dependencySubstitution {
substitute(module("com.utopia-rise:godot-gradle-plugin")).using(project(":godot-gradle-plugin"))
substitute(module("com.utopia-rise:godot-library")).using(project(":godot-library"))
substitute(module("com.utopia-rise:godot-core-library-debug")).using(project(":godot-core-library"))
substitute(module("com.utopia-rise:godot-core-library-release")).using(project(":godot-core-library"))
substitute(module("com.utopia-rise:godot-kotlin-symbol-processor")).using(project(":godot-kotlin-symbol-processor"))
substitute(module("com.utopia-rise:godot-entry-generator")).using(project(":godot-entry-generator"))
}
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/FreeformRegistrationFileTestClass.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/CopyModificationCheckTestClass.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/CoreTypePropertyChecks.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/ScriptInOtherSourceDir.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/CoreTypesIdentityTest.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/FuncRefTest.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
3 changes: 3 additions & 0 deletions harness/tests/scripts/godot/tests/Invocation.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down Expand Up @@ -40,6 +42,7 @@ properties = [
nav_meshes_dictionary,
nullable_dictionary,
color,
rid,
packed_byte_array,
packed_int32_array,
packed_float64_array,
Expand Down
5 changes: 4 additions & 1 deletion harness/tests/scripts/godot/tests/JavaTestClass.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand All @@ -30,7 +32,8 @@ properties = [
dictionary
]
functions = [
greeting,
_ready,
greeting,
connect_and_trigger_signal,
signal_callback
]
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/LambdaCallableTest.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/binding/BindingA.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/binding/BindingB.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/binding/BindingTest.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ baseType = Object
supertypes = [
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/coretypes/BasisTest.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/coretypes/StringTest.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/coretypes/Vector3Test.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/coroutine/CoroutineTest.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ baseType = Object
supertypes = [
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/exception/ExceptionTest.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/instance/NodeInstance.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/instance/ObjectInstance.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ baseType = Object
supertypes = [
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.RefCounted,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.NativeWrapper,
godot.common.interop.NativePointer,
kotlin.Any
]
signals = [
Expand Down
Loading

0 comments on commit 9becd27

Please sign in to comment.