Git Product home page Git Product logo

androidx's Introduction

AndroidX for Xamarin.Android

GitHub License contributions welcome GitHub contributors Build Status

Xamarin creates and maintains Xamarin.Android bindings for AndroidX.

What's New in AndroidX

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.

Building

Prerequisites

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 --version 0.4.2
dotnet tool install -g xamarin.androidx.migration.tool --version 1.0.0-rc1

NOTE: If you previously installed any of these tools, be sure to update them to the latest versions.

Compiling

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

Android Support -> AndroidX Roadmap

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.

Goal

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.

Phases

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.

Migration Tools / Tasks Source Code

The source code for the Xamarin.AndroidX.Migration package and other migration tools and utilities are available in: xamarin/XamarinAndroidXMigration

License

The license for this repository is specified in LICENSE.md

Contribution Guidelines

The Contribution Guidelines for this repository are listed in CONTRIBUTING.md

.NET Foundation

This project is part of the .NET Foundation

androidx's People

Contributors

bholmes avatar cheesebaron avatar cosminstirbu avatar jonathanpeppers avatar mattleibow avatar moljac avatar newky2k avatar redth avatar tuyen-vuduc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.