Skip to content

[Tracking] AndroidX support #7027

@ADjenkov

Description

@ADjenkov

Migration to AndroidX draft document

  • (optional) Move tns-core-modules-widgets to main NativeScript repository (keep as separate packages for the time being)

  • Migrate tns-core-modules package to AndroidX:

    • Create branch that uses AndroidX
    • Migrate Apps and Tests apps (both require published version of tns-core-modules-widgets@androidX and tns-platform-declarations@androidX)
    • Migrate support library typings to AndroidX in tns-platform-declarations:
      • Generate androidX-17/23/26/28 d.ts files
      • Remove support-library-17/23/26/28 d.ts files and deps
    • Publish tns-core-modules@androidx with proper tns-core-modules-widgets@androidx and tns-android@androidx dependencies
    • Publish tns-platform-declarations@androidX package
  • Migrate tns-core-modules-widgets package to AndroidX:

    • Create branch that uses AndroidX
    • Publish tns-core-modules-widgets@androidX package
  • {N} Plugins migration:

    • Evaluate and summarize all plugins that use support library
    • Create migration tool that replaces all Support Library namespaces to AndroidX in a project.
    • Migrate nativescript-ui-listview plugin as a proof-of-concept
    • Migrate the rest of the plugins developed by {N} team
    • Create sample-androidx-ts and sample-androidx-ng repos
    • Create '{N} AndroidX Introduction' Blog/Article
    • Create 'Plugin Migration Blog/Article/Steps/Guide' to describe the required migration steps for a plugin that relies on support library:
      • How to migrate your javascript code?
      • How to migrate your native code?
      • How to migrate your 3rd party libraries?
      • Publish package of your plugin that uses tns-core-modules@androidX
      • Migrate your plugin repo demo apps (if there are any)
    • (optional) Prepare script/tool that migrates (replaces support library namespaces to androidX) java/javascript/xml files to AndroidX
    • (optional) Create PRs that migrates top nativescript-* plugins to AndroidX
  • Migrate Android Runtime to support AndroidX :

    • Publish dedicated tns-android@androidx package
    • Extend android-dts-generator to support androidX. Add new androidX jar files
  • TODO: Migrate {N} CLI to support AndroidX ?:


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions