everything works, however when the value becomes of the type [Any], it will build correctly, but will likely cause corrupted .dex that will further mess up something very fundamental and installation will fail with:
~> Installing lakestonecore.tests
~> Calling adb -s FA31LPN00609 install -r "/Users/hurden/Developer/Lakestone/LakestoneCore/Silver/LakestoneCore.Tests/./bin/Debug/LakestoneCore.Tests.apk"
~> The process failed to start with the following error: Failed to install, output:
~> [ 13%] /data/local/tmp/LakestoneCore.Tests.apk
~> [ 27%] /data/local/tmp/LakestoneCore.Tests.apk
~> [ 41%] /data/local/tmp/LakestoneCore.Tests.apk
~> [ 55%] /data/local/tmp/LakestoneCore.Tests.apk
~> [ 68%] /data/local/tmp/LakestoneCore.Tests.apk
~> [ 82%] /data/local/tmp/LakestoneCore.Tests.apk
~> [ 96%] /data/local/tmp/LakestoneCore.Tests.apk
~> [100%] /data/local/tmp/LakestoneCore.Tests.apk
~> pkg: /data/local/tmp/LakestoneCore.Tests.apk
~> Failure [INSTALL_FAILED_UID_CHANGED]
Whatâs extremely interesting, that even if you remove the method, rebuild/clean/reinstall Fire/delete app from the device/try on other device -> it will never be able to install again, unless you will create a new project that will have a different package name.
You can the reproduce this issue by clone the repo and adding a method with a following signature:
public func `set`(_ value: [Any], forKey key: String){}
I was trying your project, however it doesnât seem to compile at all:
Severity Code Description Project File Line Suppression State
Error (E181) Property "lastModificationDateĂÂș: Date?" getter not implemented as required for interface "AnyFileOrDirectory" LakestoneCore.Android \Silver\LakestoneCore.Shared\..\..\Source\Directory.swift 32
Error (E181) Property "parentDirectoryĂÂș: Directory?" getter not implemented as required for interface "AnyFileOrDirectory" LakestoneCore.Android \Silver\LakestoneCore.Shared\..\..\Source\Directory.swift 32
Error (E62) Type mismatch, cannot assign "<error>" to "String" LakestoneCore.Android \Silver\LakestoneCore.Shared\..\..\Source\extension_String.swift 512
Error (E44) No member "utf8EncodedStringRepresentationÂș" on type "java.nio.ByteBuffer!" LakestoneCore.Android \Silver\LakestoneCore.Shared\..\..\Source\extension_String.swift 512
Error (E62) Type mismatch, cannot assign "<error>" to "String" LakestoneCore.Android \Silver\LakestoneCore.Shared\..\..\Source\extension_String.swift 514
Error (E44) No member "utf8EncodedStringRepresentationÂș" on type "java.nio.ByteBuffer!" LakestoneCore.Android \Silver\LakestoneCore.Shared\..\..\Source\extension_String.swift 514
Error (E62) Type mismatch, cannot assign "<error>" to "String" LakestoneCore.Android \Silver\LakestoneCore.Shared\..\..\Source\extension_String.swift 516
Error (E44) No member "utf8EncodedStringRepresentationÂș" on type "java.nio.ByteBuffer!" LakestoneCore.Android \Silver\LakestoneCore.Shared\..\..\Source\extension_String.swift 516
Error (E62) Type mismatch, cannot assign "<error>" to "String" LakestoneCore.Android \Silver\LakestoneCore.Shared\..\..\Source\extension_String.swift 529
Error (E44) No member "utf8EncodedStringRepresentationÂș" on type "Data!" LakestoneCore.Android \Silver\LakestoneCore.Shared\..\..\Source\extension_String.swift 529
Error (E265) Static duck typing failed because of missing methods LakestoneCore.Android \Silver\LakestoneCore.Shared\..\..\Source\File.swift 46
Error (E44) No member "utf8EncodedStringRepresentationÂș" on type "java.nio.ByteBuffer!" LakestoneCore.Android \Silver\LakestoneCore.Shared\..\..\Source\File.swift 124
Warning (N3) Original type "AnyFileOrDirectory" was declared here LakestoneCore.Android \Silver\LakestoneCore.Shared\..\..\Source\AnyFileOrDirectory.swift 27