Xamarin creates and maintains Xamarin.Android bindings for AndroidX.
- What's New in AndroidX
- Building
- Android Support -> AndroidX Roadmap
- Migration Tools / Tasks Source Code
- License
- Contribution Guidelines
- .NET Foundation
AndroidX is a major improvement to the original Android Support Library. AndroidX packages fully replace the Android Support Library by providing feature parity and new libraries.
In addition, AndroidX includes the following features:
- All namespaces in AndroidX live in a consistent namespace starting with AndroidX. The Android Support Library namespaces have been mapped into corresponding AndroidX.* namespaces. For a full mapping of all the old classes and build artifacts to the new ones, see the Package Refactoring page.
- Unlike the Android Support Library, AndroidX namespaces are separately maintained and updated. The AndroidX packages use strict Semantic Versioning, starting with version 1.0.0. You can update AndroidX libraries in your project independently.
- Version 28.0.0 is the last release of the Android Support Library. There will be no more Android Support library releases. All new feature development will be in the AndroidX namespace.
Before building the libraries and samples in this repository, you will need to install .NET Core and the Cake .NET Core Tool:
dotnet tool install -g cake.tool
dotnet tool install -g xamarin.androidbinderator.tool
dotnet tool install -g xamarin.androidx.migration.tool
NOTE: If you previously installed any of these tools, be sure to update them to the latest versions.
For API diffs install api-tools
dotnet tool install -g api-tools
You can now build all the packages by running:
dotnet cake
If you are going to make changes to the config.json
, then you can run the packages
target to re-generate all the necessary files:
dotnet cake --target=packages
With the release of AndroidX, Android Support is now considered deprecated and will no longer receive new feature updates. We are committed to helping our developers bring their applications into this new world with minimal effort.
Our goal is to allow developers to take an existing application using Android Support libraries, and reference, build, and run against AndroidX libraries without any code changes.
1. Xamarin Bindings / NuGet Packages for AndroidX
Provide bindings to all of the new AndroidX packages for Xamarin developers. If you want to migrate your app's code manually to use the new AndroidX API's you can reference these packages. Keep in mind that all of your app's dependencies must also be compiled against AndroidX bindings to use these.
2. Tooling for Building apps and dependencies with AndroidX
Implement build tasks in the AndroidX packages to allow your application to utilize AndroidX without any code changes:
- Dependencies (.NET as well as binding libraries with java and resources in them) will be migrated to the new API's and cached during your first build
- Your app's compiled code will be migrated to the new API's before the application is packaged
- Your app's resource and manifest files will be migrated at build time before the application is packaged
3. Optional One Time Migration Tool
If your app's code (C#, Resources, Manifest, etc) has not been migrated from Android Support, your build times will be slightly longer.
We will provide a migration assistant to help convert your C# code, xml resources, and AndroidManifest to use the new AndroidX API's which you can optionally use to perform a one time migration of your project.
The source code for the Xamarin.AndroidX.Migration
package and other migration tools and utilities are available in: source/migration
The license for this repository is specified in LICENSE.md
The Contribution Guidelines for this repository are listed in CONTRIBUTING.md
This project is part of the .NET Foundation