@@ -12,6 +12,7 @@ A flutter plugin for [TDLib JSON interface](https://github.com/tdlib/td#using-fr
1212
1313| package | td version |
1414| ------- | ------------------------------------- |
15+ | 0.2.2 | 1.8.47 (Android, iOS, macOS) |
1516| 0.2.1 | 1.8.31 (Android, iOS, macOS) |
1617| 0.2.0 | 1.8.30 (Android, iOS, macOS) |
1718| 0.1.4 | 1.8.1 (Android, iOS, macOS) |
@@ -38,13 +39,15 @@ Make sure you are using supported one
3839| | x86_64 | ✅ |
3940| | arm64 (M1) | ✅ |
4041
42+ ⛔ This is related to dylib. You need to have a basic understanding of how to import a dylib. For publishing, you must build a static library instead.
43+
4144## Installation
4245
4346- Update ` pubspec.yaml ` :
4447
4548 ``` yml
4649 dependencies :
47- libtdjson : ^0.2.1
50+ libtdjson : ^0.2.2
4851 ` ` `
4952
5053- If you want to build android, you have to add envs for github maven, see ` ./android/build.gradle`
@@ -77,7 +80,7 @@ Make sure you are using supported one
7780# ## Bump TDLib version
7881
7982- Bump the td version of [android-libtdjson](https://github.com/up9cloud/android-libtdjson)
80- - Bump the android dependency version in `./android/build.gradle`
83+ - Bump the dependency version in `./android/build.gradle`
8184- Run `./example` for android
8285
8386 ` ` ` bash
@@ -86,26 +89,28 @@ Make sure you are using supported one
8689 ` ` `
8790
8891- Bump the td version of [ios-libtdjson](https://github.com/up9cloud/ios-libtdjson)
89- - Bump the macos dependency version in `./macos/libtdjson.podspec` (s.dependency)
92+ - Bump the dependency version in `./macos/libtdjson.podspec` (s.dependency)
9093- Run `./example` for macos
9194
9295 ` ` ` bash
9396 cd ./example/macos
94- pod update flutter_libtdjson
97+ pod repo remove trunk
98+ pod update
9599 cd ..
96100 flutter run -d macos
97101 ` ` `
98102
99- - Bump the ios dependency version in `./ios/libtdjson.podspec`
103+ - Bump the dependency version in `./ios/libtdjson.podspec`
100104- Run `./example` for ios simulator
101105
102106 ` ` ` bash
103107 cd ./example/ios
104- pod update flutter_libtdjson
108+ pod repo remove trunk
109+ pod update
105110 cd ..
106111 flutter run --debug
107112 # link .dylib to search path, e.q:
108- # ln -s $(pwd)/build/ios/Debug-iphonesimulator/XCFrameworkIntermediates/flutter_libtdjson/libtdjson.dylib ~/Library/Developer/CoreSimulator/Devices/FD63D560-544B-4B18-8F2F-03B093156DE2/data/Containers/Bundle/Application/004B7B3D-4665-4217-A9C7-2D2193107E80 /Runner.app/Frameworks/libtdjson.dylib
113+ # ln -s $(pwd)/build/ios/Debug-iphonesimulator/XCFrameworkIntermediates/flutter_libtdjson/libtdjson.dylib ~/Library/Developer/CoreSimulator/Devices/FD63D560-544B-4B18-8F2F-03B093156DE2/data/Containers/Bundle/Application/428541A3-8A6A-4766-9297-2B6AA4465542 /Runner.app/Frameworks/libtdjson.dylib
109114 # Reload with ` R`
110115 ` ` `
111116
@@ -127,7 +132,3 @@ dart pub publish
127132# credentials file on macos
128133cat ~/Library/Application\ Support/dart/pub-credentials.json
129134` ` `
130-
131- # # TODO
132-
133- - [ ] ⛔ is about `iOS with dylib`. There are .dylib files in build/ios/Debug-iphonesimulator/XCFrameworkIntermediates, but still...
0 commit comments