Skip to content

Strengthless/expo-temi

Repository files navigation

Expo-Temi

expo-temi provides an interface to communicate with Temi hardware using Temi SDK.

Currently still under development, PRs are welcomed.

Installation

You need to use JDK 17 for this module, otherwise Android compilation might fail.

npx expo install expo-temi

For your application to show up in the temi OS, you need to create an Expo plugin to inject the following metadata into the AndroidManifest.xml of your build.

<meta-data
    android:name="com.robotemi.sdk.metadata.SKILL"
    android:value="@string/app_name" />

API documentation

We are currently on Temi SDK 1.131.4, and we hope to port every method from the official Temi Robot API.

As of the time being, only the speak(text: string) has been implemented as a POC.

Troubleshooting

If your EAS builds are not working due to minSdkVersion < 23, you might need to install BuildProperties SDK and modify your Expo config as follows.

plugins: [
    [
      "expo-build-properties",
      {
        android: {
          minSdkVersion: 23
        }
      }
    ]
]

Contributing

PRs are welcomed! The source code is available at https://github.com/strengthless/expo-temi.

The only three files that you'd likely be interested in are /android/src/main/java/expo/modules/temi/ExpoTemiModule.kt, /src/index.ts and /example/App.tsx, which are respectively responsible for native code implementation, Expo module API definitions and Expo module testing.

npm run build
cd ./example
npx expo run:android

About

An Expo module for Robot Temi SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •