tiki-deprecated / publish-sdk-ios

TIKI SDK (iOS) - Consumer Data Licensing
https://mytiki.com/docs/sdk-overview
MIT License
3 stars 2 forks source link

fix: update Flutter and App deps to _debug #172

Closed ricardobrg closed 1 year ago

ricardobrg commented 1 year ago

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