/hms-toolkit-convertor

Convertor is a code conversion tool supporting Java and Kotlin projects. It helps developers to automatically convert GMS APIs called by apps into corresponding HMS APIs, implementing quick conversion and HMS integration.

Primary LanguageJava

Convertor

Apache-2.0

Table of Contents

Introduction

Convertor is a code conversion tool supporting Java and Kotlin projects. It helps developers to automatically convert GMS APIs called by apps into corresponding HMS APIs, implementing quick conversion and HMS integration. The HMS Convertor provides the following functions:

  • New Conversion: Automatically converts GMS APIs invoked by an app to HMS APIs.

  • Open Last Conversion: Opens the last conversion result.

  • Save All: Save the corrent project and conversion information.

  • Restore Project: Restores a project with the backup file.

Build

Dependencies

Convertor requires:

  • Gradle(>= 5.2.1)
  • JDK(>= 8)

Run the git clone command to download the code, go to the Convertor/src directory, and run the following command:

$ ./gradlew -p IDE/convertor-idea buildPlugin

After the build is complete, go to the Convertor/src/IDE/intellij-plugin/build/distributions directory to view the plugin package in .zip format.

Install

Start the IDEA or Android Studio and click the menu bar on the upper left, choose File -> Settings -> Plugins -> Install Plugin from Disk

avatar

select the ZIP plugin package generated during the build.

tips:

You can debug the plugin in the sandbox using the following command :

$ ./gradlew -p IDE/convertor-idea runIde

How to use

For details,you can click: https://developer.huawei.com/consumer/en/doc/development/Tools-Guides/90419706

Code Contributions

To make a contribution to Convertor project, follow these steps.

  1. Fork the repo on GitHub
  2. Clone the project to your own machine
  3. Commit changes to your own branch
  4. Push your work back up to your fork
  5. Submit a Pull request so that we can review your changes

NOTE: Be sure to merge the latest from "upstream" before making a pull request!

License

Apache License version 2.0;

You can get a licensed copy at: https://github.com/HMS-Core/hms-toolkit-convertor/blob/master/LICENSE/LICENSE.txt