#tauri-plugin #machine #kotlin #android #board #vending #kits

sys tauri-plugin-board

vending machine development board of kits for tauri, use kotlin

29 releases (stable)

1.7.6 Oct 22, 2024
1.7.2 Sep 27, 2024
1.7.0-beta.2 Aug 29, 2024
1.0.5 Jul 22, 2024
1.0.1 Jun 7, 2024

#551 in GUI

Download history 164/week @ 2024-07-23 222/week @ 2024-07-30 707/week @ 2024-08-06 151/week @ 2024-08-13 519/week @ 2024-08-20 593/week @ 2024-08-27 32/week @ 2024-09-10 230/week @ 2024-09-17 311/week @ 2024-09-24 87/week @ 2024-10-01 1/week @ 2024-10-08 191/week @ 2024-10-22 5/week @ 2024-10-29

196 downloads per month

MIT license

255KB
2K SLoC

Kotlin 1.5K SLoC // 0.2% comments TypeScript 250 SLoC // 0.6% comments Rust 133 SLoC // 0.1% comments Batch 71 SLoC JavaScript 54 SLoC Prolog 29 SLoC

Contains (ELF lib, 125KB) libserial_port.so, (ELF lib, 34KB) android/libs/arm64-v8a/libserial_port.so, (JAR file, 63KB) android/libs/usdk_v120601.jar, (JAR file, 9KB) android/libs/signature-1.0.8.jar, (JAR file, 6KB) android/libs/zckjAPI-2.2.jar

Tauri Plugin board

This is a vending machine development board of kits for Tauri, utilizing Java or Kotlin for development.

support development board model

  • ZC-* All with Android 11.0+

Setting Up Your Tauri Plugin

Follow these steps to set up the Tauri API for your Android plugin:

# Navigate to the android folder of your plugin
cd android

# Create the tauri-api path
mkdir -p .tauri/tauri-api

# Clone the Tauri repository
git clone https://github.com/tauri-apps/tauri

# Copy the mobile API from the repository to the created path
cp -r tauri/core/tauri/mobile/android/. .tauri/tauri-api

# Remove the cloned Tauri repository
rm -rf tauri

Signature Plugins

You can utilize the following signature plugins:

Language Plugin Link
Kotlin Signature for Kotlin
JavaScript Signature for JavaScript
Go Signature for Go
Rust Signature for Rust

Storage Configuration

To save data in a JSON format, you can use the following code snippet:

File(this.applicationContext.getExternalFilesDir(null), "xxx.json").writeText(Gson().toJson(payload))

Generating SQLDelight Interface

To generate the SQLDelight interface, run the following command:

./gradlew generateSqlDelightInterface

To pull the database file from your Android device, use:

adb pull /sdcard/xxx/files/xxx.db ./

Dependencies

~19–59MB
~1M SLoC