Some test text!
Xamarin / FAQ / How do I reduce the size of my APK?
For basic information on building multiple APKs for an application, consult Xamarin's documentation on Building ABI-Specific APKs. This article will discuss how to build an APK that will target a single ABI for sample project ContentPage.Droid
.
First, install Ruby. You can test by typing gem
or rake
from your command prompt.
The rakefile is adapted from the original rakefile from Xamarin's documentation and made to work with ContentPage.Droid
project. It performs each of the steps that were described in the official Xamarin's documentation:
debug_keystore
keystore file. Change to your own keystore file with corresponding password to try it out.To build the split APKs for the sample app:
Developer Command Prompt for VS 2017
build
Rake task:rake build
==> Building an APK for ABI x86 with ./Properties/AndroidManifest.xml.x86, android:versionCode = 60814120.
==> Building an APK for ABI armeabi-v7a with ./Properties/AndroidManifest.xml.armeabi-v7a, android:versionCode = 20814120.
ContentPage/Droid/
|__bin.x86/com.pdftron.customrenderer_signed.apk
|__bin.armeabi-v7a/com.pdftron.customrenderer_signed.apk
Trial setup questions? Ask experts on Discord
Need other help? Contact Support
Pricing or product questions? Contact Sales