Implement the new TikiSdk architecture and prepare the prebuilt UI flow implementation configuration.
Creates a singleton for the TikiSdk that caches Flutter Engine.
By decoupling the creation of the Flutter Engine we can run its initialization
synchronously in the main thread when TikiPlatformChannel is loaded.
In subsequent TikiSdk.initSdk calls, we just need to update the blockchain,
keeping the same Flutter Engine.
This PR breaks the Example App. It needs to be updated for the new TIKI SDK architecture.
It does not include the UI implementation. It will be added in another PR.
This PR implements the reverted #171
Implement the new TikiSdk architecture and prepare the prebuilt UI flow implementation configuration. Creates a singleton for the TikiSdk that caches Flutter Engine.
By decoupling the creation of the Flutter Engine we can run its initialization synchronously in the main thread when TikiPlatformChannel is loaded.
In subsequent TikiSdk.initSdk calls, we just need to update the blockchain, keeping the same Flutter Engine.
This PR breaks the Example App. It needs to be updated for the new TIKI SDK architecture.
It does not include the UI implementation. It will be added in another PR.
Integration tests are updated and passing.
closes #156 closes #157 closes #166 closes #167 closes #168 closes #169
Files changed new file: Sources/TikiSdk/Offer.swift new file: Sources/TikiSdk/Theme.swift new file: Sources/TikiSdk/Ui/UsedBullet.swift modified: IntegrationTests/IntegrationTests/IntegrationTests.swift modified: Sources/TikiSdk/TikiPlatformChannel/TikiPlatformChannel.swift modified: Sources/TikiSdk/TikiSdk.swift modified: Sources/TikiSdk/TikiSdk.swift modified: IntegrationTests/IntegrationTests/IntegrationTests.swift modified: Sources/TikiSdk/Offer.swift modified: Sources/TikiSdk/Theme.swift modified: Sources/TikiSdk/TikiSdk.swift modified: Sources/TikiSdk/Ui/UsedBullet.swift renamed: Sources/TikiSdk/Ui/Offer.swift -> Sources/TikiSdk/Ui/OfferPrompt.swift