Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Two versions (free and paid) for Store distribution?

$
0
0

Hello,

I am currently porting my existing UWP app to Xamarin.Forms. I have both a free version with limited features and a paid version. For the UWP version, I would simply have a const bool that was set to true for the paid version and false for the free version and I associated the app with the store to get the correct names for the free/paid verison. Everything else (icons etc) was the same.

Now for Xamarin.Forms this does not seem to be so easy. I have projects for Android and iOS as well and there would be quite a few places in which I would have to change the name etc. to get the desired result.

To implement some platform specific features I used the DependencyService which called different methods depending on the target platform (UWP, iOS, Android) and this worked quite well. Could I use something similar to distinguish between my free and paid apps?

I would like to either add one Android (or iOS, UWP) project to have two projects for each platform and then share the platform specific code I mentioned above between them or add two new projects for each platform which derive from the "main" project which already contains the platform specific code. I would like to avoid having the same code (platform specific) in two places.

Is this possible? If yes, how would I have to create my projects to share the platform specific code but still allow the app to have one const bool that is different?

Regards,

Philipp


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>