Open sardarasmita opened 3 years ago
Hi @sardarasmita , tbh I am not sure that your issue somehow related to j2objc-maven-plugin.. might be a bug in j2objc itself? Can you try it with later versions of the lib, since this plugin wasn't updated for a long time already..
I am trying to get Gson through j2objc such that I can use it for my iOS swift framework. I am using J2ObjC 2.8 and GSON 2.8.5. and all the classes are translating correctly. However, while running the tests, I cannot successfully convert the data using GSON as the function throws the error.
Java Code
I am using the converted code of the above code to run the test case in the swift project
While running the above code, The ComAService().getGsonString(with: request!) throws error
I have used j2objc-maven-plugin 1.1.4 for conversion and gson 2.8.5.
I require gson to convert string to object or object to a string so that I can use the converted string to store in the local database and vice versa