Skip to content

Commit

Permalink
feat: Make memorySize optional in Kotlin as well (default = 0) (#472)
Browse files Browse the repository at this point in the history
* feat: Make `memorySize` optional in Kotlin as well (default = 0)

* fix: Remove it from other impls
  • Loading branch information
mrousavy authored Jan 9, 2025
1 parent 347fa02 commit 0d6b836
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,4 @@ import com.facebook.proguard.annotations.DoNotStrip
class HybridBase: HybridBaseSpec() {
override val baseValue: Double
get() = 10.0

override val memorySize: Long
get() = 0L
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,4 @@ class HybridChild: HybridChildSpec() {
get() = 20.0
override val childValue: Double
get() = 30.0

override val memorySize: Long
get() = 0L
}
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,4 @@ class HybridTestObjectKotlin: HybridTestObjectSwiftKotlinSpec() {
override fun newTestObject(): HybridTestObjectSwiftKotlinSpec {
return HybridTestObjectKotlin()
}

override val memorySize: Long
get() = 0L
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ abstract class HybridObject: ExtendableHybridClass {
*/
@get:DoNotStrip
@get:Keep
abstract val memorySize: Long
open val memorySize: Long
get() = 0L

/**
* Holds the native C++ instance.
Expand Down

0 comments on commit 0d6b836

Please sign in to comment.