Skip to content

Commit

Permalink
bump td to v1.8.31
Browse files Browse the repository at this point in the history
  • Loading branch information
up9cloud committed Jun 28, 2024
1 parent cd6a03c commit 38ecc20
Show file tree
Hide file tree
Showing 32 changed files with 221 additions and 380 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 0.2.1

* Bump TDLib version to 1.8.31

## 0.2.0

* Bump TDLib version to 1.8.30
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ A flutter plugin for [TDLib JSON interface](https://github.com/tdlib/td#using-fr

| package | td version |
| ------- | ------------------------------------- |
| 0.2.1 | 1.8.31 (Android, iOS, macOS) |
| 0.2.0 | 1.8.30 (Android, iOS, macOS) |
| 0.1.4 | 1.8.1 (Android, iOS, macOS) |
| 0.1.3 | 1.7.9 (Android, iOS, macOS) |
Expand Down Expand Up @@ -39,7 +40,7 @@ Make sure you are using supported one

```yml
dependencies:
libtdjson: ^0.2.0
libtdjson: ^0.2.1
```
- If you want to build android, you have to add envs for github maven, see `./android/build.gradle`
Expand Down Expand Up @@ -100,15 +101,15 @@ Make sure you are using supported one
cd ..
flutter run --debug
# link .dylib to search path, e.q:
# 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/3D0AD268-62C8-4A78-91AF-C3966EA8027B/Runner.app/Frameworks/libtdjson.dylib
# 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
# Reload with `R`
```
- Bump the package version in `./pubspec.yaml`
- Add changelog for new version in `./CHANGELOG.md`
- Bump version info in `./README.md`
- Git commit (message example: `bump td to vx.x.x`)
- Git add tag (`git tag vx.x.x`, the tag version should be same as the version in pubspec.yaml)
- Git add tag (`git tag v?.?.?`, the tag version should be same as the version in pubspec.yaml)
- Push with tags (`git push && git push --tags`)
- Wait for CI task

Expand Down
38 changes: 31 additions & 7 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'io.github.up9cloud.libtdjson'
version '1.0-SNAPSHOT'
group = "io.github.up9cloud.libtdjson.flutter_libtdjson"
version = "1.0"

buildscript {
repositories {
Expand All @@ -8,7 +8,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:7.2.0'
classpath("com.android.tools.build:gradle:7.3.0")
}
}

Expand All @@ -27,19 +27,43 @@ rootProject.allprojects {
}
}

apply plugin: 'com.android.library'
apply plugin: "com.android.library"

android {
compileSdkVersion 33
if (project.android.hasProperty("namespace")) {
namespace = "io.github.up9cloud.libtdjson"
}

compileSdk = 34

compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

defaultConfig {
minSdkVersion 16
minSdk = 21
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86_64'
}
}

dependencies {
testImplementation("junit:junit:4.13.2")
testImplementation("org.mockito:mockito-core:5.0.0")
}

testOptions {
unitTests.all {
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
outputs.upToDateWhen {false}
showStandardStreams = true
}
}
}
}

dependencies {
implementation "io.github.up9cloud:td:1.8.30"
implementation "io.github.up9cloud:td:1.8.31"
}
3 changes: 0 additions & 3 deletions android/gradle.properties

This file was deleted.

160 changes: 0 additions & 160 deletions android/gradlew

This file was deleted.

90 changes: 0 additions & 90 deletions android/gradlew.bat

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
package io.github.up9cloud.libtdjson;

import androidx.annotation.NonNull;

import io.flutter.embedding.engine.plugins.FlutterPlugin;
import io.flutter.plugin.common.PluginRegistry.Registrar;

public class LibtdjsonPlugin implements FlutterPlugin {
public static void registerWith(Registrar registrar) {}

@Override
public void onDetachedFromEngine(FlutterPluginBinding binding) {}
public void onAttachedToEngine(@NonNull FlutterPluginBinding binding) {}

@Override
public void onAttachedToEngine(FlutterPluginBinding binding) {}
public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) {}
}
2 changes: 1 addition & 1 deletion example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Demonstrates how to use the libtdjson plugin.
### Regenerate ./android

```bash
flutter create -a java --template plugin --platforms android --project-name libtdjson --org io.github.up9cloud.libtdjson _tmp
flutter create -a java --template plugin --platforms android --project-name libtdjson --org io.github.up9cloud _tmp
rm -fr android
mv ./_tmp/example/android .
rm -fr _tmp
Expand Down
2 changes: 2 additions & 0 deletions example/android/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ GeneratedPluginRegistrant.java
# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
key.properties
**/*.keystore
**/*.jks
Loading

0 comments on commit 38ecc20

Please sign in to comment.