tilt_network 0.1.0 copy "tilt_network: ^0.1.0" to clipboard
tilt_network: ^0.1.0 copied to clipboard

PlatformAndroid

Flutter plugin for the Tilt peer SDK. Turns a mobile device into a compute peer on the Tilt grid via a simple Tilt(publicKey) API.

tilt_network #

Flutter plugin that turns an Android device into a Tilt compute peer — joining the Tilt distributed grid with a single call.

Installation #

dependencies:
  tilt_network: ^0.1.0

Android setup #

Add to AndroidManifest.xml:

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC"/>

<service
    android:name="technology.tilt.sdk.Tilt"
    android:exported="false"
    android:foregroundServiceType="dataSync"/>

Usage #

import 'package:tilt_network/tilt.dart';

// Start the peer (runs as a foreground service)
Tilt('pk_your_public_key', environment: 'production');

// Stream runtime logs
EventChannel('tilt/logs')
    .receiveBroadcastStream()
    .map((e) => List<String>.from(e as List))
    .listen((lines) => print(lines.last));

Platform support #

Platform Status
Android
iOS planned
0
likes
130
points
10
downloads

Documentation

API reference

Publisher

verified publishertilt.technology

Weekly Downloads

Flutter plugin for the Tilt peer SDK. Turns a mobile device into a compute peer on the Tilt grid via a simple Tilt(publicKey) API.

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on tilt_network

Packages that implement tilt_network