cancel
Showing results for 
Search instead for 
Did you mean: 

SDK 7.0.6 breaking change

AlexGiguere
Contributor
0 Kudos

We used to generate our proxy classes with the command line, since SDK 7.0.6 or maybe before 7.0.x, the tool (proxy generator) now generates the classes with new completion handler with the swift result type, which is a welcome addition

however I am trying to demystify all these new API, even the Assistant tool with 7.0.6 does not generate the proxy classes with the new completion handler (so why this inconsistency), it used the old way with (LegacyDataService)

there are some APIs that have been refactored with big omissions like the download API does not return anymore a CancelToken which we rely heavily on

I know there is an extra parameter on the command line that can be used to generate the proxy classes the old way but I don't remember.

Also, I can't find some API like the one to add your own Defining Queries, a documentation example or blog about these new changes would be appreciated

thanks

AlexGiguere
Contributor
0 Kudos

sorry the extra CLI argument was passed in my case, so technically it's not a breaking change but if you pass it then it will be, maybe SAP refactoring for the new completion handler is not ready to go

the CLI options are -legacy, -online, -offline

we tried to opt-in for the new one (offline) but so far we have too many problems and we will probably regenerate our classes with the legacy options

thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

evanireland
Advisor
Advisor
0 Kudos

The -offline option currently works only for the "CloudSyncProvider", but not yet for the "OfflineODataProvider".

I will discuss with the relevant teams to get better support (e.g. in the Assistant) for the Swift.Result-based async, and also in OfflineODataProvider.

AlexGiguere
Contributor
0 Kudos

we are still waiting for an update of your CLI to improve the generation of the offline odata entities proxy classes

with either completion handler with result type or async / await support

right now the odata offline needs to use the old legacy way

thanks