libtdjson 0.1.1
libtdjson: ^0.1.1 copied to clipboard
A flutter plugin for [TDLib JSON interface](https://github.com/tdlib/td#using-from-other-programming-languages), ffi binding.
flutter_libtdjson #
A flutter plugin for TDLib JSON interface, ffi binding.
Supported architectures #
Make sure you are using supported one
| Platform | Architecture | |
|---|---|---|
| Android | armeabi-v7a | ✅ |
| arm64-v8a | ✅ | |
| Android emulator | x86 | ❌ |
| x86_64 | ✅ | |
| iOS | armv7 | ❌ |
| armv7s | ❌ | |
| arm64 | ✅ | |
| iOS simulator | i386 | ❌ |
| x86_64 | ✅ | |
| arm64 (M1) | ❌ | |
| macOS | i386 | ❌ |
| x86_64 | ✅ | |
| arm64 (M1) | ❌ |
Install #
-
Update
pubspec.yaml:dependencies: libtdjson: ^0.1.0 -
If you want to build android, you have to add envs for github maven, see
./android/build.gradleexport GITHUB_ACTOR=<username> export GITHUB_TOKEN=<personal access token> -
If you want to set
tdlibParameters.database_directoryoutside work dir, make sure you request the storage permission, e.q.android/app/src/main/AndroidManifest.xml<manifest> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <manifest/> -
If you want to build macos, have to set network permission in
./macos/Runner/*.entitlementsfiles<dict> <key>com.apple.security.network.client</key> <true/> </dict>