I'm done with my app and now I'm trying to build the .apk and test it on my phone (without debug, in release mode).
Setting the Linking to "None" everything works fine. The Problem here is, that the App is too large - its 20MB and thats rubbish.
I read that article about Linking: Click Here
So I tried "Sdk Assemblies Only" and "Sdk and User Assemblies". The second option (Both Assemblies) failed directly, I wasn't even able to see the first screen (Login) of my App.
With Linking set to "Sdk Assemblies Only" I was able to come to the first screen (Loginscreen). The App is also 6.73MB whats much better and more eligible.
The Problem I face now is, that when I click on the Button "Log In" on the first screen, nothing happens (normally it would redirect me to the next Activity).
The Button is binded to a Command:
public IMvxCommand LoginCommand
{
get
{
return new MvxRelayCommand(DoLogin);
}
}
private void DoLogin()
{
//Do Stuff
}
Putting a Breakpoint in DoLogin() - shows, that it never walks in.
Well, how could I solve the problem? Seems like the functionality of mvvmcross is disabled for any reason?
My main aim is to reduce the size of app.
Here if important the necessary section from the .csproj
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidUseSharedRuntime>False</AndroidUseSharedRuntime>
<AndroidLinkMode>SdkOnly</AndroidLinkMode>
<AndroidLinkSkip />
<EmbedAssembliesIntoApk>True</EmbedAssembliesIntoApk>