Crosslight Custom Library Projects

3 replies. Last post: September 26, 2014 5:04 AM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hello Crosslight Support,

is it possible to create or do you already have any code for custom library projects.

I will explain what I mean with this:

When creating a couple of apps, there are pieces of code, views, resources and more stuff which one could reuse in every project. Xamarin offers a project template for "library projects". So it would be great if one could create a library project for Android and one for iOS and reuse these parts in every project created with Crosslight.

I tried this approach for Android. I created a Crosslight project with the project wizzard and added a library project to the solution. I added the Intersoft.Crosslight and Intersoft.Crosslight.Android references to the new library project and a reference to the Core project. Everything like in the "regular" Android project. I also referenced the custom Android project in the Crosslight Android project. I moved some activities and some resources to the newly created library project and tried to build the solution. I encountered some problems and could not achieve what I had in mind.

Is it possible to make such an approach in combination with Crosslight?

Does Crosslight recognize the activities belonging to a certain ViewModel when the activities are in a custom library?

How can I include the custom resources to the existing "Resource" class? The "Resource" class is partial and somehow you managed to include the resources from the Intersoft.Crosslight.Android assembly to the resources of the Android project created by Crosslight.

There may be other problems and other iOS specific problems, but I think you solved them all.

I hope I was able to describe my problem and I hope Crosslight will let me build custom library "extensions". If not maybe you take it as a feature request for an upcoming release.

Thanks,

Thomas

All times are GMT -5. The time now is 9:30 PM.
Previous Next