/AndroidToHarmonyOS

How to use Kotlin and harmonised popular Android Libraries in a HarmonyOS Project

Primary LanguageJavaMIT LicenseMIT

Android to HarmonyOS

This Repository shows how an Android Example App is ported to HarmonyOS App for Huawei Smartwatch.

Android

chuck_phone

HarmonyOS

chuck_watch

For the Android App, popular 3rd party Libraries are used from Github

  • Dagger
  • Glide
  • Rxjava/RxAndroid
  • Retrofit
  • Moshi

Many popular Android 3rd party libraries are "harmonised" on Gitee and can be used for HarmonyOS App

  • Glide
  • RxOhos
  • Butterknife

Java Libraries can be 100% used for HarmonyOS development

  • Dagger
  • Rxjava
  • Retrofit
  • Moshi

Eventhough Kotlin can't be used for HarmonyOS development, you can still compile Kotlin code in a separate Maven project and use the compiled jar in the HarmonyOS project, see KotlinLib.